Category Archives: Linux

Fixing Users Quotas in cPanel

Cpanel/WHM sometimes has problems with the user quota files causing all users accounts to have unlimited disk space available or 0 megs of disk space in use. This obviously confuses your customers and doesn’t show a real representation of actual disk space being used by your clients. This guide will take you through fixing any quota issues with Cpanel manually or automated.
Continue reading

Fix “Archive directory /var/cache/apt/archives/partial is missing” error

After deleting some .debs from /var/cache/apt, there was an alert displayed in my Ubuntu system tray. When I tried to install anything via apt-get or run a system upgrade, I was annoyed with this message: “Archive directory /var/cache/apt/archives/partial is missing”. Searching through Google I came to know this solution and it worked for me. You have to follow these steps:

To fix this error make sure you recreate the archives folder as well as the partial folder. open a console window and type

1. cd /var/cache/apt

2. Type ls check to make sure archives folder is displayed in case you dont see the archives folder create the folder

sudo mkdir archives if you already have the archives folder then skip this step.

3. type cd archives , create the partial folder by typing sudo mkdir partial

4. type sudo apt-get autoclean to make sure apt is working properly.

Thats it you should now be able to get apt to work properly.

Get rid of stupid “NoClassDefFoundError” in Ubuntu

We use a small Java application to monitor SMS services in our company. This client application connect to the server via internet, means I can monitor the services from anywhere. It was working fine both on Windows as well Ubuntu. Three days earlier when I was cleaning up some applications after Ubuntu File System got full, I mistakenly removed JRE(Java Runtime Environment) too. Though I re-installed it later but my service monitoring application won’t run and keep printing this error in terminal:

Exception in thread “main” java.lang.NoClassDefFoundError:
at java.lang.Class.initializeClass(
Caused by: java.lang.ClassNotFoundException: javax.swing.RowSorter not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/sajid/sm/sm.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at gnu.gcj.runtime.SystemClassLoader.findClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.initializeClass(

Continue reading

Download Ubuntu 9.04 Jaunty Jackalope Alpha 3

A new version every six month is one of the joy of using Ubuntu. It is one of the frequently updated & upgraded linux. After releasing Ubuntu 8.10 Interpid, the developers quickly started to work for next scheduled release. And here we are, the new version Ubuntu 9.04’s Alpha 3 is now available for download. Continue reading

How to change SSH Port

In most of the cases when a Web hosting company setup a new dedicated server, what they tech do is they do not change the SSH port as by default its “22”. Later on it might result in security threat, So what the system Administrator recommend is to change the SSH Port from “22” to any other value.  Here are few steps to change it.

1. Login as root to your server using Putty.

2. Now enter the following command to edit the ssh config file.

pico /etc/ssh/sshd_config


Continue reading

How to enable RTL languages support in OpenOffice

RTL or Right to left languages are commonly known as Arabic script languages but in fact there are few other languages too which are written in right to left order e.g Hebrew.
Like any other office suite OpenOffice too support RTL languages but one need to configure it to support proper direction for RTL languages. Its easy to do this:
1. Open OpenOffice Writer(or any other OpenOffice application).
2. Click Tools > Options.
3. Navigate to Language Settings > Languages and check Enable for complex text layout(CTL), press OK. We are done.
Language Options in OpenOffice
Write few lines in any RTL language & click Right-to-Left icon in formatting bar.

How to: Remove “Your browser has been updated and needs to be restarted”

2 days earlier I updated my Firefox using Ubuntu Updated Manager. All went fine except Firefox, It started teasing me with an error stripe citing “Your browser has been updated and needs to be restarted”. Dismissing it did’nt work as it kept appearing & disturbing me every now than. I googled the problem & landed at bug tracking site Launchpad. This bug was already reported there, though not sorted out. Going by comments I read Savvas Radevic’s comment temporary solution. The solution was basically uninstalling & re-installing the Firefox. I tried it and fotunately it worked for me. If you are getting this error too you can try the solution given below:

Firefox menu > File > Quit
Then execute in terminal:
sudo killall -9 -r firefox
sudo apt-get purge firefox firefox-3.0 ubufox
sudo apt-get install –reinstall firefox firefox-3.0 firefox-3.0-gnome-support
When it’s done, try run firefox

I hope it works.