Archive

Archive for January 28, 2012

yum install gnome for CentOS

January 28, 2012 Leave a comment

Minimum installation of CentOS server would not include any x-windows, but you could install gnome.

1. Verify group components installed

# yum grouplist

2. Install x-window

# yum groupinstall “X Window System”

3. Install Gnome

# yum groupinstall “GNOME Desktop Environment”

 

4. Remove Gnome

# yum groupremove “GNOME Desktop Environment”

 

5. Start Gnome

# startx
Categories: CentOS

Set password for root in Ubuntu

January 28, 2012 Leave a comment

Password for root is not set by default, so the command “su -” would not work.

3 approaches to work as root:

1. sudo -i

2. sudo bash

3. sudo -s

Then change the root password:

passwd

OR directly change root password as:

$ sudo passwd root

Disable root:

$ sudo -dl root

 

Categories: root password