All posts by Faheem

How to change Linux root password temporarily.

This is a simple technique by which you can have your our root password temporarily and change it back to the real one after use. The condition is

* You are logged in as root and you don’t know the root password

Back-up the current shadow file.

[root@localhost ~]# cp /etc/shadow /etc/shadowbkup

Change the current root password the desired one.

[root@localhost ~]# passwd root
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

Now switch to a local user to test whether ‘your’ root password is working or not.

[root@localhost ~]# su – localuser ( localuser is an additional user )
[localuser@localhost ~]$ su – root
Password:
[root@localhost ~]#

Yes, you are now logged in as root with ‘your’ password.

Restore the previous root password, which is still unknown

[root@localhost ~]# mv /etc/shadowbkup /etc/shadow
mv: overwrite `/etc/shadow’? y
[root@localhost ~]#

This trick is meant for students and kindly do not misuse .

Cheers, Faheem

How to install winrar for Linux

You can install & use winrar for Linux. The installation is quite simple to follow even for Linux newbies.

Open a terminal, type sudo su – to switch to root.

cd /usr/src

wget -c http://www.rarlab.com/rar/rarlinux-x64-3.8.0.tar.gz

tar -xzf rarlinux-x64-3.8.0.tar.gz

cd rar

make

You are done. Now you can use the commands rar and unrar  for compressing and uncompressing files respectively.

eg: unrar filename.rar

social networking all together by Digsby.

I spend more time on social networking sites and have accounts on different ‘SN’ sites.  I found digsby-logomyself difficult to login each and every accounts and check for updates and this is also eating up more internet resources. If you are having the similar situation, then digsby is my sugestion for you.

digsby is a social networking tool that alerts you of events like new messages and gives you a live Newsfeed of what your friends are up to.

You can have one combined buddy list for all your AIM, MSN, Yahoo, ICQ, Google Talk, Jabber, and Facebook Chat Accounts. You can manage your Hotmail, Gmail, Yahoo Mail, AOL/AIM Mail, IMAP, and POP accounts right from digsby and stay up to date with everything happening on your Facebook, Twitter, MySpace and LinkedIn accounts. This also supports file transfers.

Digsby

digsby chat client with different themes

digsby is highly customizable , can change skin, look and feel and way it alerts and is embedded with multitasking pop-ups.

Get digsby from here . Currently digsby is only available for windows users. Linux users, digsby is coming soon for us . Visit www.digsby.com/signup/maclinux/?os=linux

Install file splitter for Linux.

Download HJSplitlx file splitter for Linux from here :

tar -xzf hjsplitlx.tar.gz to extract the file HJSplitLX

Install the basic requirements :

http://redhat-archive.osmirror.nl/updates/7.1/en/os/i386/XFree86-libs-4.1.0-50.i386.rpm

[bash]rpm -ivh XFree86-libs-4.1.0-50.i386.rpm[/bash]

http://biznetnetworks.dl.sourceforge.net/project/kylixlibs/kylixlibs3/Suse%208.2/kylixlibs3-runtime-3.0-rh.4.i386.rpm

[bash]rpm -ivh kylixlibs3-borqt-3.0-rh.2.i386.rpm[/bash]

to start the software ./HJSplitLX

You may get the following error :-

[bash][root@techinterplay src]# ./HJSplitLX[/bash]

[bash]./HJSplitLX: symbol lookup error: ./HJSplitLX: undefined symbol: initPAnsiStrings[/bash]

Execute the below command to resolve the error

[bash]ln -s /usr/lib/kylix3/libborqt-6.9-qt2.3.so /usr/lib/libborqt-6.9-qt2.3.so[/bash]

[root@localhost src]# ./HJSplitLX

you are done!

How to install flash player in Centos / Redhat.

This post can also answer the question ” how to fix the firefox error on centos/redhat linux”
Installing the flash player on centos/redhat linux seems to be very difficult sometimes. But the installation is quite simple :) . The flash player may not be installed automatically using firefox. While trying install firefox, you may get the error following error ” Firefox could not install this item because “install-0zr..rdf” (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.”The Screeshot of error is provided. To fix this issue, you need to upgrade/install certain libraries using yum. I have mentioned the commands below.
1. First you need to install those libraries (.i386 and .x86_64):
yum install curl compat-libstdc++-33 glibc nspluginwrapper
2. Once done with the libraries, we need to download the flash player rpm.
mkdir flash
cd flash
download the rpm inside the folder flash.
click here to Download
3. Next we need to execute the command below to install the rpm. This command should be executed inside the folder, where the rpm is downloaded. Ours is in the folder ‘flash’.
rpm -ivh flash-plugin-10.0.12.36-release.i386.rpm
(replace with the version of rpm you have downloaded)
4. Close the Firefox and restart it. You should be able to see the flashes hereafter.

Installing the flash player on centos/redhat Linux seems to be very difficult sometimes. But the installation is quite simple :) . The flash player sometimes fails to install automatically using firefox. While trying install , you may get the error

[bash]" Firefox could not install this item because "install-0zr..rdf" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem."[/bash]

The Screeshot of error message:

To fix this issue, you need to upgrade/install certain libraries using yum. I have mentioned the commands below.

1. First you need to install those libraries (.i386 and .x86_64):

[bash]yum install curl compat-libstdc++-33 glibc nspluginwrapper[/bash]

2. Once done with the libraries, we need to download the flash player rpm.

[bash]mkdir flash[/bash]

[bash]cd flash[/bash]

download the rpm inside the folder flash.

click here to Download

3. Next we need to execute the command below to install the rpm. This command should be executed inside the folder, where the rpm is downloaded. Ours is in the folder ‘flash’.

[bash]rpm -ivh flash-plugin-10.0.12.36-release.i386.rpm[/bash]

(replace with the version of rpm you have downloaded)

4. Close the Firefox and restart it. You should be able to see the flashes hereafter.

cPanel icons missing on WHM

Usually WHM allows you to login to the cPanel accounts from the “List Account” option. But sometimes you may not able see the cPanel icons which prevents you to login to the cPanel account as root.

FIX:-

goto “Tweak Settings” and uncheck the option below

Disable login with root or reseller password into the users’ cPanel interface. Also disable switch account dropdown in themes with switch account feature.

How to install .deb files using dpkg

Most of the Ubuntu users depend apt-get to get and install debian packages. Using apt-get application is the quickest way to find and install debian packages. The installation part is done by an application named dpkg. Dpkg doesn’t have to be used by apt-get, you can use it manually as well.
dpkg is a medium-level package manager for Debian
In keeping with GNU/Linux system security, only the superuser(sudo) can use the dpkg application. Dpkg is a typical GNU/Linux application that is controlled by command-line switches. Possibly the most common use of dpkg is to install a local .deb file.
To install a .deb file, switch to ‘root’ and use the command:
dpkg -i filename.deb
Dpkg can also be used to:
dpkg –unpack: unpacks the file but does not install it
dpkg –configure: presents whatever configuration options are available for the package
dpkg –remove: removes a package
Some of the package manipulation commands are actually carried out by an application called dpkg-deb. In those cases, dpkg just acts as a front end to dpkg-deb and passes the commands to it.
Dpkg-deb can also be used to manipulate .deb files. Some of the more useful commands of dpkg-deb are:
dpkg-deb –show filename.deb
This will display the information for filename.deb. Please refer the dpkg man page for more information

Most of the Ubuntu users depend apt-get to get and install debian packages. Using apt-get application is the quickest way to find and install debian packages. The installation part is done by an application named dpkg. Dpkg doesn’t have to be used by apt-get, you can use it manually as well.

dpkg is a medium-level package manager for Debian

In keeping with GNU/Linux system security, only the superuser(sudo) can use the dpkg application. Dpkg is a typical GNU/Linux application that is controlled by command-line switches. Possibly the most common use of dpkg is to install a local .deb file.

To install a .deb file, switch to ‘root’ and use the command:

dpkg -i filename.deb

Dpkg can also be used to:

dpkg –unpack: unpacks the file but does not install it

dpkg –configure: presents whatever configuration options are available for the package

dpkg –remove: removes a package

Some of the package manipulation commands are actually carried out by an application called dpkg-deb. In those cases, dpkg just acts as a front end to dpkg-deb and passes the commands to it.

Dpkg-deb can also be used to manipulate .deb files. Some of the more useful commands of dpkg-deb are:

dpkg-deb –show filename.deb

This will display the information for filename.deb. Please refer the dpkg man page for more information.

Openarena: FPS game for ubuntu users.

I was on a search for a ‘BIG’ game that could be used on ubuntu desktop and my search ended up on ‘Openarena’. Openarena is a FPS (first-person shooter) game suitable to those above 17 due to violent and racy content. It can run on Linux, Mac OS X, and all 32-bit flavors of Windows that I know of (that supports

Openarena

OpenGL. This includes Windows 95). If you can run “one of those other 3d shooters” you can probably run OpenArena. You can run/play it on processors as slow as a Pentium 90MHz with 32MB of RAM, but it is recommended for at least a PII 233MHz processor, with at least 96MB of RAM, for any playability.

Openarena is now one of my favourite games for Linux and I request you to give  it a try  :) . You may download Openarena from here :

Google Chrome for Linux : Download it now!

Google Chrome browser for linux“, I am using it!

The google chrome browser, the light weight browser i have ever seen is now available for linux. But they have released only a in-progress build of Google Chrome for Linux.  Google Chrome for Linux is released by Google for testing. I downloaded it and its my default browser now :) Luckily., it didnt crashed yet.

Google Chrome for Linux has the same look and feel as that was for the Windows. But the following significant chunks of functionality are known to be missing:

  • Plugins, including Flash (so no YouTube, Hulu, etc.)
  • Printing
  • Complex text
  • Complex tab dragging
  • Gears support
  • Other parts of the browser are notably incomplete, poorly tuned and broken. Google tells the users”beware!” :)

Google Chrome On Ubuntu

Google Chrome On Ubuntu

‘Chromium’ vs ‘Google Chrome’

Chromium is an open source browser project. Google Chrome is a browser from Google, based on the Chromium project.

Google chrome is build with open source code from Chromium . The current release for Google Chrome Linux is Dev channel .
Dev channel :- DEV channel is the  developer preview channel is where ideas get tested (and sometimes fail). The Dev channel can be very unstable at times, and new features usually require some manual configuration to be enabled. Still, simply using Dev channel releases is an easy (practically zero-effort) way for anyone to help improve Google Chrome.
Google Chrome Requirements for Linux :-
Intel Pentium 4 / Athlon 64 or later CPU; 32- or 64-bit Ubuntu 8.04 or later, or 32-bit Debian 5. Support for other Linux distributions is planned; unpacking the .deb files by hand may work.
Download and install the package appropriate for your system (just clicking on it should do the right thing):
Dev channel (for 32-bit systems): google-chrome-unstable_current_i386.deb
Dev channel (for 64-bit systems): google-chrome-unstable_current_amd64.deb

Note: Installing Google Chrome will add the Google repository so your system will automatically keep Chrome up to date. If you don’t want Google’s repository, do “sudo touch /etc/defaults/google-chrome” before installing the package.

Remember, Dev channel browsers may still crash frequently. See bug-reporting-guidlines-for-