Home –  install
Category Archives: install

How to install HTML Tidy in Linux

HTML Tidy is a tool for checking and cleaning up HTML source files. It is especially useful for finding and correcting errors in deeply nested HTML, or for making grotesque code legible once more.

Project URL, source code and executable downloads: http://tidy.sourceforge.net/

I installed it on CentOS 4.6 by following the below steps, it should work fine on any Linux distro

Step 1: Go to http://tidy.cvs.sourceforge.net/viewvc/tidy/tidy/ and click on “Download GNU tarball” at the bottom. This will download a file named `tidy.tar.gz`.

Step 2: Untar the file by below command

chankey@pathak:$ tar xvzf tidy.tar.gz

Step 3: Change directory to the generated folder

chankey@pathak:$ cd tidy

Step 4: Run the below commands

chankey@pathak:$ /bin/sh build/gnuauto/setup.sh
chankey@pathak:$ ./configure --prefix=/usr
chankey@pathak:$ make
chankey@pathak:$ make install

Step 5: Tidy has been installed successfully, you can check the version by

chankey@pathak:$ tidy -v

Output: HTML Tidy for Linux/x86 released on 25 March 2009

Also see

How to install Adobe Flash Player 11.2 on Fedora (17/18), CentOS/RHEL (5.8/6.3)

Here we are going to tell you how to install Adobe Flash Player Plugin 11.2 on Fedora 18/17/16/15/14/13/12, CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8. Using YUM repository provided by Adobe it is very to install and update Flash Player Plugin. Finally native 64-bit(x86_64) version of Adobe Flash Player is made available for Linux users.

Change to root user:

sudo -i

Install Adobe YUM Repository RPM package:

For 32-bit x86-
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

For 64-bit x86_64-
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Update the repositories:

yum check-update

Install Adobe Flash Player 11.2 on Fedora (18/17/16/15/14/13/12), CentOS (6.3/6.2/6.1/6) and Red Hat (RHEL) (6.3/6.2/6.1/6):

yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

Install Adobe Flash Player 11.2 on CentOS 5.8 and Red Hat (RHEL) 5.8:

yum groupinstall "Sound and Video"
yum install flash-plugin nspluginwrapper curl

How to install GIMP 2.8 RC1 on Ubuntu 12.04

GIMP 2.8 on Ubuntu

GIMP 2.8 RC1 was released on April 8, 2012. The details of this new release are on the official site. Here in this article I’ll show how to install GIMP 2.8 on Ubuntu 12.04.

GIMP 2.8 on Ubuntu

Image credit: Ubuntu Vibes

A PPA for GIMP is now available, we’ll use it for easy installation of GIMP 2.8 RC1. Open up your terminal and type the commands given below:

chankey@linuxstall:$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp
chankey@linuxstall:$ sudo apt-get update
chankey@linuxstall:$ sudo apt-get install gimp

and you’re done. GIMP 2.8 RC1 has been successfully installed on your Ubuntu 12.04.

How to install eclipse in Linux (CentOS, RHEL, Fedora)

how to install eclipse in linux

Eclipse is an integrated development ennvironment primarily for Java but with the extra plugins it can also be used to develop applications in C, C++, PHP, Scala, etc.

Here we are explaining How to install eclipse on linux. Distros covered are Fedora, CentOS and RHEL.

Download Eclipse

Go to www.eclipse.org/downloads/ and select suitable version according to your needs.

Switch to root

ayush@linuxstall:$ su -

Extracting

We are extracting the Eclipse package into /opt directory.

ayush@linuxstall:$ tar -xvzf eclipse-SDK-3.7.2-linux-gtk.tar.gz -C /opt

Adding read permissions

ayush@linuxstall:$ chmod -R +r /opt/eclipse

Creating executable

ayush@linuxstall:$ touch /usr/bin/eclipse
ayush@linuxstall:$ chmod 755 /usr/bin/eclipse
ayush@linuxstall:$ gedit /usr/bin/eclipse

Paste following code in the file.

 #!/bin/sh
export ECLIPSE_HOME="/opt/eclipse" 
$ECLIPSE_HOME/eclipse $*

You are done!

How to install LibreOffice (3.4.5 and 3.5.0) on Linux (Fedora, RHEL, CentOS)

libreoffice

LibreOffice, no doubt a great office suite, doesn’t come pre-installed with major Linux distributions so here we are explaining how to install Libreoffice 3.4.5 or 3.5 on Fedora, CentOS and RHEL. Well you have a privilege of installing LibreOffice on Fedora 16 through command line. Following code can do the trick :

