Archive for the ‘Linux Knowledgebase’ Category


Restoring Default Ubuntu Panel

May 6, 2009

How to restore the default Ubuntu Panel.

This have been tested in Ubuntu 9.04.

Run the following command in terminal.

gconftool –recursive-unset /apps/panel
rm -rf ~/.gconf/apps/panel
pkill gnome-panel

Then logout and then back in.



Enable Wireless in Ubuntu 9.04

May 4, 2009

I have a HP 510 laptop with ubuntu 9.04 on it. Everything worked fine until one day when it just lost its wireless connection. When I looked at network manager it say that the device not manage.

After searching the net for a long time without finding a solution I found a website that finely had a solution.

I am a newbie to Ubuntu and Linux so I do not know what it did but it seemed to resolved the problem. The article as written in 2006 for Dapper Drake but is seems to also work on 9.04.

To update the source list run the following command

sudo apt-get

sudo apt-get install wpasupplicant

sudo apt-get install network-manager-gnome network-manager

sudo gedit /etc/network/interfaces

Comment out everything other than “lo” entries in that file and save the file

Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file

sudo touch /etc/default/wpasupplicant

Reboot your system or use the following command

sudo /etc/init.d/dbus restart

Hope it helps.

Source :


Ubuntu Send Ctrl+Alt+Del command to VMware Server VM

May 4, 2009

I was surprised to find there is not a “send ctrl+alt+del” menu command in VMware Server 2.0. When connecting from an Ubuntu desktop. It’s not in the Remote Console menus nor in the Commands section of the Web Interface. Normally that is not a big deal because you can always use “ctrl+alt+ins” to log on to a Windows VM, but it did not work. I was banging away at my keyboard wondering what was wrong. I had just finished installing Server 2008 remotely from one of my Intrepid desktops and was ready to log back in to run dcpromo but I could not get to the log on prompt. I thought maybe my ins key went bad, but I knew that could not be the case. When I tried to use another Ubuntu desktop I had the same problem. Then I discovered there was not a menu command either! I did some research.

Turns out you have to use the Del key from the number pad on your Ubuntu desktop’s keyboard because the keyboard mappings in Ubuntu 8.10 are not correct! The working key combination is therefore “ctrl+alt+[numberpad]del. If you do not have a number pad on your keyboard (laptops) then make this quick config change.

add just one line to the file ~/.vmware/config:

xkeymap.nokeycodeMap = true

Close the VM web console and reopen it for the change to take effect.

Source :


How to mount a Windows share with smbmount.

May 1, 2009

Ok so onto the Linux system, its relatively simple:
Make the directory you want to mount the share to.

mkdir /mnt/share

Next either…
Mount the share with user/pass:

smbmount //winpc/shared /mnt/share -o username=user,password=pass,rw

Or mount the share without a user/pass (this is true if Everyone is still set)

smbmount //winpc/shared /mnt/share -o rw

Source :


Changing font color of the panel

February 3, 2009

In ~/.gtkrc-2.0 insert this line

include “/home/<user_name>/.gnome2/panel-fontrc”

then create the file panel-fontrc in .gnome2, which consists of the following lines:

style “my_color”
fg[NORMAL] = “#4353b6”
widget “*PanelWidget*” style “my_color”
widget “*PanelApplet*” style “my_color”

and that’s it. All you have to do is choose the color and do a killall gnome-panel. The second “widget” line affects only the applets and the first one does the rest.
To chose the color you can use the color select dialog in GIMP.



Ad blocking with ad server hostnames and IP addresses

May 1, 2008

A list of ad servers and how to use them to easily block 90% of ads on the web.


How can I set the system date and time from the command prompt (bash shell)?

May 1, 2008

Use date command to display the current date and time or set the system date and time over ssh session.
This is useful if the Linux server time and/or date is wrong, and you need to set it to new values from the shell prompt.
Use the following syntax to set new data and time:

date set=”STRING”

For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user:

# date -s “2 OCT 2006 18:00:00”