Ubuntu 13.04 Raring installation on Macbook Pro 7.1


For the very first time, i’m very happy that Macbook Pro can works 100% on Linux (Ubuntu 13.04). I used to use Fedora 18 & 19, but there is problem in VGA (Nvidia 320M) installation. Also the driver nouveau can’t works well and gave bad influence in game development with OpenGL.

But today, Nvidia 320M works fine, no overheat, low heat, fast OS and yes, it’s Ubuntu 13.04. Let me start with first installation.

1. Ubuntu Installation dual-boot with Mac OS X Mountain Lion
We just need to choose format disk manually. Now here is kind partitions that we need :

1
2
3
1. Bios reserve (50MB)
2. /boot (200MB)
3. / and /home

After installation, we just need to hold “options” when your mac just started (hear that start sound? hold option now!)

2. Configuration Broadcom Wireless and Nvidia
Nothing specials here, just go to software update -> additional. We just need to install Linux STA Drivers and Nvidia-310 (proprietary and tested)

Use color and macbook pro display ICC to calibrate display monitor. Just select calibrate / add profile, choose display.

3. Overall installation
Follow this Ubuntu official for the rest installation : https://help.ubuntu.com/community/MacBookPro7-1/Quantal. It’s also works with Raring 13.04.

4. Development Environment
Since i’m website, mobile and game developer, I need a lot of tools and libraries to work.
Here are common libraries that i need to install

1
sudo apt-get install build-essential ia32-libs libxml2 libxml2-dev libffi6 libffi-dev libcurl3 libcurl4-gnutls-dev openssl libssl-dev libxv1 libxv-dev nmap imagemagick git yakuake shutter vlc libreoffice k3b kdepim mysql-server haproxy nginx php5 php5-fpm php5-common phpmyadmin apache2 exfat-fuse gimp inkscape alacarte wget vim lsb libpng12-dev libXtst-dev synergy ubuntu-restricted-extras hfsplus hfsprogs hfsutils rar apt-get install php5 libapache2-mod-php5 php5-mysql

Load phpmyadmin

1
sudo vim /etc/apache2/apache2.conf

And add this at bottom line:

1
Include /etc/phpmyadmin/apache.conf

If you got warning while restarting apache2 service:

1
 … waiting [Sun Jul 14 11:01:36 2013] [warn] The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.

Then just commented that line.

Also add “ServerName localhost” into “/etc/apache2/apache2.conf to solve hostname warning everytime we restart apache services.

5. Python, Django and Game Development Environment
I’m using Python and Django a lot everyday. Here is things need to setup:

1
2
3
sudo apt-get install libevent-1.4-2 python-software-properties python-pip python-dev python-mysqldb libxml2 libxml2-dev libxslt1-dev libbz2-dev libssl-dev p7zip-full rar lha unrar unzip unace unp bzip2 gzip patch libmysqlclient-dev libmysqlclient-dev libmysqlclient18 redis-server
sudo pip install virtualenv
sudo pip install virtualenvwrapper

Now, we need to edit our “~/.bashrc” and put this:

1
2
3
4
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME # Tell pip to create its virtualenvs in $WORKON_HOME.
export PIP_RESPECT_VIRTUALENV=true # Tell pip to automatically use the currently active virtualenv

And load it by “source ~/.bashrc”.

Install NodeJS, Lua and Love2D

1
2
3
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs love lua

Sun Java 7 Installation

1
2
3
4
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
1
2
3
4
java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

In case you have problem,

1
2
sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get install oracle-java7-set-default

1. SublimeText Installation
2. Skype

Add “Eclipse” or whatever application into Launcher:

1
sudo gnome-desktop-item-edit /usr/share/applications/ –create-new

More complete list that you should check it out:
http://www.howtoforge.com/the-perfect-desktop-ubuntu-13.04-raring-ringtail

Some tweak:
1. edit your Privacy settings in Sytem Settings
2. Run “gnome-session-properties” in terminal to add application that started after boot.
3. Rune “unity-tweak-tool” to auto-hide launcher.

Clean up empathy.

1
2
3
sudo apt-get autoremove indicator-messages
sudo apt-get autoremove telepathy-indicator
sudo apt-get autoremove unity-lens-shopping unity-lens-music unity-lens-photos unity-lens-gwibber unity-lens-video

To add custom icon into launcher:

1
sudo gnome-desktop-item-edit /usr/share/applications/ –create-new

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.