Tuesday, 17 November 2009

Ubuntu 9.10 vmware arrow key

Add following line

xkeymap.nokeycodeMap = true

to /etc/vmware-server-console/config or ~/.vmare/config
and restart console/player.

There is no need to restart vmware server.

Tuesday, 6 October 2009

Checking Disk Space From Gnome and Ubuntu

Disk Usage Analyzer is a graphical menu driven application that reports disk usage in Gnome and Ubuntu environments. DUA can scan the entire file system tree or individual directories, either local or remote. DUA is also dynamic, in that it will report in real time any devices that are mounted and unmounted.

To access Disk Usage Analyzer in Gnome, click on Applications \ Accessories \ Disk Usage Analyzer



When launched, DUA will start up in a stand by state, showing you total system capacity, used and available disk space.

ubuntudisk2.png

To view the entire file system including usage by individual directories, click the Scan Filesystem icon on the toolbar. When the scan is completed, the full tree of your file system will be displayed.

From this display, you get a nice picture of the disk usage on the entire file system. You can also expand the top level directories and drill down to see sub-directoires and their disk usage, and sort each column to view each directory usage, size and contents. In the right window pane, a graphical layout is displayed. Moving your mouse over a block will display the directory and size.

Selecting Edit \ Preferences from the menu, allows selection of any additional devices connected to your Computer that can be enabled or disabled from being monitored.

ubuntudisk4.png

A feature that I like with Disk Usage Analyzer, is the ability to right click and open the directory by launching Nautilus File Browser.

Checking Disk Space From The Command Line

Another way to view disk usage in Ubuntu is from the Terminal window by clicking on

Application \ Accessories \ Terminal from the panel in Gnome.

Unlike Windows, finding available disk space, from the command prompt, is much easier in Ubuntu using the df command when connected locally or remote via an SSH session.

DF command reports how much free disk space is available for each mount you have. When executing

DF, I like to use the -h option, which returns the output in a more readable format:

greg@lt1:~$ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 116G 61G 50G 56% /
tmpfs 1.5G 0 1.5G 0% /lib/init/rw
varrun 1.5G 148K 1.5G 1% /var/run
varlock 1.5G 4.0K 1.5G 1% /var/lock
udev 1.5G 176K 1.5G 1% /dev
tmpfs 1.5G 412K 1.5G 1% /dev/shm
lrm 1.5G 2.2M 1.5G 1% /lib/modules/2.6.28-15-generic/volatile/dev/mapper/truecrypt1


DF can also report free disk space for individual directories by entering the following command at the prompt:

ds -h /nameofdirectory

Using df at the command prompt is most usefull when checking disk space on remote computers.

To view more available options with df, enter df –help at the command prompt.

Monday, 24 August 2009

Installing Java under Ubuntu

By default, Firefox does not come with Java.

Solution:

Open a terminal (Application Menu/ Accessories/ Terminal) and type in:

sudo aptitude install sun-java6-jre sun-java6-plugin 

or
sudo aptitude install sun-java5-jre sun-java5-plugin 


Enter your password if prompted.

A license window will appear: Press TAB and then ENTER.
If a question is asked, answer "yes" (using the arrow keys and the ENTER key).

Conclusion:

You should now be able to run Java programs and see Java applets in the Firefox browser after restart Firefox.

Tuesday, 3 March 2009

How to add an additional Super User in Ubuntu

You can give Super User status to any additional user in Ubuntu by giving SUDO access.

When you set up Ubuntu, it automatically adds the first user to the sudo group. As it doesn't automatically add additional users to the sudo group and if you want to give someone else superuser privileges on your shared system, you'll have to give them sudo access.

To add new users to sudo, you need to use the usermod command. Run sudo usermod -G admin username . However, if the user is already a member of other groups, you'll want to add the -a option, like so: sudo usermod -a -G admin username .

  • The other way to do this will be by going to System > Administration > Users and Groups.

  • Select the user you want to add to sudo, and click Properties.

The following VMware kernel modules have been found on your system that were not installed by the VMware Installer (vmci vmnet vmmon vmblock)

John@lp1:~/Desktop/vmware-distrib$ sudo perl vmware-install.pl
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer. Please remove them then run this
installer again.

vmci
vmnet
vmmon
vmblock

Execution aborted.

John@lp1:~/Desktop/vmware-distrib$ modprobe -l vmblock
/lib/modules/2.6.27-7-generic/misc/vmblock.ko
John@lp1:~/Desktop/vmware-distrib$ sudo rm -rf /lib/modules/$(uname -r)/misc/vm*

subprocess /usr/bin/dpkg returned an error code (1)

1. Open terminal, type
Quote:
cd /var/lib/dpkg/info
2. Remove the info files for the bad packages Type
Quote:
sudo rm -f virtualbox*
3.
Quote:
sudo apt-get update -f
and
Quote:
sudo apt-get upgrade
finally

sudo apt-get install virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386

It, works :)

Saturday, 6 December 2008

mkdtemp: private socket dir: Permission denied

Probelm:

/etc/gdm/Xsession: Beginning session setup... mkdtemp: private socket dir: Permission denied



Solution:

A quick

sudo chmod a+w /tmp

fixed it.

Installing Minikube on Ubuntu 22.04 LTS