Wednesday, May 23, 2012

FreeBSD9 Day2

Time to compile php from source code.

setenv PKGDIR /xtra/SYSTEM/PKGDIR
pkg_add -rK cvsup-without-gui
cp /usr/share/examples/cvsup/cvs-supfile ./
ee cvs-supfile
Change *default host=►CHANGE_THIS◄.FreeBSD.org to ►cvsup◄ and *default prefix=►/home/ncvs◄ to ►/usr/port◄ then save.
mkdir /xtra/SYSTEM/PORTS
ln -s /xtra/SYSTEM/PORTS/ /usr/ports
cvsup -g -L 2 cvs-supfile

What? u got failed?? try use csup instead of cvsup
csup -g -L 2 cvs-supfile

Or u can use portsnap
portsnap fetch && portsnap extract


php5.3

cd /usr/ports/lang/php53
make config-recursive

and tick for apache module.
make install clean

How to upgrade php53 to php54?
cd /usr/ports/lang/php5
make deinstall
make reinstall

Tuesday, May 22, 2012

FreeBSD9 Day1

How can I tell how much RAM is installed on a FreeBSD server?

sysctl hw.physmem 

pkg_add

ee install_day1

setenv PKGDIR /xtra/SYSTEM/PKGDIR/
#ee /etc/rc.conf
#ee /etc/resolv.conf
#ee /etc/hosts
pkg_add -rK apache22
 

the packages will keep in /xtra/SYSTEM/PKGDIR ;)


Monday, February 14, 2011

Installing FreeBSD on IT Unit server

They burn the installer disc.
They boot the disc.
so i'm just guide them what need to do, what need to choose during installation.
so IT Unit staffs did great job. they know what i told they. they know why i choose that thing and that thing.

so, after boot, express installation, format and partioning disk just "a" and minimal distribution.
done and restart.
so very fast they said. yeah just like that to install operating system.

they ask, why need to restart.
i said first we boot from disc, and now we wanna boot from harddisk for first time.

after restarting, do configure on sysinstall.
root password.
networking. server have 4 network interface. so which one selected when plug up rj45 connector.
so i figure out can use
ifconfig |more

see on which interface was active.
so ftp and ssh set on networking configuration on sysinstall. just uncomment from vi editor. to save the file press Esc then type :wq!


finish then copy ports distribution through sysinstall. default collection get from installer disc.

then exit sysinstall

so check on /etc/rc.conf makesure sshd was enable.

so before restart second time to see whether service up or not, let give root permission first in order to use ssh.
ee /etc/ssh/sshd_config


uncomment permit root. change no to yes. and then restart
init 6

finish. i wanna set package from remote after this.
wait, when restarting, operating system ignore other 9Gig RAM.
huh what happens?

so google it to get answer.

i leave server room and start putty to get ssh connection from the new server. like what i did on vmware, i install xorg, xdm and xsm. successful configure like what guided in freebsd handbook.

then start install apache
cd /usr/ports/www/apache22
make config-recursive
make install clean


finish and try to run but it failed.
apachectl start


try mysql installation

cd/usr/ports/databases/mysql51_server
make config-recursive
make install clean


opsss.. it failed.. the mysql51 distfiles no longer exist.
so
init 6


bye bye..