Monday, February 14, 2011

Installing FreeBSD on IT Unit server: DAY-1

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.. see u tomorrow.

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.

Monday, September 08, 2008

Firefox 3.0 with Cooliris (PicLens) add-ons + Picasa

Wanna browse internet pictures with fun 3D view? This tip actually credit to E-Cafe UiTM teams because introduce it to me. However i also discover tip to preview it off-line. that mean we can also use this plugin to our local pictures. yeah.. off course using PicLens Publisher..

Here you go!

in bahasa
Sebelum ni aku bukanlah pengguna Mozilla Firefox. dan aku mmg xsuka pakai internet explorer sejak dulu lagi. First web browser kesayangan aku adalah Netscape. aku kenal internet ni pun waktu study kat Arau sejak 1997. then aku buat first website pada tahun 1998 guna Netscape Composer. Lepas habis study, aku kerja kat UUM yang memaksa aku pakai internet explorer utk beberapa sistem web dalaman.. dan aku rasakan ianya terlalu memeritkan. banyak benda yang dibuat hanya support ie shj. aku pun tak paham. Then masa tu Opera merupakan alternatif aku yang terbaik selain browser yang laju-ringan dan tak banyak bugs. Sekarang ni pun aku menulis blog atas Opera.

Berenti kerja kat UUM aku sambung pengajian di UiTM. di situlah baru aku menjadi pengguna Firefox yang setia. Padahal masa kat UUM aku tengok member2 pakai firefox, aku masih lagi ngan opera. Sebab lain kat UiTM aku pakai firefox kerana FreeBSD aku xder lain utk mengadu kasih.. firefox jer..

Tips kali ini..

1. Please upgrage your Firefox version to the latest one. version 3 (point something something). Then you will feel that we have a good view of browser. Nak navigate to previous and back to latest page pun lagi senang.

2. Then tambah Add-ons Pic Lens.
setakat ni aku tak pakai banyak add-ons. cuma New Tab Button on Tab Right, Duplicate Tab, Ctrl-Tab, DownloadHelper dan Cooliris Previews. Tab-Effect masih lagi version3 tak support.

3. Download Picasa2.
pastikan anda dah signup google account, so senang nak pakai picasa. gmail ke blogspot ker pakai account yang sama.

4. Upload Gambar-gambar ke picasaweb.
Easy by using Picasa2. then gambar2 tu boleh set public ataupun tidak utk kasi org lain view.
contoh kat picasaweb aku --> http://picasaweb.google.com/nadahahs

5. Browse Picasaweb tersebut dengan Firefox+PicLens.
Pergh.. mainlah sebelum jemu!!!

6. (Optional)Kalau nak 3D tersebut untuk gambar2 yang offline (local) bolehlah download PicLens Publisher http://piclens.com/lite/publisher-win.php.

additional: This tips have writen before Cooliris still know as PicLens... so hope you enjoy it.