Linux For DevOps (Part-2)
In the last blog, we discussed about OS and Virtualization.
- Virtualization software(VMware Workstation Pro and Virtual Box) installation
- Installation of Ubuntu in VMware
- Basic Linux Commands
Virtualization software(VMware Pro)
VMware is a virtualization company that provides both Type-1(VMware ESXi) and Type-2 hypervisors(VMware Workstation). From Wikipedia, VMware Workstation Pro is a hosted hypervisor that runs on x64 versions of Windows and Linux operating systems; it enables users to set up virtual machines on a single physical machine and use them simultaneously along with the host machine.
VMware Installation steps:
- Visit this website to download VMware
- After downloading install the VMware on your laptop. Keep everything default click Next, Next, Next, install.
- That’s it, now you have installed VMware on your laptop.
Note: You don’t need to install both VMware and VirtualBox. Install either one of these software's.
From Wikipedia, Oracle VM VirtualBox is a free and open-source hosted hypervisor for x86 virtualization, developed by Oracle Corporation. VirtualBox may be installed on Windows, macOS, Linux, Solaris, and Open Solaris
VirtualBox Installation steps:
- Visit this URL to download the Virtual box.
- After downloading install the VirtualBox on your laptop. Keep everything default click Next, Next, Next, install.
- That’s it, now you have installed the VirtualBox on your laptop.
Differences between VMware Workstation and VirtualBox
- VMware is paid software(We need to buy a license key) and VirtualBox is open source.
- In VMware, we can take snapshots, but in VirtualBox, we can’t take snapshots.
- VMware won’t support MAC systems, VirtualBox can install in MAC OS.
- On some systems, VirtualBox can make hardware issues, but in VMware, there are no issues.
Installation of Linux(Ubuntu) in VMware
In Linux there are many software’s mostly nowadays people are using Ubuntu, Kali Linux, Red Hat Linux, etc.,
Here, we are going to install Ubuntu Debian-based Linux distro. From Wikipedia, Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine.
- Download the Ubuntu ISO file.
- Now open VMware.
- Select “Create a New Virtual Machine.”
- Select installer disk image file and browse for the file that you have downloaded on your laptop.
- Then you will that Easy install and critical install — Go with Easy install, it will take care of the hard work that you need to configure and it is recommended. Click Next.
- Now it will ask for your Full Name, User Name, and Password. Then hit enter.
- Now you need to configure the system requirements.
8. You can customize your requirements, by clicking customize.
9. Now you need to confirm that everything that you have configured. Now click Finish.
10. Automatically it will download VMware tools, if not download it manually.
11. Now run ubuntu by clicking the power button.
12. Connect to the WIFI when it asks So that it will download some of the required files.
13. Now it will restart automatically, After that login into the virtual machine.
14. Congrats! You successfully installed the Ubuntu on your VMware.👏👏
Note: If you find any issues while installing contact me on LinkedIn or else you can comment below.
Basic Linux Commands
Now you have successfully installed Ubuntu, I just want to see how the home screen will look like after login.
- On the left-hand side, you see at the end nine dots, which is the menu. Click on that search for the terminal.
- Now on the terminal, you can see user@ubuntu:~ right! The name that you are seeing is user-name and after that you can see the computer name. The tilt sign means you’re at the home directory.
- Home directory means! whenever you create a user it will automatically create a home directory for you. for me it’s /home/bhanu
- pwd: It’s a Linux command and it will print the current working directory. It means print working directory. Currently, I’m in the home directory so it shows me the home folder.
- ls: It means list contents. When you run this command on the Linux terminal it will list the contents.
- cd: It means change directory. Now if we want to change the directory? at that, we use the cd command. Now I'll change the directory to Downloads.
- touch: This command will be used for creating a file. Now create a file using the touch command. I’m inside downloads and I ran the touch test.txt It created me a file called test.txt, then I used the ls command to list files.
- cd ..: If we want to come back then we use cd .. see the difference from the below image. Changed from the Downloads folder to the home folder.
- ls -a: If we want to see hidden files, then we use this command.
- clear: If we want to clear the screen then we use the clear command.
- ls -la: If we want hidden files in a list order then we use the ls -la command. It will list all files.
- ls -lh: This command is used for listing human reading, so that we can understand easily bytes etc.,
- ls -lah: This command list all human-readable files.
- man: This command will show the manual of almost all commands used in Linux.
Note: In Linux terminal, every command that you run is case sensitive.
That’s it for this part, If you haven’t read part-1, once study that for understanding OS and virtualization.
In the future, we will talk about more Linux commands. In the next module, we will talk about the Linux File system and File permissions.
Don’t forget to follow me on Medium
Thank you guys for reading this module. If you find any mistakes let me know on LinkedIn or else let me know in the comment section. Don’t forget to share the Feedback.
About me, My name is Bhanuprathap Reddy. I’m a cybersecurity researcher, CTF Player, Student. I’m having certifications like CompTIA Security+ and Azure Fundamentals Certification etc., You can connect with me on LinkedIn and Twitter.
If you would like to buy me a coffee ☕ that will be appreciated. https://www.buymeacoffee.com/bhanuprathap
Thanks again for you’re time.