On Wed, 2005-04-27 at 14:46, tyson wrote:
> Hi-
>      I have a card reading device that I would like to use on my thin 
> client.  The only problem is I can't access the serial port on the 
> client, only on the server.  Does anyone know a way to get access to 
> this serial port?  I was told I might have to either create a daemon or 
> somehow put my application on the ltsp tree.  I don't know how to do 
> either, so I'm sort of in a bind.

Tyson,
putting your app in the ltsp tree is relatively simple.  Once you've
done that, if your app runs as root then you're done.  If it runs as the
user, then you will also need to set up local apps; this isn't too hard
but can be time consuming if you haven't done it before.

To put your app in the ltsp root, you will need to copy it to
/opt/ltsp/i386/.  For example, if your app is /usr/bin/fubar, you would
need to run "cp /usr/bin/fubar /opt/ltsp/i386/usr/bin/fubar" and maybe
"cp -a /usr/lib/fubar/ /opt/ltsp/i386/lib/fubar"

You need to get the libraries, too; LTSP is normally very limited.  "ldd
/usr/bin/fubar" will give you a list of all of the libraries that your
app needs.  For example:
$ ldd /usr/bin/ftp
        libreadline.so.4 => /usr/lib/libreadline.so.4 (0x482dc000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4830a000)
        libc.so.6 => /lib/tls/libc.so.6 (0x463ba000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x463a2000)

This tells me that ftp needs libreadline.so.4, libncurses.so.5,
libc.so.6, and ld-linux.so.2.  Search for each of these with
"find /opt/ltsp/i386/ -name libreadline.so.4",
"find /opt/ltsp/i386/ -name libncurses.so.5", etc.

You will see that (for this example) only libreadline.so.4 is missing, 
so you will need to copy it ("cp /usr/lib/libreadline.so.4
/opt/ltsp/i386/usr/lib/")

At this stage, your app is ready to run as root.  If you need it to run
as the user, then you need to search for "local apps" in the wiki, which
is http://wiki.ltsp.org.

I hope this helps.  Please let us know!


  There are two ways to do this
-- 
David Johnston <[EMAIL PROTECTED]>



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_____________________________________________________________________
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

Reply via email to