[K12OSN] Instructions to support PPC in LTSP

Jim Kronebusch jim at winonacotter.org
Thu Mar 10 16:02:44 UTC 2005


Start Server Setup

Unpack the apple.tar.gz

# tar -zxvf apple.tar.gz
# cd apple 
# cp initrd-ppc-2.4.22-ltsp-1 /tftpboot 
# cp vmlinux-ppc-2.4.22-ltsp-1 /tftpboot 

Make quick edit to yaboot.conf

# vi yaboot.conf

Remove the /tftpboot from the image and initrd lines: 

#device=enet:
#partition=0
timeout=30
init-message="Lumensoftware Terminal Server"
default=linux 
image=/vmlinux-ppc-2.4.22-ltsp-1
label=linux
initrd=/initrd-ppc-2.4.22-ltsp-1
append="init=/linuxrc rw root=/dev/ram0" 

# cp yaboot.conf /tftpboot 
# cp yaboot /tftpboot 
# cp ltsp-ppc.tar.gz /opt/ltsp 
# cd /opt/ltsp 
# tar -zxvf ltsp-ppc.tar.gz

Edit /etc/exports by adding extra lines to server ppc directory:

# vi /etc/exports

/opt/ltsp/i386
192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
/opt/ltsp/ppc
192.168.0.0/255.255.255.0(ro,no_root_squash,sync) # new line for mac
support
/var/opt/ltsp/swapfiles
192.168.0.0/255.255.255.0(rw,no_root_squash,async)

Restart nfs
# /etc/init.d/nfs restart

Edit /etc/dhcpd.conf for Mac support:

Attached is a sample dhcpd.conf file.

Restart dhcpd when finished making changes.
#/etc/init.d/dhcpd restart

End of Server Setup
---------------------------------------

Start Client Setup

Boot client while holding apple+option+o+f (to boot to open firmware).
Type the following at the command line:

boot enet:192.168.0.254

Hit enter.  There may be a slight hesitation followed by a black screen
and a blinking globe, after 
that you should see the Lumensoftware yaboot screen.  Then the kernel
and all of the fun stuff should 
load, when finished you should be at a command prompt.  If that happened
without errors type

startx

This should boot you to a login screen.  If not, start troubleshooting
your XF86Config and make a custom one.
So far I have tested all flavor iBooks and iMacs and have only had
trouble with the Indigo Vintage and have
a custom XF86Config to handle this if needed.

Now that you know your setup works modify /opt/ltsp/ppc/etc/lts.conf

# vi /opt/ltsp/ppc/etc/lts.conf

Comment out "SCREEN_01 = shell" and uncomment "SCREEN_01 = startx", now
startup of X will be automatic.

Next if you want to set your macs to permanently boot from the ltsp
server without interaction do the following:

Boot with apple+option+o+f again
Type the follwing at the command line:

setenv boot-device enet:192.168.0.254

Hit enter.

setenv auto-boot? true

Hit enter.

reset-all

Hit enter.

The machine should reboot and now automatically boot to ltsp every time
it is powered up.

Tip:  If for some reason your machine will not boot after entering boot
enet:192.168.0.254 with some error that 
it cannot find a boot loader or whatever, try this:

boot enet:192.168.0.254,yaboot

For some reason this is sometimes necessary.

End Client Setup
--------------------------------

-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpd.conf
Type: application/octet-stream
Size: 2597 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/k12osn/attachments/20050310/95533359/attachment.obj>


More information about the K12OSN mailing list