Turn Your Ubuntu Intrepid Into Mac OSX Leopard

apple linuxThis is an updated version of my previous post Turn Ubuntu Hardy into Mac OSX.

That post was written six months ago and many things have changed during this period of time: release of Ubuntu Intrepid, newer Mac4Lin theme, better globalmenu applet etc. As such, I have decided to rewrite this tutorial for the Intrepid platform.

Disclaimer: This tutorial was based on Ubuntu Intrepid and Mac4Lin RC1 themes. I don’t guarantee that it will work on other distro or other version of Ubuntu.

Download the Mac4Lin themes and extract it to your Home folder. You should see a Mac4Lin_v1.0_RC1 folder that contains all the configuration files in your Home directory.

Preparing the installation path

Next, in your Home directory, press Ctrl + H to reveal all the hidden files. Check if any of the three folders .themes, .fonts, .emerald exist. If not, create three folders and name them .themes, .fonts, .emerald. Create another folder within .emerald folder and name it themes.

Installing the Mac4Lin themes

Open a terminal, type in:

cd Mac4Lin_v1.0_RC1
sh Mac4Lin_Install_v1.0_RC.sh

This will install the Gnome themes (window border and icons), change the wallpaper and the panel background.

During the installation process, the installer will ask you for root access in order to install certain components (refer to the image below). Type y to continue.

Mac4Lin installer

After the installation, your desktop should look something like this:

mac4lin initial desktop

Installing the AWN dock

(The AWN dock may/may not work in all machine. If you find that it does not work after following the instructions below, you may want to try out Cairo dock that is less demanding on the machine.)

The AWN dock requires a compositing manager to work. If your system supports Compiz, it will be able to run AWN as well. if not, we have to install the X compositing manager.

Go to System -> Preferences -> Appearance, click on the Visual Effects tab.  Click on the Extra radio button. If you see the following image, then your computer does not support Compiz. (If you don’t see the image below, proceed directly to install AWN.)

compiz not supported

You have to install the alternative X composition manager

sudo apt-get install xcompmgr

Add it to your auto-start list. Go to System -> Preferences -> Session. Add the following:

xcompmgr-autostart

Install AWN

The AWN dock is already included in the Intrepid repository, so you can easily install it by clicking this link. Alternatively, you can also type the following command in the terminal:

sudo apt-get install avant-window-navigator

Once the installation is done, go to Preferences -> AWN Manager. On the left pane, click on the Themes. On the right, click Add. Navigate to the Mac4Lin_v1.0_RC1 folder. Open up the AWN folder and select Mac4Lin_AWN_v1.0_RC.tar.gz. Click Open. The AWN theme should be installed now. Check the radio button beside the theme and click Apply. Click Close.

Applying Mac4lin AWN theme

Before we launch the AWN, we need to remove the bottom panel so that there won’t be an overlap. At the bottom panel, right-click the mouse and select Delete This Panel. Activate AWN by going to Applications -> Accessories -> Avant Window Navigator. You should see the AWN loading up in the bottom of the screen. To add applications to the dock, click on the Applications at the top panel and navigate to the particular application you want to add. Drag the application icon to the dock. That’s it. You should see something like the image below:

mac desktop with awn

To start AWN everytime you log in, go to System -> Preferences -> Sessions. Click Add. Fill up the following:

add AWN to startup

Click Add, follow by Close. AWN will now automatically load when you login to your computer.

Installing OSX font

Go to System -> Preferences -> Appearance. Click on the Fonts tab Change the following field to the same as the image below:

Mac4lin font setup

Make sure the Subpixel smoothing (LCDs) button is checked. Click Close.

Installing Global menu

There is a repository for Ubuntu Intrepid that you can add to the sources.list, but it is not the updated version (0.6) and it is buggy. Instead, we will download the latest version (0.7.1) from the code homepage. In the future when the repository is updated to the newer and more stable version, I will update this post again.

For 32-bit machine

Download gnome-globalmenu-0.7.1-1.fc10.i386.rpm to your Home folder from the Globalmenu Google code site.

Note that the file is of rpm format. We need to use alien to convert it to deb format.

In the terminal, type:

sudo apt-get install alien
sudo alien --scripts gnome-globalmenu-0.7.1-1.fc10.i386.rpm

This will create a gnome-globalmenu-0.7.1-1.fc10.i386.deb file in your Home folder. Double-click on the deb file to activate the installer. Click Install Package to install Globalmenu.

install globalmenu

For 64-bit machine

Open your text-editor (Applications -> Accessories -> Text Editor).

Copy and paste the following:

