Thursday, March 19, 2009

Add more Listenning port to Apache Http Server for Ubuntu

I have to tell you that this is my method. I'm not sure is there any better workaround to handle this. I'm on Ubuntu Intrepid Ibex.

First, I add this 2 lines to /etc/apache2/ports.conf (I'm gonna add listenning port at port 8000)

NameVirtualHost *:8000
Listen 8000

Second, Edit file named /etc/apache2/site-enabled/000-default by following step

copy content of all in and paste text next to the old one and change *:80 of the new one to *:8000

So you have something similar to this ......

Last, restart your apache with this command "/etc/init.d/apache2 restart"

Booom! Your Apache Http Server will now can listen to 8000 port.

Failed memo :
1. can't restart apache with this command apache2 -k restart
2. If adding just Listen 8000 in /etc/apache2/ports.conf, the 8000 port query is listenned but no thing is displayed.

Shared folders for Windows XP guest on Virtualbox

After set shared folders at Virtualbox, Windows XP finds that folder by itself.

It's at

My Network Places -> Entire Network -> VirtualBox Shared Folders

notice : one thing I'm not sure is that I have already install Virtualbox guest addtions before set this shared folders

Wednesday, March 18, 2009

Ubuntu video screen capture

This blog is my memo.

I have use recordMyDesktop for do a video screen capture. Its functions is ok for me. I was install it via Synaptic Package Manager.

Shared folders for Windows 7 Beta guest in Virtualbox 2.1.4

I found the trick here. I have tried it and it's work for me. My machine is Ubuntu Intrepid Ibex which running Virtualbox 2.1.4

- open Regedit (as administrator)
- navigate to this key and change the value to 0 (zero): HKLM\SYSTEM\CurrentControlSet001\Services\VBoxGuest\Start
- reboot the Windows 7 guest
- create a shared folder
- Navigate to (or map to a letter) \\vboxsvr\SHARENAME

Monday, March 16, 2009

[Solved] Can't connect with wired DHCP enabled ADSL router in Ubuntu Intrepid (8.10)

I got a problem that my Intrepid can't connect with wired DHCP enabled ADSL router, which it works fine with other machines running Windows XP

After googling awhile, I found this thread Can't connect to internet via ADSL with 8.10. And my problem was solved with the method in it.

I will summarize it here once :

1. Remove the words "interface-mtu" out of /etc/dhcp3/dhclient.conf

2. Edit /etc/NetworkManager/nm-system-settings.conf and changed managed=false to managed=true.

3. Reboot


hope it's also work with your machine.

Clojure how to get JVM options from inside application

(.getInputArguments ( Credit:  How to get vm arguments from inside of java applic...