itp125 - lab 1 - intro the to enviornment(1)

itp125 - lab 1 - intro the to enviornment(1) - ITP 125 ...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ITP 125 – Lab 1 Due: Tuesday Jan. 31, @ 9:29AM Submission: email: chi.h.so@gmail.com subject: ITP 125 – Lab 1 Note: Note: The subject must be typed exactly as shown or the filters will miss it. ITP 125 – Lab 1 – Intro to the environment 1. Setting Up Python • Download Python for Windows from the following • For 32- bit download from here: http://www.python.org/ftp/python/2.7.2/python- 2.7.2.msi • For 64- bit download from here: http://www.python.org/ftp/python/2.7.2/python- 2.7.2.amd64.msi Install the file For a Mac you can install Python from the website, which would make it a lot easier as well • Create your first Python file by doing the following • Press Start à༎ All Programs à༎ Python 2.7 à༎ IDLE (Python GUI) • When the Python shell opens do the following File à༎ New Window • Type in the following code into the editor print “Hello World!” • Save the file File à༎ Save Save it onto your desktop with the name “first_app.py” • Run the program Run à༎ Run Module 2. Working with Windows Networking • Goto a computer lab on campus and find a Windows workstation to use • Start up the command prompt by doing the following: “Start” à༎ search for “cmd.exe” • Type in the following command > ipconfig /all Note: you do not need to type in the “>” it is used to show a command prompt Questions: What is the IP address of the machine you are using? (Hint: It maybe Local Area Connection) What is the subnet mask of the machine you are using? Based on the IP address, what class is it? Based on the IP, do you think the workstation is on a public or private network? What are the IP addresses of the DNS servers and Gateway? What is the MAC address of the network card for that machine? Goto http://www.coffer.com/mac_find/ and enter that MAC address that you found. Does it match the machine you are working with? 3. Working with Linux Networking through Windows • If you’re on a Windows machine download putty from here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html You just need “putty.exe” • Startup putty.exe and enter the following: Host Name (or IP address): aludra.usc.edu Then press “Open” • When the “PuTTY Security Alert” shows up, just press “Yes” • Enter your USC login and password. Then do the following: > ifconfig –a Note: Do not enter the “>” it is used to display command prompt Question: What is the IP address of the machine you are using? (Hint: It maybe Local Area Connection) What is the subnet mask of the machine you are using? Based on the IP address, what class is it? Based on the IP, do you think the workstation is on a public or private network? • To get the DNS servers aldura is connected to do the following: > cat /etc/resolv.conf Question: What are the IP addresses of the DNS servers? • To get the default router/gateway on aludra do the following: > cat /etc/defaultrouter Question: What is the IP address of the gateway for aldura? • USC did something nice and made it hard to get the MAC address from the ifconfig command. Usually if you type in ifconfig you will get all the networking configuration information you need. TO get the MAC address you need to use a little trick that they didn’t think people would do. > arp –a Scroll up the list and find “aludra”, you will then find the MAC address associated with the NIC Question: What is the MAC address of the network card for aludra? Goto http://www.coffer.com/mac_find/ and enter that MAC address that you found. Does it match the machine you are working with? 4. Working with Linux Networking through OSX • To connect to aludra using OSX, just open up the “Terminal” and type in the following command: > ssh your_usc_username@aldura.usc.edu Note: Replace “your_usc_username”, with your actual USC username. • Then you can follow all the setups that you saw in step 3. ...
View Full Document

Ask a homework question - tutors are online