# Uncomment to load the GTK module
export GTK_MODULES=globalmenu-gnome
# Uncomment to tell the GTK module to open a Gtk
# TreeView for all menus in the application you start.
# export GNOMENU_FUN=1
# Uncomment to disable global menu.
# export GNOMENU_DISABLED=1
# Uncomment to print a lot of debugging messages
# export GNOMENU_VERBOSE=1
# Uncomment to save the debugging messages to the given file.
# export GNOMENU_LOG_FILE=/tmp/gnomenu.log
# uncomment to disable the plugin for specific programs.
# export GTK_MENUBAR_NO_MAC="fast-user-switch-applet"

Save the file as .gnomerc in the Home folder.

In your terminal,

gksu gedit /etc/apt/sources.list

Add the following line to the end of the file. Save and close.

deb http://ppa.launchpad.net/globalmenu-team/ubuntu intrepid main

Back in your terminal,

sudo apt-get update
sudo apt-get install gnome2-globalmenu


Now, on the top panel, remove all the icons and menu from the left side of the panel. Right-click on the icon and select “Remove from panel”.

On the right of the top panel, remove the logout icon. Still on the right hand side of the top panel, right click and select ‘Add to panel‘. Scroll down the list and add ‘Search for files‘. This will add the spotlight icon to the panel.

add spotlight search to panel

On the left of the top panel, right click and select ‘Add to panel‘. Scroll down the list and add Main Menu and Global Menu Panel Applet.

add globalmenu to panel

The Globalmenu might not appear or work well after you have added it. Logout and login again and you should see the globalmenu working perfectly on the top panel.

Right click on the globalmenu and select Preferences. Check “Enable Global Menu” and unchecked “Icon”.

globalmenu preferences

globalmenu

The globalmenu is compatible with most of the GTK application. However, some programs, such as Firefox will not work with it.

Creating Dashboard effect

We will use a combination of screenlets and Compiz widget plugin to achieve the dashboard effect.

If you have not installed Screenlets, click here to install.

If you have not installed Compiz Configuration Settings Manager, click here to install.

Alternatively, you can also type the following command in terminal to install:

sudo apt-get install screenlets compizconfig-settings-manager

Go to System->Preferences->CompizConfig Settings Manager. On the Left, click on Desktop. On the right, put a check beside ‘Widget layer

Go to Applications –>Accessories->Screenlets. Activate the widgets that you want to display. Right click on the widget and select ‘Properties’. Go to Options tab and select ‘Treat as widget’. Do this for all the widgets that you have activated.

You can now see your dashboard in action by pressing F9.

Fixing up some small detail

Until now, your desktop should be very close to a Mac desktop, but there are still some small details such as the Gnome icon at the top panel, mouse cursor etc. Let’s fix them up now.

Replace the apple logo

1. Download the apple icon (Right-click and select “save link as”).

2. Go to Places –> Home Folder. Press Ctrl + H to reveal the hidden files.

3. Navigate to /.icons/Mac4Lin_Icons_v1.0_RC/scalable/places. Scroll down to find the images distributor-logo.png, gnome-main-menu.png, main-menu.png and start-here.png. Note that all of them are the same image. Rename them to distributor-logo.png.old, gnome-main-menu.png.old, main-menu.png.old and start-here.png.old respectively.

4. Now, with the apple icon that you have downloaded, make four copies and rename them to distributor-logo.png, gnome-main-menu.png, main-menu.png and start-here.png. Copy and paste all of them to the folder.

5. Logout and login again. The logo at the top panel should change to the apple icon now.

Changing mouse cursor

Go to System –> Preferences –> Appearance. Select Customize. Click on the Pointer tab. Select Mac4Lin_Cursors_v1.0_RC. Click Close.

Configuring usplash screen

Until now, you have done up the interior, it’s time to fix the exterior: usplash screen and grub screen.

Install startupmanager by clicking here or type the following command in the terminal:

sudo apt-get install startupmanager

Go to System -> Administration -> Startup-Manager. Click on the Appearance tab.

startup-manager

Press the Manage bootloader themes button. This will pop up a window allowing you to select the background image for the GRUB.

Click on the Add button and navigate to File System –> Home –> Username –> Mac4Lin_v1.0_RC1 –> GRUB. You should see three files. Refer to the below screenshots on how each file looks like. Pick the one that you like best.

Back to the main window, select the image from the drop down bar. Remember to check the box “Use background image for bootloader menu”.

There is a bug in Ubuntu Intrepid that prevent the user from changing the usplash screen. We have to do a workaround using splashy. Here’s the hack for it:

Remove the default usplash

sudo apt-get autoremove usplash

Download these two files to your desktop:

libsplashy1_0.3.10-1_i386.deb
splashy_0.3.10-1_i386.deb

Double-click the downloaded files to install.

