hi..
you can get more source code of any related .php .html CMS at ;-
sourceforge.net
www.freeprogrammingresources.com
www.planet-source-code.com
and many more ...
Saturday, October 27, 2007
Wednesday, October 3, 2007
Mysql on FreeBSD
Don't panic ...
# cd /usr/port/mysql51-server
# make install clean
# /usr/local/bin/mysql_install_db
# chown -R mysql:mysql mysql
# /usr/local/bin/mysqld_safe -u root &
# /usr/local/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 239 to server version: 5.1.6-alpha
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
... done
# cd /usr/port/mysql51-server
# make install clean
# /usr/local/bin/mysql_install_db
# chown -R mysql:mysql mysql
# /usr/local/bin/mysqld_safe -u root &
# /usr/local/bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 239 to server version: 5.1.6-alpha
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
... done
Monday, September 17, 2007
Using tar command
tar -cf file.tar /directory (for TAR)
tar -jcvf file.tar.bzip2 /directory (for BZIP2)
tar -zcvf file.tar.gz /directory (for tar.gz)
tar cf - target | gzip -c > target.tgz (for TGZ)
tar -jcvf file.tar.bzip2 /directory (for BZIP2)
tar -zcvf file.tar.gz /directory (for tar.gz)
tar cf - target | gzip -c > target.tgz (for TGZ)
MSN Messenger port
MSN Messenger
1. MSN Messenger UDP Port 1863
2. MSN Messenger UDP Port 5190
3. MSN Messenger_File_Transfer TCP Port 6891-6900
4. MSN Messenger Voice UDP Port 6901
5. MSNP TCP Port 1863
1. MSN Messenger UDP Port 1863
2. MSN Messenger UDP Port 5190
3. MSN Messenger_File_Transfer TCP Port 6891-6900
4. MSN Messenger Voice UDP Port 6901
5. MSNP TCP Port 1863
Win XP defrag setting
A great new feature in Microsoft Windows XP is the ability to do a boot defragment. This places all boot files next to each other on the disk to allow for faster booting. By default this option is enabled but on some builds it is not enabled. Below, you will find information on how to Enable/Disable this feature:
Go to Start>> Run>> Type in: regedit
1. Drill down to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
2. Single click on BootOptimizeFunction to empty its contents into the right pane.
3. Right click "Enable" from the list in the right pane.
4. Select Modify from the resulting menu.
5. Change the value to Y to enable and N to disable.
Reboot your computer for the change to take effect
Go to Start>> Run>> Type in: regedit
1. Drill down to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction
2. Single click on BootOptimizeFunction to empty its contents into the right pane.
3. Right click "Enable" from the list in the right pane.
4. Select Modify from the resulting menu.
5. Change the value to Y to enable and N to disable.
Reboot your computer for the change to take effect
Sunday, September 9, 2007
How to Install VMWARE Server
1- Download VMware Server
http://www.vmware.com/download/server/
EULA Agreement --> Yes
VMware Server for Linux --> Binary (.rpm)
Register for free serial number
2- Install Prerequisite packages
# yum -y install kernel-devel make gcc xinetd
3- Install VMware Server
# rpm -ivh VMware-server-1.0.3-44356.i386.rpm
4- Edit compat_kernel.h (thanks to michael2007 http://www.vmware.com/community/message.jspa?messageID=621855#621855)
# cd /usr/lib/vmware/modules/source/
# tar -xvvf vmmon.tar
# nano vmmon-only/include/compat_kernel.h
change from;
static inline _syscall1(int,compat_exit,int,exit_code);
to;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) static inline _syscall1(int,compat_exit,int,exit_code); #endif
# tar -cvvf vmmon.tar vmmon-only/
# rm -rf vmmon-only/
5- Initialized and configure VMware
# vmware-config.pl
http://www.vmware.com/download/server/
EULA Agreement --> Yes
VMware Server for Linux --> Binary (.rpm)
Register for free serial number
2- Install Prerequisite packages
# yum -y install kernel-devel make gcc xinetd
3- Install VMware Server
# rpm -ivh VMware-server-1.0.3-44356.i386.rpm
4- Edit compat_kernel.h (thanks to michael2007 http://www.vmware.com/community/message.jspa?messageID=621855#621855)
# cd /usr/lib/vmware/modules/source/
# tar -xvvf vmmon.tar
# nano vmmon-only/include/compat_kernel.h
change from;
static inline _syscall1(int,compat_exit,int,exit_code);
to;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) static inline _syscall1(int,compat_exit,int,exit_code); #endif
# tar -cvvf vmmon.tar vmmon-only/
# rm -rf vmmon-only/
5- Initialized and configure VMware
# vmware-config.pl
Monday, June 25, 2007
How to Install Gento
This Manual is for gentoo installation using universal bootable cd. You can download the ISO image for gentoo website or itsmirror.
Assigning Network
You can assign manually using ifconfig and route command or use "net-setup"
livecd gentoo
Assigning Network
You can assign manually using ifconfig and route command or use "net-setup"
livecd gentoo
# net-setup eth0 [the configuration is self explanatory] livecd gentoo
# ifconfig [to check network configuration is running] livecd gentoo
# netstat -rn [to check default gateway]
Disk Partitioning
I prefer to use cfdisk for disk partitioning as it is much clearer to see specially for newbies. Here I will use two hardisk; One 10G and the second one is 3G. Belows is the summarize of my disk partition
I prefer to use cfdisk for disk partitioning as it is much clearer to see specially for newbies. Here I will use two hardisk; One 10G and the second one is 3G. Belows is the summarize of my disk partition
Partition Filesystem Size Description
/dev/hda1 ext2 32M Boot Partition
/dev/hda1 ext2 32M Boot Partition
/dev/hda2 swap 512 Swap partition
/dev/hda3 ext3 1G Root Partition
/dev/hda5 ext3 4G Usr Partition
/dev/hda6 ext3 4.6G Var Partition
/dev/hdb1 ext3 3G Home Partition
Viewing Current Partition Layout
cfdisk /dev/hda
cfdisk /dev/hda
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------------- hda1 Primary Linux 32.91 hda2
------------------------------------------------------------------------------------- hda1 Primary Linux 32.91 hda2
Primary swap Solaris 509.97 hda3
Primary Linux 1003.49 hda5
Logical Linux 3997.49 hda6
Logical Linux 4696.64
cfdisk /dev/hdb
cfdisk /dev/hdb
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------------- hdb1 Primary Linux 3249.35
Assigning Filesystem to Partitions
livecd root
------------------------------------------------------------------------------------- hdb1 Primary Linux 3249.35
Assigning Filesystem to Partitions
livecd root
# mke2fs /dev/hda1 livecd root
# mke2fs -j /dev/hda3 livecd root
# mke2fs -j /dev/hda5 livecd root
# mke2fs -j /dev/hda6 livecd root
# mke2fs -j /dev/hdb1
Activating the Swap Partition
livecd root # mkswap /dev/hda2 livecd root
livecd root # mkswap /dev/hda2 livecd root
# swapon /dev/hda2
Mounting
livecd root # mount -t ext3 /dev/hda3 /mnt/gentoo livecd root
livecd root # mount -t ext3 /dev/hda3 /mnt/gentoo livecd root
# mkdir /mnt/gentoo/boot livecd root
# mkdir /mnt/gentoo/usr livecd root
# mkdir /mnt/gentoo/var livecd root
# mkdir /mnt/gentoo/home livecd root
# mount /dev/hda1 /mnt/gentoo/boot/ livecd root
# mount -t ext3 /dev/hda5 /mnt/gentoo/usr/ livecd root
# mount -t ext3 /dev/hda6 /mnt/gentoo/var/ livecd root
# mount -t ext3 /dev/hdb1 /mnt/gentoo/home/
Installation
Veryfing Date/Time
livecd root # date Tue Jul 12 15:16:50 GMT 2005
Veryfing Date/Time
livecd root # date Tue Jul 12 15:16:50 GMT 2005
Change Date/Time
livecd root # date 071215292005 Tue Jul 12 15:29:00 GMT 2005
livecd root # date 071215292005 Tue Jul 12 15:29:00 GMT 2005
Unpack Tarball From CDROM and Portage Setup
livecd root # cd /mnt/gentoo/ livecd gentoo
livecd root # cd /mnt/gentoo/ livecd gentoo
# tar xjvpf /mnt/cdrom/stages/stage3-i686-2005.0.tar.bz2 livecd gentoo
# tar xjvpf /mnt/cdrom/snapshots/portage-20050303.tar.bz2 -C /mnt/gentoo/usr/ livecd gentoo
# mkdir /mnt/gentoo/proc livecd gentoo
# mount -t proc /proc /mnt/gentoo/proc livecd gentoo
# mirrorselect -a -s4 -o >> etc/make.conf livecd gentoo
# chroot /mnt/gentoo /bin/bash livecd /
# env-update livecd /
# source /etc/profile
Update Kernel
livecd / # ln -sf /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime livecd /
livecd / # ln -sf /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime livecd /
# echo nameserver 202.190.100.40 > /etc/resolv.conf livecd /
# emerge sync livecd /
# emerge gentoo-sources livecd /
# cd /usr/src/linux livecd linux
# make menuconfig livecd linux
# make && make modules_install livecd linux
# cp arch/i386/boot/bzImage /boot/kernel-2.6.12-gentoo-r4 livecd linux
# cp System.map /boot/System.map-2.6.12-gentoo-r4 livecd linux
# cp .config /boot/config-2.6.12-gentoo-r4
System Configuration
Edit Fstab livecd linux
Edit Fstab livecd linux
# nano -w /etc/fstab
/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / ext3 noatime 0 0
/dev/hda2 none swap sw 0 0
/dev/hda5 /usr ext3 noatime 0 0
/dev/hda6 /var ext3 noatime 0 0
/dev/hdb1 /home ext3 noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 none
/proc proc defaults 0 0 none
/dev/shm tmpfs nodev,nosuid,noexec 0 0
livecd linux # echo mysmtp > /etc/hostname [assign your hostname]
livecd linux # echo network-box.com.my > /etc/domainname [assign your domain]
livecd linux # nano -w /etc/conf.d/hostname [assign your hostname]
livecd linux # nano -w /etc/conf.d/domainname [assign your domain]
livecd linux # rc-update add domainname default [set it to up during boot time]
livecd linux # nano -w /etc/conf.d/net [assign ip configiration]
livecd linux # rc-update add net.eth0 default [set it to up during boot time]
livecd linux # rc-update add sshd default [set sshd to up during boot time]
livecd linux # passwd [assign new password to root]
livecd linux # useradd -m newuser [add newuser]
livecd linux # passwd newuser [change newuser password]
Other systems
livecd linux # emerge syslog-ng livecd linux
livecd linux # emerge syslog-ng livecd linux
# rc-update add syslog-ng default livecd linux
# emerge vixie-cron livecd linux
# rc-update add vixie-cron default
Bootloader Configuration
livecd linux # emerge --usepkg lilo
livecd linux # emerge --usepkg lilo
livecd linux # nano -w /etc/lilo.conf.example
livecd linux # cp /etc/lilo.conf.example /etc/lilo.conf
livecd linux # nano -w /etc/lilo.conf livecd linux #
lilo -v livecd root # reboot
Subscribe to:
Posts (Atom)