Use startx to get X-windows running. If you are entirely new to Linux, you may want to start by browsing some sections of Introduction to Linux (at http://www.tldp.org/LDP/intro-linux/html/). If you need some help in using bash, try the Advanced Bash-Scripting Guide (at http://www.tldp.org/LDP/abs/html/).
Set the display resolution to something reasonable. Open a shell and run redhat-config-date to set (and permanently correct) the time and date by enabling the network time protocol, and typing ntp.cc.lehigh.edu as the time host.
From a shell, and ssh to a sun. Use df to see what partitions are mounted on the sun you are using. Use 'whereis df' to find another version of df that presents results in essentially the same format as the one under Linux.
Find and open a web browser, and read the details of homework #2 (but don't start it until you have finished the lab exercises below).
Log in as root. Use crontab -e to create and edit a crontab file for root. Add a crontab entry that will run the uptime command every minute for today only, and capture the output by appending to a file in /var/log. For example,
Then save and quit your editor. Later in the lab, take a look to see the results in this log file.
Look in /var/log/cron to see what cron has been doing. Find an entry for mrtg. If you don't know what mrtg is, find out. Where did cron get the entry that caused it to run mrtg (exactly which file)?
What programs are run daily?
The first (eth0) is on a local network that just connects all machines in the lab and a KickStart/DHCP server. This DHCP server is configured to always assign the same IP address to the same machine (corresponding to the label on the machine case). The second ethernet (eth1) is on a network that is attached to a NAT gateway device to the rest of the university, and serves DHCP to configure the ethernet card.
Running /sbin/ifconfig with no arguments generates a list of all network devices and their configurations.
Write a short script that appends the current date/time and the results of ifconfig to the file /var/log/network-startup.log.
Modify /etc/rc.d/rc.local to call this script. Reboot twice to make sure that each boot gets logged into this file. This log file serves as a record of which physical machine you were using at which times.