To get a list of available accounts & passwords: MyDeterLab > Teaching > Manage Class Ian: To get the .ns files: see the D2L dropbox > hw02-dropbox > Edit Folder > Attached Files ======= The .ns file `intro.ns`: set ns [new Simulator] source tb_compat.tcl set intro [$ns node] tb-set-node-os $intro Ubuntu1204-64-STD tb-set-node-startcmd $intro "sudo /share/education/LinuxDETERIntro_UCLA/install >& /tmp/labinstall.log" $ns rtproto Static $ns run ======== After you click 'submit' on 'begin a testbed experiment', It takes at least 2min to set up an experiment (or more). You are shown a pane "Working ..." where logging messages scroll by; it will finish with "Experiment ITEC245/yourUserId has been successfully created!" If you have completely finished, `swap experiment out` (It will also time out after 12hrs.) ========= proj01 ============ Week 1 – Class Project (Introduction to DETER Lab + Using Linux) (1) Go to the Desire2Learn site for this course and download the file: linux_deterlab_intro.ns. (2) Login to DETER LAB – follow the instructions from the email. Specifically, a. Go to isi.deterlab.net b. Use the username and password that you received from your email to login. c. If you don’t have a username/password, then send me a private chat on Breeze and I will assign you one right now. (3) Open Experimentation→Begin an Experiment (see screenshot below) (4) Fill out the fields as follows: a. Select Project : ITEC245 b. Group: Default Group c. Name: Give a small but unique name here – something you can type fast (you will need to type this in a few times later). E.g., choose your last name. No special characters here, no spaces, just alphabets. Lets say the name you chose is: RULInux please do not choose this name – this has to be unique to you). d. Description: “Introductory Linux project” or something similar. This field is for the Deterlab administrators to let me know if any experiment has gone rogue. Since, I am only teaching one class this summer – this description can be anything – I can easily figure out what experiment they are referring to. e. Your NS file: Upload the linux_deterlab_intro.ns file that you downloaded in step 1. f. Swapping: i. Idle-swap: Select 2 hours (default is 4 hours, but we are the more gentle/polite/better citizens of Deterlab). ii. Max Duration: 3 hours (unless you want to play with the Linux machine after the class). Don’t expect me to stay longer ☺! g. Finally, select the “swap in immediately” option. (5) Wait for a while as Deterlab finds and assigns you a machine. (6) Go to Experimentation→Experiment List (7) Click on the “EID” field (8) Click on the Details tab. You should see something similar to this (here the name of my experiment is RULinux) (9) Look for the computer name assigned to you. The blue arrow is pointing to the name assigned to my experiment. In this case it is : node0.RULinux.ITEC245.isi.deterlab.net (who warned you earlier about having to type a lot?) (10) Login to this computer as follows: *********** a. Use SSH to login to users.deterlab.net. Login with the username/password for Deterlab. b. From users.deterlab.net, run the following program: i. ssh node0.RULinux.ITEC245.isi.deterlab.net (except, change the node0…. part to the computer assigned to you). c. Congratulations you are now the prowd part-time leaser of a free Linux machine. d. Proceed to the Linux tutorial. ***** Using SSH: If you never remotely logged in to a machine using SSH, don’t panic … or panic just a little and read on: (1) On Windows, a. download a program called putty.exe. You can simply google this program and download it from the “download page”. b. Save putty on your desktop. c. Start it up. d. In the hostname field: enter users.deterlab.net e. In the username: enter the username! f. When prompted for password – guess what you need to enter? Continue from step 10(b) above. (2) If you are on Mac or Linux, a. simply fire up a terminal (or start it up). Look for Applications→Utilities→Terminal in Mac or Terminal among the options in Linux. b. On the terminal type: c. ssh username@users.deterlab.net (replace username with your username). d. Continue from step 10(b) above. Note that when sshing to a new machine, you'll get a message similar to:
The authenticity of host some.host.name can't be established.
ECDSA key fingerprint is so:me:lo:ng:he:xa:ha:sh:co:de.
Are you sure you want to continue connecting (yes/no)?
Answer yes (and ssh will log something like: Warning: Permanently added some.host.name (ECDSA) to the list of known hosts.). This is all fine.