python and more. 6.893 spring 2004: intro & python larry rudolph administration check the wiki...

9
Python and more

Upload: ada-bennett

Post on 26-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

Python and more

Page 2: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Administration

Check the wiki daily; please contribute

http://money.lcs.mit.edu

Pick partners and tell me

pairs and triplets

Page 3: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Connecting to ipaqSerial cable (not usb)

after boot, can just login via some terminal program (minicom/hyperterm)

ssh over the network

setup wireless connection to network

‘ssh -l root 18.24.6.xxx’ into the ipaq

need ip address (do not need dns name)

make sure you are connecting to YOUR ipaq. Easy to mistype ip address.

any issues connecting on campus (MIT or NUS)?

Page 4: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Installing software

/etc/ipkg.conf points to “feeds”

we will maintain our own feed

ipkg picks first matching file, not last while searching list of feeds

Copy files to ipaq via

secure copy“scp localFile.py root@ipaqip:/usr/bin/”

serial cablexmodem/ymodem, sx on linux

Page 5: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Is your ipaq, your ipaq?

Anonymous vs Personal handheld

Telephone exampleLandline telephones are anonymous

Cell/Mobile phones are personal

Tradeoffs

private statecan be lost or stolen; should be protected

setup overhead on user

daily underhead on user -- setup once and forget

less dependent on connectivity

public/private keys easy to use once setup

Page 6: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Our own basic infrastructure

Initialization

NetworkStatic IP, DNS server -- why IPv6 and why not

DHCP: get ip and dns server -- vast improvement

ServersFeed, chat, device, anything new

too many servers & must always be up

What will naive user do?

Page 7: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Let’s design it right

What do we want?

Should just work without setup

Observation

most interaction is local

remote interaction is rare

overhead for rare cases is ok

How to setup/find a chat server without a fixed name or ip address?

Interactive class discussion

Page 8: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

Python overview

Borrow from the web

Page 9: Python and more. 6.893 Spring 2004: Intro & Python Larry Rudolph Administration Check the wiki daily; please contribute  Pick

6.893 Spring 2004: Intro & Python Larry Rudolph

Online Tutorials

Tutorialshttp://www.python.org/doc/tut/tut.html

http://diveintopython.org/

http://www.intelinfo.com/newly_researched_free_training/Python.html

use google or go to python.org