MacBookPro
38384
Comment:
|
38385
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
attachment:desktop.png | attachment:desktop2.png |
Ubuntu Gutsy on MacBook Pro - UPDATED!
- attachment:desktop2.png
ContentsBRTableOfContents(2) |
Preface
This page describes installing Ubuntu 7.10 (Gutsy Gibbon) on MacBook Pro generation 1(CoreDuo) & 2(Core2Duo), and MacBook.
For the MacBook Pro generation 3(SantaRosa) you will need to read the wiki page https://wiki.ubuntu.com/MacBookPro/SantaRosa first for additional information and instructions.
Info
Thanks to Ubuntu forum members for their feedback and the people providing drivers for Linux on Macbook especially Nicolas Boichat, Ronald S. Bultje, Jan Bernhardt, Ludovic Rousseau ... and special thanks to the people that have been continually editing this wiki
Following is a list of other wiki's which provide details on running Linux on Macbook:
The [http://gentoo-wiki.com/HARDWARE_Apple_MacBook Gentoo Macbook wiki] - Partitioning, access to ext2/3 and UID sync'ing are covered quite well there (and somewhat sparse in this document)
The [http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp OnMac wiki] has triple-boot instructions, and also some details on restoring things to their initial state (removing bootcamp, linux, etc.).
Installing with Triple Boot (OS X, Vista & Linux)
Mac OS X Installation
1. Insert the Mac OS X Leopard DVD (10.5) into the drive, and start the pc holding 'ALT' key and select the DVD icon to start installing.
2. On Leopard installer menu, select 'Utilities' > 'Disk Utility...'
3. Select the main hard disk icon, go to 'Partition' tab, set the 'Volume scheme' to '1 Partition', name it "Macintosh", format it as 'Mac OS Extended".
4. Exit 'Disk Utility' and continue the installation, select 'Macintosh' as the destination and continue, hit 'Customize' and filter the 'Printer drivers' selecting only the ones you need and deselect 'Language translations' to save disk space, hit 'Done', and 'Install'.
Windows Vista Installation
1. Boot into your newly installed OS X and 'Software Update' the system (restart is required).
2. Then go to 'Utilities' > 'Boot Camp Assistant', hit 'Continue' and resize 'Macintosh' to 1/3 of total disk space, leaving the rest for Windows, and hit 'Partition'.
3. Insert Windows Vista DVD (32bit) and hit 'Start Installation" (Computer restarts and boots into Vista DVD).
4. Select 'Disk 0 Partition 3 BOOTCAMP', hit 'Drive Options (Advanced)' and format it, then it 'Next' to start installation.
5. After Restart, insert 'Mac OS X Leopard DVD' and install Boot Camp Drivers for Vista and the Reboot.
6. If your planning to play Games and take full advantage of your graphic card in Vista, I recommend to install the graphics driver with this tool(ATI only!): http://www.driverheaven.net/modtool/
Boot Menu installation
1. Boot from Mac OS X
2. Install rEFIt (http://refit.sf.net)
Note: the following manual steps are only necessary if rEFIT isnt apeering.
1. Install mac image
2. Copy EFI to root directory (drag EFI folder to MacOS disk)
3. Open a mac OS terminal (in utilities)
4. cd /efi/refit
5. ./enable-always.sh
Ubuntu Installation
1. Start the computer with Ubuntu 7.10 Desktop CD inserted (I use the 64bit version), Boot into the Live CD.
2. Click on 'Install' icon in the desktop, select 'Keyboard layout' as 'Macintosh', hit 'Forward', select 'manual' partitioning and 'Forward'.
3. Select windows partition '/dev/sda3' and 'Edit partition', in 'New partition size' change it to 1/2 of the value, and change 'Mount point' to '/media/Windows', hit 'OK' and continue, with the remaining 'free space' select it and click on 'New partition', in 'New partition size...' change the vale (example): '55218' to '53218' leaving 2Gb for Swap, in 'Mount point' set it to '/' , hit 'OK'; With the new 'free space' select it and click on 'New partition' and change 'Use as:' to 'swap' and hit 'OK', and 'Forward'.
4. Set your user settings and hit 'Forward', before installing click on 'Advanced' and change '(hd0)' to '(hd0,3)' , hit 'OK' and 'Install'.
5. When installation is complete, Restart and boot into Ubuntu Linux OS; Go to 'System' > 'Administration' > 'Software Sources', in 'Third-Party Software' tab check the 1st one, on the 'Updates' tab check 'Pre-releases Updates' and 'Unsupported Updates' and hit 'Close' and 'Reload'.
6. Go to 'System' > 'Administration' > 'Update Manager' hit 'Check', 'Install Updates' and restart.
7. Install the 'ATI accelerator graphics drivers' from the 'Restricted Drivers', After Reboot check "Video" section on this tutorial to install the latest version.
Installing For Dual-Boot Mac OS X/Ubuntu
This is for a MacBook Pro with OS X already installed
1. Install rEFIT (see above)
2. Use BootCamp to partition the drive, but don't bother burning a Windows boot CD.
3. Restart the computer with Ubuntu 7.10 Desktop CD inserted (I used the 64 bit version). rEFIT should recognize the CD and give you option to "boot Linux from CD".
4. Click on 'Install' icon on the desktop, select appropriate language, select 'Keyboard Layout' as 'Macintosh', hit 'Forward', select 'manual' partitioning, then 'Forward'.
5. BootCamp will have created '/dev/sda3' which should be roughly the size of the partition you created. In my case, it was ~22 GB (22538). Select 'dev/sda3' and delete it by clicking 'Delete Partition'. There should now be ~22 GB of 'free space'.
6. Select the 'free space' of ~22 GB and click 'New Partition'. Set the size to 2 GB less than the total. In my case, I had 22538 available, so the new partition was 20538. Format as 'ext3' and set the 'Mount Point' to '/'. Set the formatting to occur at the beginning. Hit OK.
7. This should leave 2 GB as free space. Select 'free space' and click 'New Partition'. Format as 'swap' and click OK.
8. Now click 'Forward'. This will give some scary warnings about FAT 32 not being partitioned correctly. Click 'Ignore' and proceed with the install. After being prompted for a user and computer name, check to make sure that the formatting is occuring at partitions #3 and #4 and click 'Install'.
9. Follow installation instructions from here.
Video
See http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide#Method_2:_Install_the_Catalyst_7.11_Driver_Manually for up to date binary AMD driver installation.
Note: WideScreen resolutions sutch as '1680x1050' are not working with the newest 7.12 driver. If you want to install previous version 7.11 drivers follow this method under the video section: http://ubuntuforums.org/showthread.php?t=198453
If you get errors of "LibGL.so.1" or if OpenGL games don't start do this :
sudo ln -sf /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1 sudo ln -sf /usr/lib32/libGL.so.1.2 /usr/lib32/libGL.so.1
Note: use ATI Catalyst Control Center > Applications > Accessories > to change any of this mods(clone,single,big desktop) or to change screen resolution or to disable/enable monitors.
Also if you use SMPlayer (check Applications section to install latest version), use X11 video output driver to see movies correctly when Compiz is enabled.
Screen Colors
I've noticed that many MacBooks really need this tweak in order to visualize correctly screen colors. To calibrate the screen colors (in order to match OS X), you need to install xcalib. This isn't available in the Ubuntu repositories, so you'll have to download it and compile it.
sudo apt-get install libxxf86vm-dev libxext-dev wget -c http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/xcalib-source-0.8.tar.gz tar -zxvf xcalib-source-0.8.tar.gz cd xcalib-0.8/ make xcalib sudo mv xcalib /usr/local/bin/ sudo chmod 755 /usr/local/bin/xcalib sudo mount -t hfsplus /dev/sda2 /mnt #(this mounts the mac partition [/dev/sda2] on /mnt) sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc
Then, do an "ls /usr/local/etc" and note the name of the profile (for the next step).
Finally, add the following line to the end of either /etc/gdm/Init/Default (for standard Ubuntu/Gnome) or /etc/kde3/kdm/Xsetup (for Kubuntu/KDE), before the final "exit" statement:
/usr/local/bin/xcalib "/usr/local/etc/<insert name of profile here>"
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.
Audio & Microphone
1. Double click on the Volume icon (it opens Volume Control), Select Edit > Preferences > enable All tracks.
2. Increase the volume and unmute (PCM , Front, Capture) in the Playback tab (both using the key combination and the system tray applet) to its maximum possible value.
3. On the Recording tab, check if microphone icon is enable and sound icon is disabled and set 'Capture' volume to 80% .
4. Right-click on the volume applet and choose Preferences. Select "PCM" as the device to control.
5. Open the Sound preferences (System-Preferences-Sound in GNOME). Select "PCM" as the device to control.
And Reboot.
Wireless
To install:
sudo aptitude install build-essential subversion wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz tar -zxvf madwifi<tab> cd madwifi<tab> make sudo make install
If you want you can alternatively get the sources by SVN
svn checkout http://svn.madwifi.org/madwifi/trunk madwifi
At this point the driver should work and wifi will be enabled after reboot.
Alternatively you can use these commands to insert the driver into the running kernel:
sudo modprobe ath_pci sudo modprobe wlan_scan_sta
To avoid random problem when wifi stops working with kernel messages "wifi0: rx FIFO overrun; resetting" in logs you may use the following command to disable background scanning:
sudo iwpriv ath0 bgscan 0
Also type in terminal:
sudo sed -i~ 's/^exit 0/modprobe ath_pci\nexit 0/' /etc/rc.local sudo sed -i~ 's/^exit 0/modprobe wlan_scan_sta\nexit 0/' /etc/rc.local sudo sed -i~ 's/^exit 0/iwpriv ath0 bgscan 0\nexit 0/' /etc/rc.local
Temperatures & Fan Speed
Hard Disk Temperature
sudo apt-get install hddtemp
Select 'Yes', then 'OK', and 'OK' again.
CPUs Temperature
add this to /etc/rc.local :
modprobe coretemp sensors -s
To install lm-sensors and sensors-applet type in terminal :
sudo apt-get install lm-sensors sensors-applet
Right Click in the main panel menu and 'Add to Panel...' the 'Hardware Sensors Monitor', then right click on Hardware Sensors Monitor applet and go to 'Preferences' > 'Sensors' and Enable > 'hddtemp' > '/dev/sda', and also Disable > 'libsensors' > temp2 to temp11 .
Manual Fan Speed Control
Note: I recommend not to set fans speed manually because the kernel allready ajusts fans speed according to CPU's temperature!
If you really want to set it manually, here's a simple way of doing it (to reset it to auto speed, just reboot):
sudo modprobe applesmc echo applesmc | sudo tee -a /etc/modules
and then add the following line to ~/fan_speed1 :
echo 1 > /sys/devices/platform/applesmc.768/fan1_manual echo 3500 > /sys/devices/platform/applesmc.768/fan1_output echo 1 > /sys/devices/platform/applesmc.768/fan2_manual echo 3500 > /sys/devices/platform/applesmc.768/fan2_output echo "Setting Fans Speed to 3500RPM!"
edit ~/fan_speed2 :
echo 1 > /sys/devices/platform/applesmc.768/fan1_manual echo 4000 > /sys/devices/platform/applesmc.768/fan1_output echo 1 > /sys/devices/platform/applesmc.768/fan2_manual echo 4000 > /sys/devices/platform/applesmc.768/fan2_output echo "Setting Fans Speed to 4000RPM!"
edit ~/fan_speed3 :
echo 1 > /sys/devices/platform/applesmc.768/fan1_manual echo 5000 > /sys/devices/platform/applesmc.768/fan1_output echo 1 > /sys/devices/platform/applesmc.768/fan2_manual echo 5000 > /sys/devices/platform/applesmc.768/fan2_output echo "Setting Fans Speed to 5000RPM!"
And to execute: sudo bash ~/fan_speed1 (...2 or 3)
To see the actual fans speed, Enable 'Left side' and 'Right side' in the Sensors Applet Preferences.
Note: I recommend setting fans to a minimum of 3500RPM (fan_speed1) and when your are playing Games and so on.. set the fans to 4000RPM (fan_speed2) or even 5000RPM (fan_speed3).
Reducing power consumption
Install the powertop package :
sudo apt-get install powertop
and run with "sudo powertop" in a terminal. Follow the instructions given as to reducing power consumption.
Keyboard Fixes
MacBook Pro Keyboard doesn't have a Alt GR / Right Alt key, so you have no way to type "@" "[" etc... (3rd Level choosers), here's what you can do:
Go to System > Preferences > Keyboard :
On the Layout Options tab, select "Third Level Choosers" and check "Press Enter key on keypad to choose 3rd level".
Now you can use the Left Enter key(on macbook pro keyboard) to access the 3rd Level Keys
Function Keys
Pommed is a daemon to support extra keys on apple computers. These include brightness, eject, and others.
The current release of pommed does not support the macbook, but support exists in the svn version. You can build from svn head yourself, or use a pre-built package. If you are using the ppa from the kernel steps, an updated pommed package is available.
Install with this command:
sudo apt-get install pommed
You can check your pommed version number with this command:
pommed -v
I currently have pommed v1.13 rev:407 (The package is versioned 1.12~dfsg-svn412 so as to be superseded by an official 1.13 package). As of 2007-12-14 the 2 brightness keys, 3 volume keys, and eject key seem to be working.
Default behaviour on apple keyboards is to have the top row keys primarily function is as media keys (brightness, volume, etc), and have the expected function keys (F1, F2, etc) accessible with the fn keys. To reverse this behaviour either:
- edit /etc/pommed.conf by changing the value of fnmode or
- add the following lines to /etc/rc.local and decomment the appropriate line
# Inverted fn key behavior for MacBooks #echo -n 0x02 > /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)
# Default fn key behavior for Macbooks # echo -n 0x01 > /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)
Touchpad Fixes
Edit /etc/X11/xorg.conf and replace :
Sections "InputDevice"
- Identifiers "Synaptics Touchpad"
- ..
- ..
With :
Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "SHMConfig" "true" Option "LeftEdge" "10" Option "RightEdge" "1200" Option "TopEdge" "10" Option "BottomEdge" "370" Option "FingerLow" "10" Option "FingerHigh" "20" Option "MaxTapTime" "180" Option "MaxTapMove" "220" Option "SingleTapTimeout" "100" Option "MaxDoubleTapTime" "180" Option "LockedDrags" "off" Option "MinSpeed" "1.10" Option "MaxSpeed" "1.30" Option "AccelFactor" "0.08" Option "TapButton1" "1" Option "TapButton2" "3" Option "TapButton3" "2" Option "RTCornerButton" "0" Option "RBCornerButton" "0" Option "LTCornerButton" "0" Option "LBCornerButton" "0" Option "VertScrollDelta" "20" Option "HorizScrollDelta" "50" Option "HorizEdgeScroll" "0" Option "VertEdgeScroll" "0" Option "VertTwoFingerScroll" "1" Option "HorizTwoFingerScroll" "1" EndSection
WebCam , iSight & Ekiga / aMSN
Quick and easy iSight setup:
sudo modprobe -r uvcvideo sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/usbvideo/uvcvideo.ko /lib/modules/2.6.22-14-generic/ubuntu/media/usbvideo/uvcvideo.ko.original sudo apt-get install libusb-0.1-4 libusb-dev
Download the new all-in-one bundle, with firmware autoloader as provided by Ivan N. Zlatev by clicking here: http://files.i-nz.net/projects/linux-kernel/isight/uvcvideo-isight.tar.gz
Change directories to where the tar file is. Then untar it:
tar -xvf uvcvideo-isight.tar.gz
Now build and Install the uvcvideo module and load it:
cd against-revision-140 make sudo make install sudo modprobe uvcvideo
Add this line to /etc/rc.local:
modprobe uvcvideo
Reboot and test it:
gst-launch-0.10 v4l2src ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=640,height=480 ! ffmpegcolorspace ! ximagesink
On Ekiga > 'Preferences' > 'Video Plugin' select V4L2 , and press 'Detect devices' button.
See Below in Applications Section how to install aMSN with tk/tcl-8.5 from sources, then go to 'aMSN' > 'Preferences' > 'Other' > 'Edit audio and video settings' to set up webcam.
Access Mac OS X & Windows Partition
To do so edit /etc/fstab , here's mine :
## EFI ################################################################### #/dev/sda1 /media/EFI vfat defaults,utf8,umask=007,gid=46 0 1 ## Macintosh ############################################################# /dev/sda2 /media/Macintosh hfsplus defaults 0 0 ## Windows ############################################################### /dev/sda3 /media/Windows ntfs defaults 0 0 ## Network ############################################################### # Server //192.168.1.5/public /media/Servidor-public smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
Then do the following in terminal:
sudo apt-get install smbfs sudo mkdir /media/Macintosh sudo chmod 777 /media/Macintosh sudo umount -a sudo mount -a
Also read this if you plan to mount network drives: https://help.ubuntu.com/community/MountWindowsSharesPermanently#head-35cfd84dee9a392fa28c8795f37b6660a8786c35
Apple Remote Control
Apple's Remote Control is working by default in Ubuntu 7.10, but only allows you to control the Volume. So here's the tweaks to get it working on with other applications:
sudo apt-get install inputlirc lirc lirc-x
And edit /etc/rc.local and add:
/etc/init.d/inputlirc start /etc/init.d/inputlirc restart
Then go to > System > Preferences > Sessions , and add the following to the Startup list by this order:
gksu irexec & /home/YOURACCOUNT/.lircrc gksu irxevent & /home/YOURACCOUNT/.lircrc
Note: YOURACCOUNT = your user name
To make it work on the startup you have to edit sudoers and set the main user as no password requirement for the use of sudo command, here's how to:
sudo /bin/bash nano /etc/sudoers
Here's what to change in /etc/sudoers :
# User privilege specification root ALL=(ALL) ALL YOURACCOUNT ALL=(ALL) NOPASSWD: ALL # Members of the admin group may gain root privileges #%admin ALL=(ALL) ALL
Note: YOURACCOUNT = your user name.
Then to create the .lircrc file in your home dir do this:
exit gedit ~/.lircrc
And Finally copy the following to the file and save it:
################################################## # LIRC Config for the following Applications: ################################################## ############# #### VLC #### ############# begin prog = vlc button = KEY_PLAYPAUSE config = key-play-pause repeat = 0 end begin prog = vlc button = KEY_MENU config = key-aspect-ratio repeat = 0 end begin prog = vlc button = KEY_PREVIOUSSONG config = key-jump-medium repeat = 1 end begin prog = vlc button = KEY_NEXTSONG config = key-jump+medium repeat = 1 end begin prog = vlc button = KEY_VOLUMEUP config = repeat = 1 end begin prog = vlc button = KEY_VOLUMEDOWN config = repeat = 1 end ################# #### MPlayer #### ################# # begin prog = mplayer button = KEY_PLAYPAUSE config = pause end begin prog = mplayer button = KEY_PREVIOUSSONG config = seek -10 repeat = 1 end begin prog = mplayer button = KEY_NEXTSONG config = seek +10 repeat = 1 end #begin # prog = mplayer # button = KEY_VOLUMEUP # config = volume 1 # repeat = 1 #end #begin # prog = mplayer # button = KEY_VOLUMEDOWN # config = volume -1 # repeat = 1 #end ################## #### Kaffeine #### ################## #begin kaffeine begin prog = irexec button = config = dcop kaffeine MainApplication-Interface end begin prog = irexec button = KEY_PLAYPAUSE config = if `dcop kaffeine KaffeineIface isPlaying`; then dcop kaffeine KaffeineIface pause; dcop kaffeine kaffeine_mainview hide; else dcop kaffeine KaffeineIface play; dcop kaffeine kaffeine_mainview hide; fi end begin prog = irexec button = KEY_MENU repeat = 1 config = dcop kaffeine KaffeineIface stop end begin prog = irexec button = KEY_NEXTSONG repeat = 1 config = dcop kaffeine KaffeineIface posPlus end begin prog = irexec button = KEY_PREVIOUSSONG repeat = 1 config = dcop kaffeine KaffeineIface posMinus end begin prog = irexec button = KEY_VOLUMEUP repeat = 1 config = dcop kaffeine KaffeineIface volUp end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 1 config = dcop kaffeine KaffeineIface volDown end #end kaffeine ################ #### Amarok #### ################ #begin amarok begin prog = irexec button = KEY_PLAYPAUSE config = dcop amarok player playPause end begin prog = irexec button = KEY_MENU config = dcop amarok player stop end begin prog = irexec button = KEY_NEXTSONG config = dcop amarok player next end begin prog = irexec button = KEY_PREVIOUSSONG config = dcop amarok player prev end begin prog = irexec button = KEY_VOLUMEUP repeat = 1 config = dcop amarok player volumeUp end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 1 config = dcop amarok player volumeDown end #end amarok ############### #### Totem #### ############### begin prog = irxevent button = KEY_PLAYPAUSE config = Key p Totem repeat = 0 end begin prog = irexec button = KEY_MENU config = stop repeat = 0 end begin prog = Totem button = KEY_NEXTSONG config = seek_forward repeat = 0 end begin prog = Totem button = KEY_PREVIOUSSONG config = seek_backward repeat = 0 end begin prog = irexec button = KEY_VOLUMEUP repeat = 10 config = end begin prog = irexec button = KEY_VOLUMEDOWN repeat = 10 config = end ################### #### Audacious #### ################### begin prog = audacious button = KEY_PLAYPAUSE config = PAUSE repeat = 16 end begin prog = audacious button = KEY_MENU config = STOP repeat = 0 end begin prog = audacious button = KEY_NEXTSONG config = NEXT repeat = 16 end begin prog = audacious button = KEY_PREVIOUSSONG config = PREV repeat = 16 end ############## #### XMMS #### ############## begin prog = xmms button = KEY_PLAYPAUSE config = pause end begin prog = xmms button = KEY_MENU config = stop end begin prog = xmms button = KEY_NEXTSONG config = next repeat = 16 end begin prog = xmms button = KEY_PREVIOUSSONG config = prev repeat = 16 end begin prog = xmms button = KEY_VOLUMEUP config = fwd 5 repeat = 10 end begin prog = xmms button = KEY_VOLUMEDOWN config = bwd 5 repeat = 10 end ############### ##### XdTV #### ############### begin prog = irexec button = KEY_PLAYPAUSE config = record repeat = 0 end begin prog = irexec button = KEY_PREVIOUSSONG config = setstation prev repeat = 0 end begin prog = irexec button = KEY_PNEXTSONG config = setstation next repeat = 0 end ################ #### TVtime #### ################ #begin tvtime begin prog = irexec button = KEY_PLAYPAUSE config = tvtime-command ENTER end begin prog = irexec button = KEY_MENU config = tvtime-command TOGGLE_FULLSCREEN end begin prog = irexec button = KEY_NEXTSONG config = tvtime-command UP repeat = 1 end begin prog = irexec button = KEY_PREVIOUSSONG config = tvtime-command DOWN repeat = 1 end begin prog = irexec button = KEY_VOLUMEUP config = tvtime-command RIGHT repeat = 2 end begin prog = irexec button = KEY_VOLUMEDOWN config = tvtime-command LEFT repeat = 2 end #begin # prog = irexec # button = middle # config = tvtime-command CHANNEL_JUMP # repeat = 1 #end #end tvtime ############################################## #### Evince y OpenOffice (Presentations) #### ############################################## begin prog = irxevent button = KEY_PLAYPAUSE config = Key F11 CurrentWindow config = Key F5 CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_MENU config = Key Escape CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_PREVIOUSSONG config = Key Prior CurrentWindow repeat = 1 end begin prog = irxevent button = KEY_NEXTSONG config = Key Next CurrentWindow repeat = 1 end begin prog = irxevent button = KEY_VOLUMEUP config = Key ctrl-plus CurrentWindow repeat = 0 end begin prog = irxevent button = KEY_VOLUMEDOWN config = Key ctrl-minus CurrentWindow repeat = 0 end
Note: If it doesnt work at the first time, execute the commands mannualy using Alt+F2:
gksu irexec & /home/YOURACCOUNT/.lircrc gksu irxevent & /home/YOURACCOUNT/.lircrc gksu /etc/rc.local
Desktop Tweaks
Ubuntu & Mac - Fusion Theme
Here's my latest Desktop theme, Icon theme and Login theme... and also an aMSN skin theme developed solo by me
Grab the theme pack from here (instructions inside): http://www.savefile.com/files/1272550
Enjoy a futuristic Ubuntu Look!
Also note this to enable changing splash screen background color:
It seems like commenting the following lines out in "/etc/gdm/PreSession/Default" seems to solve the problem and the color then the color should be left at whatever color is set as the login screen background until the desktop loads.
# Default value #if [ "x$BACKCOLOR" = "x" ]; then # BACKCOLOR="#dab082" #fi #"$XSETROOT" -cursor_name left_ptr -solid "$BACKCOLOR"
Fonts like Mac OS X
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X. You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:
1. Open the Appearance preference panel (System-Preferences-Appearance) 1. Click Fonts, and select the "Subpixel smoothing" option. 1. Click Details, and select "Slight" hinting. 1. Enjoy!
Ubuntu Animated Mouse Cursor
sudo apt-get install gcursor wget -c http://www.gnome-look.org/CONTENT/content-files/66327-UbuntuCrystalcursors.tar.gz tar -zxvf 66327-UbuntuCrystalcursors.tar.gz cd Crystalcursors make sudo make install sudo apt-get install kdelibs-data kdelibs4c2a libarts1c2a libartsc0 libaudio2 libavahi-qt3-1 liblua50 liblualib50 libopenexr2c2a libqt3-mt kdebase-bin sudo ./choose.sh (select 'white' and wait for the next screen prompt and press 'OK') gcursor (select 'crystalwhite' and press 'Install Theme' button)
Then Reboot and enjoy your new animated cursor
Compiz Fusion Icon, Compiz Settings Manager and Emerald + Themes
To install do this:
sudo apt-get install git git-core compiz-dev compizconfig-settings-manager emerald git-clone git://anongit.opencompositing.org/users/crdlb/fusion-icon cd fusion-icon make sudo make install
Go to System > Preferences > Sessions and add "fusion-icon" to the Startup
To enable Emerald, start fusion-icon and right click on it and select window decorator: emerald.
To install Emerald Themes do this:
sudo apt-get install subversion git clone git://anongit.compiz-fusion.org/fusion/decorators/emerald-themes cd emerald-themes/themes svn cp https://svn.generation.no/emerald-themes . mv emerald-themes/* . rm -rf emerald-themes cd themes ./import.sh cd .. mv themes ~/.emerald/
Avant Window Navigator
To install AWN with nice Skins and Curves Effect follow this guide: http://ubuntuforums.org/showthread.php?t=572019
Applications
Automatix2 & Video Codecs
To install get it from here: http://www.getautomatix.com/wiki/index.php?title=Installation#Ubuntu_7.10_.28Gutsy_AMD64.29
Go to > System Tools > automatix2
In 'Codecs and Plugins' select: 'Ubuntu Restricted Extras and Multimedia Codecs' and also 'W64-DVD Codecs' and Install
Ubuntu Tweak
Download and run the deb from here: http://www.getdeb.net/app.php?name=Ubuntu+Tweak
SMPlayer SVN + Themes
Best video player out there! works fine under Compiz with X11 video playback driver , also if using aspect ratio resize to full screen use 4:3 pan-scan. Working with the remote control
Download it at: http://downloads.sourceforge.net/smplayer/smplayer-0.5.62.tar.bz2
Read the file Install.txt included in the package to know how compile it.
Get themes here, i'm using default with icon set 'blackPanther-VistaLike': http://downloads.sourceforge.net/smplayer/smplayer-themes_0.1.14_all.deb
aMSN SVN (Multi-OS MSN messenger with Tcl & TK 8.5)
Here's how to compile and install aMSN latest version with plugins and anti-alising support :
sudo apt-get install build-essential libx11-dev libc6-dev imagemagick libjpeg-dev libpng12-dev libxft-dev tcl8.4 tk8.4 tcltls msttcorefonts checkinstall debhelper subversion libsnack2 mkdir ~/amsn_svn cd ~/amsn_svn wget -c http://kent.dl.sourceforge.net/sourceforge/tcl/tcl8.5b3-src.tar.gz wget -c http://kent.dl.sourceforge.net/sourceforge/tcl/tk8.5b3-src.tar.gz tar -zxvf tcl8.5b3-src.tar.gz tar -zxvf tk8.5b3-src.tar.gz
*64 bit OS only:
cd ~/amsn_svn/tcl8.5b3/unix ./configure --prefix=/usr --enable-64bit make sudo checkinstall -y --pkgversion 8.5b3 --pkgname amsn_tcl8.5b3 cd ~/amsn_svn/tk8.5b3/unix ./configure --prefix=/usr --enable-xft --enable-64bit make sudo checkinstall -y --pkgversion 8.5b3 --pkgname amsn_tk8.5b3
*END
*32 bit OS only:
cd ~/amsn_svn/tcl8.5b3/unix ./configure --prefix=/usr make sudo checkinstall -y --pkgversion 8.5b3 --pkgname amsn_tcl8.5b3 cd ~/amsn_svn/tk8.5b3/unix ./configure --prefix=/usr --enable-xft make sudo checkinstall -y --pkgversion 8.5b3 --pkgname amsn_tk8.5b3
*END
sudo apt-cache search amsn cd /usr/bin sudo rm wish sudo rm tclsh sudo ln -sf wish8.5 wish sudo ln -sf tclsh8.5 tclsh cd /usr/lib sudo ln -sf tcl8.5 tcl sudo ln -sf tk8.5 tk sudo ln -sf libtk8.5.so libtk.so sudo ln -sf libtcl8.5.so libtcl.so sudo ln -sf libtclstub8.5.a libtclstub.a sudo ln -sf libtkstub8.5.a libtkstub.a sudo ldconfig sudo cp ~/amsn_svn/tcl8.5b3/library/msgcat/msgcat.tcl /usr/lib/tcl8.5 sudo cp ~/amsn_svn/tcl8.5b3/library/msgcat/pkgIndex.tcl /usr/lib/tcl8.5 cd ~/amsn_svn sudo rm -rf amsn sudo rm -rf amsn-extras svn co https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn amsn svn co https://amsn.svn.sourceforge.net/svnroot/amsn/trunk/amsn-extras amsn-extras cd amsn ./configure --prefix=/usr make sudo make deb cd distrib/DEB sudo dpkg -i amsn*.deb
Run aMSN (Panel Menu > Internet > aMSN), or type in terminal:
amsn
Copy / Install extra Plugins and Skins to aMSN:
For Plugins:
mv ~/amsn_svn/amsn-extras/plugins ~/.amsn/
For Skins:
mv ~/amsn_svn/amsn-extras/skins ~/.amsn/
Man DVD (Video DVD Creation)
Download and run it from here:
http://www.getdeb.net/app.php?name=ManDVD
Wine (Run Windows Applications on Linux)
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list sudo apt-get update sudo apt-get install wine
VMware Server & Bootcamp partitions
Installing VMWare Server on Ubuntu 7.10
1. Download VMware Server source from the VMware website: http://vmware.com/download/server/
2. Download this installer patch: http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update113.tar.gz ( source reference: http://igordevlog.blogspot.com/2007/07/vmware-in-ubuntu-gutsy-kernel-2622.html )
3. Extract all the archives to some location on your system (tar -zxvf VMware-server* ; tar -zxvf vmware*)
4. Ensure that you have build-essential installed in order to compile these sources (sudo aptitude install build-essential)
5. Install the xinetd server (sudo aptitude install xinetd)
6. Run sudo ./vmware-install.pl located within the vmware-server-* unpacked archive.
7. Select all the default options *EXCEPT* do not compile the modules at this point. (Do you want this program to try to build the vmmon module for your system? NO)
8. Run sudo ./runme.pl located within the vmware-any* archive. This will launch step 8.
9. Select the default options and this time answer YES to compile the proper modules.
10. Run vmware-server using the command vmware or via your Applications Menu.
Note: if you update your kernel you will need to re-run the scripts to regenerate and recompile VMware Server for your updated kernel.
Games
World Of Warcraft
See this page how get World Of Warcraft running: https://help.ubuntu.com/community/WorldofWarcraft
Enemy Territory Quake Wars
Download the game client from: http://vlaai.snt.utwente.nl/pub/games/etqw/retail/client/linux/ETQW-client-1.2-full.r5.x86.run
To install type in terminal:
sudo apt-get install ia32-libs sudo chmod +x ETQW-client-12-full_r5_x86.run sudo ./ETQW-client-12-full_r5_x86.run
To Enable 3D Anti-alising and other tweaks do this:
sudo gedit /usr/local/games/etqw/base/autoexec.cfg
Past this into the file and save it:
g_skipIntro 1 com_allowconsole 1 com_showFPS 1 com_unlockfps 1 com_unlock_maxFPS 60 r_aspectratio 0 r_customwidth 1024 r_customheight 768 seta r_mode "5" seta r_multiSamples "4"
Also run ETQW as root (run with Compiz disabled):
gksu /usr/local/games/etqw/etqw
To run ETQW with Compiz enabled do this:
1. First to allow you to run a new X display you need to edit the "/etc/X11/Xwrapper.config" file:
sudo cp /etc/X11/Xwrapper.config /etc/X11/Xwrapper.config.custom sudo su md5sum /etc/X11/Xwrapper.config > /var/lib/x11/Xwrapper.config.md5sum exit sudo dpkg-reconfigure x11-common
Then make sure you change the first option to "Anybody" and hit enter twice.
2. Next we have to set your ~/.Xauthority file up. This may look tricky but it's very straight forward, all you need to do is add a line using a special key we find. So, in a terminal type:
xauth (after xauth press Return and type:) list
And you should get an output something like this:
spanky/unix:0 MIT-MAGIC-COOKIE-1 52f29a10d18753f7c26e0c2fe7fdc64f localhost.localdomain/unix:0 MIT-MAGIC-COOKIE-1 52f29a10d18753f7c26e0c2fe7fdc64f
Yours WILL be different, thats ok. Now we need to add a new line and then exit to save it. So we type in "add :1.0 MIT-MAGIC-COOKIE-1" followed by that long alpha numeric string. I've highlighted mine in bold above so you know what I'm talking about but remember to use yours. So for me I would type the following:
add :1.0 MIT-MAGIC-COOKIE-1 52f29a10d18753f7c26e0c2fe7fdc64f exit
Remember YOU have to use YOUR OWN sting of numbers and letters copied form the output we got earlier, mine is just an example. Ok? I know it's a bit abstract but hopefully this is clear enough.
3. Create the script "x.etqw":
sudo gedit /usr/local/bin/x.etqw
And paste the following:
xinit /usr/local/games/etqw/etqw "$@" -- :1
4. Now we need to make it executable and move it to the right place:
sudo chmod a+x /usr/local/bin/x.etqw
5. Run "x.etqw" in a terminal, ETQW should run on a new X server. To access your desktop you need to press:
CTRL + ALT + F7
6. To go back to ETQW press:
CTRL + ALT + F9
(or whichever screen your game appears on...mine was on F9).
PunkBuster
Here's how to run Punkbuster Updater:
wget -c http://websec.evenbalance.com/downloads/linux/pbsetup.run sudo apt-get install upx-ucl upx -d pbsetup.run sudo chmod +x pbsetup.run sudo ./pbsetup.run
Troubleshooting
1. Compiz as some issues with ATI drivers, and also ATI drivers have huge issues, so when compiz is enabled, i've notice that there's really huge bugs (black screen flickering) when watching movies or playing games, so disable compiz for any of those.
No one is leaving their contact in case of any assistance, but here's mine fuz2y@netcabo.pt
MacBookPro (last edited 2008-08-06 17:00:24 by localhost)