Download the osx-splash splashy theme file to your Home folder.

In your terminal,

sudo splashy_config –i ~/osx-splash.tar.gz
sudo mv /etc/splashy/config.xml /etc/splashy/config.xml.old
sudo cp /etc/splashy/themes/osx-splash/config.xml /etc/splashy/config.xml

Now, we need to edit the GRUB file

gksu gedit /boot/grub/menu.lst

Scroll down till you find the kernel entry. Append the term vga=792 to the end of the kernel line (see screenshot below). Save and close.

edit grub for splashy

That’s it.

Complete Screenshots

Grub screen

Mac4Lin_1.0_GRUB1

Login screen

intrepid osx login screen

Intrepid Mac OSX desktop

ubuntu intrepid mac osx desktop

Intrepid Mac OSX desktop with dashboard effect

Intrepid OSX desktop with dashboard effect

Uninstallation

If you want to change the theme back to the original setting, here is what you need to do:

1. Remove the globalmenu from the top panel

2. Remove all the installed files:

sudo apt-get autoremove splashy libsplashy1 gnome-globalmenu

3. Restore the usplash theme and remove the vga=792 from the GRUB file.

sudo apt-get install usplash

4. Uninstall the Mac4Lin themes

cd Mac4Lin_v1.0_RC
sh Mac4Lin_Uninstall_v1.0_RC.sh

Enjoy!

References: Ubuntu Forum, Splashy, Bauer-Power

Damien Oh is the owner and chief editor of Make Tech Easier

Tags: , , ,

 

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

26 pingbacks/trackbacks (Click to open)

