force deleting email queue
qmailctl stop
find /var/qmail/queue/mess -type f -exec rm {} \;
find /var/qmail/queue/info -type f -exec rm {} \;
find /var/qmail/queue/local -type f -exec rm {} \;
find /var/qmail/queue/intd -type f -exec rm {} \;
find /var/qmail/queue/todo -type f -exec rm {} \;
find /var/qmail/queue/remote -type f -exec rm {} \;
qmailctl start
installing qmailmrtg
1. download qmailmrtg
#wget http://www.inter7.com/qmailmrtg7/qmailmrtg7-4.2.tar.gz
2. untar the package and do the installing
#tar zxf qmailmrtg7*
#cd qmailmrtg7-4.2
#make
You need to configure manually qmrtg in order to run it.
* The configuration templates in /usr/share/qmrtg2/ and
* the file in /usr/share/doc/qmrtg-2.1/INSTALL.txt.gz
* will be useful.
13.9.07
12.9.07
gentoo vserver setup
this setup is use for virtualization purposes.. one good help
for me is this kernel is setting up smtp relay servers (for some web
services its very beneficial and cost effective).
for me is this kernel is setting up smtp relay servers (for some web
services its very beneficial and cost effective).
prerequisites:
- gentoo minimal installation cd
- little linux understanding how to set up gentoo and passion
- reading comprehension on this guide
Step 1 to 6 follow the gentoo quickie setup guide:
http://boyformat.blogspot.com/2007/09/gentoo-rocks.html
7.emerging your kernel:
#emerge vserver-sources
8.configuring your kernel
#cd /usr/src/linux
#make menuconfig
configure your kernel now!
- gentoo minimal installation cd
- little linux understanding how to set up gentoo and passion
- reading comprehension on this guide
Step 1 to 6 follow the gentoo quickie setup guide:
http://boyformat.blogspot.com/2007/09/gentoo-rocks.html
7.emerging your kernel:
#emerge vserver-sources
8.configuring your kernel
#cd /usr/src/linux
#make menuconfig
configure your kernel now!
Linux VServer --->
(Do not enable the legacy options)
[ ] Enable Legacy Kernel API
[ ] Enable Legacy Networking Kernel API
(Read help text)
[ ] Remap Source IP Address
[*] Enable COW Immutable Link Breaking
[ ] Enable Virtualized Guest Time
[*] Enable Proc Security
[*] Enable Hard CPU Limits
[*] Avoid idle CPUs by skipping Time
[*] Limit the IDLE task
Persistent Inode Tagging (UID24/GID24) --->
[ ] Tag NFSD User Auth and Files
[*] Enable Inode Tag Propagation
[*] Honor Privacy Aspects of Guests
[ ] VServer Debugging Code
File systems --->
<*> Reiserfs support
[*] ReiserFS extended attributes
#make && make modules_install
#copy arch/i386/boot/bzimage /boot/myvserver-sources
Step 9 to 10 follow the gentoo quickie setup guide:
http://boyformat.blogspot.com/2007/09/gentoo-rocks.html
11. Update the portage and emerge the following packages for
preparation.
#emerge --sync
#emerge util-vserver - this is the main package!
#copy arch/i386/boot/bzimage /boot/myvserver-sources
Step 9 to 10 follow the gentoo quickie setup guide:
http://boyformat.blogspot.com/2007/09/gentoo-rocks.html
11. Update the portage and emerge the following packages for
preparation.
#emerge --sync
#emerge util-vserver - this is the main package!
12. Add the following to boot process and start the daemons.
# rc-update add vprocunhide default
# /etc/init.d/vprocunhide start
# rc-update add vserver.default default
# /etc/init.d/vserver.default start
13. Adding a level4 vserver and startup scripts
13. Adding a level4 vserver and startup scripts
download the stage4 portage for the vserver setup
#wget hxxp://poepole.linux-vserver.org/~hollow/stages/stage4-i686-20070905.tar.bz2
then provide the following syntax after the download
vserver boyformat build \
-m template \
--context 0529 \
--hostname boyformat\
--interface eth0:192.168.0.1/24 \
--initstyle gentoo \
-- \
-d gentoo \
-t /path/to/stage4-arch-version.tar.bz2
# mkdir -p /etc/vservers/boyformat/apps/init
# echo "default" > /etc/vservers/boyformat/apps/init/mark
references:
hxxp://linuxfreak.net/doku.php?id=wiki:vserver
hxxp://www.gentoo.org/proj/en/vps/vserver-howto.xml
hxxp://people.linux-vserver.org/~hollow/stages/
gentoo quickie guide
my gentoo quickie installation (estimated time 30mins)
prerequisites:
- gentoo minimal installation cd
- little linux understanding and passion
- reading comprehension on this guide
1.initial setup would be installing your lan
#net-setup eth0 [enter]
2. prepare your hard drive
#fdisk /dev/sda
3.format (that's what im good at) your hard drive
#mke2fs /dev/sda1 - for boot partition
#mkreiserfs /dev/sda3 - for root partition
#mkswap /dev/sda2 && swapon /dev/sda2 - for swap partion
4.prepare initial mounting
#mount /dev/sda3 /mnt/gentoo
#mkdir /mnt/gentoo/boot
#mount /dev/sda1 /mnt/gentoo/boot
5.portage and stage3 snapshot
#cd /mnt/gentoo
#nohup wget ftp://gentoo.osuosl.org/pub/gentoo/releases/x86/current/stages
/stage3-i686*tar.bz2 &
#nohup wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2 &
wait for about 15 minutes for the downloading of the snapshots
#tar xjpf stage3*
#mv portage-lates.tar.bz2 usr/
#tar xjf portage*
6.chrooting
#mount -t proc proc /mnt/gentoo/proc
#cp -L /etc/resolve.conf /mnt/gentoo/etc/resolve.conf
#chroot /mnt/gentoo /bin/bash
#env-update && source /etc/profile
7.emerging your kernel (choices are which i frequently use):
- gentoo-source - for desktop and laptop
- hardened-sources - for servers and advance users
- vserver-sources - for virtualization and servers
#emerge [yourchoice]-sources
8.configuring your kernel
#cd /usr/src/linux
#make menuconfig
configure your kernel now!
#make && make modules_install
#copy arch/i386/boot/bzimage /boot/mykernel-sources
9.configure boot loader
#emerge lilo
#vi /etc/lilo.conf
boot=/dev/sda
prompt
timeout=10
default=gentoo
image=/boot/kernel
label=Gentoo
read-only
root=/dev/sda3
#lilo
10. some more refining and now your all set
#vi /etc/conf.d/net
config_eth0=("your.ip.add.ress/cidr")
routes_eth0=(" default via your.gate.way.ip")
#ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
#rc-update -a net.eth0 default
#passwd [enter]
#exit
#umount /mnt/gentoo/boot
#umount /mnt/gentoo/proc
#umount /mnt/gentoo
#reboot
======================================
additional installs if you just like.. (my setup)
======================================
11.my initial installs (make sure to edit /etc/make.conf with USE="apache2 php
mysql vhost jpej fontconfig")
#emerge syslog-ng vixie-cron ntp bind-tools tcptraceroute slocate pciutils mrtg nmap
apache mysql php links mrtg
12.begin startup items
#rc-update -a syslog-ng default
#rc-update -a vixie-cron default
#rc-update -a apache default
#rc-update -a mysql default
#rc-update -a sshd default
#rc-update -a mrtg default
#rc-update -a net.etho default
#/etc/init.d/syslog-ng start
#/etc/init.d/vixie-cron start
#/etc/init.d/apache2 start
#/etc/init.d/mysql start
#/etc/init.d/mrtg start
13. repeat step 10. and rock and roll
references: hxxp://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
prerequisites:
- gentoo minimal installation cd
- little linux understanding and passion
- reading comprehension on this guide
1.initial setup would be installing your lan
#net-setup eth0 [enter]
2. prepare your hard drive
#fdisk /dev/sda
3.format (that's what im good at) your hard drive
#mke2fs /dev/sda1 - for boot partition
#mkreiserfs /dev/sda3 - for root partition
#mkswap /dev/sda2 && swapon /dev/sda2 - for swap partion
4.prepare initial mounting
#mount /dev/sda3 /mnt/gentoo
#mkdir /mnt/gentoo/boot
#mount /dev/sda1 /mnt/gentoo/boot
5.portage and stage3 snapshot
#cd /mnt/gentoo
#nohup wget ftp://gentoo.osuosl.org/pub/gentoo/releases/x86/current/stages
/stage3-i686*tar.bz2 &
#nohup wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2 &
wait for about 15 minutes for the downloading of the snapshots
#tar xjpf stage3*
#mv portage-lates.tar.bz2 usr/
#tar xjf portage*
6.chrooting
#mount -t proc proc /mnt/gentoo/proc
#cp -L /etc/resolve.conf /mnt/gentoo/etc/resolve.conf
#chroot /mnt/gentoo /bin/bash
#env-update && source /etc/profile
7.emerging your kernel (choices are which i frequently use):
- gentoo-source - for desktop and laptop
- hardened-sources - for servers and advance users
- vserver-sources - for virtualization and servers
#emerge [yourchoice]-sources
8.configuring your kernel
#cd /usr/src/linux
#make menuconfig
configure your kernel now!
#make && make modules_install
#copy arch/i386/boot/bzimage /boot/mykernel-sources
9.configure boot loader
#emerge lilo
#vi /etc/lilo.conf
boot=/dev/sda
prompt
timeout=10
default=gentoo
image=/boot/kernel
label=Gentoo
read-only
root=/dev/sda3
#lilo
10. some more refining and now your all set
#vi /etc/conf.d/net
config_eth0=("your.ip.add.ress/cidr")
routes_eth0=(" default via your.gate.way.ip")
#ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
#rc-update -a net.eth0 default
#passwd [enter]
#exit
#umount /mnt/gentoo/boot
#umount /mnt/gentoo/proc
#umount /mnt/gentoo
#reboot
======================================
additional installs if you just like.. (my setup)
======================================
11.my initial installs (make sure to edit /etc/make.conf with USE="apache2 php
mysql vhost jpej fontconfig")
#emerge syslog-ng vixie-cron ntp bind-tools tcptraceroute slocate pciutils mrtg nmap
apache mysql php links mrtg
12.begin startup items
#rc-update -a syslog-ng default
#rc-update -a vixie-cron default
#rc-update -a apache default
#rc-update -a mysql default
#rc-update -a sshd default
#rc-update -a mrtg default
#rc-update -a net.etho default
#/etc/init.d/syslog-ng start
#/etc/init.d/vixie-cron start
#/etc/init.d/apache2 start
#/etc/init.d/mysql start
#/etc/init.d/mrtg start
13. repeat step 10. and rock and roll
references: hxxp://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
Subscribe to:
Posts (Atom)

