Dormition,

First thing to keep in mind is that if you set SCREEN_01 = shell, then you are running a shell session on the thin client. each command you type is being executed by the thin client.

If you set SCREEN_01 = startx, then you are running a session on the server. If you pop up an xterm, you will get a shell prompt ON THE SERVER. So, the commands you run will be running on the server.

If you want to see what scanners are available on the thin client, from the server, you need to edit your /etc/sane.d/net.conf file on your server, and add the IP address of your thin client.

If you don't want to edit that file, you can set SANE_NET_HOSTS to a colon-separated list of ip addresses of machines on the net.

Jim McQuillan
[EMAIL PROTECTED]



Dormition Skete wrote:
I am having problems getting scanners to work on our workstations. I am concentrating now on an HP ScanJet 5490c scanner since I know it is supported by sane, and works on my machines with Linux. I am running CentOS 4.3 on the server.

When I boot a client machine with this scanner plugged into it, with the lts.conf file set to "SCREEN_01 = shell", the client can see the scanner from the initial prompt. When I do a "scanimage -L", I get:

device 'hp5400:libusb:004:002' is a Hewlett-Packard HP54xx Flatbed Scanner flatbed scanner

But when I startx, log in, and do that command, even as root, it can't find the printer.

---

There are a couple of things that I believe are going wrong here, and I don't know how to fix either one.

---

If I do an "ls /proc/bus/usb" at the initial shell, it shows five devices. If I do that after I startx and log in, it only shows one device. I believe it is a USB controller. It is not the scanner.

---

There may also be a permissions problem. When I boot this particular workstation as a CentOS 4.3 full workstation (not as an ltsp workstation), it can see this scanner when I am logged in as root, but it can't when I am a regular user.

So I am thinking that perhaps I have some sort of permissions problem on the server, too. I've read some things about this in the man pages, but I don't understand what to do to fix it. I thought I read that if we use hotplug, it will take care of that.

---

I would *greatly*, *GREATLY* appreciate any help with this. I only have this, and one other small issue (which I'll post separately at some later date), and we should be able to eliminate almost all of our Windows boxes, converting them to thin clients.

Please, somebody help me with this.  We're so close...

---

Below are pertinent files:

---

# /opt/ltsp/i386/etc/lts.conf -- Pertinant section

# This is for the Dell Optina - HtmMeteora Workstation

[ws104]
       SERVER             = 192.168.0.2
       XDM_SERVER         = 192.168.0.2
       XSERVER            = radeon
       X_MOUSE_PROTOCOL   = "IMPS/2"
       X_MOUSE_DEVICE     = "/dev/psaux"
       X_MOUSE_RESOLUTION = 400
       X_MOUSE_BUTTONS    = 3
       USE_XFS            = N
#        SCREEN_01          = startx
       SCREEN_01          = shell
       SOUND = Y
       SOUND_DAEMON        = esd
       VOLUME           = 80

   LOCAL_STORAGE       = Y

    MODULE_01       = usblp
    PRINTER_0_TYPE       = U
    PRINTER_0_DEVICE   = /dev/usb/lp0

    HOTPLUG           = Y
    XINETD_SERVICES       = "saned"


# NOTE: I CAN COMMENT OUT THE LAST SIX LINES ABOVE, AND IT WILL DO THE SAME THING.

---

# /opt/ltsp/i386/etc/sane.d/saned.conf

#
# saned.conf
#
# The contents of the saned.conf  file  is  a  list  of  host  names,  IP
# addresses or IP subnets (CIDR notation) that are permitted to use local
# SANE devices. IPv6 addresses must be enclosed in brackets,  and  should
# always  be specified in their compressed form.
#
# The hostname matching is not case-sensitive.
#
#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29

192.168.0.1/254

#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
#
# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).


# NOTE: IT DOES NOT HAVE ANY EFFECT WHETHER I COMMENT OUT THE 192.168.0.1/254 OR NOT.

---

# /opt/ltsp/i386/etc/sane.d/hp5400.conf

# hp5400.conf
# See man sane-hp5400 for a description.
#
# HP 5400C
# usb 0x03F0 0x1005
#
# HP 5470C
# usb 0x03F0 0x1105
#
# Device filename to use for scanner access
#
# Uncomment the following line if autodetection fails
#
# /dev/usbscanner

usb 0x03F0 0x1105
device hp5400:libusb:00?:00?


NOTE: I THINK IT WAS A "cat /proc/bus/usb/devices" COMMAND, OR SOMETHING SIMILAR, THAT VERIFIED THE "0x03F0 0x1105" TO BE THE CORRECT DEVICE NAME RECOGNIZED BY THE SYSTEM FOR THE 5490c SCANNER, TOO.

---

# /opt/ltsp/i386/etc/xinetd.d/saned

# default: on
# description: The sane server accepts requests
# for network access to a local scanner via the
# network. Place this script in /opt/ltsp/i386/etc/xinetd.d/
service saned
{
   disable     = no
   flags    = REUSE
   socket_type = stream
   wait        = no
   user        = root
   server      = /usr/sbin/saned
   protocol    = tcp
}

---

# /opt/ltsp/i386/etc/services

# Local services

sane 6566/tcp # SANE network scanner daemon




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
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