Run NodeJS with non-root / user permission using Runit in Ubuntu 12.04 Precise

After leaving NodeJS about 6 month, I still hard to find articles who explain how to running NodeJS services in production mode. This is mean, running NodeJS services by user permission (not by root) and can automatically restart if crashed. Well, this is not only for NodeJS cases, but you can also implement this solution for running Twisted services.

I use Ubuntu 12.04 Precise Pangolin at this guide. Don’t worry, it’s doesn’t have a big difference step with previous Ubuntu version. So, let start!
Continue reading

How to solve problem HFSplus OS X partition sharing as home partition in Ubuntu

I have dual-OS in my Macbook Pro, OS X Leopard and Ubuntu Oneiric. I want to share partition between OS X and Ubuntu. I use hfplus partition (without journaled) as user home in Ubuntu Oneiric. Then the problem begin.

When I adding launcher in Desktop (Ubuntu), it can’t be executed and throw error :

the application launcher ".desktop" has not been marked as trusted. if you do not know the source of this file, launching it may be unsafe.

After finding several articles, I try to change UID in this partition (/dev/sda3) into 501 :

But it still doesn’t works. Using “chmod a+x” on *.desktop, chown ubuntu:ubuntu, allow permission in properties and another tricks giving no results.
Continue reading

How to change font bold style of php HTML in Aptana Studio

When opening HTML, CTP or another PHP-HTML files in Aptana Studio 3, i found that all using bold which is annoying for me. So, to make it to be normal fonts :

1. Go to Aptana Studio menu -> “Window Menu”

2. Type “Themes” on left search box.

3. Find element “text.html.basic” and change it “Bold” style by click it.

4. Problem solved!

Aptana delete all my files because SVN failure

I use Aptana Studio 3 and Subversive as SVN connector. After checkout some SVN repository, I got that it was failed process. There no confirmation or something alert, but suddenly all my files in the pointed folder was deleted. Yes, it entirely deleted and not in Trash.

I just luck have a Gitosis repository which have backup 1 day ago. If you curious why this happen, it because subversive plugin. So, I recommend you to use subeclipse for Eclipse or Aptana.

If you need the installation Guide, just follow this link :

How to install SVN in Aptana

How to setup git server using gitolite in Ubuntu 11.10 Oneiric

We can build git server using gitolite which also we can host into our Ubuntu. First, we wil act as client which need SSH public keys. Generate our ssh public keys and copy into /tmp by :

ssh-keygen -t rsa
cp ~/.ssh/ /tmp/

Now, we should install dependencies packages by :
Continue reading

Solving could should increase server_names_hash_bucket_size: 32 NGINX Ubuntu

After I configure several sites that have a long names in NGINX virtualhost, I restart my NGINX and got this error :

sudo service nginx restart
Restarting nginx: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: configuration file /etc/nginx/nginx.conf test failed

Well this is because my NGINX conf only limit server_name into 32 chars. We need to extend it by uncomment “server_names_hash_bucket_size 64;” in nginx.conf :

/etc/nginx/nginx.conf :

http {
server_names_hash_bucket_size 64;
# server_name_in_redirect off;


Problem solved! :D

How to disable master password in Eclipse

Master password in Eclipse is a bit annoying. We can disable this feature completely. Firstly, you should exit your Eclipse applications. Then follow this steps:

1. Delete equinox security

rm -rf ~/.eclipse/

If you use Zend PHP Eclipse or some other, this step will solve the problem.
But, if you still get annoying Master password, then go to next steps :

2. Set text file you master password
For example, I use “nopass” as my master password. So i just echo “nopass” into eclipse master :

echo "nopass" > ~/.eclipse/master

Continue reading

Problem with VIM tabnew or new buffer which reset all changes

When using VIM, usually I use new buffer or newtab for opening several files. There some anomally where everytime I open another files, my Python indentation going wrong! I don’t know what happen and try spend several hours to find the problem.

Finally, I got the problem ! See this :

setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal textwidth=80
setlocal smarttab
setlocal expandtab

Continue reading

Solve Overheat in Ubuntu 11.10 with Jupiter + VGA solution

Check this for turn off your VGA and decrease overheat fall into 57 C

After suffering overheat ( 80 Celcius ) about 2 month with Ubuntu Oneiric ( 11.10 ), finally i got my HP 431 so cool and it steady on 66 C. No Overheat anymore. Probably the main cause why this happen is VGA driver which i use ATI and there CPU lock on Maximum mode.

UPDATE: Try upgrade your BIOS. Several people have said they reduce heat by upgrading the BIOS.

My solution is by installing proprietary ATI Radeon manually and use Jupiter for “cooling down” my laptop. First, we should install ATI Radeon driver by following my previous article :

Second, we should install Jupiter on Ubuntu Oneiric by :

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

After Jupiter installed, we should enable it on systray. You will have problem to enable Jupiter on Ubuntu 11.10 that run Unity or Unity 2D. Why this Jupiter not shown on Unity panel ? It’s because we need to whitelist-ed our application into Unity panel.

To make Jupiter show up on Unity, create a file called “whitelist” :

if [ ! "$(gsettings get $SCHEMA $OBJECT 2>/dev/null || echo FALSE)" = "FALSE" ]; then
echo "Whitelisting $APP to work around flawed distribution design.."
OBJARRAY=$(gsettings get $SCHEMA $OBJECT | sed -s -e "s#\['##g" -e "s#', '# #g" -e "s#'\]##g")
if [[ "${OBJARRAY[@]}" =~ "$APP" ]]; then
echo "$APP already whitelisted, skipping"
OBJARRAY=$(echo ${OBJARRAY[@]} | sed -s -e "s# #', '#g")
gsettings set $SCHEMA $OBJECT "$OBJSET"
echo "This is not a Canonical \"designed\" product."

Note: This script taken from

Execute it by :

chmod a+x whitelist
./whitelist jupiter

Reboot your Ubuntu to make it works. After the Jupiter menu show up, switch performance mode into “High Performance”.

After this long way, you should have no overheat problem on Ubuntu. :)