Buy @ Amazon

Search This Blog

August 27, 2010

Convert [from/to] PDF [to/from] PS (PostScript)

In Ubuntu, it only takes a couple of steps for you to convert from/to PDF to/from PS or postscript.

For this you may have to install pdftops (read as PDF TO PS). You can install this from either Ubuntu's Synaptic Package Manager or from terminal by running the below command:
$ sudo apt-get install xpdf-utils

For this you may also have to install ps2pdf, if only, it is not available by default with Ubuntu.

Command: Convert PDF -> PS
$ pdftops -paper [letter,legal,A4,A3,match] -upw <userpwd4encryptedfile> pdf_file_name.pdf

$ pdftops -paper A4 -upw kartzontech my_contacts.pdf
-paper A4 option implies that I want the PDF to serve A4 paper size compatible PDF
-upw kartzontech throws a password (kartzontech) to sign-in to password protected PDF file for its conversion to PS

Command: Convert PS -> PDF

$ ps2pdf destination.pdf

Ebook Suggestion:
For big bundle of tips, tricks, hints and hacks in Ubuntu, the book from Pragmatic Bookshelf should be of great help. See Ubuntu Kung Fu: Tips, Tricks, Hints, and Hacks for more information.

August 25, 2010

Ubuntu Keyboard Short-cuts

Workspace Management

Win E => Shows all workspaces in a nifty way and lets you switch between workspaces easily.

Alt Ctrl [Left/Right Arrow] => Move to Workspace on Left/Right

Alt Ctrl Shift [Left/Right Arrow] => Move current window/application to another workspace

Window Management

Alt F4 => Closes the window.

Alt F5 => UnMaximizes Current Window (or Returns a window to previous or normal size.)

Alt F9 => Minimize current window

Alt F10 => Maximize/UnMaximizes current window

Ctrl Alt D => Show Desktop/ Restore open windows if show desktop used earlier

Nautilus (Nautilus is the default GNOME file manager window that you use in your GUI to view files and folders.)

F9 => Show/hide the side pane.

Ctrl + => Zoom in.

Ctrl - => Zoom out.

Ctrl 0 => Normal size.

Ctrl [1/2] => Change folder view to icon/list.

Ctrl H => Show/hide hidden files

Ctrl L => Show/hide the location bar

Ctrl R => Reload the Nautilus window

Ctrl W => Close the current working Nautilus window

Ctrl T => Open a new tab in Nautilus

Ctrl Shift W => close all open Nautilus Windows

Alt [Up Arrow] => Open parent folder

Alt [Left Arrow] => Move back one folder

Alt [Right Arrow] => Move forward one folder

Alt Home => Return to your home directory (~/).

Alt Enter => Show properties of a selected file/folder without requiring to right click on it and select Properties.


Win Space => Opens up "GNOME Do" where you can key in the first couple of alphabets of the application name that which you would want to open up.

Ctrl Alt L => Quick shortcut to Lock Screen if you need to be away from your desktop for few moments and don’t want others to see your desktop.

Alt F1 => This will open up the Applications menu on the GNOME desktop. Once open you can use your arrow keys on your number pad.

Alt F2 => Open the Run Application dialog Box

If you can think of some more cool key-board shortcuts that helps in day to day affairs which I have missed, I would be thankful to learn it all from your comments to this post :)

Books I recommend:
If you are a Ubuntu noob, then you may get started easy with Ubuntu for Non-Geeks: A Pain-Free, Get-Things-Done Guide

But, the book Ubuntu Linux Bible: Featuring Ubuntu 10.04 LTS is an any time reference.

Related Posts I recommend:

ORA-28000: the account is locked

Problem: ORA-28000: the account is locked
Cause: This happens for reasons galore. Some of them being as follows:
  • if bad password is provided more than the permissible number of times, then the account gets locked
  • the DBA has locked the specific account for some reason
Solution: You can request the administrator to unlock the account :P He would fire a query something like the one below:
SQL> alter user scott identified by tiger account unlock;

For more explanation on this read Oracle DBA Tips or even better take deep dive by buying the coolest book Oracle Database 10g: The Complete Reference (Osborne ORACLE Press Series)