Wednesday, June 13, 2012

Workaround for Eclipse cannot start "java.lang.UnsatisfiedLinkError: no swt-pi-gtk"


Problem:

Getting this weird error in Lubuntu 12.04 64bit Edition
Eclipse cannot start "java.lang.UnsatisfiedLinkError: no swt-pi-gtk"

Resolution:

cp /usr/lib/jni/libswt-*3740.so to ~/.swt/lib/linux/x86_64/

Wednesday, November 2, 2011

Read Ubuntu man pages in Firefox


Everyone who uses Linux has sometime used man pages. They are an exceptional source of myriad of Linux command flags. So to get details about the ls command, we type at terminal

man ls

The output in terminal is plain text and not easy to navigate (at least for few).
It would be really nice to have the main page available in proper format in the browser. One can then also open as many browser tabs and navigate through multiple command info easily.

This can be enabled in Firefox as following
  1. Install man2html. In the Terminal type the following command and enter your password when prompted.

    sudo apt-get install man2html

  2. Go to Firefox > Ctrl+B.
  3. Right click on any bookmark folder and create a New Bookmark.
  4. Enter Name as man (Put anything you would like to see this bookmark as).
  5. Enter Location as
    http://localhost/cgi-bin/man/man2html?query=%s
  6. Enter Keyword as man (this is the command you want to type in address bar).
  7. Click the Add button.
  8. Now in the Firefox address bar type your man command as you would do in a terminal to see nicely formatted man page in the browser.
    man ls


Monday, December 13, 2010

Add/ Remove/ Rotate/ Export pages from PDF files with PDF Mod


Many a times we need to add, remove or rotate selective pages from PDF files.
Adobe Acrobat is an excellent enterprise application for these tasks but it costs a fortune.

PDF Mod is a free open source tool that can
  1. Reorder pages
  2. Rotate pages
  3. Add/Remove pages
  4. Export images
  5. Edit PDF properties
  6. Combine multiple documents
To install PDF Mod on your Ubuntu System follow along the two simple steps.

Step 1- Add the ppa to repository (Ubuntu 10.10 + users can skip this step)
sudo add-apt-repository ppa:pdfmod-team/ppa

Step 2- Update the repository.
sudo apt-get update

Step 3- Now run the following install command
sudo apt-get install pdfmod

Voila! you have PDF Mod on your system now
Right Click on any PDF file and open with PDF Mod to start modifications.
For more details on how to use PDF Mod visit http://live.gnome.org/PdfMod