Setting up a Linux Operating System like Ubuntu can be a bit daunting, especially if you’re a firm Windows user with no Linux experience.
I’m glad you’re here starting your Linux journey! You won’t look back!
Ubuntu is generally accepted as the most beginner-friendly Linux OS.
1. Download Ubunutu & VirtualBox
Go to ubuntu.com to download the iso file, it has the entire operating system compressed into it.
Note the system requirements:
- 2 GHz dual-core processor or better.
- 4 GB system memory.
- 25 GB of free hard drive space.
Your computer, aka host machine, will need to be above these to share resources with your Virtual Machine (VM). Why? You’ll run into a sluggish experience otherwise i.e. not enough juice in the tank!
Now grab VirtualBox for your current operating system (Windows, macOS or Linux) on your computer, I’ll be using Windows.
You don’t have to read all of it, but it’s good to know the VirtualBox User Manual has everything you need in case you run into issues.
Once downloaded, install VirtualBox by running the .exe file.
2. Virtual Machine Settings
Let’s get Ubuntu installed:
- Click new (the blue startup top) and name your VM, I recommend a logical naming convention like Ubuntu 1 and creating a new folder with the same name.
- Put it wherever you’d like, but I’d also recommend creating a VM root folder for any other VM you create.
- VirtualBox should detect what type and version depending on the name you give it. If it isn’t correct, use the drop-down options to select Linux and Ubuntu (64-bit).
- Set the Memory size, remember what the system requirements were? 4GB, so type 4000MB into the input field.
- Select Create in the Hard disk section, we don’t need to change anything here, press Next.
- VDI is fine for the Hard disk file type, select Next.
- Read the difference between Dynamically allocated and Fixed-size, I recommend Dynamic.
- Now for File location and size leave the file path default and scale up the size to at least 25GB to fit system requirements.
3. Insert Ubuntu ISO File
Great! Now your VM is ready to boot… or is it??
- If you hit Start a warning dialogue box should appear:
- This is where you select the Ubunutu iso file from back in step 1. Click the folder with the green up arrow > Add > navigate to iso file.
- If the VM starts up and fails, close window > power off the machine.
- Now under the VM Storage settings, click [Optical Drive] Empty and follow step 2 above.
Now follow your nose from here, watch the prompts and check the settings, it’s straightforward.
4. Setup Guest Additions
Once your new Ubuntu VM is set up and ready to rock, it’s recommended to install VirtualBox’s Guest Additions. It’s optional software that gives some ‘nice to have features to make life easier.
To install, within VirtualBox select Devices (up the top of VM) > Insert Guest Additions CD image…
So now you’re set up and good to go! Thanks for reading and I hope this walkthrough has been easy to follow and helpful. If you have feedback, please send me a message via Twitter.
This is Day 1 of #100DaysOfHacking, subscribe to my weekly newsletter to see the learning journey!