Install Fedora 17 in Mac OSX with Macbook Pro


1. Setup Wireless Driver Broadcom
By default, Fedora will not detect your Wireless. You need to install broadcom-wl from rpmfusion by :

1
2
3
su -c ‘rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm’
sudo yum update
sudo yum install broadcom-wl

For manual download because you don’t have internet access :
http://download1.rpmfusion.org/nonfree/fedora/releases/17/Everything/

2. Install Development Packages

1
2
3
sudo yum install make automake gcc gcc-c++ libxslt libxslt-devel libxml2 libxml2-devel libffi libffi-devel libcurl libcurl-devel openssl-devel sqlite-devel libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 libxslt-devel
sudo yum install postgresql-server postgresql-develnmap ImageMagick git
sudo yum install yakuake shutter vlc libreoffice

3. Setup LAMPP

1
sudo yum install mysql mysql-server mysql-devel nginx php php-fpm php-common phpmyadmin apache

run “sudo mysql_secure_installation” if you don’t want root with blank password.

1
2
3
4
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
sudo systemctl start mysqld.service
sudo systemctl enable mysqld.service

For PhpMyadmin configuration is located in : “/etc/phpMyAdmin/config.inc.php”.
To make Phpmyadmin work without password, change this line :

1
$cfg[‘Servers’][$i][‘AllowRoot’]     = TRUE;        // whether to allow root login

And don’t forget to reload your webserver.

4. Skype 2.2
I love to use old Skype. You can download from http://repo.fedora.md/3rdparty/.

5. NodeJS and Redis
NodeJS and Redis is a must in software development, so we can install this both great software by :

1
2
3
4
5
sudo yum localinstall –nogpgcheck http://nodejs.tchol.org/repocfg/fedora/nodejs-stable-release.noarch.rpm
sudo yum install nodejs-compat-symlinks npm
sudo yum install redis
sudo systemctl start redis.service
sudo systemctl enable redis.service

6. Install Sun JAVA 7 in Fedora 17
Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and Download JRE & JDK RPM packages. I’m suppose to use 64-bit version. To install :

1
2
sudo rpm -Uvh jre-7u6-linux-x64.rpm
sudo rpm -Uvh jdk-7u6-linux-x64.rpm

Set JAVA PATH in /etc/profile :

1
2
export JAVA_HOME=/usr/java/jre1.7.0_06
export PATH=$PATH:$JAVA_HOME/bin
1
2
3
sudo alternatives –install /usr/bin/java java /usr/java/jre1.7.0_06/bin/java 100
sudo alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_06/bin/jar 100
sudo alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_06/bin/javac 100

7. Setup Python and Django
Please go to my other post : http://www.yodi.sg/setup-django-environment-in-fedora-17/

8. Install Google Chrome
Create a new file :

1
sudo vim /etc/yum.repos.d/google-chrome.repo

And put this code :

1
2
3
4
5
6
[google-chrome]
name=google-chrome – 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Then you can update this repo by “sudo yum update” and “sudo yum install google-chrome-stable”

9. Fix blue color terminal / console

1
cp /etc/DIR_COLORS ~/.dircolors && . /etc/profile.d/colorls.sh

10. Setup VIM for Python and Django
I use my VIM configuration : https://github.com/yodiaditya/vim-pydjango.

11. IDE
I use AptanaStudio and Sublime Text 2 for editing Python and C/C++ applications.

You can download at :
http://www.aptana.com/products/studio3/download
and http://www.sublimetext.com/2.

You can add both this IDE into Fedora menu by running Alacarte and add into it. (you need reboot to load your application in menu).

12. Install Sphinx
Sphinx search engine is also needed for development. We can install it by :

1
2
3
sudo yum install sphinx
sudo mv /etc/sphinx/sphinx.conf /etc/sphinx/sphinx.conf-default
indexer –all

13. Set Firewall and Open Port for SSH and HTTP
Fedora 17 firewall default installation will close all port.
You need go to Application -> Firewall and open several standard port like SSH, HTTP.

14. Boot application at startup
Open you terminal and run :

1
gnome-session-properties

15. Switch FN keys in Fedora
For temporary:

1
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode

For permanetly, edit “/etc/profile” and add this line

1
echo 2 > /sys/module/hid_apple/parameters/fnmode

Need more configuration? You also can see at diaspora installation for Fedora :

https://github.com/diaspora/diaspora/wiki/Installing-on-Fedora

16. Multimedia

1
2
3
sudo yum install xine
sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
sudo yum install gstreamer-plugins-ugly audacious-plugins-freeworld-mp3 xmms-mp3

Install Flash

1
2
3
sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

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.