Simple way to execute a command on startup in Ubuntu

I would like to share with you a simple way to execute commands on startup in Ubuntu. This tip is very useful for example I have an issue on the Netatalk service that do not run properly so every time I have to run the command to restart the service after I login to Ubuntu.

All commands that you need to be executed must be stored in etc/rc.local setting. Open terminal then execute this command:

sudo nano /etc/rc.local

Add the following command to restart Netatalk service, right before “exit 0":

sudo service netatalk restart
exit 0

That’s it! It’s so simple. I have solved the Netatalk service problem for now. So I have more time to take a look what is the problem with the Netatalk service.


Mac OSX Mountain Lion 10.8.5 Just Released


Mountain Lion 10.8.5 just released and available for download. All users with 10.8.4 are recommended to upgrade.

I just upgraded my macs without any issues. All apps work fine including my Time Machine setup using shared folder in Ubuntu. No additional setting needed.

The New Arduino Esplora

The New Arduino Esplora

Arduino Esplora is a new Arduino board just launched today. It has game joystick shape.

The Esplora uses an Atmega32U4 AVR microcontroller with 16 MHz crystal oscillator and a micro USB connection capable of acting as a USB client device, like a mouse or a keyboard. Esplora also has lots of input/ouput:

– Analog joystick with central push-button two axis (X and Y) and a center pushbutton.
– 4 push-buttons laid out in a diamond pattern.
– Linear potentiometer slider near the bottom of the board.
– Microphone for getting the loudness (amplitude) of the surrounding environment.
– Light sensor for getting the brightness.
– Temperature sensor reads the ambient temperature
– Three-axis accelerometer measures the board’s relation to gravity on three axes (X, Y, and Z)
– Buzzer can produce square-waves.
– RGB led bright LED with Red Green and Blue elements for color mixing.
– 2 TinkerKit Inputs to connect the TinkerKit sensor modules with the 3-pin connectors.
– 2 TinkerKit Outputs to connect the TinkerKit actuator modules with the 3-pin connectors.
– TFT display connector connector for an optional color LCD screen, SD card, or other devices that use the SPI protocol.

With a lot of features so you can do almost everything using Esplora.

Painful Upgrade to Mountain Lion

I have been waiting for Mountain Lion since its preview release. It always make me feel impatient for something new from Apple. Then the new OSX was released few weeks ago. I immediately opened the App Store to download the installation.

It was a very surprise that the download only took few minutes, the message says the download is finished.  Something is wrong. I opened the installation, and it says “this copy of the install OS X Mountain Lion application can’t be verified. it may have been corruped or tampered with during downloading”. What is that? I checked to Application in Finder. The file size is only 74MB.

My next default procedure when find something like this is checking the error to Google. Many people have same problem. Then I went to Apple communities support page. There are few similar problem with various solutions. So I tried every single possible solutions, one by one. No luck. It always stops at 50 or 74 MB then end up with the same message.

This problem already taken my two sleepless weekends. I redo everything again, did each step carefully, and end up with the same error. I can’t believe this problem happen in Apple product. I gave up. That’s it.

I am happy with OSX Lion. I think I need no new features that mostly are for social media apps. I don’t do it on my Mac. I will try again after the next minor release, 10.8.1, may be.

So I sent an email to Apple Support, tell everything what I have done, and asking for refund. The support lady replied on the next day, ask me to go to support page, exactly the same procedure that I have done.

Ok. Why not give one more try? I checked again what other people have done, check the log file in Console, examine the network, tried to download other apps. I have no problem with my Mac, I have more than enough free space, no issue on the network, and the internet connection is also good.

Until I realized that I missed one solution in communities support that suggested to use Hotspot shield. I simply ignored the solution. It just doesn’t make sense that this can solve the problem. Hotspot shield is for security connection. I have upgrade many other OSes, Linux, Windows, and of course upgraded OSX many times without having Hotspot shield and never had any issues.

