Archive for category Linux
Merge multiple pdf’sinto a single pdf
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
How to setup Linux VNC Server with KDE or Gnome
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
xx” where xxx is the display number.
Start a new server.
Installing LAMP on Ubuntu
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
How to make all applications use a single proxy in Ubuntu
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.
How to install .deb packages?
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
Installing flash player in Ubuntu
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.
Want to try out Google Chrome OS for yourself? Here’s how..
Posted by pratik in Experiments, Linux on November 20, 2009
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.
Installing tar.gz and tar.bz2 files in linux
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
Zip a folder in Linux
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.