LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6043|回复: 6

我在Apple iBook上装Debian的记录

[复制链接]
发表于 2004-2-4 12:55:22 | 显示全部楼层 |阅读模式
有人需要么?没有我就不献丑了。我声明,原创,e文。
发表于 2004-2-4 12:57:30 | 显示全部楼层
这里也有一篇e文的
http://people.debian.org/~branden/ibook/
发表于 2004-2-4 13:04:36 | 显示全部楼层

回复: 我在Apple iBook上装Debian的记录

最初由 nfjinjing 发表
有人需要么?没有我就不献丑了。我声明,原创,e文。

需要,贴出来吧
 楼主| 发表于 2004-2-4 13:42:10 | 显示全部楼层

那我就贴了,因为是在iBook上装的,所以很不通用。。

Debian on iBook - simple is good

    * Introduction
    * Installation
    * Configuration
    * Preferred software
    * Chinese locale
    * Other issues
    * Ending
    * Reference

Introduction

The purpose of this article is to describe a way as simple as possible to install Debian on an iBook with fewest tweaks ( yet remaining fully functional ) and least amount of time. Since there have been various tutorials about installing Debian on PPC, details will not be emphasized.
Installation
Burn the Debian PPC CD 1 ISO.

Download it here
http://www.debian.org/CD/netinst/
Chooses which ever you like, however I suggest always go with the unstable, yet the latest, ones
Install the base system

Basically, boot from the CD, follow instructions, make sure you will not screw your partitions and MBR. I suggest that for first time installation, backup as much as possible, and don't expect to duel boot with MacOSX until you are familiar with the installation process.

( see my other article about installing Debian on a PC ( in Chinese ) )
Upgrade the system to sid ( unstable )

make sure your /etc/apt/sources.list contains only this line uncommented

deb http://ftp.us.debian.org/debian/ unstable main non-free contrib

apt-get update
apt-get dist-upgrade

Install iBook/PPC related packages

apt-cache search ibook

You will get these packages listed.

gtkpbbuttons - GTK client for pbbuttonsd
ikeyd - Daemon for handling special Apple laptop hotkeys
pbbuttonsd - PBButtons daemon to handle special hotkeys of Apple computers
pbbuttonsd-dev - Development files for PBButtons
tleds - Blinks keyboard LEDs indicating TX and RX network packets.
wmbatppc - Battery monitor for Apple G3/G4 ibooks/powerbooks
xpmumon - Battery monitor for PMU-based powerbooks/ibooks

More description of these packages can be found at debian package page.

Another extremely useful package can be found by searching powerbook keyword

apt-cache search powerbook

These packages will show

pmud - Apple PowerBook power management daemon
pmud-utils - Apple PowerBook power management daemon utils

You might also want to upgrade the kernel

apt-cache search kernel-image

Simply choose what you need.

Other Recommended packages

wireless-tools
powerprefs

So we will gladly get all useful packages using one line of command.

apt-get install gtkpbbutton pmud powerprefs wireless-tools

In a brief description

iBook has its own power management system which will be handled by pmud. All the power related issue like halt when the lid is closed, reduce power consumption in battery mode, etc will be enabled after pmud started. Since pmud is configurable, we can do something not possibly be done in MacOSX, e.g. closing the lid while maintaining the system running ( useful when doing a wireless sniff ).

Special function keys are handled by pbbuttonsd. gtkpbbuttons, a GTK client of pbbuttonsd, will show a graphical notificaion on your screen if for instance the volume up key is pressed.

trackpad from powerprefs package will customize the behavior of your trackpad, I found the notap option useful since it prevents the trackpad to generate click events.

wireless-tools will help us set up the airport card ( if you are using one ).
Install xserver

I like the idea of xserver, xclient, etc, but for a desktop user they don't have to know these stuff, and I won't bother to explain. Simply type this

apt-get install xserver-xfree86 xbase-clients xfonts-base xterm

Install your desktop

By the time I wrote this document, the gnome package has unmet dependencies. Hopefully it will be ready to use soon. Since I am a gtk+ fun, I turned to xfce4. Other desktop environment should follow a similar installation process.

apt-cache search xfce4

You will find some xfce4 toolkits really handy, e.g.

xfce4-battery-plugin will display a nice battery bar in panel.

Install them as you need

apt-get install xfce4

