Linux FAQ Items


 
Thread Tools Search this Thread
Operating Systems Linux Gentoo Linux FAQ Items
# 1  
Old 09-10-2006
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  
Old 09-10-2006
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  
Old 09-10-2006
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  
Old 09-10-2006
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  
Old 09-10-2006
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  
Old 09-10-2006
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  
Old 09-11-2006
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 Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Dead link in FAQ

Dead link from FAQ, then Technical FAQ: Senior Advisor - https://www.unix.com (Was about to suggest that a O/P read this FAQ). (9 Replies)
Discussion started by: methyl
9 Replies

2. Shell Programming and Scripting

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 (4 Replies)
Discussion started by: Ikon
4 Replies

3. Post Here to Contact Site Administrators and Moderators

Unix for Dummies FAQ

I have created a small FAQ for the "Unix for Dummies" forum. Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly. <A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies
Login or Register to Ask a Question