
CPSC2800‐Introducation to Operating System Linux Hands‐on Series Lab#1: Install Linux in VMware and Introduction to Linux Essence Project 1‐1 Start your Linux in VMware Player VMware Player is a free utility for running VMware Virtual Machines (VMs). It can run one VM a time. If you have VMware Workstation on a PC or VMware Fusion on a Mac, you can also create VMs and run multiple VMs at the same time. There are VMware Player versions for both Linux and Windows, and you can download them directly from http://www.vmware.com/ddownload/player/. You should not install VMware Player if you already have VMware Workstation or VMware Fusion installed on your computer. • If you have installed VMware Player versions earlier than V3.0, uninstall it and reboot your PC. • In your PC, create a folder “C:\VM” with Windows Expxplorer. • Use a web browser to visit http://csis.pace.edu/lixin/download/VVMware‐player‐3.exe. Save file “VMware‐player‐3.exe” in folder “C:\VM” of your PC. • Double click on file “VMware‐player‐3.exe” in Windoows Explorer to install VMware Player with default values. • Reboot your PC. • Start VMware Player, and you will see a window like the following. 1 CPSC2800‐Introducation to Operating System Linux Hands‐on Series • Click on menu item “File|Preferences…” 2 CPSC2800‐Introducation to Operating System Linux Hands‐on Series • In the “Preferences” window, uncheck for software updates, and click on the “Download Alll Components Now” button so you can later install VMware Tools in your new VMs without Internet access. This step is optional. • Click on the OK button to close the “Preferences” window. • Click on the “File|Exit” menu item to exit the “VMware Player” application. (VM) named ubuntu10. This fully‐loaded VM is a good tool for you to learn Linux and web technologies. In the following sections you will learn how to set up a basic UUbuntu V9.10 VM named ubuntu10basic, and install applications on ubuntu10basic to reproduce ubunttu10 yourself. 3 CPSC2800‐Introducation to Operating System Linux Hands‐on Series Before you can run a VM, you must have installed the latest VMware Player or its equivalent (VMware Workstation or VMware Fusion). If you have not installed VMware Player, refer to the last section to install it first. • In your PC, create a folder “C:\VM” with Windows Expxplorer. • Use a web browser to visit http://csis.pace.edu/lixin/ubuntu/ubunntu10.exe, and save the downloaded file in “C:\VM”. • In a Windows Explorer, double‐click on file “C:\VM\ubuntu10.exe” to run it, and the execution will generate a folder “C:\VM\ubuntu10”. 4 CPSC2800‐Introducation to Operating System Linux Hands‐on Series • Save file “C:\VM\ubuntu10.exe” for later regenerating the VM folder if the VM gets compromised. In folder “C:\VM\ubuntu10”, file “readme.txt” tells you some information about this VM including the user names and passwords for this VM. There are two pre‐seet users “root” and “user”, both having password “12345678”. To try out the features of this VM, you must logon as “user”. By this time you should have installed the latest version of VMware Player (or VMware Workstation on a PC, or VMware Fusion on a Mac), as described in the previous section. Otherwise you would not be able to see the same icons of the files. To launch the VM with VMware Player, double‐click on file “Ubuntu10.vmx” (if you could not see the file name extension “.vmx”, then look for the icon of three partially overlapping blue squares). This file is the configuration file of thee VM. Since it is a text file, you could open it with a text editor and make some simple changes, like increasing the memory size for the VM (only if you have more than one GB of physical memory). If this is your first time to launch the VM, you may see the following screeen: 5 CPSC2800‐Introducation to Operating System Linux Hands‐on Series It is better to check the checkbox for “I copied it” and then click on the OK button. If you check for “I moved it”, the virtual hard disk would keep its unique virtual disk signature used for the licensing of some software as well as its unique virtual MAC (Media Access Control) address of your virtual network card. If you check “I copied it”, the virtual hard disk would have a new unique virtual hard disk signature thus may invalidate some software licenses. Since we only install open‐source software, they don’t make differences for us. If you plan to run multiple VMs concurrently, then each of the VMs must have a unique virtual MAC address so it could get a unique IP address from your DHCP (Dynamic Host Configuration Protocol) server. After a few seconds you will see the following Ubuntu window ready for use. If you click on the person icon in the right‐bottom corner, you could set up some user interface details with the following popup window. 6 CPSC2800‐Introducation to Operating System Linux Hands‐on Series If you click on the power button in the right‐bottom corner, then you would have options to hibernate, restart or shut down the VM. Click on user name “user” (coincident), and enter 12345678 as password, you will see the following screen. If you have created other user accounts on this VM, then you could click on “Other” and type other user names for login. 7 CPSC2800‐Introducation to Operating System Linux Hands‐on Series If you maximize the VMware Player window, the VM will take over the complete display. If you put your mouse cursor close to the top middle margin, the VMware Player menu bar will show up for you to use, as shown below. 8 CPSC2800‐Introducation to Operating System Linux Hands‐on Series To log out, restart, or shut down the VM, you can click on the right‐upper corner “user” (the current user’s login name, which happens to be “user”), and then you will be presented with the following choices. To avoid repeated requests of updating your VMware Player during your VM launching, you could click on the top menu item “File|Preferences…”, and uncheck the checkbox for “Check for new version of VMware Player on startup”, as shown in the next “Preferences” window: 9 CPSC2800‐Introducation to Operating System Linux Hands‐on Series With this same “Preferences” window you can also set close behavior (when you click on the VM’s close icon, should the VM suspend or power off the VM, and whethher you need to provide a confirmation), and whether VMware Player should download all available optional components now or on demand. If you prefer the VM to log in as “user” automatically at VM laaunch time, click on menu item “System|Administration|Login Screen” 10 CPSC2800‐Introducation to Operating System Linux Hands‐on Series and you will see the following “Login Screen Settings” window: Click on the Unlock button and you will see the following “Authenticate” window: 11 CPSC2800‐Introducation to Operating System Linux Hands‐on Series Enter 12345678 as your password and click on the Authenticate button, the “Authenticate” window should disappear (if you are running VMware Player earlier version, you may need to close this “Authenticate” window manually). You may need to click on the Unlock button again to be able to change the settings as below: Here I have chosen to give the user 10 seconds to type in a diifferent user name before the VM automatically log in as “user”. Click on the Close button and you are done with this task. When you restart your VM, you will see a login screen as below: 12 CPSC2800‐Introducation to Operating System Linux Hands‐on Series You will be logged in as “user” automatically if you don’t type another user name within 10 seconds. Project 1‐2 Using Basic Ubuntu Tools Launching a Terminal Window To open a terminal window to run some Linux commands, you can double‐click on menu item “Applications|Accessories|Terminal”: 13 CPSC2800‐Introducation to Operating System Linux Hands‐on Series You can open multiple terminal windows. Launching a Firefox Web Browser You can click on the top Firefox icon to launch a Firefox web browser. Launching a Nautilus File Browser Ubuntu menu “Places” lets you browse files in various places of the file system with a Nautilus file browser. 14 CPSC2800‐Introducation to Operating System Linux Hands‐on Series For example, if you double‐click on the “Places|Home Folder” menu item, you will see the following file browser: 15 CPSC2800‐Introducation to Operating System Linux Hands‐on Series In the left “Places” pane, “user” is the current user user’s home folder “/home/user”, which is also represented by symbol ~ in file/folder paths; and “File System” is the entire Linux file system “/”. Folder “/home/user/Desktop” holds all items on your Ubuntu desktop. When you use Firefox web browser to download files, the downloaded files will be saved in folder “/home/user/Downloads”. You can use Ubuntu menu item “Applications|gedit text Editor” to launch a gedit text editor. 16 CPSC2800‐Introducation to Operating System Linux Hands‐on Series Using Synaptic Package Manager Ubuntu menu “System” contains important administrator tools for managing the system. Menu item “System|Administration|Synaptic Package Manager” allows you to use a GUI to install, update or remove software packages (in this document we will use a lower‐level command tool “aptitude” for performing the same functions). 17 CPSC2800‐Introducation to Operating System Linux Hands‐on Series Customizing Ubuntu Application Menu Menu item “Preferences|Main Menu” lets you customize the top‐left Applications menu.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages27 Page
-
File Size-