Tag archive for ‘kernel’

Using Ketchup to manage your kernel sources

Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you’re one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the entire process of checking for updates and applying them to your system. [...]

Building your own kernel based on CentOS, ‘switchroot: mount failed. Kernel Panic.’

If you’re a CentOS user, you know that it’s a stable Linux distribution. But you also know you’re running a fairly old Linux Kernel, since it tries to be as stable as possible. To give you an idea, the latest CentOS 5.5 kernel is version 2.6.18-194 (February 2007), while the latest Linux Kernel is 2.6.37 [...]

Howto Reboot or halt Linux system in emergency

Linux kernel includes magic system request keys. It was originally developed for kernel hackers. However, you can use this hack to reboot, shutdown or halt computer safely (remember safe reboot/shutdown == flush filesystem buffers and unmount file system and then reboot so that data loss can be avoided). This is quite useful when Linux based [...]

How to: Compile Linux kernel modules

This is one the essential and important task. Many time we upgrade our kernel and some precompiled drivers won’t work with Linux. Especially if you have weird hardware; then vendor may send you driver code aka C files to compile. Or even you can write your own Linux kernel driver. Compiling kernel driver is easy. [...]

Solaris: How do I setup a default static route / static router IP address?

/etc/defaultrouter is the configuration file for default router under Solaris os. The /etc/defaultrouter file can contain the IP addresses or hostnames of one or more default routers, with each entry on its own line. If you use hostnames, each hostname must also be listed in the local /etc/hosts file, because no name services are running [...]

Solaris > Forcefully unmount the cdrom/floppy disk

fuser command displays the PIDs of processes using the specified files or file systems. You can use fuser command to specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed using -k option you can forcefully kill mounted file system. [...]

FreeBSD Load Device Driver / Kernel Module

Under FreeBSD operating system you need to use the kldload utility to load file.ko into the kernel using the kernel linker. You can find all loadable kernel drivers in in /boot/kernel or /boot/modules/ directory. Some modules (pf, ipfw, ipf, etc.) may be automatically loaded at boot time when the corresponding /etc/rc.conf statement is used. Modules [...]

csf got an error: not klogd which logs kernel firewall messages to syslog

E: syslogd appears to be running, but not klogd which logs kernel firewall messages to syslog. You should ensure that klogd is running R: nano -c /etc/init.d/syslog Search the line below, (nearly at line # 42) passed klogd skipped #daemon klogd $KLOGD_OPTIONS Replace it with lines below, #passed klogd skipped daemon klogd $KLOGD_OPTIONS Now search [...]

Install Git 1.7.4 on Centos 5.x

Install the dependencies yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel Get the git source code wget http://kernel.org/pub/software/scm/git/git-1.7.4.rc2.tar.gz untar the git source code tar xvfz git-1.7.4.rc2.tar.gz Install cd git-1.7.4.rc2 make prefix=/usr/local all make prefix=/usr/local install Incoming search terms:plesk install git (2)installing git in centos directadmin (2)install git on centos directadmin (1)install git directadmin (1)install git centos [...]

Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest

As a system admin, I need to use additional hard drives for to provide more storage space or to separate system data from user data. This procedure, adding physical block devices to virtualized guests, describes how to add a hard drive on the host to a virtualized guest using VMWare software running Linux as guest. [...]