How To Reduce the Size of a PDF Using Ghostscript

Author: , February 4th, 2017

Make sure you have Ghostscript installed, then: 1 gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=”/ebook” -sOutputFile=output.pdf input.pdf -dPDFSETTINGS={value} where {value} is one of: /screen – the lowest resolution and lowest file size, fine for viewing on a screen /ebook – mid-range resolution and file size /printer – high-quality […]

How To Resize an ext3 Filesystem

Author: , August 31st, 2014

I had to replace an ailing root volume on AWS, so I decided to double the size when I created the new volume from snapshot. After booting, I realized that df still showed the old filesystem size of 10GB, not the new size of 20GB Here is the solution: resize2fs /dev/xvda1 1 2 3 4 […]

How To Grow EBS Volumes on AWS

Author: , June 27th, 2014

PROCEDURE FOR NON-ROOT FILESYSTEMS: Run the df command and record the device path for the mount point you wish to grow. Unmount the filesystem to insure consistency. Detach the volume from the instance. Create a snapshot of the unmounted filesystem. Create a volume from the snapshot, specifying a larger size in the new volume form. […]