[HOWTO] Uninstall docker from Mac OS X

So, you have installed docker using the official installer in your OS X and don’t want to use it anymore for some reason. Here is how you can get rid of it completely. Open a terminal and run the following commands:

cd /tmp
wget https://raw.githubusercontent.com/docker/toolbox/master/osx/uninstall.sh
chmod +x uninstall.sh
sudo ./uninstall.sh
rm ./uninstall.sh

[HOWTO] Show space, tabs and newlines (invisibles) in Atom 1.x

The default setting in Atom 1.x seems to be to not show the invisible characters. I tried to search how to enable this but I only found answers for old version . I had to go to the documentation page which was not easy to find so I am posting the solution here.

To enable showing invisible characters, all you have to do is open config.cson file (Atom->Open Your Config on Mac OS X) and add showInvisibles: true under editor so that the config file looks like the following:

    invisibles: {}
    showInvisibles: true

Hope this helps!

[SOLVED] How to fix the error “locale: Cannot set LC_CTYPE to default locale: No such file or directory” when “ssh”ing from Mac OS X

This happens because ssh sends a LANG environment variable. If we configure ssh to stop sending the variable, the error should be fixed.

sudo nano /etc/ssh/ssh_config

Look for line:

   SendEnv LANG LC_*

And uncomment it so that it looks like:

#   SendEnv LANG LC_*

If you still see the error, generate the locales on the machine you are connecting to, which looks like the following:

sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales

[HOWTO] Firebug on Firefox 6

Firebug is not officially compatible with Firefox 6 since as of this writing, Firefox 6 is on early alphas. However, forcing compatibility works with it. For that, just install Nightly Tester Tools addon and in Tools>Nightly Tester Tools, check “Force Addon Compatibility” and restart Firefox. Now, you will be able to install and use Firebug.

[HOWTO] Enable sound in Mac OS X Snow Leopard 10.5.x or 10.6.x running in VirtualBox

I have recently installed Mac OS X Snow Leopard 10.6.3 with iATKOS 3 v2 disk as guest OS in VirtualBox 3.2.12 with Debian host. After fixing the video resolution issue, I noticed that there was no sound. However, VirtualBox Forum user OmegaX has written a sound driver for Mac OS X 10.5.x and 10.6.x. It can be downloaded from here. Since I don’t have Xcode installed, and since I did not want to go through the hassle of installing the kext manually, I downloaded the binary installer, unpacked it by double clicking on it and installed it. It seems to take forever, but it installs successfully. The sound is working fine after a reboot.

[HOWTO] Increase/Change Resolution of Mac OS X Leopard inside VirtualBox

I have installed iATKOS S3 v2 inside VirtualBox running on Debian. It can be simply installed like any other Operating Systems, but if you choose Operating System as Mac OS X Server, you must uncheck Enable EFI in the settings dialog.

If you wish to install, make sure to install latest VirtualBox (at least v3.2.x) first.

After the installation is ready, I was having problems with resolution. The only resolution that was available was 1024×768. To change it, I performed the following process.

I. Change com.apple.Boot.plist
1. Open up Finder from the dock (left most icon by default).
2. Open the Partition where you have installed Mac OS X under Devices.
3. Now, if you have an Extras directory in root, look for com.apple.Boot.plist. If you don’t, go to /Library/Preferences/SystemConfiguration/. You should see com.apple.Boot.plist
4. Copy the file com.apple.Boot.plist to Desktop.
5. Open the file on the Desktop with text editor (TextEdit).
6. Look for the following text:


If this value exists, the next line should have something like this:


Change it to whatever resolution your monitor supports.
If the value does not exist, add the following before </dict>

        Graphics Mode

Make sure, you have entered proper resolution for your monitor.

The following is my complete com.apple.Boot.plist:

	Kernel Flags
	Boot Graphics
        Quiet Boot
        Graphics Mode

7. Save the file to Desktop and close TextEdit.
8. Now, drag the file on the Desktop to the folder you copied it from. Confirm to Authenticate and Enter your password. Confirm to replace file.
9. Shut down Mac OS X.

