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

then

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,
prashant ohol - System Administrator,

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

Hello,

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

$ arch
i686

$ uname -m
i686

bingo Smilie

Prashant ohol - System Administrator

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

Hello,

First donwload the module-init-tools for kernel

cd /usr/src

wget http://www.kernel.org/pub/linux/kern...ols-3.0.tar.gz

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

./configure -prefix=/usr

make

make install

Done!

then

Lets start with the kernel upgrade

cd /usr/src/

wget http://www.kernel.org/pub/linux/kern....6.15.4.tar.gz

tar -zxf linux-2.6.15.4.tar.gz

cd linux-2.6.15.4

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

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

grub

savedefault --default=0 --once

quit



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?

Hello,

Please use the following command to change the date.

RedHat / CentOs

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


FreeBSD:

date 0604111425

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

bingo Smilie

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

Hello,

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?

Hello,

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.

wget http://www.shoutcast.com/downloads/s...-glibc6.tar.gz

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

or

vi sc_serv.conf


depending on what you have


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


MaxUser

Password

PortBase


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
Ikon
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
4
Shell Programming and Scripting

Featured Tech Videos