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..

Saturday, February 12, 2011

Wanna Install FreeBSD 8.1 with xdm into Server

IT Department wants me help them in installing a new arrive Server. This gonna be a web server. So i decided to install FreeBSD 8.1. If server is mine, i really don't care about GUI, but for them the best thing is including xdm.

So before start the installation, i tried install xdm in my Virtual Machine. so let see what happened

First Try
Easy way installing FreeBSD
  • boot from FreeBSD8.1 disc.
  • select country and then keyboard type
  • on sysinstall menu, i choosed Express
  • FDISK, i choosed "a" then "q".
  • boot manager, i choosed BootMgr
  • disklabel, i choosed "a" then "q"
  • distribution, i choosed minimal
  • then installation process
  • then exit install no need to review or what ever, restart it.
install xdm
  • i configure first my os. give hostname, set root password, networking, ssh then make all up.
  • i need to install xorg via sysinstall, by choose configure post installation
  • package
  • using ftp, choose taiwan mirror
  • then facebook a while before ftp make it successfully list package
  • so choose x then xorg
  • so wait until xorg finish using tbz compiled format.
  • repeat for package xdm

Hmmm.. when all is done, i think i don't get any packages file that i install it in the os so, if i install in real server i must again download. and i think compiled tbz compatible or not with server spec. so next try, second try, so i using ports. all file were download into /usr/distifiles. but it will take on time to compile, i know it.

Second try
  • finish another virtual machine freebsd installation.
  • configure it network and what ever i thinks it is needed.
  • then i install ports collection from cd using sysinstall > configure > distribution
  • then i install xorg first
  • cd /usr/ports/x11/xorg
  • make config-recursive
  • make install clean
  • then configure xorg. i forgot configuration process so i refer freebsd handbook online.
  • startx
    after copy xorg.conf. but it still not success plus it is dark screen not showing the result.
    ctrl + alt + tab + F1 and ctrl + c to quit x.
  • vmware tools installation /usr/ports/emulator/vmware-tools6/ was problem, so recognize missing /usr/ports/x11-drivers/xf86-video-vmware
  • configure again and startx. i did it.
  • /usr/ports/x11/xdm
  • ee /etc/ttys
    ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure
  • init 6


yes i got xdm
but the problem when i put root or user it not success to login.
if i give wrong password it detected. so get out from the place and buy egg benjoo and milo ice.

that's all last two days of story..
today i have the answer..
/usr/ports/x11/xsm

orite tomorow wait for me to install on real server.