Franske ITC-2480 Lab 1: Difference between revisions

From ITCwiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
# Make sure you have a copy of the latest version of Debian Linux.
# Make sure you have a copy of the latest version of Debian Linux.
#* If you are in an ITC lab on campus you should be able to find this on the D: drive of your computer in the D:\CNT Files folder
#* If you are in an ITC lab on campus you should be able to find this on the D: drive of your computer in the D:\CNT Files folder
#* If you need to download a copy you can find it on one of the Debian CD Image Mirror sites such as the one hosted by [http://mirror.anl.gov/pub/debian-cd/7.3.0/i386/iso-cd/debian-7.3.0-i386-netinst.iso Argonne National Lab]
#* If you need to download a copy you can find it on one of the Debian CD Image Mirror sites such as the one hosted by [http://mirror.anl.gov/pub/debian-cd/current/i386/iso-cd/debian-7.4.0-i386-netinst.iso Argonne National Lab]
# Start the VirtualBox Software
# Start the VirtualBox Software
#* Ensure that you have adjusted the VirtualBox "Default Machine Folder" to a location with appropriate permissions and space to save your VMs. If you are on campus this should be a new folder on the D: drive like D:\yourname-semesteryear This setting can be found in the File -> Preferences dialog box of VirtualBox
#* Ensure that you have adjusted the VirtualBox "Default Machine Folder" to a location with appropriate permissions and space to save your VMs. If you are on campus this should be a new folder on the D: drive like D:\yourname-semesteryear This setting can be found in the File -> Preferences dialog box of VirtualBox

Revision as of 20:02, 8 April 2014

Introduction

In this lab you will install the latest version of Debian Linux in a virtual machine, learn how to login and check the IP address of the system, and learn to remotely access the system with SSH and SFTP.

Local VirtualBox

These instructions apply if you are completing this lab using the VirtualBox virtual machine software on campus or at home.

  1. Make sure you have a copy of the latest version of Debian Linux.
    • If you are in an ITC lab on campus you should be able to find this on the D: drive of your computer in the D:\CNT Files folder
    • If you need to download a copy you can find it on one of the Debian CD Image Mirror sites such as the one hosted by Argonne National Lab
  2. Start the VirtualBox Software
    • Ensure that you have adjusted the VirtualBox "Default Machine Folder" to a location with appropriate permissions and space to save your VMs. If you are on campus this should be a new folder on the D: drive like D:\yourname-semesteryear This setting can be found in the File -> Preferences dialog box of VirtualBox
  3. Create a New VM
    • Bridged Networking to Internet
    • If you are on campus make sure that you are connected to the ITC network 172.17.x.x
    • Debian Linux ISO attached to virtual CD drive
  4. Boot the VM and Install Debian Linux
    1. From the "Installer Boot Menu" choose "Install" not "Graphical Install" or one of the other choices
    2. Select "English" as the language, "United States" as your location, and "American English" as the keymap.
    3. Set a hostname for the system that is unique to you and this particular system
    4. Set the domain name to "localhost"
    5. Set the root password to something you will NOT FORGET, this is the administrator account, "cisco" might be a good choice for our purposes
    6. Create a new user account using your first name (all lowercase) as the username and another password you will not forget
    7. Select your timezone
    8. Choose "Guided - Use entire disk" as the partitioning method and select the "sda" drive and "All files in one partition" as the partitioning scheme and then write the changes to the disk and confirm it.
    9. Select a mirror located close to you with good speed. A good option on campus is "mirror.anl.gov" with no http proxy.
    10. Choose whether you want to participate in the package usage survey
    11. On the software selection screen UNSELECT "Debian desktop environment" and "Print server" and make sure that "SSH server" and "Standard system utilities" are the only two selected options. Use the space bar to select and unselect and the tab key to move to the continue button.
    12. Choose yes to install GRUB to the master boot record
    13. When the installation is complete you can select continue to "eject" the virtual CD and reboot into the new install
  5. Login through the local console
  6. Check the IP address of your Linux system
    1. Use the ifconfig command as the root user on the system
  7. Remote SSH login from your host system through PuTTY
    1. Use the IP address you found above for your Linux system
  8. Remote SFTP login from your host system through FileZilla
    1. Use the IP address you found above for your Linux system, connect on port 22 for SFTP
  9. Safely shutdown your Linux system
    1. Use the "shutdown -h now" command as the root user to shutdown the system

Remote vmWare

Coming soon!

New Commands

  • su
  • exit
  • shutdown -r now
  • shutdown -h now
  • ping
  • pwd
  • ls -al