xwings's blog

Small Notes On CVS server

Submitted by xwings
on November 14, 2003 - 2:30am
Title  : CVS Server
Os     : Linux
Distro : Slackware
URL    : http://www.cvshome.org/

Download the latest CVS.
Untar it.

     # ./configure
     # make
     # make install

Short Notes

     # groupadd cvs
     # useradd cvsroot 
     # mkdir /home/cvsroot 
     # cvs -d /home/cvsroot init 
     # chown -R cvsroot.cvs /home/cvsroot 
     # chmod -R ug+rwx /homecvsroot

Sample File : /etc/samba/smb.conf

Submitted by xwings
on October 31, 2003 - 4:06am
Title  : /etc/samba/smb.conf
Os     : Linux
Distro : Slackware
URL    : http://www.samba.org/

In Redhat ( or other distro) , the smbpasswd might be store in place
like /etc/samba.

If your are using Redhat (again, or other distro) there is a program
call smbadduser. In slackware just use 
  
   # useradd guest -d /home/samba -s /bin/false -g users -p guest
   # chmod -R 777 /home/samba

Kernel 2.6.0 - (Configuration file and Shell Script)

Submitted by xwings
on October 26, 2003 - 10:31pm
Hai Guys,

My current system :

Slackware , can't keep track of which version. :p
PIII 800
1 unit of 40GB and another unit of 20HDD , all IDE :)
Fat 32 and Ext3 running. 
(Xp still good for playing PlayerStation Emulator).

I got kernel 2.6 since test3. Along the way 4,5,6,7 and 8.
Last night patched and install with test9. My fat 32 still working fine. :)

I using 2.6 as my desktop. Nvidia working fine.
Nothing went wrong, VCD, DVD and MP3 all the way with 2.6 
Ofcause, thanx to the NVIDIA patch from.

http://www.minion.de/

Later today gonna patch test9 on the development server.
1 U rack with SMP. Again , 2.6 were there since test6,
everything fine .... Should i say 2.6 rules ? yeah.

em.. what can i say about kernel 2.6 ?
It is very cool , faster and more stable.

Extra story, after openoffice 1.1.0 came out,
it makes me ignore XP totally. 
Sometimes it even make me lazy to reboot and go into XP for gamming.
All the office documentaion it can be done in Linux.
With a nice kernel ,nice application , why M$ ?

Can't wait till 2.6 Relese out .. HuuRay ...

From linux.kernel regarding the Fat32 problem, izzit the configuration file ?
Or the kernel itself ? Not too sure , i am a newbie :)
Hopefully the kernel configuration file can help out.

My kernel 2.6-test9 box at home, this configuration file i took it from the development server.

After patching few version of kenel , i came out with a automated shell script.
Short and simple , but its usefull to me :)

Okay , time to build SMP kernel for test9. Bye

Attatchment :
root@thebigrack:/usr/src/linux-2.6.0-test8# uname -a
Linux thebigrack 2.6.0-test8 #3 SMP Mon Oct 20 13:01:26 MYT 2003 i686 unknown unknown GNU/Linux

The /usr/src/linux/.config (it works on test 9)

Install and configure djbdns

Submitted by xwings
on October 17, 2003 - 12:47am
Title  : Install and configure djbdns
Os     : Linux
Distro : Slackware
URL    : -

i. Install Daemontools

     # mkdir -p /var/package
     # chmod 1755 /var/package
     # cd /var/package
     # wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
     # gunzip daemontools-0.76.tar
     # tar -xpf daemontools-0.76.tar
     # rm daemontools-0.76.tar
     # cd admin
     # wget http://moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch

Easy way to install qmail + vpopmail

Submitted by xwings
on October 13, 2003 - 4:32am

Home PAGE : http://easyqmail.sf.net

Hi Guys,

This is an automated installation and setup script for qmail and associated
programs.

The script is a of the installation script from lazydog_qmail.sh (
http://www.qmail.nu ) with editional enhancement and more user friendly.

The features/patches :

a. Q & A base Intallation
b. smtp / smtp+ssl
c. pop3 / pop3+ssl
d. imap / imap+ssl
e. rbl filtering

Changing Disk Controller On Solaris 9 x86

Submitted by xwings
on October 10, 2003 - 5:45am
The Box :-

     Processor : Pentium 233mmx
     RAM       : 128 Meg RAM
     HDD       : 4GB
     System    : Solaris 9x86
The Story :-

    Initially the system was very unstable because of the BIOS chip. 
    Maybe i plug chip and play with it and then put it in ... so here comes the problem. 
    i mean problems :) 

    Every time i need to spend more then 10 min (if i am Lucky). To on

