Archive for the ‘Linux’ Category

Handling multiple pdf’s can be a pain, and combining multiple pdf’s is not as easy as merging doc files. So how to achieve this?

The simplest and the fastest way is using pdftk. Install Ubuntu if you are not a regular user, install this on a VirtualBox image and install pdftk on your instance by typing

sudo apt-get install pdftk

Once the installation is complete, you can now start merging pdf files on the fly by using the following command

pdftk *.pdf cat output merged.pdf

or

pdftk 1.pdf 2.pdf 3.pdf cat output merged.pdf

There are mutiple options to this which you can find out using man or using google :)

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

The default desktop for the VNC Server is “TWM”, though most people are used to KDE or Gnome instead. Here is how to change it:

Edit ~/.vnc/xstartup
For KDE, replace “twm &” with “startkde &”
For Gnome, replace “twm &” with “exec gnome-session &”
Kill any existing VNC servers with “vncserver -kill :x xx” where xxx is the display number.
Start a new server.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

If you are using Linux on multiple monitors you are surely going to miss Utramon, but don’t worry. Gnome has the option of Ultramon in built so no extra application needed.

You can get your task-bar on multiple monitors using the following instructions

Instructions:
1.) Right click on anywhere on the launch-bar, click “New Panel”
2.) Drag that to any monitor.
3.) Right click on that panel, and click “Add to Panel”
4.) Select “Window List” under Desktop and Windows
5.) Click Add.
6.) Click Close, and you’re done.

No more having windows from all monitors listed on the primary monitor itself :)

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

Installing LAMP (Linux – Apache – MySQL – PHP) on Ubuntu is pretty straight forward.

1st we install Apache.
Go to your Terminal and type in sudo apt-get install apache2

2nd step
sudo apt-get install php5 libapache2-mod-php5

3rd step
sudo apt-get install mysql-server

4th step
Just make sure Apache is running :) In your terminal enter
sudo /etc/init.d/apache2 restart

And if you are stuck, google is always available :)

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

If you are trying to connect all the apps and bash on your Ubuntu setup to use a common proxy, the easiest way to achieve this is via Network Proxy Preferences. Go to System -> Preferences -> Network Proxy and select the Proxy Configuration and the Ignored Hosts as per your preference. Once done, select Apply System-Wide and you are done. Each and every application including the bash will now use this proxy that you have entered.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

To install deb packages, download the deb package to a local folder (possibly /tmp if you do not require the installation file later) and run the following command

sudo dpkg -i package.deb

This should take care of the installation

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

To install flashplayer in ubuntu just go to the shell and type in $ sudo apt-get install flashplugin-nonfree
Once done, restart your browser and flash video’s/files should start working in all your browser.

VN:F [1.8.5_1061]
Rating: 10.0/10 (2 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

November 19, 2009 marked the public debut of Google Chrome OS. It is available for download for everyone to install and play around with. The OS can be downloaded from gdgt or via torrent. Check out http://www.techcrunch.com/2009/11/19/guide-install-google-chrome-os/ which has further details on how to download and how to install the OS.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

The installation procedure for software that comes in tar.gz and tar.bz2 packages isn’t always the same, but usually it’s like this:

# tar xvzf package.tar.gz (or tar xvjf package.tar.bz2)
# cd package
# ./configure
# make
# make install

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)

The command to zip a folder in Linux (Red Hat Enterprise Linux 4) is as below:

zip -9 -r <zip file> <folder name>

To zip a single file:
zip -9 <zip file> <filename>

Use “-9″ for best compression. The compressed file works fine with Windows XP compression tool.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)