MacBook with Ubuntu Feisty Fawn 7.04
Monday, November 26th, 2007
The last few years I have really become a fan of the Linux distribution, Ubuntu. I’ve tried other distro’s and they each have their good points but what I liked about Ubuntu was the large community and expansive support. Not only that, but Ubuntu is a snap to get up and running. Yes, I’ve set up a Debian and a Slackware box but at this point I’m more impressed by a distro that I can start using immediately with minimum fuss.
That being said, I am also a fan of the latest Apple MacBook. It’s small, powerful and now that it’s powered by Intel processors, I don’t have to settle for a PPC version of Linux. So below is a down and dirty on the steps I took to set up my MacBook with Ubuntu 7.04. Your mileage may vary….
INSTALLATION
- Insert CD: Follow all default instructions, (US Keyboard, EST time zone, Partition entire disc, etc…)
- After installation is complete reboot and enter configuration phase
HOSTNAME
- Open System > Administration > Network and change hostname to nixbook.somenet.local. In addition, add correct DNS settings.
- In Hosts tab edit IP address with correct Alias information (192.168.1.x = nixbook.somenet.local, 127.0.1.1 = nixbook.somenet.local, 127.0.0.1 = localhost, nixbook.somenet.local)
REPOSITORIES
- Go to http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositories to edit correct repositories.
- Run
sudo apt-get updateto acquire all updates
DISPLAY RESOLUTION
sudo apt-get install 915resolution- Ctrl + Alt + Del to restart GDM and then edit display settings.
COMPILE TOOLS
sudo apt-get install build-essential or sudo aptitude install build-essential
TOUCHPAD
- see http://help.ubuntu.com/community/macbook
- For touchpad delay, this site has some good info….
FONT SMOOTHING
- add the following lines to
/etc/apt/sources.listdeb http://wwww.telemail.fi/mlind/ubuntu feisty fonts
deb-src http://www.telemail.fl/mlind/ubuntu feisty fonts sudo aptitude install libfreetype6 libcairo2 libxft2
WINDOWS FONTS
sudo apt-get install msttcorefonts
SPEED UP GNOME
- Open your text editor of choice and copy and paste in the following text:
gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0 - Save the file into your home directory with the name .gtkrc-2.0 (don’t forget the period before the filename), and restart your session (CTRL+ALT+BACKSPACE). You’ll notice a nice speed boost when browsing within a category in your menu.
1. gtk-menu-popup-delay = "0" | tee -a gtkrc - 2.0
2. Save into home directory
WIRELESS
- Go to NDISWrapper home page http://ndiswrapper.sourceforge.net. Find the installation page and follow instructions
- Make sure before compiling that you have
sudo apt-get install build-essentialto compile programs - Download latest NDISWRAPPER version; 1.4.9 as of Nov 2007.
- After downloading to your desktop, go to the source-directory and run make distclean and make. As root, run make install. This should compile and install both the kernel module and the userspace utilities.
- Go to the “List” page in the NDISWRAPPER web page to find your version of wireless card. First, identify the type of card you have with
lspci. - To identify the driver that you need from List, first identify the card you have with
lspciand note the first column such as0000:00:0c.0and then find out the PCI ID of the card by runninglspci -nand locating the entry corresponding to the first column of lspci output. The PCI ID is third column or fourth in some distributions and of the form104c:8400. Now you need to get the Windows driver for this chipset.
In the List, find out an entry for the same PCI ID, and download the driver corresponding to it. Unpack the Windows driver with unzip/cabextract/unshield tools, and find the INF file (.INF or .inf extension) and the SYS file (.SYS or .sys extension). If there are multiple INF/SYS files, you may look in the List if there are any hints about which of them should be used. Make sure the INF file, SYS file and any BIN files (For example, TI drivers use BIN firmware) files are all in one directory. - In the list I looked under “A” for the Atheros card that is standard on the Mac Core Duo 2’s . The executable on my desktop was from the Lenovo site and was
7iwc28ww.exe. The command to cabextract was cabextract filename, easy as can be!! - Now use ndiswrapper to install.
ndiswrapper -i NET5416.INF - This copies all necessary files to
/etc/ndiswrapperand creates the config files for your card. After installing you can runndiswrapper -lto see the status of your installed drivers. You should see something like:net5416 : driver installed
device (168C:0024) present - Then you have to load the interface with
modprobe, type this before hand to ensure there are no errors.depmod -athenmodprobe ndiswrapper. The drivers should be loaded, now just ensure that your wireless interface is configured correctly by going to System > Administration > Network and ensure that your wireless interface is active.
WICD
- These steps are optional…I got WICD working intermittently - maybe it’s more stable since this post?
- Go to WICD sourceforge download package.
sudo apt-get remove network-managereven if a fresh install.- …or simply use Synaptic Package manager > search for WICD and install. It will remove other possible conflicting pages but continue with installation.
- To install it in the task tray open System > Preferences > Sessions, click new > in the name field type WCID and in command type
/opt/wicd/tray.py
MULTIMEDIA
- changed
/etc/apt/sources.listand changed all entries"http://us.archive...."by omitting the “us” nation portion. - then added
"deb http://packages.medibuntu.org/"to my list or use this one"http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_add_extra_repositories" - then do
sudo apt-get install w32codecs - then do
sudo apt-get updateandsudo apt-get install libdvdcss2 - Afterwards you can install mplayer and vlc.
- Ensure that you go into each players preferences section and edit the codecs being used. VLC was changed to the X11 codec and I think I set mplayer to OpenGL
VMWARE SERVER
- http://www.howtoforge.com/ubuntu_feisty_fawn_vmware_server_howto
- to find kernel version:
sudo uname -r - change old command
sudo vmware-install.pltosudo ./vmware-install.pl - also run
sudo apt-get install libx11-6 libxtst6 libice-dev libsm-dev libxt6 - continue with installation choosing defaults
VERSION CHECK
- in terminal
lsb_release -a
FAN
sudo sh -c "echo 6000 > /sys/devices/platform/applesmc/fan0_minimum_speedmore than likely set for less, say 4500 (11.26.07)- You must ensure you have the correct privileges assigned
JAVA
- Firefox plugin:
sudo apt-get install sun-java6-plugin - JAVA JDK:
sudo apt-get install sun-java6-jdk - Check version:
java -version
That was easy!
archives
technorata
gallery
music