On Monday 22 January 2007 18:54, [EMAIL PROTECTED]
wrote:
I fumbled that! Sent last night before I was finished! Sorry about that!
> > On Sunday 21 January 2007 05:05,
> > [EMAIL PROTECTED]
> >
> > wrote:
> > > > Is it possible to have a "remote" LTSP terminal? By remote, I mean
> > > > really remote, as in another town.
>
> [SNIP]
>
> > You could put the whole 'ltsp root' on a flash disk
> > We used ebox 2300 at $87 + 256M flash at $19 from the taiwanese
> > manufacturer to do just this. So your sexy thin client + ltsp + nx is
> > easy!
>
> Can you elaborate steps needed James? It would be interesting to try this
> out.
I didn't quite do this, but nearly, just to make it easier for me <smile>:
1) install ltsp normally
2) tar up the opt/ltsp/1385 directory as new.tar.file
3) boot the ebox2300 (or any target) with knoppix. I used 5.1.1 in text mode
4) fdisk, mkfs.ext2, on the flash
5) mount /dev/hda1 /mnt # mount the flash
6) cd /mnt and untar the new.tar.file
7) mkdir /mnt/boot and /mnt/boot/grub
8) put the bog standard ltsp-vmlinuz and initramfs.gz in /mnt/boot
7) make a /mnt/grub/menu.lst to boot the kernel with 0 delay
8) grub-install --root-directory /mnt /dev/hda
I downloaded ltsp-kernel-kit.
In initramfs I made a dev/hda1 and modded init to mount the flash:
--------------------------------------------------------------------------------
#!/bin/sh
echo
"==============================================================================="
echo "Running /linuxrc"
echo "Mounting /proc"
mount -t proc /proc /proc
echo [debug] exec /bin/sh
mount /dev/hda1 /newroot
umount /proc
echo "Doing the switchroot"
exec /sbin/switchroot /newroot
echo "Hmm, switchroot must have failed!!!!"
exit
---------------------------------------------------------------------------------
and made the initramfs (build_initramfs)
I also played with the etc/rc.earlysysinit and rc.sysinit to NOT load modules,
built a kernel with all drivers needed and no modules, left out lib/modules
lib/share/zoneinfo and also left out the mod-tools from the 'build' to fit
everything on a 256M flash.
It's quick (quicker than the pxe versions even) and works perfectly.
Finally what I really did: a batch file that unpacks the .tgz's
from /opt/ltsp/packages and automated the changes by having an 'extra'
directory that is copied ontop of the i386 (ltsp root) after removing
etc/localtime link.
extra has everything I want eg ssh keys, grub stuff etc in the file system
order eg
-------------------------------------------------------------------------------------
[jupiter] /home/jam/BlackBox [63]% ls -lR extra
extra:
total 1808
drwxr-xr-x 2 root root 4096 2007-01-12 09:59 bin/
drwxr-xr-x 3 root root 4096 2007-01-12 10:00 boot/
-rwxr-xr-x 1 root root 1579112 2007-01-13 11:16 bzImage*
drwxr-xr-x 2 root root 4096 2007-01-13 10:41 data/
drwxr-xr-x 4 root root 4096 2007-01-17 09:26 etc/
-rwxr-xr-x 1 root root 234319 2007-01-17 10:08 initramfs.gz*
drwxr-xr-x 3 root root 4096 2007-01-12 13:14 root/
drwxr-xr-x 2 root root 4096 2007-01-12 09:57 sbin/
lrwxrwxrwx 1 root root 8 2007-01-12 09:12 var -> /tmp/var
extra/boot:
total 4
drwxr-xr-x 2 root root 4096 2007-01-12 10:02 grub/
extra/boot/grub:
total 4
-rw-r--r-- 1 root root 103 2007-01-12 10:02 menu.lst
extra/data:
total 0
extra/etc:
total 28
-rw-r--r-- 1 root root 381 2007-01-12 12:31 inittab.base
-rw-r--r-- 1 root root 56 2007-01-12 17:30 localtime
-rw-r--r-- 1 root root 350 2007-01-13 09:34 lts.conf
drwxr-xr-x 2 root root 4096 2007-01-12 09:54 rc.d/
-rwxr-xr-x 1 root root 1749 2007-01-12 13:09 rc.early_sysinit*
-rwxr-xr-x 1 root root 3818 2007-01-17 09:26 rc.sysinit*
drwxr-xr-x 2 root root 4096 2005-11-21 10:13 ssh/
extra/etc/rc.d:
total 8
-rwxr-xr-x 1 root root 50 2005-04-06 15:20 nets*
extra/etc/ssh:
total 24
-r--r--r-- 1 root root 668 2005-04-06 15:20 ssh_host_dsa_key
-r--r--r-- 1 root root 604 2005-04-06 15:20 ssh_host_dsa_key.pub
-r--r--r-- 1 root root 529 2005-04-06 15:20 ssh_host_key
-r--r--r-- 1 root root 333 2005-04-06 15:20 ssh_host_key.pub
-r--r--r-- 1 root root 887 2005-04-06 15:20 ssh_host_rsa_key
-r--r--r-- 1 root root 224 2005-04-06 15:20 ssh_host_rsa_key.pub
--------------------------------------------------------------------------------------
This is all slightly fudged. I cannot see how the ltsp system works now (4.2)
as opposed to older. No tmp ramdisk is created. so I did it as it used to be
done:
eg from rc.earlysysinit
-----------------------------------------------------------------------------------
...
#==============================================================================
# Start with the basic inittab file
#
echo "Creating ramdisk on /tmp"
RAMDISK_SIZE=${RAMDISK_SIZE:-"1024"}
/sbin/mke2fs -q -m0 /dev/rd/0 ${RAMDISK_SIZE}
/bin/mount -n /dev/rd/0 /tmp
cat /etc/inittab.base >/tmp/inittab
-----------------------------------------------------------------------------------
and my build script
-----------------------------------------------------------------------------------
#! /bin/sh
echo "===================== rm -fr i386"
rm -fr i386
echo "====== installing files into i386"
tar xzf /opt/ltsp/pkg_cache/ltsp-glibc-1.0-1-i386.tgz
...
...
tar xzf opt/ltsp/pkg_cache/ltsp-util-linux-1.1-0-i386.tgz
cd i386
chmod 755 *
chmod 555 proc
chmod 1777 tmp
echo "================ rm etc/localtime"
rm etc/localtime
echo "== rm -fr usr/share/zoneinfo"
rm -fr usr/share/zoneinfo
echo "======= find . |cpio -pdv ../i386"
cd ../extra
find . |cpio -pd ../i386
---------------------------------------------------------------------------------
Hope that this shows you what you need :-)
Cheers
James
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net