Join Scott Simpson for an in-depth discussion in this video Optional: Creating a virtual machine, part of Learn the Linux Command Line: The Basics.
- [Voiceover] In this course, I'll be using VirtualBox to make a virtual machine that runs Fedora workstation. You can get the files for those from virtualbox.org and getfedora.org. Or, you can use any Linux distribution you prefer. Let's take a look at the process of setting up a virtual machine. Here's the Virtual Box website, and I can click on the big blue button to download the current version. There's a few different options for platform. Since I'm running a Mac, I clicked on the OS X hosts option here. But if you're running Windows or Linux, you can download those version as well.
Take a minute to download these, and install the software on your computer. Then, head over to getfedora.org and download the fedora ISO image. I'm using Workstation, so click on Workstation. And then, choose Download now. Click on the green Download button to start the download. This is a pretty big file, so I've already done this. But you'll want to take a few minutes to download it. You'll need the file to be completely downloaded before you continue. Once you've installed Virtual Box, open it up, and you'll see the Manager window. Let's build a virtual machine.
I'll click on New and give my machine a name. I'll call it Fedora 23 since that's the version I'm using. Make sure the type is set to Linux and the version is set to Fedora, and click Continue. Virtual Box recommends 768 megabyts of RAM. I'm gonna change that to 1024 megabytes. That's one gigabyte. Then, I'll click Continue. I'll leave Create a virtual hard disk now selected and click Create. And I'll keep VDI selected. I'll click Continue.
And I'll click Continue again to choose a dynamically allocated disk. Virtual Box recommends eight gigabytes, but I'll change that to 20. This space isn't being taken up yet, so it doesn't really matter. But I'd like to give myself a little bit of breathing room. I'll click Create. Then, I'll go to Settings and choose Storage. I need to attach the ISO image that I downloaded from the Fedora site. So, I'll click on the empty virtual disk on the IDE Controller. I'll click on the disk image and browse to where I downloaded my ISO image.
There it is. And I'll choose Open. Then, I'll click OK and start the virtual machine. I'll click in the window and press Enter to start Fedora Live. If you need to get the mouse out of the window, you can hit the host key. That's displayed in the bottom right of the window here. On the Mac, it's the left Command key, and on Windows, it's the right Control key. This boot up process can take a few minutes depending on the speed of your processor and your hard drive. But once it comes up, click Install to Hard Drive. I'll make my language selections and scroll down a little bit here.
Then, I'll click Continue. I'll set the Date and Time. I'm near Los Angeles, so I'll choose that time zone. On these installers, sometimes you'll have to scroll around a little bit to find the Done button. Great. Now, the only thing I need to do is to verify the hard drive set up by clicking on Installation Destination. That looks good, and then I'll click done. Great. We're good to go. I'll scroll back down and choose Begin Installation. For my system, I'll set a Root Password, scroll back up and choose Done.
Since I chose a weak password, I had to press Done twice. And I'll create a User. This is the user I'll use to log in to the system. I'm going to choose Make this user administrator, and I'll set a password for this user as well. Again, I had to press Done twice because I chose a weak password. We're not too concerned with security in this virtual machine because we're only using it to learn at the command line. Alright. The installation process is finished. So, I'll scroll down, and I'll click Quit.
I'll scroll up. And in the top bar, I'll click the menu. I'll choose the Power option, and I'll choose Power Off. Then, I'll go into the Settings, choose Storage, click the CD icon, and say Remove Disk from Virtual Drive. That'll remove the ISO image from our machine. So, it won't start up from the installer again. And then, I'll choose the machine and click start. I'll press Enter on the first option. Once the machine starts, I'll click my name and type in my password.
I'll click through the gnome-initial-setup, and click to start using Fedora.
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software