If you haven’t already seen the new ads Microsoft have been running you are probably one of the lucky few. Personally I think there playing some spin on the mac ads.
How ’bout, I’m a PC and using Linux was my idea. K-Thx-Bai.
If you haven’t already seen the new ads Microsoft have been running you are probably one of the lucky few. Personally I think there playing some spin on the mac ads.
How ’bout, I’m a PC and using Linux was my idea. K-Thx-Bai.
Ha ha ha (I see what I did there). Anyway. Just felt that I would post about the pure-awesome file manager that is Thunar.
I’ve recently installed #!Crunchbang, Now its good and all but it uses openbox and an ugly combination of PCMan and Terminator (for terminal emulation).
Seriously though. Install thunar, its brilliant.
(I was going to hotlink an image but decided against it.)
I now have Crunchbang working. Not just working in the sense that it installs and
runs but more that it has a keyboard backlight, screen brightness and multitouch working. Good old debian/ubuntu-based linux! Keep in mind that some of this tutorial has not been tested, I note the untested sections. – Some information was obtained from the ubuntu wiki. Thanks Guys -.
The super button is the command key on your mac, On a PC the super key is the Start Button.
What Worked Out of the Box:
Basic Fixes
Install Hints
I use the bootcamp wizard to create the windows partition and allocate my space, then reboot into crunchbang using the bootcamp wizard. Once in start gparted (Super + Space, Run program, “sudo gparted”) and delte the partition that is ‘Fat32′ or called BOOTCAMP. (If that’s too hard you may need to reconsider linux on mac).
To boot back into your new Crunchbang install you will need a boot tool such as rEFIt, Get that here. Once you have installed that, Head to finder -> Macintosh HD (presuming thats your hard drive) -> efi -> refit -> enable-always.sh -> open with “Terminal.app”. Then reboot.
Post Install
Firstly you may notice by now your MacBook / MacBook Pro is starting to burn a hole in your lap/desk, You need to install basic power managment and temprature controls to stop this.
Go to the main menu (Super + Space) and click on Terminal (or Super + T) you then need to become a root user, Don’t worry thats easy, Copy and paste (or type) these commands.
sudo -i
# You will then be asked for your password. Enter it.
echo deb http://ppa.launchpad.net/mactel-support/ubuntu jaunty main >> /etc/apt/sources.list
echo deb-src http://ppa.launchpad.net/mactel-support/ubuntu jaunty main >> /etc/apt/sources.list
sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 7A6BC20C4FE04DADD10837608DB7F87A2B97B7B8
# (Above is all one line) Then update your repos with
apt-get update
# Now install the sensor modules
sudo apt-get install applesmc-dkms
echo coretemp >> /etc/modules
echo applesmc >> /etc/modules
# Because reboot doesnt work this will shut down your computer. Turn it back on after.
shutdown -h now
So theres the basics out the way, The computer wont overheat and explode now so thats a good thing (Right?).
The Keyboard (not Jaunty)
This does not work in Jaunty, Not sure why Ubuntu thing?
The keyboard has some custom functions, such as expose and dashboard, We want to enable these. Head back into terminal (Super + T) and type.
sudo apt-get install applesmc-dkms hid-dkms
Bluetooth Problems
If you do have problems with bluetooth you can try resetting the interface, Personally I don’t use bluetooth but here you go
sudo hciconfig hci0 reset
The Touchpad
Apple introduced multi-touch in the 5,x series MacBook and MacBook Pro. This is a cool piece of technology but takes some doing to make work. Head into the terminal (Super + T)
sudo -i
apt-get install bcm5974-dkms
# Blacklisting the USBHID seems sinister but we load it later so thats not that bad.
echo blacklist usbhid >> /etc/modprobe.d/blacklist.conf
echo bcm5974 >> /etc/modules
echo usbhid >> /etc/modules
# make sure usbhid is last, or it wont work.
depmod -ae
update-initramfs -u
Now run
gksudo gedit /etc/hal/fdi/policy/11-x11-synaptics.fdi
and add
<?xml version=”1.0″ encoding=”ISO-8859-1″?>Now save & reboot and you should have a working touch-pad!
Sound
My sound only works via headphones at the moment as I am stuck on the patching stage but I’m hoping that this method will work properly.
Headphones (tested):
sudo -i
cd /etc/modprobe.d/
echo options snd_hda_intel model=mbp3 >> alsa-base.conf
Speakers:
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2
wget http://qwe.pl/~kacper/alsa-driver-1.0.19-mb51.patch
tar jxf ./alsa-driver-1.0.19.tar.bz2
mv ./alsa-driver-1.0.19-mb51.patch ./alsa-driver-1.0.19
cd ./alsa-driver-1.0.19 patch -p2 < ./alsa-driver-1.0.19-mb51.patch
./configure
make
sudo make install
sudo gedit /etc/asound.conf
and add/edit the following
pcm.out {“Change PulseAudio configuration to use 6 channels and ‘out’ upmix instead of hw:0,0″
sudo gedit /etc/pulse/default.pa
and add the following:
load-module module-alsa-sink channels=6 device=out
The sound section is not mine, I have not tested it, I sourced it from here.
Screen Brightness
I don’t know why but for me the screen brightness is broken. F1 and F2 do NOT adjust brightness at all. Eventually using the following method I got F1 and F2 to change the brightness, As well as automatic dimming in different light conditions. Go to terminal (Super + T) and run this command:
sudo apt-get install nvidia-bl-dkms
Now run (“Run Program”)
gksudo gedit /etc/modules
And add
nvidia_bl shift=2
To the end of the file!
Getting Too Hot
For some reason the fan control may not be regulated properly. If this is the case, manually set the fan so it cant drop below a certain point. This is permanent and the fan will always run fast.
echo 3000 | sudo tee -a /sys/devices/platform/applesmc.768/fan1_min
OR : – Sometimes Laptop Mode will have the same effect
sudo /etc/init.d/laptop-mode start
Not Sleeping – Overuse of Power
The driver Crunchbang uses to drive the Ethernet can cause it to make the computer wake up or over-use the CPU even if its not in use. If you don’t use the Ethernet you could disable eth0 or try this: Open Terminal (Super + T)
sudo apt-get install powertop
sudo powertop
#Powertop allows you to monitor power usage.
Once powertop is installed take note of eth0 then:
gksudo gedit /etc/modprobe.d/blacklist.conf
And add
blacklist forcedeth
To the bottom of the file. If you then run powertop again this should show reduced ethernet draw.
Prettyness Hack
Get a crisp usplash on bootup, Run this command (FN + Option (alt) + F2):
gksudo gedit /etc/usplash.conf
then find and change “yres=720″ to “yres=800″
Credits :
Mactel PPA & The Ubuntu Wiki
https://help.ubuntu.com/community/MacBook5-1/Jaunty
Though I wrote the guide for Crunchbang I used some of the stuff provided by these guys, they helped me and prehaps you so a big thanks to them!
sudo /etc/init.d/laptop-mode start