O velho maclinux tinha uma fazenda

Fuçando no seu Macintosh. Linux, BSD, Hardware, Gambiarra, Metareciclagem

Google

Tuesday, June 10, 2008

Novas buscas

Descobri alguns caras que andaram com a experiência do LTSP em arquiteturas diferentes para o servidor e os terminais (Cross Arch). Esse link parece ser bacana: http://elliot.ecowizards.com/wp/archives/2006/05/18/ltsp-booting-old-mac-hardware/

Parece que a manha é instalar o Edubuntu localmente num iMac e fazer a cópia das pastas tftboot para o servidor. 
The trick I’ve found is that the ltsp-build-client script doesn’t complete correctly unless you run it all locally. So, after you have completed the server section, move to the client. Instead of a live disk I strongly suggest installing edubuntu locally and getting it up-to-date with
apt-get update && apt-get upgrade
.
After running ltsp-build-client you need to move two folders from the client to the server.
You can
scp -r /var/lib/tftboot/* administrator@serverip:~/

and then move it (as root) to the /var/lib/tftpboot folder on the server)

Then I found that mounting /opt/ltsp from the server onto the client in a different location worked well for moving the files.

mkdir /opt/ltsp/server
sudo mount serverip:/opt/ltsp /opt/ltsp/server
cp -a /opt/ltsp/powerpc /opt/ltsp/server/

Finally to boot 333mhz machines it looks like you’ll have to run though the whole thing again, but on the older machine. Then it needs to netboot using bootp instead of dhcp so you have to add individual lines for each client in /etc/ltsp/dhcpd.conf that references the mac address of the machine.
Something like this:
host orange1 {
hardware ethernet 00:50:e4:b9:18:07;
fixed-address 192.168.0.201;
filename "/ltsp/yaboot";
option root-path "/opt/ltsp/powerpc";
}

Your entire dhcpd.conf file should look like this:

authoritative;

allow booting;
allow bootp;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.200;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

}

option root-path "/opt/ltsp/powerpc_indigo";

if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC" {
filename "/ltsp/yaboot";
option vendor-class-identifier "AAPLBSDPC";
option vendor-encapsulated-options
01:01:02:08:04:01:00:00:01:82:05:69:6d:61:63:34;
}
else {
filename "/ltsp/pxelinux.0";
}

host orange1 {
hardware ethernet 00:50:e4:b9:18:07;
fixed-address 192.168.0.201;
filename "/ltsp/yaboot";
option root-path "/opt/ltsp/powerpc";
}

Ainda não tentei a brincadeira, mas isso deve acontecer em breve e então eu posto o passo a passo aqui.

A gente recebeu uma doação grande de iMacs de um bureau de serviços gráficos e estes caras podem ser bastante úteis para a nossa experiência. Vou descolar uma imagem do Edubuntu para fazer a brincadeira funcionar. 

Hoje devo dar um pulo no espaço de Guaianazes e vou matutar com o pessoal algumas idéias para lá.

Voltando aos Macs

Fiquei um tempo afastado da brincadeira com os Macs, mas retomei com gana de pesquisar mais. Descolei um torrent com os manuais de manutenção da Apple e descolei um MacBook Intel. Agora estou brincando com o Xcode, para instalar algumas ferramentas do NetBSD no meu Mac.

Devo retomar as pesquisas com o LTSP Crossarch nos iMacs, porque estou tocando uma experiência em Guaianazes na montagem de uma biblioteca comunitária. Temos uma máquina que poderia ser o server PC e os terminais iMac ainda continuam comigo. Também andei fuçando e descobri alguns sites como o Macmod.com, que ensinam a overclockar alguns iMacs. Logo posto alguns links bacanas que andei descobrindo.