Two ADSL Connection in a Linux Box.

Submitted by xwings
on September 30, 2003 - 3:18am
Title  : Two ADSL with In Linux Box
Os     : Linux
Distro : RedHat
URL    : -

Enviroment :

   1  X  Linux Box (Redhat 9)
   3  X  NICs (10/100 mbps)
   2  X  ADSL modems
   2  X  ADSL Accounts

Notes :

   i.   Two ADSL with Dynamic IP , connected to a ISP
   ii.  Two ADSL connected to eth1 and eth2.
   iii. eth0 is to the LAN.

There is three scripts ,
   
   i.   route.sh

How-to Installing Perl 5

Submitted by xwings
on September 29, 2003 - 11:12pm
Title  : Install Perl 5.8.1
Os     : *NIX
Distro : -
URL    : http://www.perl.com/


Preparation :
   
   i.  Download Perl 5.8.1 from : 
         http://www.perl.com/CPAN/src/stable.tar.gz
   ii. Remove the old Perl from the system before building
         # rm -rf /usr/lib/perl5
   p/s : Suggestion from jeremy
         # mv /usr/lib/perl5 /root/perl5backup

Installation :

Tunneling Via SSH

Submitted by xwings
on September 22, 2003 - 2:19am
Title  : Tunneling Via SSH
OS     : ALL
Distro : - NA -
URL    : http://www.openssh.org

Installation :

	The installation on SSH, please check :-
			http://kerneltrap.org/node/view/868


Forward and Reverse Tunneling :

i. A Forward SSH Tunnel  
	
	I need to do a VNC back into my house's LinuxBox. 
	To make sure the conection is secure, what i can do is
	tunnel my connection by using ssh.

Upgrade to openssh-3.7.1

Submitted by xwings
on September 19, 2003 - 11:28am
Title  : Upgrade to openssh-3.7.1
Os     : Linux
Distro : Slackware 9
URL    : http://www.openssh.org

Preparation :

i.   Download openssh 3.7.1
ii.  Delete all the old sshd configuration file.
	
	#rm -f /etc/ssh/sshd_* /etc/ssh/ssh_*
	
iii. Un tar.gz it. then, go into the directory
iv.  Edit file , version.h  #remove p1
v.   /etc/rc.d/rc.sshd stop

Configuration :
	
	chown -R root.root .

Installing MySql on *NiX

Submitted by xwings
on September 10, 2003 - 10:51pm
First : 
Grep a copy of Solaris 9 X86 and install it.

Then Goto http://www.sunfreeware.com , grep the following files. 

  gcc-3.2-sol9-intel-local.gz 
  autoconf-2.57-sol9-intel-local.gz 
  automake-1.7.2-sol9-intel-local.gz 
  make-3.80-sol9-intel-local.gz 
  bison-1.75-sol9-intel-local.gz 

Example to install ......

  $su -
   password :  

  #gunzip gcc-3.2-sol9-intel-local.gz

Installating Igenus Webmail , with qmail + vpopmail + mysql

Submitted by xwings
on September 10, 2003 - 10:28pm

Home Page for Igenus email : www.igenus.org

You can download the file via http or CVS.



Gunzip and copy to Apache directory

eg, /var/www/htdocs/ or /var/www/html



********************************************



Create temp directory.

   # mkdir /tmp/igenus
   # cd /tmp 
   # chmod -R 0755 igenus
   # chown -R vpopmail:vchkpw igenus



********************************************

Scroll Mouse in Slackware 9

Submitted by xwings
on September 10, 2003 - 10:02pm

Get imwheel from : http://jcatki.dhs.org/imwheel/



As usual ,

./configure && make && make install :)



No life huh ? But better than double click setup.exe



Edit : /etc/X11/XF86Config

     Section "InputDevice"
     Identifier "Mouse1"
     Driver "mouse"
     Option "Protocol" "IMPS/2"
     Option "Device" "/dev/mouse"
     Option "Emulate3Buttons" "false"

Sample File : /etc/dhcpd.conf

Submitted by xwings
on September 10, 2003 - 9:44pm

File Name : /etc/dhcpd.conf

This Is a very standard dhcpd configuration file.
Included how to fix a IP address for a system and
added a range of domain name server.

************************* /etc/dhcpd.conf **********************
ddns-updates on;
ddns-update-style ad-hoc;
option domain-name-servers 10.0.0.1, 202.188.0.133, 202.188.1.5;
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;