CS209-01 Summer 1 2005 Lab 5 / HW 4
Due: e-mail by
Sat Jun 11 at 11:59 PM
Starting X Server
- run startx
- if you encounter any difficulties you can always kill the X server by
[CTRL] + [ALT] + [Backspace]
- modify /etc/ssh/ssh_config and uncomment this line
- ssh to 192.168.8.1 with your regular cs domain user name and password
- run xterm on liberec and it should display on your screen
- similarly you can run netscape or any other browser and have it displayed the cs209 web pages on your monitor
Adding Packages We Will Need
- run YaST from K Menu -> System or
run YaST2 from a command line
click on Install and Remove Software
- Select Autocheck at the bottom of the window to check for dependencies automatically
- Under the filter chose Selections
- and install all packages under C/C++ , Kernel , and KDE developments
Building A Kernel
unlikely to have to do that for stable versions (stable -even #, developmental -odd #)
- the process revolves around .config in the root of source tree /usr/src/linux
- make xconfig or make menuconfig
to make a compilation little faster, go through all options listed and disable the parts of the kernel you will not need
- make dep
- make clean
- make bzImage
- make modules
- make modules_install
- make install
- check the menu.lst under boot/grub and make sure you have a backup image listed
- reboot with the new kernel
- check that you are using the kernel just compiled: uname -a
and you should see something like (notice the time when the kernel was compiled):
Linux ivantest 2.6.11.4-20a-default #1 Tue Jun 8 12:40:46 MDT 2005 i686 i686 i386 GNU/Linux
Syslog
- start YaST and under System click on /etc/sysconfig Editor
- Under System -> Logging click on the SYSLOG_DAEMON and change the default daemon to be syslogd
- if you get an error message that restart failed try to run /etc/init.d/syslog restart
- if you get an error message that syslogd is not installed then start YaST again
and install it - search for syslog and select the package(s) ...
- start the syslogd: /etc/init.d/syslog start
- check that syslogd is running on your system - how did you do that ?
- will syslog start after the next reboot ?
- decipher the default syslog.conf on your system : describe and comment what is and what is not logged.
What would you change, why ?
- cp /etc/syslog.conf /etc/syslog.conf.orig
- implement 2 of your suggestions : modify the config file, make sure that it works
Check for the changes done today
- as user root run
find /boot /etc /lib/modules /var -mtime -1 -ls | grep "Jun 8" | tee /tmp/listing_lab5 | less
- In your lab report explain the command pipe above
Write A Report
- describing the process, difficulties you encountered, and how did you solve them
- in your report describe what is each of the make steps doing
- submit the report by e-mail together with the rest of the homework and attach files you modified. Don't forget:
/tmp/listing_lab5
/usr/src/linux/.config
/boot/grub/menu.lst
/etc/ssh/ssh_config
/etc/syslog.conf.orig
/etc/syslog.conf