Permission Denied Can’t Empty Trash :Solution

Open Terminal :-

1)Graphical way :

gksudo nautilus ~/.local/share/Trash

2) Direct Way :

sudo rm -rf ~/.local/share/Trash/*



Running Java under Ubuntu


Sun Microsystems have developed Java, which is many things depending on who you ask. It is a language, and an execution environment and probably many more things. On this page Java refers to the software that executes programs compiled to Java byte codes (akin to machine language).


In order to run Java programs and Java applets, you must have a Java environment installed. The GCJ flavor of Java is installed as default, and is usually fine for most purposes. You may, however, have a need to run the Sun flavor of Java if something does not work correctly.

To get Sun Java under Ubuntu 7.04 or later running on Intel or PowerPC platform, you should enable the Universe repository in Add/Remove programs, and install either the openjdk-6-jre package or the sun-java6-bin package. (Note: PowerPC version is slow).

To get Sun Java under Ubuntu 6.06 or 6.10 running on Intel x86 platform, you should enable the Universe repository in Add/Remove programs, and install the sun-java5-bin package.

Note: The same commands will work under Xubuntu/Kubuntu (using Add/Remove or the Adept Package Installer).

See JavaInstallation for details about installation of other flavors of Java.

Choosing the default Java to use

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.
  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun
  • Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

  • Open a Terminal window
  • Run sudo update-alternatives --config java
  • Follow the onscreen prompt

Compiz Fusion On Ubuntu 8.04

The Installation.

Graphic card driver:

Nice Guiide From :Lennart

In this first part of the installation we will be installing the proprietary driver for graphic card in order to gain maximum performance from the system.

You might not have the same graphic card as me, but the steps should be similar to yours even if the graphic card is different, but note that not all graphic cards have a proprietary driver available or might not be necessary at all.

First start the program that controls the hardware drivers as shown in the picture below.

If you are asked to enter your password then you have to do so.

The main windows should look similar to this.

Check the “Enabled” box to install.

If you see the following confirmation box appear chose “Enable” to continue.

And now watch the driver install onto your system.

When finished click “close” to continue.

And reboot your system when asked, to complete the installation of your graphic card driver.

Setting up 3D Desktop:

Now the time has come to prepare the system, by this we will need to enable Compiz, it comes installed with Ubuntu by default.

First start the “Appearance” Application as shown below.

If you are asked to enter your password you need to do so

When it’s started, select the “Virtual Effects” tab and then select Extra, and “Close” then application.

If it ask you to confirm and you can see what is on the screen, press “Keep settings“.

Now you need to install one applications to help you configure your 3D desktop, to do so start the “Add / Remove Applications” program an show here.

Here you need to do several things.

1. Under “Show” select “All available applications”
2. Under “Search” write in “compiz”
3. Tick “Advanced Desktop Effects Settings”

“If it asks you to enable comunity maintained software, choose to do so”

4. Click “Apply” to apply the changes and watch the software install on your computer.

When the application is installed click “Close” to continue.

Now that we have installed the application, we can start configuring our desktop, start the “Advanced Desktop Effects Settings” application to configue the 3D desktop.

When the application have started, the first 2 plugins we will enable is “Desktop Cube” and “Rotate Cube” to test it works, tick the checkbox on both, as shown in the picture.

It might come up with a warning of conflicting plugins, click “Disable” to continue.

To test your rotating “cube” press and hold down

“Alt + Ctrl + Left-Mouse-Button + Move Mouse”

Most likely you will only have 2 sides by now.

This can be changed in Advanced Desktop Effects Settings” under “General Options” and tab “Desktop size”, change “Horizontal Virtual Size” as shown here.

Now you should have a full rotating cube, test it with the commands shown above.

I won’t be going into more details of the configuration of your desktop, but will let you play with it yourself, basically don’t be afraid to look at all the plugin’s and test them out, if you click on then you can find help see how they are activated and change them to your own preferences.

After at little bit of playing around you can easily get a cool looking desktop.

Thats it for this guide, tutorial etc.

Enjoy Compiz Fusion.

Installing VMWare Server on Ubuntu 8.04

Today I needed to setup a couple of virtual machines for a client and realized that I had removed my installation of VMware Server.  Off I went to the VMware download page and what did I find?  A day-old release of VMware Server 1.0.6!  I figured you’d all appreciate an updated blog post on how to install VMware Server 1.0.6 on Ubuntu 8.04, so here we are.

Downloading the Requirements

The first step, of course, is to download VMware Server 1.0.6. You’ll want to download the .tar.gz version.  This command can be used for a direct download:

wget -c

The second step is to install some development tools that we’ll need to get things running. Use the following command or click the package names to install the requirements:

sudo aptitude install build-essential linux-kernel-devel linux-headers-generic xinetd

You will also need to generate a serial number to run VMware Server. Visit this link to register and generate the number of codes you might want. Remember to print the codes or write them down because in my experience they are not emailed to you.

OK, at this point we should have all of the requirements, now we can get to work…

Installation and Configuration

Let’s unpack the VMware archive that we downloaded and run the VMware installer.

tar xf VMware-server-1.0.6-*.tar.gz
cd vmware-server-distrib
sudo ./

The Last Step

If you attempt to run vmware at this point you might notice that it spits out some nasty errors and complains at you. There is one more thing we need to setup.

Basically VMware is missing and complaining about some cairo libraries and gcc. So, the simple fix for this is to point to them by using a symbolic link:

sudo ln -sf /usr/lib/gcc/i486-linux-gnu/4.2.3/ /usr/lib/vmware/lib/
sudo ln -sf /usr/lib/ /usr/lib/vmware/lib/

At this point you should be able to launch vmware and enjoy some virtualization.