Posts

Showing posts with the label VirtualBox

Install CentOS on VirtualBox Part 3 : Installing the Gnome Desktop Environment

Image
In previous blog we've installed the CentOS operating system on VirtualBox however, when we reboot, it takes us to a text prompt.  In this blog we will be installing a graphical desktop environment to our operating system using "yum".  Follow the steps below to get the Gnome desktop in your CentOS. 1.  Make sure you have internet connection 2.  Click "Start" on your "CentOS" VM 3.  After the boot messages you will be presented with login prompt.  Type in the login name of the Administrator user that you've created on the last blog . 6.  Now type sudo yum groupinstall "GNOME Desktop" without the quotes 7.  Type y when asked "Is this ok [y/d/N] 8. After the Gnome desktop has been installed type reboot now -r to reboot CentOS 9.  After the CentOS has been rebooted, login using the Administrator user and type sudo systemctl set-default graphical.target this step is optional.  You only want to do this if you want to start up CentOS in ...

Install CentOS Part 4 : Adding A New User With useradd and usermod Command

Image
One of the most common task you have to do as a Linux administrator is to add a new user.  Especially developers who always wants root access.  To accomplish this task you can use the useradd command in the Terminal session.  Follow the steps below to add a new user to CentOS. 1.  Switch into the root user using su - command 2. Type the following command useradd -s  /bin/bash -d /home/john -m john then press "Enter" useradd is the command to add a new user to CentOS, below is an explaination of what each switch means in the command above -s --shell SHELL - the login shell of the new account, which is the/bin/bash shell -d --home-dir HOME_DIR - home directory of the new account, which is /home/john 3.  Type ls /home to list the content of the /home directory and you will see the john directory has been created for the user john 4.  We've created a new user name john, but he has no password, to set a password for john we can use the passwd command. ...