yum install libreoffice

Above code will install latest version of Libreoffice. We have more than that in the box, tutorial to install different versions of Libreoffice on Fedora, CentOS and RHEL.

Downloading Packages

Libreoffice 3.4.5 32-bit stable version

wget http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86/LibO_3.4.5_Linux_x86_install-rpm_en-US.tar.gz

LibreOffice 3.4.5 64-bit stable version

wget http://download.documentfoundation.org/libreoffice/stable/3.4.5/rpm/x86_64/LibO_3.4.5_Linux_x86-64_install-rpm_en-US.tar.gz

LibreOffice 3.5.0 RC3 32-bit stable version

wget http://download.documentfoundation.org/libreoffice/testing/3.5.0-rc3/rpm/x86/LibO_3.5.0rc3_Linux_x86_install-rpm_en-US.tar.gz

LibreOffice 3.5.0 RC3 64-bit stable version

wget http://download.documentfoundation.org/libreoffice/testing/3.5.0-rc3/rpm/x86_64/LibO_3.5.0rc3_Linux_x86-64_install-rpm_en-US.tar.gz

Switch to root

su -

OR

sudo -i

Extract Libreoffice downloaded packages

Libreoffice 3.4.5

tar -xvf LibO_3.4.5_*

Libreoffice 3.5.0

tar -xvf LibO_3.5.0*

Installation

LibreOffice 3.4.5

cd LibO_3.4.5*
rpm -Uvh RPMS/*.rpm
rpm -Uvh RPMS/desktop-integration/libreoffice3.4-redhat-menus-3.4*.noarch.rpm

Libreoffice 3.5.0

cd LibO_3.5.0*
rpm -Uvh RPMS/*.rpm
rpm -Uvh RPMS/desktop-integration/libreoffice3.5-freedesktop-menus-3.5*.noarch.rpm

..and you are done!

How to install VLC 2.0 on Ubuntu or Linux Mint

VLC 2.0

VLC is an open-source media player whose latest version VLC 2.0 was released some days ago.

VLC 2.0

New features of VLC 2.0

This new version includes multi-threaded decoding for a variety of popular formats. New audio and video filters have been added in this update. Blu-ray support has also been added. MKV demuxer has been improved. Broadcom CrystalHD hardware decoding is now available and some minor changes have been done on the interface.

How to install VLC 2.0 on Ubuntu 12.04

Ubuntu 12.04 users can install VLC 2.0 directly from the Ubuntu Software Center.

How to install VLC 2.0 on Ubuntu 11.10 or Linux Mint 12

Ubuntu 11.10 users will have to use the commands given below to install VLC 2.0

chankey@linuxstall:$ sudo add-apt-repository ppa:n-muench/vlc
chankey@linuxstall:$ sudo apt-get update
chankey@linuxstall:$ sudo apt-get install vlc

How to install VLC 2.0 on Ubuntu 10.10 or Linux Mint 10

chankey@linuxstall:$ sudo add-apt-repository ppa:lucid-bleed/ppa
chankey@linuxstall:$ sudo apt-get update
chankey@linuxstall:$ sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

vlc 2.0 linux mint

How to install Linux Mint’s Cinnamon Desktop on Ubuntu

full cinnamon desktop

full cinnamon desktop

Recently Linux Mint’s developer team released Cinnamon for Linux Mint 13 which is the new desktop environment, it follows the layout of traditional desktops. If you want to try out Cinnamon but you don’t have Linux Mint installed on your system and you are using Ubuntu instead, then you can use the method given below to install it on your Ubuntu machine.

Cinnamon is available in a PPA (personal package archive) for Ubuntu. First of all open the terminal and run the following command:

chankey@linuxstall:$ sudo add-apt-repository ppa:merlwiz79/cinnamon-ppa

 

ubuntu terminal

Press Enter when it prompts you. After that update the available packages list by running the command given below:

chankey@linuxstall:$ sudo apt-get update

Now you can install Cinnamon with this command:

chankey@linuxstall:$ sudo apt-get install cinnamon cinnamon-session cinnamon-settings

Press Y and Enter when it prompts you.

ubuntu terminal 2

If you are not using Ubuntu then you can go to Cinnamon’s official page to find instructions on how to install cinnamon on your distribution.

Starting Cinnamon

Installing Cinnamon will not replace your default Ubuntu desktop environment. It will just add an option of Cinnamon at your login screen. To enable Cinnamon log out from your current session and from the login screen select Cinnamon and log back in.

starting cinnamon

What you see now is Cinnamon. Start playing with it and check out its features.

set Cinnamon as the default desktop environment

If autologin is enabled in your system then every time the system gets rebooted it will come up with unity by default, then you will have to logout each time you want to switch back to Cinnamon. It will be better to make Cinnamon your default desktop environment, here’s how to do that.

chankey@linuxstall:$ sudo /usr/lib/lightdm/lightdm-set-defaults -s cinnamon

Removing global menu of Ubuntu

menu bar ubuntu

You will see Ubuntu’s global menu bar is still there (at the top of the screen). If you want to remove it then run the command given below, log out and log back in:

chankey@linuxstall:$ sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt

If you want to get it back then use the same command by replacing “remove” with “install”

chankey@linuxstall:$ sudo apt-get install appmenu-gtk3 appmenu-gtk appmenu-qt

How to install rpm package on linux ?

install rpm package

install rpm package

RPM was the most famous way of installing packages on a Red Hat based linux box, nowadays other distros are also using RPM to support their software, Suse and Mandriva fall in the zone. RPM stands for Red Hat Package Manager. RPM lets you install a package, upgrade and uninstall the same. It also allows a querying functionality which lets one know about already packages installed on the system.

RPM packages are those with a .rpm extension. RPM packages contains the actual software to be installed and other files that are needed to carry out its installation. RPM packages are distributed distro specifically. Any attempt to install one distro-specific package on another distro might result in undesired consequences. You have been warned !

Graphical installation tools install a package in few clicks but here discussed is old school command line method which has its own legacy.

From here on, you need to have root’s privileges.

To install rpm package, rpm command is used along with -i option which clearly stands for “install”:

rpm -i package.rpm

Packages are subjected to regular upgradations, to update an installed rpm package, engage following code.

rpm -U package.rpm

On a fine day, everything will go well and the rpm package will be installed on your system ready to be launched from command line. Installed software, rather than creating its own directory, goes into pre-created linux directories. Executable files find their path to specific bin directories. To shoot the program from command line, the whole path is not needed just the program name is sufficient.

If things go south during installation, it can be very irritating. Most famous error that comes up is due to failed dependency. Dependencies are the packages that are needed for installing package to mover further in installation process. They are just software that are needed for proper functioning of the package being installed. While installing, the database is checked for needed packages, if not present, it stops the installation process due to failed dependency.

To rectify, one way is to install/upgrade those missing packages (don’t worry it will tell you which packages are not present ) then continue with the current installation. Some times, this error is as meaningless as ‘ay’ in ‘okay’. An entry is made in database only when the package is installed via rpm. If any other method is used, the entry is not made and despite presence of files, “failed dependency” error shows up.

When you are sure that the needed files are already on your system, you can skip the dependency check and install rpm package anyway.

rpm -i package.rpm --nodeps –nodeps option installs it without checking for dependency.

If you try to fool your system by going with –nodeps right away, the program won’t work at all.

Removing the rpm package

rpm command along with -e option is used to remove a package installed with rpm.

rpm -e package.rpm -e is for “erase”

Note: While installing rpm package we included the whole package name but at the time of removing- only the program name can be used ignoring the extension.

rpm -e package This code works the same as above.

It removes all the files related to that package and also deletes the entry from database. Manually removing individual files will not affect database which can lead to dependency errors in future.

Making a query to database:

As mentioned earlier in the very article, the database knows what packages are installed on the system. The database can be queried to check if certain package exists on the database. For a single package query, command goes like:

rpm -q package

If the package is present, it returns the version of package installed, else, it says the package is not installed.

To list all the rpm packages installed on the system, run :

rpm -qa

To check for certain package in the list, “grep” can be used. We will cover that later, stay tuned.

How to install RPM package on Ubuntu?

install rpm on ubuntu

install rpm on ubuntu

Ubuntu users are used to using Synaptic for their software needs and the other user chunk has apt-get via command line. But Ubuntu users don’t have to be sad for those packages which are still distributed in RPM format. Installation of RPM packages can be checked here.

If an Ubuntu user wishes to install a RPM package, a utility is created for this purpose and is called Alien. This doesn’t guarantees that the package will work, its actually a software that converts format of the package. In order to install Alien some prerequisite software are also required including gcc and make.

To install Alien utility, following code should be executed:

sudo apt-get install alien dpkg-dev debhelper build-essential

CONVERTING RPM TO DEBIAN

For performing conversion, run the following command:

sudo alien SomePackage.rpm

To continue with the installation, dpkg tool can be used as follows.

sudo dpkg -i SomePackage.deb