General Linux Information


latest news



Here you can find some general Linux related information, like how to compile a new kernel and perl information.

Perl modules

It happens from time to time - you install a new script and perl modules are missing (and you do not even have much of an idea what perl is - but since the screipt needs it you need it). Installing perl modules is easy enough. Most (if not almost all) Linux System come with perl - it's a scripting language. Perl uses modules that capsulate useful functionality and is REALLY powerful - especially when it comes to automation (my search/replace scriptlet uses perl ). So how do I install new modules:
as root type in:
perl -MCPAN -e shell
If done for the first time you will be asked if you want to update - do it :) After that you are in the perl console and can install modules by typing:
install module
or
install PACKAGE::module

thats it.... normally the scripts with the missing modules tell you what you need - so just type in what they want and in 99% you are ready to go!


How do I install a kernel? (2.6.x)

Step By Step:
  1. Download a current kernel (i.e. 2.6.8) from www.kernel.org
  2. Move the kernel (linux-2.6.x.tar.bz2) to /usr/src
  3. to extract ther kernel run: tar -xjf linux-2.6.x.tar.bz2
  4. go to the newly created dir: cd linux-2.6.x
  5. configure the kernel: make xconfig (if you are under X - remember not to be in a su-shell or it won't work) or make menuconfig
  6. when configuring on a zd7000 you can use my kernel config from the zd7000 sections
  7. Close the configuration gui and type make
  8. If no fatal error occured type make modules_install
  9. copy the System.map from the current directory to /boot/System.map-2.6.x
  10. copy the bzImage from arch/i386/boot to /boot/vmlinuz-2.6.x
  11. Modify your grub conf to read the new vmlinuz-2.6.x kernel
  12. Reboot and see what happens!
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.x.tar.bz2
tar -xjf linux-2.6.x.tar.bz2
cd linux 2.6.x
make xconfig (or make menuconfig)
make
make modules_install
# either:
make install
# or
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x
cp System.map /boot/System.map-2.6.x

vi /boot/grub/menu.lst

Emergency Shutdown


Site created with Corinis CCM