Saturday, July 21, 2007

how to set a virtual host directory in apache2

open your terminal konsole

create a directory

unos@xoxo:~$ mkdir virtual

define your host for the directory

unos@xoxo:~$ sudo nano /etc/hosts
127.0.0.1 localhost
127.0.0.2 virtual

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

define your virtual path in the apache httpd.conf

unos@xoxo:~$ sudo nano /etc/apache2/httpd.conf
NameVirtualHost 127.0.0.2:80

"<"VirtualHost 127.0.0.2:80">"
ServerName virtual
DocumentRoot /home/unos/virtual
"<"Directory /home/unos/virtual">"
AllowOverride All
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
"<"/Directory">"
"<"/VirtualHost">"

then restart your apache2

unos@xoxo:~$ sudo /etc/init.d/apache2 restart

open your browser and just type virtual and it will direct you to your site
till then :">

notes:please ignore the double-quote..im putting it there because blogspot does not recognize < symbol

ubuntu how to connect to internet using dhclient

open your terminal konsole
check if there is a wifi connection

unos@xoxo:~$ sudo iwlist eth1 scanning
eth1 Scan completed :
Cell 01 - Address: 00:60:B3:5A:BB:F0
ESSID:"streamyx"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 22 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Quality=78/100 Signal level=-47 dBm
Extra: Last beacon: 240ms ago

Then...connect to the network

unos@xoxo:~$ sudo iwconfig eth1 essid streamyx key "123456789"
unos@xoxo:~$ sudo iwconfig eth1
eth1 IEEE 802.11g ESSID:"streamyx"
Mode:Managed Frequency:2.412 GHz Access Point: 00:60:B3:5A:BB:F0
Bit Rate:36 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:0123-4567-89 Security mode:open
Power Management:off
Link Quality=80/100 Signal level=-49 dBm Noise level=-89 dBm
Rx invalid nwid:0 Rx invalid crypt:78 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:1

then use dhclient to connect to the network

unos@xoxo:~$ sudo dhclient eth1
There is already a pid file /var/run/dhclient.pid with pid 9721
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:0e:35:ce:cf:b2
Sending on LPF/eth1/00:0e:35:ce:cf:b2
Sending on Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.34 -- renewal in 1708 seconds.

to check the nameserver of the connection

unos@xoxo:~$ sudo cat /etc/resolv.conf
nameserver 192.168.1.1
nameserver 192.168.1.1

to check the connection to the internet

unos@xoxo:~$ ping www.google.com -c 3
PING www.l.google.com (64.233.189.104) 56(84) bytes of data.
64 bytes from www.google.com (64.233.189.104): icmp_seq=1 ttl=244 time=58.0 ms
64 bytes from www.google.com (64.233.189.104): icmp_seq=2 ttl=244 time=59.3 ms
64 bytes from www.google.com (64.233.189.104): icmp_seq=3 ttl=244 time=58.2 ms

--- www.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 58.002/58.512/59.308/0.634 ms

and you are connected (^_^)

Thursday, June 14, 2007

result is out

uitm examination result for semester dec-april 2007 has been released by the UiTM administration at 1744 hour (my own time)...as before, uitm server was crammed with trafic within hours of its release and it was down in matter of minutes..ive managed to check the result and it was the worst result that i ever had throughout my academic life so far..it pisses me off so much..well it doesnt matter..im gonna bounce back....
to those who would like to check the result u can check it at the istudent portal or u can go to myuitm



to my friends im wishing u all the best and good luck...
p/s: tema lagu kebangsaan for now is "hadapi dengan senyuman"

Monday, June 11, 2007

Ayong's wedding

howdy gengs...last week must've been the busiest week of my life so far..it was the first time my family held a wedding reception for my beloved sister...the work was abundant and tiring nonetheless..but, the wedding went well though with minor flaws and sarcasm throughout...The nikah was held at home and the bersanding was held at Dewan Merdeka, Kg Melayu..



A lot of family and friends showed up for the celebrated days..sad to say that my friends seems to be the fewest but it dont matter..i've met an old friend who i haven't met in a loooong time and it was good and smashing...we talk,talk,talk and talk and it was hell lot of fun...Fathullah a.k.a maboqs was there (he helped me clean up the house on the nikah nite, my deepest gratitude went out to him) Firdaus a.k.a kecik was there on saturday...




and somehow, Sumardi manages to drive all the way from melaka (a true friend indeed) and none of my friends from seremban "manage" to make it...well, its ok i guess



at the end of the day, it was all fun and relieving when it is all over..my congratulations goes out to the newlyweeds and i pray for their life to be prosper and fill with joy and happiness (hope they are gonna go to "work" soon cause i cant wait to have "anak buah" :D)
i would also like to thank those who helped and to those who came to the wedding with a big heart..thank you so much, i enjoy it very much being around your company..



till then...au revoir (^_^)

Wednesday, May 23, 2007

use gaim to connect to irc

open your gaim (or pidgin, whatever :p) application..add new account and select irc...
type at the server field = "irc.freenode.net"
you dont have to fill the password, leave it null
once u got a respond from irc.freenode.net
type /nickserv register "nickname" "your@email.com"
to join any channel type
/join #ubuntu-my
/join #myoss
/join #ubuntu

Note: irc.freenode.net is the official open source irc server.. if you want to join #kampung/#mamak or whatever u should connect to a irc.dal.net server

happy chating :-"

how to write ntfs in ubuntu

i just bought an external hardisk..now, it become a problem to me since that Microsoft Windows can not detect the Ubuntu partition format...what i did was i create 2 partion, one using Ubuntu and the other is NTFS..This way i can use both, where its necessary..one problem though that the ntfs in ubuntu i not writeable...after doing some "googling and tips from a friend, i've found a way on how to write ntfs in ubuntu... (p/s: chown won't do the trick)

make a directory name windows in ~/media (but u have to chown it to make it accessible)
sudo mkdir windows
sudo chown unos:unos /media/windows
sudo chmod 744 /media/windows

connect the hard disk and check your usb device

fdisk -l

unmount the ntfs

sudo umount /dev/sda2

then mount the ntfs using the command

$ sudo mount /dev/sda2 /media/windows -t ntfs -o umask=777,uid=unos

it should able u to write the ntfs partition.hope it will work for you..post me on anything ya

Monday, May 21, 2007

indonesia has a very sweet pronounciation

i've started my MCAD classes today..fortunate enough for me, my tutor happens to be an indonesian lass by the name of Hariani Sabariana Sitohang..act, im very profound with the way indonesian speak english and their pronounciation, much..the "rrr" is quite obvious and i find it musical..hehehe...one thing i learn from her today is that indonesian pronounce @ as arkai..hehehe..and once she even said "where can i buy computer peripherals?"...
hehehe.. i found it very amusing..though we share the same roots with indonesia but the cultural difference is quite vast...
i'm looking foward to learn more about the indonesia culture and language, apart from the MCAD, perhaps....