Compress PDF on OS X in Terminal

Compress PDF on OS X in Terminal

For my own reference, GhostScript is a great tool to compress those huge PDF files that your scanner generates. In order to use GhostScript PDF compressor, you need to install GhostScript first: brew install ghostscript Then you can run the following command to compress your original file to a smaller file gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook […]

Read More

Sudo access to a user in Linux

Sudo access to a user in Linux

The following command will give sudo access to a user on a linux machine: sudo printf "myuser ALL = NOPASSWD: ALL\n# User rules for myuser\nmyuser ALL=(ALL) NOPASSWD:ALL\n" | sudo tee /etc/sudoers.d/myuser > /dev/null && sudo chmod 440 /etc/sudoers.d/myuser Where myuser is the username you are granting privileges to. The command will also apply the correct […]

Read More