HTCLAGS David McWherter Featuring slides stolen from

advertisement
HTCLAGS
http://www.cs.cmu.edu/~cache/ic04/
David McWherter
Featuring slides stolen from
josullvn,colohan
Outline







The Community
Hardware
Comm. Infrastructure
Software
SupaUsaTools
Today’s Todo List
Addendum: Resources
SCS Community

Facilidudes




Your friends
Overworked
Could make more in industry
Keep them your friends

Bake them cookies!
SCS Community

Users

Many platforms


Volunteers



Linux,Windows,Solaris,MacOS,NeXT,etc
Maintain critical/useful software
Help facilities serve other students
Savvy users have unique problems
SCS Community – RPP



Reasonable Person Principle
 “Do unto others…but better”
AFS/FileShares
 Don’t snoop others’ files and directories
Network
 Ask before doing anything Weird


FC3 Mirrors, Broadcasts, Floods, Moving Hardware
Espresso Machine
 Be an elf! (coffee@cs)
SCS Community – Finding Help



Google
man pages
Fac Documentation



Officemates
Zephyr, FZQ, Zarchive



http://www.cs.cmu.edu/~help
http://www.cs.cmu.edu/~fzq
http://zarchive.srv.cs.cmu.edu/
Facilidudes



help@cs : “When you get a chance, how do I?”
Help Desk (8-4231) : “How do I?”
Phone Operator (8-2607) :

“Network is on fire!”, “No more printer paper/toner!”
SCS Community – What’s Yours

Desktop Computer


Give accounts to your officemates
Accounts and AFS Directories

SCS


Andrew (Totally different)


/afs/cs.cmu.edu/user/cache
/afs/andrew.cmu.edu/usr23/dmcwhert
@cmu.edu address
Hardware – Your Machine















’90 Concept Terminal w/ Vaxen
‘91 IBM RT 12MB/250MB
‘92 16MHz MIPS R3000 DecStation 3100
‘93 20MHz MIPS R3000 DecStation 5000/20
‘94 25MHz MIPS R3000 DecStation 5000/25 or PowerMac 7100/66
‘95 DecStation 5000/200s with mono monitor
‘96 Sun SparcStation 4
’97 266MHz Pentium II/64MB/4GB
‘98 400MHz Pentium II/128MB/6GB
‘99 500MHz Pentium III/128M/8GB
‘00 733MHz Pentium III/256MB/20GB
‘01 1GHz Pentium III/512MB/40GB
‘02 1.8GHz Pentium IV/1GB/60GB
‘03 2.4GHz Pentium IV/1GB/80GB LCD
’04 3.0GHz Pentium IV/1GB/80GB LCD
Hardware – Printers




Printer List
 http://www.cs.cmu.edu/~help/printing
Extra-RPP
 Big jobs at off hours
 Pick up your printouts “soon”
 Clean up messes, jams
 Refill paper, Report ENOPAPER
 Color printers best for final color documents
Windows
 Printers off \\monolith
Linux – CUPS
 Configuration: http://localhost:631/
 lpq lies about queue stats: Use klpq –P printername
Hardware – Misc

Fax machine in WeH 4212




Free for work
Fee for personal
Copiers
Scanners in WeH 3501 Terminal Room
Hardware – Broadband

You get a DSL subsidy




DSL or Cable
~400$ per year per student
Contact maverick@cs for info
Comparing providers


http://www.broadbandreports.com
Zephyr
Communications – Email

MMDF – “Fuzzy Matches”, “Aliases”, Headaches
 Maybe to me:


To me:




cache+@cs.cmu.edu
cache+foo@cs.cmu.edu (Filter on foo)
David_McWherter@cs.cmu.edu
Mail Servers



cache@cs.cmu.edu
Imap.srv, imap-ns.srv
POP wrapper provided
Clients
 Xemacs/vm, mutt, pine, Eudora, Mozilla, Evolution, kmail
 http://webmail.cs.cmu.edu/

Also: http://webmail.andrew.cmu.edu/
Communications – Email Filtering

