skip to Main Content

Add EBS to Ubuntu EC2 Instance

source: http://stackoverflow.com/questions/11535617/add-ebs-to-ubuntu-ec2-instance additional info: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html Since this is a new volume, you need to format the EBS volume (block device) with a file system between step 1 and step 2. So the entire process with your sample mount point is:…

Read More

W: GPG error

- problem: W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8AB767895ADC2037 - to fix: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AB767895ADC2037

Read More

How to rsync – one way only!

For example you want to rsync "/var/lib/mysql" from "/somefolder/var/lib/mysql", use the following syntax ( for local folders): rsync -avz /somefolder/var/lib/mysql/ /var/lib/mysql (notice the trailing '/' at the end of the source path and the lack of it at the destination path!)…

Read More

Postfix mail queue

To flush queue Traditionally you use the "sendmail -q" command to flush mail queue under Sendmail MTA. Under Postfix MTA, just enter the following command to flush the mail queue: # postfix flush OR # postfix -f To see mail…

Read More

How To Add Swap on Ubuntu 12.04

To add a swap-partition instead of swap-file: blkid /dev/sdax (get UUID) mkswap /dev/sdax (format swap partition) swapon -U xxx nano /etc/fstab (edit fstab) UUID=xxx none swap sw 0 0 (enter and save this text to make swap permanant) (then close…

Read More

grep tips

If you're looking for lines matching in files, my favorite command is: grep -Hrn 'search term' path/to/files -H causes the filename to be printed (implied when multiple files are searched) -r does a recursive search -n causes the line number…

Read More
Back To Top