Linux Administrator's Work:


[ Kernel Compile | ALSA | DHCP | FTP |  Advanced Routing | Linux Socket filter]


Kernel Recompile

There is a very good reference in http://www.haifux.org/lectures/88-sil/kernel-compilation.html
Also, its better to run "make mrproper" before configure the kernel.However, make mrproper will chagen the content of .config. Be sure to save the configure file to /boot/ directory for every running kernel.

Generally, follwoing commands are to be done one by one:
Then edit the /boot/grub/menu.lst

Initrd image Ramdisk

If you don't compile ATI/IDE support and file system as build-in of kernel, but as loadable module, then the boot will not succeed because cannot
find ROOT file system.
So you need "mkinitrd" command to create a Ramdisk such  as "initrd-img-2.4.25" and add "initrd  = initrd-img-2.4.25" into the menu.lst file
To avoid that, simply build all esssntails in the kernel, for example

Debian Kernel Compile

make-kpkg -i revison 2.6.8 kernel_image kernel-header
cd ..
dpkg-i ???????.deb

This will copy the kernel image in /boot directory and copy all modules into /lib/modules/?.?.?/

Note that dpkg -i command could automatically update your GRUB configuration. So backup menu.lst first before it ruins the old configuration.

ALSA Driver install

For instlaling soundcards, download alsa-driver, alsa-lib, alsa-utils from ALSA website
and in each source code directory, run "./configure; make; make install".
Yuo can visit ALSA website, and then the sound card matrix page. After finding your soundcard manufacturer,
you can follow specific directions for that sound device.

after install, run alsamixer and press "m" button to un-mute all sounds.

Setting Up a FTP server with VSFTPD

RedHat-8.0
  1. download vsftpd-1.1.3-1.i386.rpm
  2. rpm -ivh vsftpd-1.1.3-1.i386.rpm
  3. change /etc/vsftpd.conf, disable anonymosus users, enable write (upload...)
  4. (option) change /etc/vsftp.ftpusers, enable root to login
  5. /etc/xinetd.d/xinetd restart

Advanced Routing


useful commands as:
#ip link list
#ip address show
#ip route show
#ip neigh show
refer to http://www.faqs.org/docs/Linux-HOWTO/Adv-Routing-HOWTO.html

Linux Packet filter

refer to http://www.linuxjournal.com/article.php?sid=4659