- Check your IP address, netmask, default router and DNS servers. Write this information down ( or type it into a file if you don't have pen/paper )
ifconfig -a; route; cat /etc/resolv.conf
- Shut down networking using the proper init script
/etc/init.d/network stop
- Manually configure networking by setting up your IP address and netmask, your default route, and your DNS servers from the information you gathered earlier.
ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx; route add default gw xxx.xxx.xxx.xxx;Add "nameserver xxx.xxx.xxx.xxx" lines to /etc/resolv.conf
- Test that networking is functional by pinging yahoo.com
ping yahoo.com
- If networking isn't working, troubleshoot the problem and fix it.
Check
- Run some random traceroutes and familiarize yourself with the output
traceroute google.com; traceroute yahoo.com; traceroute irs.gov
- Obtain a listing of all your currently loaded kernel modules
lsmod
- Remove the parport module. You might have to remove something else to get this module removed..
modprobe -r parport
rmmod parport_pc && rmmod parport
- Install the parport module again. Do it once with insmod, and once with modprobe. ( Removing in between )
insmod /lib/modules/2.6.22.1-41.fc7/kernel/drivers/parport/parport.ko; insmod /lib/modules/2.6.22.1-41.fc7/kernel/drivers/parport/parport_pc.ko
modprobe parport
- Review the iptables manpage. Using your new knowledge, change the last rule of the "RH-Firewall-1-INPUT" chain from the REJECT with icmp-host-prohibited to a simple DROP action.
iptables -R RH-Firewall-1-INPUT 20 -j DROP
- Change your default runlevel to runlevel 3.
Edit /etc/inittab and set the "id" or "initdefault" line to 3
- Use any of the following commands in a single commandline ( with multiple pipes ) to obtain a short, alphabetized list of every user running a piece of software on your system: grep, uniq, sort, ps, awk, head. You might figure out clever ways using other commands, but the goal is to get the whole thing accomplished with one press of the enter key. ;) This one is pretty tricky, so try to work it out methodically, and refer to your manpages. And remember, "UID" is not a username, that's the heading of the user id column in the output of your ps command, so you need to remove it somehow, and using a grep -v is not the answer ( b/c it could remove a user named UID, slim chance of a user like that, but not impossible )
ps -eaf | tail -n +2 | awk '{print $1}' | sort | uniq
- Using google, or a manpage, or the book, learn at least 5 new vi commands.
Check