Homework 1 is due Passwords on *nix, /etc/passwd why I can't find out your password john the ripper BASH and shells shell, terminal, these names Brief flowchart for a shell Let's learn a command: who Also w and finger GUI on Linux: Window Manager Desktop Environment Display Manager I'll show you a couple Time for a walk: Some computers with names Name is often in the prompt Separate the computer in front of you from the one you are using Since you'll probably ask: X11 forwarding over SSH Remote desktop is another way to do this Interlude: Why don't I have to type a password all the time? Cryptographic authentication (is stronger, depending) Let's talk about networks! Enough for the moment, anyway Internet Protocol Addressing with IP Ports Standard ports A bit more about how things work protocols DHCP, briefly, and the MAC address DNS, and 8.8.8.8 Ruining the magic kingdom: Firewalls and NAT Some connections can only be initiated from one end Port forwarding (for NAT) A relay point on the outside - ssh can do this Text editing, and nano text file compared to word processors - Word processors are for printers - So is .pdf - Not .html - You can eat cake with a spoon (MS Word for code is worse than this) - Source code is normally stored in a text file nano: Easy to learn, syntax highlight, generally ok gedit: Easy to learn, syntax highlighting, generally ok, needs GUI vim: Not as easy to learn, LOTS of features, has a graphical version emacs: Medium learning difficulty, LOTS of features, has graphical version You need to know how to use a text editor to be competent on Linux - I use vim, but that doesn't mean you should We talked about the file tree a bit yesterday But now a tour! Slash direction is opposite DOS/Windows Case matters! /tmp /etc /home /dev and /proc /root (and who is root?) /bin, /usr, /opt, /sbin, /sys, /lib, /lib64 /var and /var/log /usr/share/doc Special characters in filenames: Spaces / - (not special) . (not special) Linux does not require file extensions They are commonly omitted on regular text files ~ (your home directory, if it is first) Let's learn another command: grep grep and files Finally: pipes (combining grep and who) Practice Exercies: 1. Figure out when isoptera was last rebooted, to the nearest second (use uptime and man) 2. Make a simple text file in each of the editors above. You might have to do a little reading to figure out how to do this in vim and emacs.