Home » OS » Linux

defunct processes

When a process exits (normally or abnormally), it enters a state known as “zombie”, which in top appears as “Z”. Its process ID stays in the process table until its parent waits on or “reaps” it. Under normal circumstances, when the parent process fully expects its child processes to exit, it sets up a signal [...]

Disable auto fsck

I have a huge external usb drive set to be auto-mounted during backup processes and did not want to run fsck on every mount. With the below setting it would completely turn off the auto fsck check. # tune2fs -c 0 -i 0 </dev/partition> However, I would highly suggest atleast doing a regular 6 months [...]

Configure passive ports range for ProFTPd

Usually, if a client is behind firewall, they can only trasfer files via a passive ftp connection. Edit /etc/proftpd.conf and specify the passive ports range. Place it in the ‘Global’ container:   </Global> … … # Use the IANA registered ephemeral port range PassivePorts 49152 65534 </Global> Reference: proftpd.org Load the ip_conntrack_ftp module and iptables [...]

encode / decode base64 file

I use squirrelmail in text mode and recently I’ve had to retrieve a password at Dell. The reset password email however comes with html embeded in base64 encoded text. So my webmail did not show up the embeded html link. With some knowledge of uudecode, I was able to view the exact link to reset [...]

Finding Files On The Command Line

One of the things I like about Linux is the command line. I have used nautilus, gnome-commander, konqueror, kommander, dolphin and thunar to manage files in Linux and these file managers are great for what they do. But there are times when one simply wants to find a file when working on the command line [...]

Support for 32 bit development libraries on 64 bit CentOS

To support C/C++ 32 bit development libraries on CentOS-5.2 x86_64 arch the below devel packages are required: yum install glibc-devel.i386 libstdc++-devel.i386 Below is example output of multilib support for gcc: $ gcc -print-multi-lib; gcc -print-multi-os-directory; gcc -print-multi-os-directory -m32 .; 32;@m32 ../lib64 ../lib Incoming search terms:system development libraries centos (2)centos 32bit development (1)centos gcc32bit install (1)centos [...]

Converting bin/cue to iso

You might come across a disc image in the BIN/CUE format. BIN/CUE files can be directly burned to CD via K3B, however if you want to convert to an iso, a command line application called bchunk can be used. # yum –enablerepo=extras install bchunk # bchunk image.bin image.cue image.iso Incoming search terms:convert bin to iso [...]

Automatically reboot server after a kernel panic

Add panic=10 to the kernel command line to reboot with 10 seconds of a kernel error. Be careful with this when setting up new kernels. It’s possible to change it later with sysctl, or by writing to /proc: # echo 10 > /proc/sys/kernel/panic To make it permanent, edit /etc/sysctl.conf and add the below line: kernel.panic [...]

SATA disks as AHCI

When converting from IDE to AHCI in the BIOS to include additional drives, I would get a kernel panic… as by default the bios was setup with the drives as IDE. Booted using existing IDE and created a new kernel image with support for AHCI via the –preload option to manually specify modules support: # [...]

How to Install ProFTPD

For this demonstration, we are using Proftpd instead of the widely known and used WU-Ftpd daemon. The main reason for this is security. We will go through the follwing steps that will show you how to set up your own ftp server. Download Installation Configuring Linux for Proftpd Configuring Proftpd Some usefull insformation along the [...]