Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday 20 June 2016

Enable GUI Mode in Ubuntu.

Or, How to enable GUI mode for CentOS 7?

Or, How to enter in GUI mode of CentOS?
Or, How to access CentOS GUI interface?

Steps:
To Install GUI Make Sure, Full Internet Access is Available On The Server.
$ startx (If not working, proceed to next step)
# apt-get install xinit (If not working, proceed to next step).
# sudo apt-get update (If not working, proceed to next step)
# apt-get install xinit (if still not working)
# sudo apt-get install ubuntu-desktop (If not working, proceed to next step)
# sudo tasksel install lubuntu-desktop (If not working, proceed to next step)
# sudo update-rc.d lightdm remove
# exec startlubuntu
# startx

Funny, there are so many time (If not working, proceed to next step) :), its because I have experienced it live. Some time people only post what worked for them but I think its good to let people what did not worked for you as well. This will keep you cool while performing the steps.  People who are not Linux experts, gets confused if some of the commands dont work for them.. Yes, I am right.. I gets confused too. :)

How to enable SSH on Ubuntu?

Or, Enable SSH on Ubuntu. 

Solution:
To enable SSH on Ubuntu machine, please run the below command:
---------------------------------------------------------------------------------
# sudo apt-get install openssh-server openssh-client
------------------------------------------------------------------------

Enable GUI Mode in CentOS7.

Or, How to enable GUI mode for CentOS 7?
Or, How to enter in GUI mode of CentOS?
Or, How to access CentOS GUI interface?

Steps:
1. To access GUI interface of CentOS 7 > Type the command startx > Press Enter
2. If the above command did not work, you may need to enable the GUI first before trying to access       it. Make sure you have internet access on this machine else installation of GUI interface may fail.
3. To enable GUI for CentOS7, Login with Root > Type the command
    yum -y groups install "GNOME Desktop" > Press Enter 
4. Wait for the installation to be completed; it may take couple of minutes.
5. Try typing startx again and hit Enter
6If prompted, select the language you preferred. It should look like below:























You may follow other instructions accordingly as it comes up after selecting the Language.

Cheers!!

Sunday 19 June 2016

How to Install VMware tool in CentOS 7 Virtual Machines?

Or, Install VMware tool in CentOS.

Or, Install VMware tool in Linux/CentOS virtual machine.

Description: Please make sure you are having internet access on the CentOS/Linux machines you are trying to install VMware tool. This will help you in installing prerequisites of VMware tools before proceeding with the VMware tools installations.

Steps (please follow the stages of the steps given below very carefully to get the VM tools installed successfully):
----------------------------------------------------------------------------------------------------------------------------------------------------
Stage-1 (Install prerequisites):
Note: Make sure internet is accessible on the virtual machine you are installing VMware tool.
# yum install open-vm-tools
# yum install perl gcc make kernel-headers kernel-devel -y
----------------------------------------------------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------------
Stage-2 (Proceed with vmware tool installation):
1. Attach the VMware tools package using vSphere client (Right Click on Virtual Machine > Go to Guest > Click on Install/upgrade VMware tool option)
2. Now Run following commands sequentially to install VMware tool.
# mount /dev/cdrom /mnt
# cd /mnt
# ls
manifest.txt     VMwareTools-10.0.6-3620759.tar.gz  vmware-tools-upgrader-64
run_upgrader.sh  vmware-tools-upgrader-32
# cp -p VMwareTools-10.0.6-3620759.tar.gz  /tmp
# cd /tmp
# tar xzvf VMwareTools-10.0.6-3620759.tar.gz 
# cd vmware-tools-distrib
# ./vmware-install.pl
----------------------------------------------------------------------------------------------------------------------------------------------------

Wait for the installation to be completed (you may need to Type YES and press Enter multiple time during the installation of the VMware tool).

Cheers, please write me back if you have any query or feedback..