This is enough for setting up the whole xfce4 base system.
Configuration

These configurations should be self explaining. Details and explanations can be found in other iBook tutorials or by reading documentations.( ... I know )
emulate mouse middle click and right click.

add these 3 lines in your /etc/sysctl.conf

dev.mac_hid.mouse_button_emulation=1
dev.mac_hid.mouse_button2_keycode=68
dev.mac_hid.mouse_button3_keycode=87

prevent trackpad from generating click event
simple method

switch to root

trackpad notap

recommended mothed

create /etc/init.d/trackpad

add line

/sbin/trackpad notap

update-rc.d trackpad defaults

( I know I should use the start flag, but I don't want to bother those runlevel parameters after it )
configure sound

modconf

install driver->sound->dmasound ->dmasound_pmac
Configure airport card

modconf

install driver->net->wireless->airport

add following lines to /etc/network/interfaces

iface eth1 inet dhcp
        wireless_essid NAME
        wireless_key s:KEY
        wireless_nick NICKNAME

NAME is your networkid

KEY is your encryption key

NICKNAME is any string you want to nick your wireless network

bring up the wireless network by giving command in root mode

ifup eth1

make use of your function keys

add the following line to ~/.xinitrc or equivalent file

gtkpbbuttons&

start xfce4

add the following lines to ~/.xinitrc or equivalent file

xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-panel

see the documentation of xfce4
Preferred software

This paragraph is for my own record.... you design your own.

mozilla-browser
evolution
gaim
xchat
nautilus
gedit
abiword
gnumeric
rhythmbox
dictd
dict-nw
gnome-dictionary
stardict
fcitx
totem
gdesklets-data

Chinese locale

In progress
Other issues
kernel

By now, kernel 2.6 is still under heavy development hence not good enough for daily use.
alsa

A good thing to have, but I could not figure out how to make it working. It does not work quite well with the power management unit neither( need special tweak to fix it, hence out of the scope of this document ).
video playback

Simply unacceptable. due to oss driver.
performence

G3 is integer speed god. Also the performance boosts from MacOSX to Linux is huge. I notice this immediately after installing Yellow Dog Linux on my iBook, however Debian brings me both performance and stability.
flash

Flash does not work well in Debian ppc,in fact, flash does not work well in Linux, no matter the platform... an extension of mozilla called flash click or something like that will block all the flash until you click them yourself. I even use this in my regular Linux box since it saves tons of CPU power when browsing those website with enormous amount of flash ads.
Summary

Install the base system

make sure your /etc/apt/sources.list contains only this line uncommented

deb http://ftp.us.debian.org/debian/ unstable main non-free contrib

apt-get update
apt-get dist-upgrade

apt-get install gtkpbbutton pmud powerprefs wireless-tools

add these 3 lines in your /etc/sysctl.conf

dev.mac_hid.mouse_button_emulation=1
dev.mac_hid.mouse_button2_keycode=68
dev.mac_hid.mouse_button3_keycode=87

create /etc/init.d/trackpad

add line

/sbin/trackpad notap

update-rc.d trackpad defaults

modconf

install driver->sound->dmasound ->dmasound_pmac

modconf

install driver->net->wireless->airport

add following lines to /etc/network/interfaces

iface eth1 inet dhcp
        wireless_essid NAME
        wireless_key s:KEY
        wireless_nick NICKNAME

add the following line to ~/.xinitrc or equivalent file

gtkpbbuttons&

xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-panel

That's it! You have a fully functional iBook running Linux with fewest steps possible.
Ending

If you have an iBook, fill it with Linux.
Reference

    * Debian for PowerPC http://www.debian.org/ports/powerpc/
    * Tiny Planet's http://tinyplanet.ca/projects/debian/ibook/install
    * PowerPC Kernel Archives' http://www.ppckernel.org/
    * Debian for PowerPC Mailing Lists http://lists.debian.org/debian-powerpc/
发表于 2004-2-5 04:28:58 | 显示全部楼层
Yours is iBook G4 or not?
 楼主| 发表于 2004-2-5 13:44:35 | 显示全部楼层
iBook G3 2001款,同学学美术买的,后来转卖给我了。
发表于 2004-6-8 05:27:20 | 显示全部楼层
iBook G3 2001款,同学学美术买的,后来转卖给我了。
多钱买的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表