But that is it! After setup the Hotspot shield, I redo everything again. I removed the installation program at Application in Finder. Deleted cache under ~/Library/Cache and temp files in folder. Then I opened the Apple Store again, download the Mountain Lion again.

I checked the progress bar with my fingers cross. I opened the Purchases in App Store, and finally saw the progress bar moving slowly. Then at the first time I saw it passed the 74MB size. Wow, this must be good. I leave it open and went to bed. In the morning it passed 1GB! So I went to work and leave my Mac finish the download. Yes, I found it was completed when I was home in the evening. Then the rest step is very easy and run very smooth.

I haven’t tried anything yet but writing to this blog. I already seen on the dock that there is a sign on the icon that My Virtual Box doesn’t work. Pfviewh! At least I have finished the upgrade. I will find out solution for the next problem later.

So this painful upgrade takes two full days to download the installation package. It also took my three weekends to redo every steps with failures and to find a right solution for the problem I had. What a frustrating upgrade I have ever done from Apple. And I still can’t believe that Hotspot shield solve the problem, and I still don’t know what causing the problem.

Macbuntu Precise Pangolin Wallpaper

I just completed the upgrade to Ubuntu 12.04 Precise Pangolin. I get to like the new look of Unity and the HUD simplicity design.

Macbuntu Precise Pangolin on Wood 1280×1024


So I created a new natural, simple and clean wallpaper, to make it look nicer. I took the idea of this nice text design from Oneiric Ocelot wallpaper by Tux-planet. The text is blended to the wood skin from, and give a burned-pressed effect on the wood.

The logo is from the two OS that I use, my favorite systems, Mac and Ubuntu, that work together for my daily work.

Yes, it says Macbuntu, actually it is my work-in-progress to find the best Macbuntu theme for Pangolin. Tell me if you like it.

Upgrade Netatalk

At last I have a chance to upgrade new updates of Netatalk 2.2.2 that already released two months ago.  The Time Machine and my shared folders work great with no issues. I use Ubuntu 11.04 and my Mac use latest version OSX Lion 10.7.3.

I see that new features are not really for Ubuntu, but there are some updates and bugs fixes that are useful to users. So it is recommended to upgrade for users who uses version 2.2.1.

This article is for you who already used Netatalk 2.2.1 and follow this post. If you are new to Netatalk, please follow the steps in that article. Read more of this post

Set Virtualbox machine to separate desktop space in OSX Lion



One of new features in OSX Lion that I found very helpful is the icon at top right corner of every window. When you click it, the application will automatically open in a new desktop space. You can easily switch between working application, especially if you use a track pad or magic mouse.

Unfortunately many applications are not natively support this feature yet. It is a bit annoying that to switch between application you have to use a lot minimize-maximize icon, or run them in smaller windows then switch manually. This is not a problem anymore if you have upgraded to version 10.7.2. There is a new great feature answers this problem that I have been waiting for. Now you can manually manage spaces, rearrange them as you like easily.

One of example application that perfectly fit for this feature is virtual server application. Ideally every OS is running in separate desktop window space. You will feel really like working in different environment when you switch between each machine as if you have many dedicated machines. Since I use VirtualBox, I will show you how to do it in VirtualBox. The latest version of VirtualBox still not supports this feature.

Open VirtualBox, run your virtual machine, don’t change the window to fullscreen, after it is completely running, open Mision Control. You will see all opened windows, and opened desktops (with smaller window) at the top of the screen. Drag the virtual machine window that you wish to move to the top right area until a new window with “+” (plus) sign appear, then release your mouse to drop there. This action will create new desktop window. You can rearrange the order of opened desktops. Click the desktop that running the virtual machine, from there you can activate to full screen mode.

To remove the desktop, open the Mission Control, move your cursor to the desktop window that you want to remove, you will see the remove “X” icon. Click it to remove.  You can save your preferences in Mission Control Preference.  Open System Preferences, select Mission Control, set to Automatically rearrange spaces based on most recent use.

Manually rearrange full-screen apps, spaces in OS X Lion 10.7.2