Join Scott Simpson for an in-depth discussion in this video Optional: Creating a virtual machine, part of Learning Linux Command Line (2016).
- [Instructor] In this course, I'll be using VirtualBox to make a virtual machine that runs Fedora Workstation. You can get the files you need 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 VirtualBox website, and I can click on the big blue button to download the current version. There's a few different options for platform. So if you're using Windows, click the Windows one. If you're using a Mac, click the OS X hosts option. And if you're installing VirtualBox on Linux, click the Linux distributions one.
Take a minute to download and install the software on your computer. Then head over to getfedora.org, where we can download the Fedora ISO image. I'm using Workstation, so I'll click the green button, and then I'll choose Download now. And instead of choosing this option here, I'll click over under Other Downloads for the 1.5 gigabyte Live image. This is a pretty big file, so I've already downloaded this on my computer. 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 VirtualBox, open it up, and you'll see the Manager window. Let's build a virtual machine. I'll click on New, and I'll give my machine a name. In this case, I'll call it Fedora. Make sure the type is set to Linux and the version is set to Fedora 64-bit, and then click Next. VirtualBox recommends 1,024 megabytes of memory. Fedora will run with that, but it's not a great experience. So I'll give it 2,048, or two gigs, and then I'll click Next.
Then I'll choose to create a virtual hard disk, a VDI type, and dynamically allocated. VirtualBox recommends eight gigabytes, but I'll set this to 20 gigabytes instead. This space isn't being taken up yet, so it doesn't really matter. But I like to give myself a little bit of breathing room. And I'll click Create. Then I'll click on the virtual machine and choose Settings. Under Storage and then the empty slot under the IDE controller, I'll click the CD icon and choose the file from where I downloaded it.
And then I'll choose Open and click OK. Then I'll start up my virtual machine. I'll press Enter to start Fedora Workstation Live. And then I'll choose to Install to Hard Drive. I'll make sure the language that I want to use is selected, and then I'll click Continue. On the next screen, I'll need to click Installation Destination.
That'll check that it's using the hard drive I expect it to. It is, and I'll choose Done. Then I'll click Begin Installation. I'll click to set a Root Password. And click Done. And then I'll create a user. I'll type in my name, and I'll make sure that this user is an administrator.
And I'll provide a password. This is the user I'll use to log in to the system. I'll press Done. Now Fedora is installed. I'll click Quit. And I'll need to shut down the virtual machine, unmount the installation image, and then start the machine back up again. So here at the top right, I'll click the arrow and the power symbol and choose Power Off.
Then I'll go into the Settings, into Storage, and where I selected the disk before, I'll choose to remove the disk from the virtual drive, and I'll click OK. Now I'll start the virtual machine up again. I'll click my name, and I'll type my password.
I'll click through the Welcome screens. And I'll close the Getting Started window. I'll put my virtual machine into Full-screen Mode. And you can do the same, or you can leave it as a window. It's up to you. Then I'll click on Activities, click in the search box, and start typing terminal.
I'll make the font bigger with Control + Shift + plus. And I'll double-click the menu bar to make the window bigger. Then I'll go through the process to get the exercise files, as we saw in a previous video. I'll type git clone git:// github.com/scottsimpson/commandlinebasics.
Those are downloaded now. And as we saw earlier, I'll open up the Files app. Open the commandlinebasics folder, and move the Exercise Files into the Documents. That's where I'll use them throughout the rest of the course. Now we're ready to get started.
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