IMAP and Sieve



http://www.cs.cmu.edu/~help/mail_news/imap.html
http://www.cs.cmu.edu/~help/mail_news/imapsieve.html
Facilities detects spam for you

Redirect your mail through imap-ns




telnet jeeves
mail change cache+@imap-ns.srv.cs.cmu.edu
X-Spam-Warning header
Sieve rule to filter it to INBOX.SPAM


Sieveshell
Ask help@cs if not
Communications – Netnews





cmu.cs.scs: important announcements
cmu.cs.*.announce: new software or changes
cmu.cs.general: general interest items
cmu.misc.market: for sale, and randomness
Servers



Unix : localhost
Windows : dnntpd.srv
Clients


http://webmail.andrew.cmu.edu/
Mozilla, nn, etc.
Communications – Zephyr

First: Think AIM Chat

Restrict it to CMU students



Add helpful facilidudes, superpeers
Add notices for




Well…Many ex-CMU students too
free food, talks, weather, dept problems, news, printouts
Add daylong flamewars and thesis avoidance
Add bitterness
Public Zephyr is Logged

http://zarchive.srv.cs.cmu.edu/
Communications – Zephyr

Xemacs

cp /afs/cs/user/cache/pub/ic04/elisp/* ~/elisp
cat /afs/cs/user/cache/pub/ic04/dot-emacs >> ~/.emacs
xemacs –f zephyr-setitup

C-c C-c to send messages



kzephyr



Java/Windows


KDE-friendly Interface
C-j to send messages
jzephyr
Commandline

zwgc – On by default

Annoying. To stop: remove from .xinitrc
Communications – Zephyr Demo

Zephyrites live for this moment
Communications – Phone/Addr

Finger, Home Pages





finger
finger
finger
lookup
cache@cs
david.mcwherter@cs
david@cs
cache
phone




man phones
phone help
phone pizza
phone burks
Software – Facilitization

Pluses

Kerberos, AFS, Misc Collections




Hacked RedHat 9
Security fixes/updates
Backups (Impossible on non-fac’ed hosts)
Minuses


Network outages
Kernel patches become scary

Rebuild AFS, who knows what
Software – Defacilitization

WAIT. Don’t do it


Pluses



Install whatever OS you want
Same problems as rest of world
Minuses




Unless you’re REALLY sure. 2nd year?
You must administrate
TA’ing and collaboration harder without AFS
No backups
Options

Work with facilities: Maintain a facilitized BSD!
Software – Kerberos

CMU: Hostile Environment


Your machine sees dozens of attacks per hour
Authentication/Encryption Clearinghouse

Login and get a “ticket”


Good for authentication/encryption for AFS/telnet





kinit – get fresh ticket
krenew – renew tickets as long as possible
kkerberos – renew tickets forever
klist – list tickets
Danger!



Expire in 25 hours
Clock skew breaks Kerberos
“Access Denied” implies tickets expired
http://www.stanford.edu/~schemers/docs/ldce/faq
Software – AFS



/afs/
 Links to hundreds of sites
 Fancy, painful “cross-realm authentication” to access them
Backups in ~/OldFiles
AFS Volumes
 Stitched together to form /afs tree


Max out at 1GB – Single dir limit!
Use local disk wisely
 AFS/Network failures suck



Home dir on /usr0/ ?
Compiles, etc, very slow
Hard to make cron access /afs (goto zephyr)
Software – AFS


fs help
Access control:

Read,Lookup,Insert,Delete,Write,locK,Administrative


fs
fs
fs
fs
fs

Ignores unix permissions!




listacl /afs/cs/user/cache
setacl /afs/cs/user/cache cache rlidwka
setacl ~/pub system.anyuser rl
setacl ~/drop system.anyuser i
setacl ~/private –clear cache rlidwka
Quotas:


fs quota /afs/cs/user/cache
Max 400MB (1GB with excuse): telnet jeeves
Software – Depot

Packages copied/symlinked from AFS each night



xemacs, gcc, matlab, maple, perl, etc
Update now (as root): dosupdepot
AFS failure means software failure

Force copies in /usr/local/depot.pref.local
 collection.installmethod copy PKGNAME




less, vim, etc
Report problems to help@cs
man depot.pref.local
VOLUNTEER
Software – Windows Misc

Run Updates Regularly


Secure Connections



Vulnerable machines pulled from the network
AFS module can be flakey
Putty (ssh), NiftyTelnet, TeraTerm
Dual Boot Systems


Share data via FAT partition
ntfsresize can change allocations
Software – Linux

Change Shell



chsh
Use local password (passwd –l)
Window Managers

~/.xinitrc

WM=windowmanager


twm, fvwm, sawfish, etc
Misc KDE

KDEDIR=/usr/local/libexec/kde
LD_LIBRARY_PATH=${KDEDIR}/lib:${KDEDIR}/../qt/lib:${LD_LIBRARY_PATH}
PATH=${KDEDIR}/bin:${PATH}
export KDEDIR LD_LIBRARY_PATH PATH
WM=startkde

Redhat KDE





WM=startkde
SupaUsaTools – ssh

Defacto Standard








Windows


“Secure” connections sans kerberos
ssh –X cache@host (-X for X11 forwarding)
ssh –X cache.root@host (Login as root)
ssh cache@cs remote-command
scp src cache@host:dst
scp cache@host:src dst
sftp cache@host
Use putty.exe or TeraTerm (google them)
Fancy tricks let you login without typing passwords

http://www.snailbook.com/faq/no-passphrase.auto.html
SupaUsaTools – VNC

Idea: Virtualize Your Server

Desktop: vncserver –geometry 1024x768
Anywhere: vncviewer hostname:1

Session always just like you left it



No matter where you are now
Options


Tightvnc – More efficient net performance
Windows Remote Desktop

Linux client: rdesktop –u cache host
SupaUsaTools – Web Proxies




Reduces Bandwidth
Improves Response Times
Removes Ads
Servers


Squid:3128, junkbuster:8000
Privoxy


local adbuster
http://access.web.cmu.edu/

Lets you access CMU-only material
Do Today – Part 1

Make ~/.plan


Make web page





telnet jeeves; kerberos create <you>.root
Ask help@cs to add <you>.root@CS.CMU.EDU to klogin.local
Local Passwords




Forward your @andrew mail to @cs
Create @cmu.edu address
Root Access


http://www-2.cs.cmu.edu/webhelp/howto.html
Office Location, Office, Home, Cell Phone Numbers
MyAndrew: http://www.cmu.edu/myandrew


Office Location, Office, Home, Cell Phone Numbers
passwd –l
Login as <you>/local or <you>:local
Do this for you AND for root
Accounts for officemates on your machine
Do Today – Part 2

Main Office for Copier #


Door Label


http://www.cs.cmu.edu/~cache/ic04/doorlabel.html
Volunteer to help with espresso machine


Library use SCS copycard
coffee@cs
Volunteer to maintain a misc collection

help@cs
Conclusion

http://www.cs.cmu.edu/~cache/ic04

Be reasonable

Volunteer for a Misc Collection


Volunteer to be an espresso elf


help@cs
coffee@cs
All sorts of bonus slides…
Resources

Ergonomics



FZQ


http://www.cmu.edu/ehs/workplacesafe.htm
Jim Skees for furniture
http://www.cs.cmu.edu/~fzq
Zarchive

http://zarchive.srv.cs.cmu.edu
Resources

www.library.cmu.edu

Free IEEE, ACM Databases



Use access.web.cmu.edu externally
INSPEC
www.citeseer.com
Previous Talks

http://www.cs.cmu.edu/~colohan/ic03
http://www.cs.cmu.edu/~colohan/ic02
http://www.cs.cmu.edu/~jcl/presentation/ic01
http://www.cs.cmu.edu/~jcl/presentation/ic00

http://www.cs.cmu.edu/~josullvn/ic99/index.html

http://www-2.cs.cmu.edu/~dkindred/ic97



Download