Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

Linux FAQ Items

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Tools Linux FAQ Items

Hello Guys,

Sometimes it is necessary to add more swap space after installation. For example, you may upgrade the amount of RAM in your system from 64 MB to 128 MB, but there is only 128 MB of swap space. It might be advantageous to increase the amount of swap space to 256 MB if you perform memory-intense operations or run applications that require a large amount of memory.

You have two options: add a swap partition or add a swap file. The easiest way to achieve this it to through swap file.

To add a swap file:

Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.

At a shell prompt as root, type the following command with count being equal to the desired block size:

dd if=/dev/zero of=/swapfile bs=1024 count=65536


mkswap /swapfile

To enable the swap file immediately but not automatically at boot time:

swapon /swapfile

To enable it at boot time, edit /etc/fstab to include:

/swapfile swap swap defaults 0 0

The next time the system boots, it will enable the new swap file.

After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.

bingo Smilie

Let me know if you have any questions.

prashant ohol - System Administrator,

Last edited by prashant_ohol; 09-11-2006 at 04:50 PM..
# 2  
Computer How to check system architecture?


Please use the following command to check system architecture.
Equivalent to uname -m.

$ arch

$ uname -m

bingo Smilie

Prashant ohol - System Administrator

Last edited by prashant_ohol; 09-11-2006 at 04:51 PM..
# 3  
MySQL Latest stable Kernel Compilation


First donwload the module-init-tools for kernel

cd /usr/src


cd module-init-tools-3.0.tar.gz

./configure -prefix=/usr


make install



Lets start with the kernel upgrade

cd /usr/src/


tar -zxf linux-

cd linux-

cp /boot/config-2.6.9-22.ELsmp /usr/src/linux-

make clean

make mrproper

make oldconfig

(Note that oldconfig will only work within the same major version of the kernel. You cannot, for example, use a 2.4.x .config with the 2.6.x kernel)

keep hitting enter and take the defaults until you get to the CPU type. Select your CPU. Also in the SMP section select SMP if you have multiple CPUs. Oh, and select "(No Forced Preemption (server))" under that section. Everything else, just hit enter to take the defaults.

Then to compile and install:

make bzImage

make modules

make modules_install

make install


savedefault --default=0 --once


Reboot..... fingers crossed ...Good Luck

bingo Smilie

Prashant ohol - System Administrator
# 4  
Tools KDE, X Window System , Sound and Video Installation through yum

$ yum groupinstall "KDE (K Desktop Environment)"

$ yum groupinstall 'X Window System' 'Sound and Video'

bingo Smilie

Prashant ohol - System Administrator
# 5  
Hammer & Screwdriver How to change date on Linux?


Please use the following command to change the date.

RedHat / CentOs

date -s "03/24/2006 14:0:10"


date 0604111425

06 - year
04 - month
11 - date
14 -- hours
25 -- mins

bingo Smilie

Prashant ohol - System Administrator
# 6  
Power Protection From Syn-flooding


Protect your machine from SYN-FLOODING

-A INPUT -i eth0 -p tcp --syn -j syn-flood
-A syn-flood -m limit --limit 50/s --limit-burst 50 -j RETURN
-A syn-flood -j DROP

hey guys and Make sure NEW tcp connections are SYN packets

-A INPUT -i eth0 -p tcp ! --syn -m state --state NEW -j REJECT

bingo Smilie

Prashant ohol - System Administrator
# 7  
Computer What is shoutcast?


What is shoutcast?

SHOUTcast is Nullsoft's Free Winamp-based distributed streaming audio system. Thousands of broadcasters around the world are waiting for you to tune in and listen.

How do we install shoutcast?

1.) Login to root

then download the shoutcast from nullsoft.


tar -zxvf shoutcast-1-9-2-linux-glibc6.tar.gz

rm -rf shoutcast-1-9-2-linux-glibc6.tar.gz

mv shoutcast-1-9-2-linux-glibc6 shoutcast

cd shoutcast

How to configure shoutcast?

Edit the shoutcast configuration.

pico sc_serv.conf


vi sc_serv.conf

depending on what you have

Ok lets set some important configureation options. Change these settings in the file:




uncomment AdminPassword and set an admin password.

to save crtl+x

How do i start shoutcast?

./sc_serv sc_serv.conf

bingo Smilie

Prashant 0hol - System Administrator
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
awk between items including items
OS=HP-UX ksh The following works, except I want to include the <start> and <end> in the output. awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log' The following work in bash but not in ksh sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log... Shell Programming and Scripting
Shell Programming and Scripting

Featured Tech Videos