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.

No comments: