By gill, 19 October, 2017

I found this procedure on the webs and used it slightly modified, as outlined below.

Become root with sudo su -
Insert the USB drive, and find its device name.


sdk                 8:160  1  31.6G  0 disk
└─sdk1              8:161  1  13.7G  0 part /run/media/gill/OCTD

Unmount the partition.

umount /dev/sdk1

Run fdisk with the device name and remove existing partitions.

By gill, 18 May, 2017

Connections to my postfix+imap server are "blocked" (connection refused).
Turns out the portreserve system is broken... it blocks ports the mail server needs!

for daemon in portreserve clamd cyrus-imapd spamassassin amavisd postgrey postfix
/sbin/service $daemon stop
for daemon in postfix postgrey amavisd spamassassin cyrus-imapd clamd portreserve
/sbin/service $daemon start

By gill, 10 April, 2016

#add a user (I choose pi)
sudo useradd -m -c "Pi Octoprint" pi
#Be sure to give him a password
sudo password pi
#make sure it's up to date
sudo apt-get update
#install python building tools
sudo apt-get install build-essential python-dev python-pip python-virtualenv

NOW you can start with the instructions

By gill, 10 November, 2015

If you use the Linux shell very much, you find its history functions very useful. You can recall previous commands very easily, just using the arrow keys.
If you use the Workload Scheduler command-line interfaces, conman and composer, you really miss the history. Sure there's the redo command, but its editing capability is limited to the last command you typed.

By gill, 2 October, 2015

/usr/bin/mysqldump --user=dbuser --password=dbpass --host=localhost --add-drop-table dbname > backups/mydbdump.sql

(if the db exist)
# mysql -u root -p[root_password] [database_name] < dumpfilename.sql

mysql -u root -ps3cre3t

mysql> create database dbname;
Query OK, 1 row affected (0.02 sec)

# mysql -u root -ps3cre3t db < /tmp/mydbdump.sql