[Quick Links] |
Search Site

Site Details

rendered in 0.0421 secs

Captain's Log | Thursday 18th of June 2015

What's the easiest way to download via ssh?  quick and dirty, dave likes his ssh on port 118 because he's 1337
ssh dave@mygreatsite.com -p118 'cat /path/on/remote.file' > /path/on/local.file
I'm getting spamassassin: sa-update error's on debian for daily cron task. Hey I also use webmin.
Perform this once on you'll have the gas cooking for your future crons:
sudo chown -R debian-spamd:debian-spamd /etc/spamassassin /var/lib/spamassassin
su debian-spamd -c sa-update
How do I format and mount a USB drive on linux from the terminal?sudo fdisk -l
  ...blah
Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048 151300095 151298048 72.1G 83 Linux
/dev/sda2       151302142 153356287   2054146 1003M  5 Extended
/dev/sda5       151302144 153356287   2054144 1003M 82 Linux swap / Solaris
  ...blah
Device     Start        End    Sectors   Size Type
/dev/sdb1   2048 1953523711 1953521664 931.5G Microsoft basic data

sudo umount /dev/sdb1
sudo mkfs.ext4 /dev/sdb1
  other volume types you could use with mkfs | mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs
  also ignore the fact if you run fdisk again it says it's type is: Microsoft basic data, it's a fully fledged member of the ext4 club now. don't discriminate.

sudo mkdir /mnt/myDrive
mount /dev/sdb1 /mnt/myDrive
sudo chown $USER /mnt/myDrive/ .   don't forget that little dot at the end there
  now to make it auto mount at boot

ls -l /dev/disk/by-uuid
rwxrwxrwx 1 root root 10 Jun 18 11:34 0bff056e-fd9f-400e-bcf1-56ad1d48ee37 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 18 11:34 56c0e9cb-ca45-43f0-a1ef-9a18cdb2582e -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 18 11:34 e2486625-d2f2-41b5-918c-542a366342fe -> ../../sda5

sudo vim /etc/fstab
  ...
#partington's big fat 1TB storage machine USB thing
UUID=0bff056e-fd9f-400e-bcf1-56ad1d48ee37 /mnt/myDrive auto defaults 0 0
:wq
  reboot if you want to test, other wise you're all done