Full Installation Ubuntu Precise Pangolin 12.04 in Macbook Pro 7.1
Ubuntu 12.04 Precise Pangolin have been released. Make sure you are downloading amd64+mac ISO version.
If you not find this ISO, then you can go here : http://cdimage.ubuntu.com/releases/12.04/release/
Now let start install and configure Macbook Pro in Ubuntu 12.04 Precise Pangolin.
1. Wireless STA driver
Yes, you should have LAN internet connection here to get Additional Driver for downloading wireless STA driver. If you don't have any wired internet connection, then you can use several alternative like USB thethering from Android Phone . If your phone doesn't support thethering, then download wvdial .deb and get wvdial from mobile phone.
2. Install depedencies packagessudo apt-get install vim synaptic yakuake build-essential ia32-libs git subversion nmap openssh-server unrar unrar-free knotes hfsplus hfsutils hfsprogs
For Yakuake, you can change terminal environment using "xterm-256color".
3. Keyboard F12 problem
Please follow this tutorial for detail information :
http://yoodey.com/how-fix-f12-right-click-macbook-pro-ubuntu
4. Install VGA Macbook Pro in Ubuntu
Although seems Ubuntu running well, doesn't mean your VGA fully detected.
Sometimes it will show problem when you using external monitor.
So, you can start install nvidia driver by :
A. Install Nvidia current driversudo apt-get install nvidia-current
B. Edit GRUB in "/etc/default/grub" and add "nopat" in GRUB_CMDLINE_LINUX.
For instance :
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="nopat"Then update grub by :sudo update-grub
C. Reboot and enjoy your VGA
5. Installing Virtualbox and VMWare
For Virtualbox, you can download precise .deb package from :
https://www.virtualbox.org/wiki/Linux_Downloads
sudo dpkg -i virtualbox-4.1_4.1.12-77245~Ubuntu~precise_amd64.deb
Install dependency packages :sudo apt-get install libcurl3 build-essential linux-headers-$(uname -r)
After installing Virtualbox, we need to add our users into Virtualbox group from command :sudo usermod -a -G vboxusers <your-username>
For VMware, you can go to http://www.vmware.com/go/downloadplayer for downloading bundle.
6. Installing Sun Java 7 JRE & JDK
For JRE, download x64-linux.tar.gz (30MB) from http://www.oracle.com/technetwork/java/javase/downloads/jre-7u3-download....
Accept the agreement to start downloading. After then, extract and install by :
tar -xvf jre-7u3-linux-x64.tar.gz
sudo mkdir -p /usr/lib/jvm/jre1.7.0
sudo mv jre1.7.0_03/* /usr/lib/jvm/jre1.7.0/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 0
mkdir ~/.mozilla/plugins
ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so ~/.mozilla/plugins/For JDK, download at http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-download....
tar -xvf jdk-7u4-linux-x64.tar.gz
sudo mkdir -p /usr/lib/jvm/jdk1.7.0
sudo mv jdk1.7.0_04/* /usr/lib/jvm/jdk1.7.0/
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 17. Install Flash Player 64-bit nativesudo apt-get install adobe-flashplugin
8. Development, Python and PHP
Now we installing some Python stuff :
sudo apt-get install python-setuptools python-pip python-dev
sudo pip install pyflakes
sudo pip install pep8
sudo pip install pylintFor Django development, please follow my another guide tutorial :
http://obroll.com/setup-django-1-3-development-using-virtualenv-in-ubuntu/
Website Development
sudo apt-get install screen openssh-server imagemagick unzip zip build-essential nmap nginx php5-fpm php5-mysql mysql-server php5-mysql phpmyadmin apache2-threaded-dev php5-dev php-pear
apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin libapache2-mod-wsgi python-mysqldb
sudo a2enmod rewrite
sudo a2enmod wsgi
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
sudo rm -rf /etc/nginx/sites-enabled
sudo ln -s /etc/nginx/sites-available /etc/nginx/sites-enabledEdit "/etc/nginx/sites-available/default" port into 81 then restart both webserver service.
9. QT4 dependency.
To avoid "Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap" while executing qt4 apps :sudo apt-get install gtk2-engines-pixbuf
10. VIM for Python and Django Development
cd ~/
git clone https://github.com/yodiaditya/vim-pydjango
ln -s ~/vim-pydjango/.vim ~/.vim
ln -s ~/vim-pydjango/.vimrc ~/.vimrc
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
vim ~/.vimrcDo ":BundleInstall" when editing .vimrc for installing bundle packages.
Edit "~/.bashrc" and add this on bottom line :PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")$ '
Or with Color :PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "[\[\e[34;1m\]%s\[\e[0m\]]")$ '
Reload terminal by open new-tab or "source ~/.bashrc".
12. Hide Unity side menu
Go to "System Settings" -> Appearance -> Behavior -> Auto Launcher Hide -> On.
Also, you can increase sensitivity by sliding the rate .
13. Another packages
Open synaptic and search keyword for ¨flash¨, ¨fluendo", "gstreamer" and "pidgin".
I usually download separate .deb for Skype, Chrome and Opera.
14. Ubuntu settings
A. Reconfigure the touchpad
System Settings -> Mouse and Touchpad -> Touchpad: choose "Two-finger scrolling".
double tap behives as right click, triple tap is middle click.
B. Dim
Disable dimming / brightness fading: go to System Settngs -> Screen: uncheck "Dim screen to save power"
C. Suspend
Don't suspend while lid off the monitor. Go to "System Settings -> Power" and choose when lid off -> Doing nothing.
D. Activity logger history in Unity Menu
Just search "privacy" in Unity menu sidebar and you can turn off "Record" feature here.
15. Sound
Edit "/etc/modprobe.d/alsa-base.conf" and put this at bottom line :options snd-hda-intel model=mbp55
This is all my Ubuntu configuration using Macbook Pro for developing Python + Web applications.
Add new comment