A virtual machine is a great way to safely explore Linux on your computer. Learn how to install Ubuntu in VirtualBox.
- [Narrator] In this course I'll be using VirtualBox to make a virtual machine that runs Ubuntu Desktop. You can get the files you need from virtualbox.org and ubuntu.com. Or you can use any Linux distribution you prefer. Let's take a look at the process of setting up a virtual machine. Depending on the speed of your hardware this could take up to 20 minutes or so. 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 the platform so if you're using Windows click the Windows one, if you're using a Mac click the option for that one, 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 ubuntu.com where we can download the Ubuntu installer or ISO 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. Mouse over downloads and choose desktop. You'll need the file to be completely downloaded before you continue. Then click the green button. Once you've installed VirtualBox open it up and you'll see the manager window.
If you want to find out more about VirtualBox take a look at my course Learning VirtualBox which focuses on how the software works and how to use it. 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 Ubuntu Desktop. Make sure the type is set to Linux and the version is set to Ubuntu 64-bit, then click next. VirtualBox recommends 1,024 megabytes of memory.
Ubuntu will run with that but it's not a great experience so I'll give my machine 2.048 or 2 gigs and then I'll click next. I'll choose to create a virtual hard disk, VDI type, and dynamically allocate it. VirtualBox recommends 10 gigabytes but I'll change this to 80 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 over here on the right and then click choose virtual optical disk file, I'll go to my downloads and choose the Linux installer image that I downloaded earlier. Then I'll click OK. Now I'll start up the virtual machine.
I'll maximize the window. I'll click the button to install Ubuntu. Then I'll go through the setup process. This has identified my keyboard as US English, and that's correct, so I'll press continue, and then I'll continue through this screen with the normal installation and I'll tell the installer to download updates while it's installing. I'll click continue. Because we're installing in a virtual machine we'll erase the entire virtual disk and install Ubuntu.
I'll click install now, then I'll click continue. The installer's found my location so I'll click continue again, and then I'll create a user. I'll type in my name and then I'll provide a password. This is the user that I'll use to log in to the system. I'll press continue and now the installer will finish installing Ubuntu.
When the installation finishes I'll click restart now. I'll click my name and I'll type in my password. And I'll click next through the getting started screens. I'll put my virtual machine into full screen mode. To do that, I can click here in the menu or I can use the host key and F. The host key, on this system, which you can see down here in the right corner, is right ctrl.
Now I'll go up to activities and start to type terminal. I'll make the font bigger with ctrl shift plus and I'll choose view, full screen. Then I'll go through the process to get the exercise files as we saw in a previous video. I'll need to grab the git software package and install it. Don't worry about what this command does right now, just follow along and type in sudo apt install git.
If you see an error make sure that the software updater application isn't running. Press y to continue and the git software will be installed. Now type git clone git;//github.com /scottsimpson/commandlinebasics.
Those are downloaded now. I'll go in to my dash by pressing the windows key or the command key on my keyboard and I'll choose files. I'll open the command line basics folder and move the exercise files in to my documents folder. That's where I'll use them throughout the rest of the course. Now we're ready to get started. I'll click back on my terminal and then go to edit, preferences.
Here, under the colors tab, I can change the colors for my window. I'll uncheck use colors from the system theme and I'll change to Tango light. You can set your colors however you like. And then I'll choose close. Now we're ready to get started.
- Recognize what the characters “-h” represent in the statement “df –h/home/alice/Documents”.
- Explain how to recall a previous command in Bash.
- Identify what the command “ls -l” will show.
- Recall what is needed to use the find command to look for files by name, size, and so on.
- List the two modes file permissions can be set to.
- Recall why many command line tools are intended to be used in pipes with other commands.
- Explain what the command “grep -E "" report.txt” will show.
- Identify what the “>” symbol is often used for.