II. Add Custom Video Mode as extradata to VirtualBox Configuration
1. Note your Virtual Machine Name for Mac OS X and quit VirtualBox. It is the name displayed in the Left Pane of the VirtualBox window.
2. Now, open up Terminal (or command prompt if you are using Windows) and run the following command (not as it is, make sure to make modifications. See below):

VBoxManage setextradata "Virtual Machine Name" "CustomVideoMode1" "_required_X_resolution_X_colordepth"

For example, if you have a virtual machine named “Mac Test” and want to set a resolution of 1440×900, you must run the following command:

VBoxManage setextradata "Mac Test" "CustomVideoMode1" "1440x900x32"

Now, start VirtualBox and start the Virtual Machine, Mac OS X should now use the new resolution.

Hope this helps.

[HOWTO] Install Firebug in Firefox 4

The latest stable version of Firebug is 1.6 which is compatible with Firefox 3.x. If you have Firefox 4 as your default browser, you may be miss this extension. Firebug 1.7 is under development and the latest version available at the time of this writing is 1.7X.0a7. You can install it from Firebug 1.7 releases page. Note that it is still in alpha stage of development and may have several bugs.

[VIEW] Ubuntu 10.04 Title Bar Buttons stay on the Left with changed order

Here is a comment from Mark Shuttleworth on the bug
[Master] Window Control buttons: position/order/alignment :

Thank you to everybody who has participated in this discussion.

The final decision on window controls for 10.04 LTS is as follows:

– the window controls will remain on the left, however
– the order will change to be (from left) close, minimize, maximise

The decision is based on the view that putting the close button in the corner will be most familiar to many users, even if the particular choice of corner is not.

For the avoidance of doubt, this is not a comment dependent on the date 🙂

Our intent is to encourage innovation, discussion, and design with the right of the window title bar. We have some ideas, and others are already springing up in the community. We welcome participation on the Ayatana list, where those can play out. This will be a fruitful topic for the design track at UDS in Brussels in May.

This bug is now marked wontfix. Please focus ongoing participation on the opportunities for innovation that this opens up. The decision as to the window controls location and order itself is now final, and as they say in the old newspapers, no further correspondence will be entered into.

My Opinion
I think the idea of moving the buttons (maximize, minimize, close) to the left side was not a good idea in the first place. It contradicts with the default layout of GNOME DE (and hence almost all other distributions using GNOME) and does not provide any value (as of now). Also, doing this starting from an LTS release was not a good idea at all. It is not difficult to adapt to the changes (I already have adapted to the latest mac like changes) for someone who uses Ubuntu as the only OS, but since Ubuntu is widely used in PCs, alongside Windows, it will be difficult for a user to use Windows and Ubuntu. It is easy to have another layout (just by switching to a different theme or following my older post), but still it is not a good out of the box experience.
The other thing that concerns me here is that Shuttleworth said “Ubuntu is not democracy” and trying to turn into next Steve Jobs. Ubuntu is by far, the most popular Linux distribution, but with steps like this, it could turn around very easily.

What do you think?

[SOLVED] Gtk-Message: Failed to load module “gnomenu-panel”

I am using globalmenu 0.7.9 (Mac OS X like Global menu for Gnome) from the globalmenu-team PPA (Karmic as Lucid is not available now) in my Ubuntu 10.04 Lucid Lynx. I get the following error on terminal when I try to launch any gtk applications from the terminal:

Gtk-Message: Failed to load module "gnomenu-panel": libgnomenu-panel.so: cannot open shared object file: No such file or directory
Gtk-Message: Failed to load module "globalmenu-gnome": libglobalmenu-gnome.so: cannot open shared object file: No such file or directory

However, the gnomemenu-panel works fine, I wanted these messages to not appear.
I opened up /usr/lib/gtk-2.0/modules and found that the plugin had different files than listed in the error message. To fix the problem, I just created symbolic links to the existing files. This is how I did it from the terminal: