Raspberry Pi as a fat client

William Chandler <[email protected]> Wed, 25 Apr 2012 21:01:12 -0400
Newsgroups gmane.linux.terminal-server.devel
Message-ID <CABNT+h69nfYKSOF5uJTcrVFuEVp7UHsGhyv3LZEWaJQdzEwG_A@mail.gmail.com>
--===============1910882798053258763==
Content-Type: multipart/alternative; boundary=000e0cdfd24a3174c404be8a86b0

--000e0cdfd24a3174c404be8a86b0
Content-Type: text/plain; charset=ISO-8859-1

First time posting.  I was advised to post on here after asking for help on
the IRC channel.

I've got a raspberry pi.  More info here: http://www.raspberrypi.org/

I haven't found many how-tos for ARM, aside from the two by Vagrant (which
are practically the same thing):
http://wiki.debian.org/DebianEdu/LTSPArm
and
http://people.debian.org/~vagrant/hpt5325/HP_t5325_Debian_Ltsp_Howto

The pi doesn't use uboot.  Once the GPU initializes it immediately looks to
the SD card for boot info.  As such, it might be best to implement this as
a fat client.  If you want to, you can still pass an "nfsroot=" to the
kernel in a cmdline.txt file on the /boot/ partition of the SD card.  It's
briefly described here:
http://dl.dropbox.com/u/3669512/stable/xbmc_build.txt

I've been able to successfully boot off an NFS share so that's not an
issue.  It'll be trivial to boot off an LTSP's NFS mount.

The problem I'm getting stuck at is building an image that can work with an
LTSP environment.  The raspberry pi foundation (who's organising the pi)
are labelling a Debian image as being the least buggy image available for
it.  It can be downloaded here: http://www.raspberrypi.org/downloads .  You
can mount the image with `sudo mount -o loop,offset=80740352 debian.img
/mnt` and get the rootfs.  Details on the /boot/ partition are described
here: http://elinux.org/RPi_Advanced_Setup#Setting_up_the_boot_partition .

Ideally I'd like to take this debian "golden" image and just add the LTSP
client to it, install LDM onto a server and go from there.

I booted the pi and installed ltsp-client.  It resolved the dependencies
then failed, complaining about not being installed onto a machine.  I
touch'd /etc/ltsp_chroot to fake it out and let it install.  It did so.  I
was *hoping* most of the magic would have been taken care of in the package
but I'm not sure.  I glanced over the postinst and it doesn't look to do
much.

The pi deb image defaults to runlevel 2.  I sign in, and run 'sudo telinit
5' .  It starts to go into runlevel 5 and just hangs there.  Screen is
black with the little _ flashing in the top left.  I can still SSH into it
and look around.  If I run `grep ltsp /var/log/* | grep -v auth | grep -v
dpkg` I don't get anything.  I added some echo's to
/etc/init.d/ltsp-client-core and ltsp-client-setup just to make sure they
have run, and they do when trying to enter runlevel 5.  But it doesn't go
anywhere.  If I `ps aux | grep ltsp` I just see ltspfsd running.  Pstree
shows it spawned from init (which I assume is correct).

This is where I am.  I can't think of much else to do, or really where to
go next.  I've tried building an ltsp-build-client with --arch=armel as
outlined in the previous tutorials but the images would fail.  At first I
thought it might be the kernel, but I don't think so.  I tried putting the
necessary files in /opt/ltsp/armel/boot just to make sure.  It booted, but
I couldn't tell if it was from the /boot/kernel.img that it *already* ran
to mount the nfs or what.  Either way there were other issues that made it
seem like I'd be re-inventing the wheel going that route.  Would it be best
for me to tackle this route?


Cheers!

--000e0cdfd24a3174c404be8a86b0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

First time posting.=A0 I was advised to post on here after asking for help =
on the IRC channel.<br><br>I&#39;ve got a raspberry pi.=A0 More info here: =
<a href=3D"http://www.raspberrypi.org/">http://www.raspberrypi.org/</a><br>=
<br>
I haven&#39;t found many how-tos for ARM, aside from the two by Vagrant (wh=
ich are practically the same thing):<br><a href=3D"http://wiki.debian.org/D=
ebianEdu/LTSPArm">http://wiki.debian.org/DebianEdu/LTSPArm</a><br>and<br>
<a href=3D"http://people.debian.org/~vagrant/hpt5325/HP_t5325_Debian_Ltsp_H=
owto">http://people.debian.org/~vagrant/hpt5325/HP_t5325_Debian_Ltsp_Howto<=
/a><br><br>The pi doesn&#39;t use uboot.=A0 Once the GPU initializes it imm=
ediately looks to the SD card for boot info.=A0 As such, it might be best t=
o implement this as a fat client.=A0 If you want to, you can still pass an =
&quot;nfsroot=3D&quot; to the kernel in a cmdline.txt file on the /boot/ pa=
rtition of the SD card.=A0 It&#39;s briefly described here: <br>
<a href=3D"http://dl.dropbox.com/u/3669512/stable/xbmc_build.txt">http://dl=
.dropbox.com/u/3669512/stable/xbmc_build.txt</a><br><br>I&#39;ve been able =
to successfully boot off an NFS share so that&#39;s not an issue.=A0 It&#39=
;ll be trivial to boot off an LTSP&#39;s NFS mount.<br>
<br>The problem I&#39;m getting stuck at is building an image that can work=
 with an LTSP environment.=A0 The raspberry pi foundation (who&#39;s organi=
sing the pi) are labelling a Debian image as being the least buggy image av=
ailable for it.=A0 It can be downloaded here: <a href=3D"http://www.raspber=
rypi.org/downloads">http://www.raspberrypi.org/downloads</a> .=A0 You can m=
ount the image with `sudo mount -o loop,offset=3D80740352 debian.img /mnt` =
and get the rootfs.=A0 Details on the /boot/ partition are described here: =
<a href=3D"http://elinux.org/RPi_Advanced_Setup#Setting_up_the_boot_partiti=
on">http://elinux.org/RPi_Advanced_Setup#Setting_up_the_boot_partition</a> =
.<br>
<br>Ideally I&#39;d like to take this debian &quot;golden&quot; image and j=
ust add the LTSP client to it, install LDM onto a server and go from there.=
<br><br>I booted the pi and installed ltsp-client.=A0 It resolved the depen=
dencies then failed, complaining about not being installed onto a machine.=
=A0 I touch&#39;d /etc/ltsp_chroot to fake it out and let it install.=A0 It=
 did so.=A0 I was *hoping* most of the magic would have been taken care of =
in the package but I&#39;m not sure.=A0 I glanced over the postinst and it =
doesn&#39;t look to do much.<br>
<br>The pi deb image defaults to runlevel 2.=A0 I sign in, and run &#39;sud=
o telinit 5&#39; .=A0 It starts to go into runlevel 5 and just hangs there.=
=A0 Screen is black with the little _ flashing in the top left.=A0 I can st=
ill SSH into it and look around.=A0 If I run `grep ltsp /var/log/* | grep -=
v auth | grep -v dpkg` I don&#39;t get anything.=A0 I added some echo&#39;s=
 to /etc/init.d/ltsp-client-core and ltsp-client-setup just to make sure th=
ey have run, and they do when trying to enter runlevel 5.=A0 But it doesn&#=
39;t go anywhere.=A0 If I `ps aux | grep ltsp` I just see ltspfsd running.=
=A0 Pstree shows it spawned from init (which I assume is correct).<br>
<br>This is where I am.=A0 I can&#39;t think of much else to do, or really =
where to go next.=A0 I&#39;ve tried building an ltsp-build-client with --ar=
ch=3Darmel as outlined in the previous tutorials but the images would fail.=
=A0 At first I thought it might be the kernel, but I don&#39;t think so.=A0=
 I tried putting the necessary files in /opt/ltsp/armel/boot just to make s=
ure.=A0 It booted, but I couldn&#39;t tell if it was from the /boot/kernel.=
img that it *already* ran to mount the nfs or what.=A0 Either way there wer=
e other issues that made it seem like I&#39;d be re-inventing the wheel goi=
ng that route.=A0 Would it be best for me to tackle this route?<br>
<br><br>Cheers!<br>

--000e0cdfd24a3174c404be8a86b0--


--===============1910882798053258763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============1910882798053258763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net

--===============1910882798053258763==--