VMware Workstation is a virtualization software developed by the company VMware company, established in 1998. VMware Workstation was launched in 2001 as a platform to install multiple instances of different operating systems, especially the client and server systems. It supports hardware compatibility for hard disks, CD Roms and USB devices, and provides a bridge between the host and virtual machines. The purpose of building such a platform was to enable system administrators to test and verify the client-server environment for software and hardware. The VMware administrator can also switch between different virtual machines at the same time.
Please download VMware from https://www.vmware.com/products/workstationpro/workstation-pro-evaluation.html and activate it with following keys:
- Right-click on the setup and click on “Run as Administrator” to run the setup.
2. Click Next
3. Check “I accept the terms in the License Agreement” & click next
4. Uncheck “Product Updates” & “Customer Experience” and click next
5. Check “Desktop” & “Start Menu Program Folder” and click next
6. Click Install
7. Wait for the installation completion, if it asked about the installation of Network driver then click install. And click “License”
8. Copy any license key from the text file and paste in the VMware setup and click Enter
9. Click Finish.
10. Now right click on “VMware Workstation Pro” icon on desktop & click “Run as Administrator”
Virtual Machine Creation
Now we are going to create an Ubuntu virtual machine. Please download Ubuntu Desktop ISO from https://ubuntu.com/download.
- Click on the “File” menu on the top left of VMware workstation software and then click “New Virtual Machine” option.
2. Select “Typical (recommend)” option and click “Next”
3. Select “Installer disc image file (iso)” option and click on “Browse”
4. Now select the Ubuntu ISO File and click “Open” button as shown below
5. VMware workstation detected Ubuntu ISO. Now click Next.
6. Now set “Username” and “Password” of the Ubuntu machine and click next.
7. Set you “Virtual Machine Name” and hard disk location, where you want to create your virtual machine. (Make sure you have 20–40 GB space available on your hard disk)
8. Now set “Maximum Disk Size” (you can increase disk size as per your convenience, but not less than 20 GB, and select “Split Virtual disk into multiple files” option and click next.
9. Now set the options as shown in the below image. You can increase Memory and Processors as per your laptop specification
10. You can select a different option in the “Network Adapter” tab as per your LAB requirement. But for now, we are going for the NAT option. Click the close button.
11. Select “Power on this virtual machine after creation” option and click finish.
12. Ubuntu machine Installation process will start and take a while to complete.
13. After complete installation, the login screen will appear. Please log in with username and password which you set on Step # 6.
14. Ubuntu Desktop will look like below image.
15. Now click on the “Show Application” icon on the bottom left of the virtual machine to show all installed application.
16. Enter the word “terminal” in the search field & click on the terminal icon to open a terminal window
17. Please read the instruction carefully, shows on the terminal window. Will explain this instruction later. A terminal in Linux machine is the same as the Command Prompt in windows.
18. Now open “Files” from the left menu to view the directories of User “Ubuntu”
19. Now click on top right corner icon “Arrow & Power button” to open the menu. From this menu you can:
a. Shutdown OR Restart your virtual machine
b. Change your Network settings
c. Change volume d. Lock screen OR log out from the current user.
e. You can also open the Ubuntu setting menu just like the Windows Control panel.
20. Now we are going to run some basic Linux commands in a terminal. Open your terminal.
a. Run command “ls”
i. It lists the files and folders in the directory you specify. By default, ls looks in the current directory
b. We want to change our current directory to Downloads. Run “cd Downloads” command to change the directory.
i. The cd command changes your current directory. In other words, it moves you to a new place in the filesystem. If you are changing to a directory that is within your current directory, you can simply type cd and the name of the other directory.
c. You can use the double dot symbol “cd ..” to go back the previous directory:
d. Run “pwd” command
i. The pwd command prints the working directory (the current directory) from the root/directory
e. Run “cp” command to copy the files or folder to other location.
i. For example from the below image, we are going to copy the text.txt from user “Ubuntu” home directory to user “Ubuntu” Documents directory.
ii. Command format: cp “file name which you want to transfer” “path where you want to transfer file”
iii. And then we are going to verify them by going into the directory using the cd command to verify that file is successfully transferred by using ls command.
f. Run “cat” command
i. The cat command (short for “concatenate”) lists the contents of files to the terminal window. This is faster than opening the file in an editor, and there’s no chance you can accidentally alter the file.
g. Run “Sudo su” command
i. Sudo su command switches to the superuser — or root user — when you execute it with no additional options. You’ll have to enter the Ubuntu account’s password.
ii. Some commands and directories are required user root permission to access or read them.
iii. Now go to user “root” home directory by typing “cd /root/” command.
h. Without switches to the root user, you cannot cd to the root home directory.