Fedora 15 Macbook Pro 5,3

I’ve install Fedora 15 Alpha KDE edition so this is what follows:

Install RPM Fusion repository:

# rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpmfusion
# rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpmfusion

Add ATRPMS repository but leave it disabled:

cat < /etc/yum.repos.d/atrpms.repo
[atrpms]
name=Fedora Core \$releasever – \$basearch – ATrpms
baseurl=http://dl.atrpms.net/f\$releasever-\$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled = 0
EOF

Install NVIDIA

# yum install kmod-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i?86

Create the config file:

# nvidia-xconfig

Edite the file and add some bits under the Driver for nvidia:

# vi /etc/X11/xorg.conf

Option “Coolbits” “1”
Option “RegistryDwords” “PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefaultAC=0x3”

Keylight

1) # chmod a+w /sys/devices/platform/applesmc.768/leds/smc\:\:kbd_backlight/brightness

2) create a shell file in /usr/bin. Call it keylight. Inside the file write

# vi /usr/bin/keylight

#!/bin/bash
current=$(cat /sys/devices/platform/applesmc.768/leds/smc\:\:kbd_backlight/brightness)
new=$(($current$1))
if [ $new -ge 255 ]; then
new=255
fi
if [ $new -lt 0 ]; then
new=0
fi
echo $new > /sys/devices/platform/applesmc.768/leds/smc\:\:kbd_backlight/brightness

3) make the new file executable
# chmod a+x keylight

4) If everything is fine exit super user. You should be able to change the light issuing commands of the kind ‘keylight +25′ or dimming it with ‘keylight -50′

5) Implement this in your gnome dektop (KDE must have something similar). Uing graphic interface

system>preferences>keyboard shortcut
click on add
create a “keyboard backlight up” and set its command “keylight +25″
create a “keyboard backlight dw” and set its command “keylight -25″

6) assign the shortcuts to fn + f6 and fn + f5

For KDE 4.6.x

Kmenu > System Settings > Shortcuts and gestures

Custom Shortcuts > Edit > New > Global Shortcut > Command/URL

Comment:
Controls Brightness of keylights or whatever you want here….(not important)

Trigger:
Name = Keyboard Brightness Up
Trigger = “F6” (Keyboard Brightness Up)

Action:
Command/URL: /usr/bin/keylight +25

Sound:

Do the following as YOU:

$ /usr/bin/alsamixer

Press fn + F6
Select HDA NVidia
Unmute Front Sp and Surrond and turn up the volume, test in kmix or play something.

As ROOT:

run # /usr/sbin/alsactl store

DVD Playback and Codecs:

# yum –enablerepo=atrpms install libdvdcss

# yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg amarok \
xine-lib-extras-freeworld mplayer mplayer-gui gecko-mediaplayer mencoder kmplayer smplayer \
xine xine-lib-extras xine-lib-extras-freeworld vlc vlc-extras \
kdemultimedia-extras-freeworld k3b-extras-freeworld k9copy clementine

# yum –enablerepo=atrpms install acidrip

Flashplayer for x64:

Grab the latest x64 package from the labs:
http://labs.adobe.com/downloads/flashplayer10.html

# tar xvf flashplayer10_2_p3_64bit_linux_111710.tar.gz -C /usr/lib64/mozilla/plugins

Compiz Fuision 3D effects:

# yum install compiz-fusion-extras libcompizconfig ccsm compiz-manager libcompizconfig fusion-icon-qt

Java:

OpenJDK

# yum install java-1.6.0-openjdk java-1.6.0-openjdk-plugins

Oracle/Sun Java

http://www.oracle.com/technetwork/java/javase/downloads/index.html

I grab the current JDK and JRE(web)

jdk-6u24-linux-amd64.rpm

# sh jdk-6u24-linux-x64-rpm.bin
# alternatives –install /usr/bin/java java /usr/java/default/bin/java 20000
# alternatives –install /usr/bin/javac javac /usr/java/default/bin/javac 20000
# alternatives –install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_24/lib/amd64/libnpjp2.so 2000

To change between OpenJDK and Oracle(Sun) Java

# alternatives –config java
# alternatives –config javac
# alternatives –config libjavaplugin.so.x86_64

http://www.java.com/en/download/testjava.jsp

Python3

# yum install python3*

Advertisements

7 thoughts on “Fedora 15 Macbook Pro 5,3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s