I wish I had access to one of those nifty UNIX command-line tools under MS-Windows Vista or XP operating systems. How do I access UNIX command line utilities under Windows with out using virtualization?
Q. How do I fix the following error under CentOS Enterprise Linux:
LVM error VG meta data inconsistent
How do I fix this error?
Q. How do I upgrade my Linux kernel version under Ubuntu Linux 7.04 / 7.10?
A. You can use any one of the following method:
(a) Command Line Tools – apt-get
(b) GUI tool
apt-get command – Upgrade Linux Kernel
Open terminal and type the following commands:
$ sudo apt-get update
Now search kernel version:
$ apt-cache search kernel-image
Now install kernel by explicitly specifying version number:
$ sudo apt-get install linux-image-2.6.xx-yy-generic
Replace xx.yy with kernel version number. Reboot the system.
This is recommended method for most user. Click on System > Administration > Update Manager > Click on Check button > Apply all updates including kernel.
Q. I donâ€™t need GUI as Iâ€™m developing CLI based applications. By default Ubuntu Loads Gnome GUI. How do I disable X.org / Gnome under Linux so that I get text only login?
A. You can use GUI tools or command line tools to disable GDM (Gnome Display Manager) service (/etc/init.d/gdm).
Disable GDM using GUI tools
The Services Administration Tool allows you to specify which services will be started during the system boot process. You can type the command:
Or just click on System > Administration > Services
Now you will be prompted for the administrator password, this is necessary because the changes done with this tool will affect the whole system. After entering the administrator password, the following window is displayed:
Make sure you remove GDM (Gnome login manager) by disabling the the checkbox and close the window.
Enable GDM using Command Line (CLI) tools
Ubuntu comes with rcconf and update-rc.d command. rcconf allows you to control which services are started when the system boots up or reboots. It displays a menu of all the services which could be started at boot. The ones that are configured to do so are marked and you can toggle individual services on and off.
Use apt-get command:
sudo apt-get install rcconf
Now start rcconf:
Again you will be prompted for the administrator password, this is necessary because the changes done with this tool will affect the whole system. After entering the administrator password, the following text based window is displayed on screen:
Next enable GDM service by pressing space bar (check the checkbox) > Click OK to save the changes.
This is 3rd and old method. You can enable or disable any service using update-rc.d command.
Task: Disable X.org GUI
Just enter command:
sudo update-rc.d -f gdm remove
Task: Enable X.org GUI
Just enter command:
sudo update-rc.d -f gdm defaults
You can always start GUI from a shell prompt by typing startx command:
Please note that you can use above tools to enable or disable any services under Debian / Ubuntu Linux.