PDA

View Full Version : [ubuntu] 10.04 - LTSP and local printers



Gn1K
August 27th, 2010, 03:50 PM
Hi,

I am working on a LTSP server, all work fine except local printers.

I can use a printer on the server.
On thin client it's possible to use the printer directly connect on server but impossible with the local printer.

My users are member of fuse,lpadmin,plugdev etc...
My lts.conf :

-----
[Default]
LOCALDEV=True
.
.
.
[MAC.]
PRINTER_0_DEVICE=/dev/usb/lp0 (or /dev/usblp0)
PRINTER_0_TYPE=U
------

Someone have an idea?
Thanks a lot !

( forgive my bad english plz ;) )

Gn1K

craigp84
August 27th, 2010, 05:31 PM
Hi,

On the client, does the /dev/usb/lp0 device exist?

I'm wondering if you're just missing a MODULE line (or 2) to add missing printer support to the kernel.

Gn1K
August 27th, 2010, 05:36 PM
No, in Lucid /dev/ isn't the same :-/
Now we have /dev/usb/00x/00x (x is a number)
But i don't find my printer in ... It's just number.
In the printer window configuration, the printer don't up automaticaly but if i plug it on the server it's good :-/

For MODULE line i miss.... What I must to write ?

Sorry again for my english and thanks you

craigp84
August 27th, 2010, 08:35 PM
Your english is absolutely fine.

Ok it sounds like the client kernel isn't loading the right module(s) to support the printer then from what you say.

What kind of printer is it?

Gn1K
August 28th, 2010, 01:06 AM
It's a Lexmark Z51 ( USB and parallel but thin client just have USB port)

craigp84
August 28th, 2010, 08:25 AM
Ahhh ok Lexmark, what's the betting that's a GDI printer (means it uses a program, typically implemented in the driver, on the host PC to process any incoming jobs into its simple printer language).

When you plug it into the server, and you confirm it's working by running off a test page, login to the server as root and run -->


lsmod > /var/tmp/server.modules

Then plug it into the client, and run the command


lsmod > /var/tmp/client.modules

Paste the contents of both files here. Might also be worth pasting the output from an "lsusb" command too.

Don't worry, we'll get it fixed, we'll need to build a new client image but this is easy, i will step you through it.

Gn1K
August 28th, 2010, 02:25 PM
On server :
Oki I am connect
root in the server, I plug the printer to USB port.
If i go to "System => Admin => Printer " , I can see my printer auto detect : Lexmark-Z51
If i go to properties I see :
-Url : usb://Lexmark/Z51
-Model: Lexmark Z51 Foomatic/lx5000
I click on "print test page" : it's work

I open a console window :
su root
lsmod > /var/tmp/server.modules
----------------
Module Size Used by
usblp 12407 0
binfmt_misc 7960 1
ppdev 6375 0
fbcon 39270 71
tileblit 2487 1 fbcon
font 8053 1 fbcon
bitblit 5811 1 fbcon
softcursor 1565 1 bitblit
vga16fb 12757 0
vgastate 9857 1 vga16fb
lp 9336 0
parport 37160 2 ppdev,lp
radeon 740390 2
ttm 60847 1 radeon
dell_wmi 2177 0
drm_kms_helper 30742 1 radeon
dcdbas 6886 0
drm 199268 4 radeon,ttm,drm_kms_helper
e752x_edac 12667 0
i2c_algo_bit 6024 1 radeon
video 20623 0
psmouse 64576 0
output 2503 1 video
edac_core 45423 1 e752x_edac
shpchp 33711 0
serio_raw 4918 0
osst 55350 0
st 39538 0
usbhid 41084 0
hid 83440 1 usbhid
floppy 63156 0
megaraid_mbox 30977 2
megaraid_mm 9809 1 megaraid_mbox
aic7xxx 130892 0
scsi_transport_spi 26284 1 aic7xxx
e1000 108809 0
nbd 9935 0
------------------
lsusb > /var/tmp/server.lsusb
------
Bus 004 Device 003: ID 413c:2106 Dell Computer Corp.
Bus 004 Device 002: ID 0461:4d22 Primax Electronics, Ltd
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 043d:0020 Lexmark International, Inc. Z51 Printer
Bus 001 Device 002: ID 413c:a001 Dell Computer Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
------

On thin client now :

Start thin client, start a session in "test"
I plug the printer to USB port.
If i go to "System => Admin => Printer " , I can see my printer auto detect
Url : usb://Lexmark/Z51
Status : Stopped - Unplugged or turned off ( I think Ubuntu think the printer is on the server)
I open a console window :
su root
lsmod > /tmp/client.modules
Module Size Used by
usblp 12407 0
binfmt_misc 7960 1
ppdev 6375 0
fbcon 39270 71
tileblit 2487 1 fbcon
font 8053 1 fbcon
bitblit 5811 1 fbcon
softcursor 1565 1 bitblit
vga16fb 12757 0
vgastate 9857 1 vga16fb
lp 9336 0
parport 37160 2 ppdev,lp
radeon 740390 2 about:home
ttm 60847 1 radeon
dell_wmi 2177 0
drm_kms_helper 3074about:home2 1 radeon
dcdbas 6886 0
drm 199268 4 radeon,ttm,drm_kms_helper
e752x_edac 12667 0
i2c_algo_bit 6024 1 radeon
video 20623 0
psmouse 64576 0
output 2503 1 video
edac_core 45423 1 e752x_edac
shpchp 33711 0
serio_raw 4918 0
osst 55350 0
st 39538 0
usbhid 41084 0
hid 83440 1 usbhid
floppy 63156 0
megaraid_mbox 30977 2
megaraid_mm 9809 1 megaraid_mbox
aic7xxx 130892 0
scsi_transport_spi 26284 1 aic7xxx
e1000 108809 0
nbd 9935 0

lsusb > /tmp/client.lsusb

Bus 004 Device 003: ID 413c:2106 Dell Computer Corp.
Bus 004 Device 002: ID 0461:4d22 Primax Electronics, Ltd
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 413c:a001 Dell Computer Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

It's the same :-/
Except this line : Bus 001 Device 006: ID 043d:0020 Lexmark International, Inc. Z51 Printer ( in Server not in Thin client )

variona
October 3rd, 2010, 09:41 PM
To check the client it is not sufficient to open a terminal in graphic mode (X11). After you have logged into graphic mode you work on the server! To check the client you will need to set a root Password in the chroot /opt/ltsp/i386/ and then connect to the client via ssh (eventually install ssh in the chroot) or switch to console 1 (Strg+Alt+F1).

HTH

variona