262 Responses

  • You_Gotta_Be_Kidding! says:

    On the other hand, the applets for AWN are really nice – but, please, do away with that annoying bounce, and make AWN do what people like in the OSx system!

    Reply

  • Dony says:

    Would this work with Kubuntu 8.04? My lappy is too weak to run Ubuntu.
    Thanks!

    Reply

  • loboloco says:

    to install splash, i had to use this command:
    dpkg –force-overwrite -i /var/cache/apt/archives/splashy_0.3.13-3ubuntu1_i386.deb

    known bug: https://bugs.launchpad.net/ubuntu/+source/splashy/+bug/328089

    Reply

  • loboloco says:

    to install splashy, i had to execute this command:
    dpkg –force-overwrite -i /var/cache/apt/archives/splashy_0.3.13-3ubuntu1_i386.deb

    known issue: https://bugs.launchpad.net/ubuntu/+source/splashy/+bug/328089

    Reply

    loboloco Reply:

    to install splashy, i had to execute this command:
    dpkg –force-overwrite -i /var/cache/apt/archives/splashy_0.3.13-3ubuntu1_i386.deb

    known issue: https://bugs.launchpad.net/ubuntu/+source/splashy/+bug/328089

    tested this tutorial on ubuntu 9.04

    Reply

    Giles Reply:

    I have problems installing splashy as well and your command does not work for me.

    Reply

  • pouet says:

    imho, it renders much better with Cairo-Dock2.

    Reply

  • dannyt says:

    works with jaunty :) then again so did the hardy one

    Reply

  • George Anton says:

    I used this tutorial on latest 9.04 Jaunty Ubuntu and spashy works, so I downloaded the .so theme from here instead of removing the splashy.
    http://www.gnome-look.org/content/show.php?content=75309

    On jaunty all the splash instructions in the tutorial do not work.

    Reply

  • Gergo says:

    Hi!

    I have a problem on Ubuntu 8.10.

    After i copy the deb http://ppa.launchpad.net/globalmenu-team/ubuntu intrepid main line in the sources.list, and i type sudo apt-get update in the terminal, it writes the following lines:

    W: GPG failure: http://ppa.launchpad.net intrepid Release: the following signatures are not correct because the public key cant be reached: NO_PUBKEY 7889D725DA6DEEAA

    sorry for the translation, i translated it from hungarian language.

    and if i type in sudo apt-get install gnome2-globalmenu, then it says:
    E: cant find the following package

    what can i do in this case?

    thank you!

    Reply

  • GaToR says:

    Aye. I noticed in the second picture, where Applications, Places, and System should be, it says what a real Mac should say. I didn’t catch that in the guide? Is that only for a Mac, or did I just miss it? I look through the guide again, and didn’t see it. Help would be great. Thanks.

    Reply

  • jose says:

    Initially the dock bar using awn came … but when i restarted the system there is no dock-bar.. everything else is fine…

    can someone sort it out..

    Reply

  • CR says:

    I was just looking for just one Mac OS X feature I wanted on my ubuntu, the “Exposé for all windows”, default to F9 key: http://guides.macrumors.com/Expos%C3%A9

    This seems like a very nice guide, too bad it ain’t automated or else I’d try it. Anyway, I found it out by myself and so I just wanted to say you forgot to mention “Scale windows” on Compiz, that does exactly that: Expose on Ubuntu. ;)

    Reply

  • Mike Freeman says:

    Tried this with Debian. Mostly worked, but had trouble with gnome-globalmenu. It would only show the menu that either says “Desktop” or the title of the program, but not the rest of the menu. Also, while some programs were really beautiful, others (such as synaptic) had the old, blocky default GTK theme, which is absolutely ugly and Windows 95-like.

    Any ideas? Thanks!

    Reply

  • andrew says:

    how do i uninstall avant dock?

    Reply

    Guy Fawkes Reply:

    @ andrew

    Google is your friend. ^_^

    Reply

  • loboloco says:

    probably with the command:
    sudo apt-get remove avant-window-navigator

    or sudo apt-get remove –purge avant-window-navigator (remove packages and config files too)

    Reply

  • loboloco says:

    probably with the following command:

    sudo apt-get remove avant-window-navigator

    or

    sudo apt-get remove –purge avant-window-navigator (too remove packages and config files too)

    Reply

  • Darkmage says:

    Works awesome with Ubuntu 9.04 Jaunty Jackalope. :)

    Reply

  • Simon says:

    Very Nice, i love it…really looks & feel like a MAC

    Reply

  • tsgood says:

    After installing Xcompmgr and trying to start Avant-window-navigator I get this:

    Warning:Screen isn’t composited. Please run compiz (-fusion) or another compositing manager. If I

    ps ax | grep xcompmgr

    the process is not running. Compiz is not running either.

    When I then load xcompmgr the AWN appears briefly at bottom then disappears and the Screen isn’t composited message appears again (3 dialog boxes).

    Grep still shows process as not running. How do I tell what compositer is running?

    H

    Reply

  • Can says:

    First of all thanks for the amazing theme !

    But i have a small problem with my top menu. The bacground image for the top menu is not shown behind the “applications, places and system”. Their background colour is grey. How can i solve this problem.

    Can.

    Reply

  • Hal says:

    Hi.

    Will this work with Karmic Koala?

    Cheers, Hal

    Reply

    Trung Reply:

    First, I want to thank Damien for putting this together. I’ve tried the Hardy version and so appreciate this one :D.

    Yes. These instructions will work with Karmic Koala. I just did it, and am now enjoying it. Everything works as it should, except I can’t get the apple boot up splash and login, as seen in the screen shots. I’m still getting the Karmic’s Ubuntu spot light and login screens, even I’ve read and followed the instructions for the last part a few times :D. During boot up, I can see the “splashy: Error connecting.”

    Another thing I tried to avoid is following everything here to the dot, since it was for Intrepid. Where ever possible, I tried to use Karmic packages instead. For example, the gnome global menu, splashy, etc. You’ll have less conflicts with package dependencies, and they play nice with each other ;). Btw, the font Bitstream Vera Sans Roman is not available.

    Reply

    Mike Reply:

    Hi

    I have just seen that you have converted your ubuntu 9.10 into leopard. I am having problems with this. Which is the home folder that you placed the newly downloaded files into? Also did you have to change the name from hardy to karmic?

    Best regards
    Mike

    Reply

    Ace De Vera Reply:

    Yes were able to do it. The thing with the usplash is that, its no longer being used by 9.10 , instead they use XSPLASH.

    Ace De Vera Reply:

    yes were able to do it, except for the USPLASH because 9.10 KARMIC KOALA uses usplash no more, instead it uses the newer XSPLASH

    Reply

    Ace De Vera Reply:

    Hey the font is AVAILABLE Bitstream vera sans ROMAN

    Reply

  • Ace De Vera says:

    HEY GUYS , good news, this trick even works for UBUNTU 9.10 KARMIC KOALA, I got all the effects entailing the trick except for the usplash which is being shown when the system boots up, because 9.10 no longer uses usplash, but instead, xsplash. Even more, i still get to have my compiz animation and effects work without problem. SO ITS LIKE MAC OS LEOPARD plus compiz. THANKS and appreciation and praises goes to the author of this program.

    -from the Philippines

    for questions just email me,

    meraldacedevera@gmail.com

    than

    Reply

  • Kool says:

    Thamk yu somuch this stoped me from spending hours looking forsome thing to work on jaunty jackalope

    Reply

  • zygoid says:

    Great effort. But why not just install Lin-X and have the look and feel of Leopard without the extra installation procedures? I have Lin-X and it works just fine. After all, it is based off Ubuntu 8.10.

    Reply

Leave a Comment




 

Sign in with Twitter

Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again