Home –  how to
Tag Archives: how to

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

Add auto-complete to “yum”

We really enjoy the auto complete feature in bash but it would be great to have it with “yum”. Debian based Linux Users already have it. Red Hat based distros do not ship with auto-complete enabled in “yum” which would be great if they do. Meanwhile here is a small trick to use mighty auto complete with “yum”, this will work with Red Hat as well as Cent OS and Fedora (all versions).

  • Change to root
 su - 
  • Install the package: bash-completion
 yum install bash-completion 

And you are good to go. You can now type “yum install “ and hit [TAB] to load suggestions just like in bash.

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

Top 10 places to learn Linux online

Learn Linux Online

Learn Linux Online

I don’t have to brag on wonderfulness of Linux. As the use of Linux based operating systems in industry is increasing exponentially that it has definitely become a ‘need’ for the IT personnel now. Market needs Linux experts much more than they actually exist. Talking of statistics, growth of demand for good Linux developers is at 31 percent!

Learn Linux Online

Those who want to encash the opportunity, can choose to start learning Linux with few websites which are considered best at what they are doing. Following is the list of such websites:

1. PaulPaulito.com

PaulPaulito has not been there for a long time but looks promising so far. This Netherlands based website is offering training videos in English as well as Spanish and German. The organization running this website is a Linux Professional Institute (LPI) approved training partner. The courses are designed in a way that they help in preparation of LPI certification Exams. It also offers practice exams. This website is not free, costs about 67 USD per month.

2. LPI partners

LPI is a certification organization has its training partners all over the world. The site of LPI itself can be used to look up a training partner around your location.

3. Red Hat

Red Hat has its own training and certification programmes. Most of the courses offered by Red hat are targeted at Red Hat Enterprise Linux, being a Linux vendor has its own advantages. Online courses consists of Red Hat System Administration and Red Hat Linux Troubleshooting, fees starts from $1400.

4. BeginLinux.com

BeginLinux.com provides a variety of courses mainly focused on CentOS Server, Ubuntu Server and Apache Security. Plans start from 95.95$.

5. The Linux Foundation

Variety of online training courses are provided by The Linux Foundation. Classroom programmes are also available. Embedded Linux, the Linux Kernel, Open source Compliance are some courses to name a few of all that are included in offered courses. Advanced tools are used in delivering the course such as live Java-based virtual collaboration and Live audio conference bridge. You can use their search tool to find the course which can fit your need. Prices starting from $2750.

6. Canonical

If you are interested in learning with Ubuntu, Canonical can serve you with huge number of courses listed in their training section.

7. IBM

IBM has its own set of Linux courses. The price for its Linux training classes start at $675.

8. LinuxCertified

LinuxCertified is known to provide onsite training facilities along with distance learning options. You can opt for this at $99.

9. Novell OpenCourseWare

Novell provides free training with no registration overhead. The courses are training modules which help in better understanding of their product just like canonical and IBM.

10. The Virtual Training Company

A wide range of Linux Tutorials are available with The Virtual Training Company. Some content is kept free as well. The tutorials provided are either in Flash or QuickTime format. A user can get a chance to browse though 900 course on the site with a price tag of $30 on it.

These are the few sources which know what they are doing, there exist a lot more than these. We at LinuxStall also try to help you in getting comfortable with Linux. If you wish to add more sources to this list, we have our comment section open.

Take screenshot in Linux with Shutter

Shutter is a free screenshot manager for Linux that can grab your screen, well that’s what every snapshot tool does. Exciting thing about Shutter is that it also allows you to take snapshot of specific area, a particular window or even a website. Right from that window, you can make changes to screenshot to highlight something or draw a pointer to anything you wish. Shutter is written in Perl. Its feature list also includes sending image to photo editors, uploading to websites and auto-thumbnailing.

Shutter is actually 0.7 version of a previously known screenshot manager called GScrot. This Linux only app is of great use to bloggers, technical writers and all those who like showing off their Linux desktop.

How to install Shutter?

Debian / Ubuntu based distro users can execute following command to install Shutter:

user@computer:$ sudo apt-get install shutter

And, for RHEL/Fedora/CentOS users can do it with this command:

user@computer:$ yum install shutter

Screenshot:

Shutter

 

How to start Shutter?

From GUI view, it can be started as follows:

Applications > Accessories > Shutter

Or to do it CLI way, following command will start the app and will grab the whole screen automatically.

shutter --full

To start shutter in window selection mode:

shutter --window

To start in selection mode (in which you can select the part of screen to be grabbed with your mouse):

shutter --selection

To see the help section of shutter:

shutter --help

How to connect Ubuntu Server to Dropbox account

dropbox ubuntu

I was looking for a solution to share some of my files in my Ubuntu server to others and while thinking of “cloud computing” at that time, I am thinking if i can try to share my files by linking my box to my existing dropbox account or not. Thus, i give a try and it seem it works. Here are the steps how to do it.

dropbox ubuntu

Step 1. Download and extract the dropbox client

For 32-bit:

chankey@linuxstall:$ $ wget -O dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86"

For 64-bit:

chankey@linuxstall:$ $ wget -O dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86_64"

Step 2. Extract the file

chankey@linuxstall:$ tar -xzvf dropbox.tar.gz

Step 3. Run the dropbox client deamon wiht the following command:

chankey@linuxstall:$ $ ~/.dropbox-dist/dropboxd

Step 4. Since the server is not link to any dropbox account yet, so you will see the following message keep showing every few second:

This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id=ed2986f99681f0a7b0bf1cd36c79d3e9&cl=en_US to link this machine.
This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id=ed2986f99681f0a7b0bf1cd36c79d3e9&cl=en_US to link this machine.

Step 5. You may now copy & paste the link to any browser by using any computer so that it will start to link this machine to your dropbox account. You will be asking to provide your username & password in order to link this to your dropbox account.

Step 6. Once it’s successful, you will see the the following message in your Ubuntu linux machine:

chankey@linuxstall:$ $ Client successfully linked, Welcome Chankey!

Step 7. Now you may press CTRL + C to terminate the deamon process now.

Step 8. You can manually start the service by running the following command:

chankey@linuxstall:$ $ ~/.dropbox-dist/dropbox

Step 9. You may start to snyc and copy any file to your dropbox folder now.

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!

Push Button Reset in Linux

So everybody is talking about a cool new Windows 8 feature called ‘Push Button Reset’. It will reset settings in Windows 8 to day #1. You can do the same with Linux / Unix, just run the command given below:

Warning: Do not run the following command on prods as upon executing this will halt your system and reset all basic settings.

chankey@linuxstall:$ sys-unconfig

At boot you need to change the root password, set new network configuration, time config, keyboard config, auth config (like use ldap or pam etc), and services config. Like Windows 8 IE/MSoffice, it will not modify Linux apps settings. Personally, I prefer editing individual files.

This is not a new feature as Windows 8 fan boys are claiming to be and it’s been around for ages. My best guess is that MS-Windows 8 users are going to use this feature frequently :P

Note: I’ve tested sys-unconfig on Solaris and RHEL. I’m not sure about Ubuntu but debconf provides similar features.

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!