LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problem installing a USB printer on a LTSP client (https://www.linuxquestions.org/questions/ubuntu-63/problem-installing-a-usb-printer-on-a-ltsp-client-654524/)

avinash.rao 07-09-2008 02:47 AM

Problem installing a USB printer on a LTSP client
 
Hello,

I am using Ubuntu Studio as LTSP server and i have confiured a network printer which works fine for all the users. But, there's new HP officejet 4355 All-in one printer which has only a USB port. I have installed the recommended hplip-2.8.6.run binaries/libraries, but i am not able to setup the local printer. Coz, when i plug in the printer to the USB port on the LTSP client, the OS doesn't detect any device. I guess the USB ports can detect only drives for data storage.

Just to clarify, the local devices option is enabled on the LTSP server. If i plug in a USB drive, the client can detect it without any problems.

How do i make this work??
Avinash

tredegar 07-10-2008 12:35 PM

This isn't really my "thing", but you have zero-replies for nearly two days, so here goes:
Quote:

when i plug in the printer to the USB port on the LTSP client, the OS doesn't detect any device
Why do you say that?
Plug in the printer and turn it on. What is the output of lsusb ?
Quote:

I guess the USB ports can detect only drives for data storage.
Nope, linux detects and configures: my mouse, camera, webcam, mobile-phone-broadband dongle, iPod and a whole lot more I expect.

Please see here (I just used a search engine):
http://www.linuxprinting.org/show_pr...355_All-in-One
for more about your printer and linux. Looks like you'll need hpijs

[Edit]: Please don't re-post if you do not receive a fast reply. Zero-replies threads are automatically bumped for 3 consecutive days.
Your original post is here http://www.linuxquestions.org/questi...client-654359/ , and should be closed / merged
[/Edit]

avinash.rao 07-10-2008 11:14 PM

Thanks for the reply.

I have installed the hplip-2.8.6.run binaries/libraries, which gives me an option to install printers connected to the local USB port. I have not checked the output of lsusb, but when i did lsusb last time it gave me two ports, but there are 4 ports on the machine. I will check the link you have mentioned and get back if necessary.

Sorry for posting it again, it was by mistake. I will remove it right away.


Quote:

Originally Posted by tredegar (Post 3210273)
This isn't really my "thing", but you have zero-replies for nearly two days, so here goes:

Why do you say that?
Plug in the printer and turn it on. What is the output of lsusb ?

Nope, linux detects and configures: my mouse, camera, webcam, mobile-phone-broadband dongle, iPod and a whole lot more I expect.

Please see here (I just used a search engine):
http://www.linuxprinting.org/show_pr...355_All-in-One
for more about your printer and linux. Looks like you'll need hpijs

[Edit]: Please don't re-post if you do not receive a fast reply. Zero-replies threads are automatically bumped for 3 consecutive days.
Your original post is here http://www.linuxquestions.org/questi...client-654359/ , and should be closed / merged
[/Edit]


avinash.rao 07-14-2008 01:15 PM

The printer is connected to the local machine that is to the LTSP client!! Its strange, coz when the Linux OS is accessing a USB pen drive when i plug-in, how can there be a access problem. Below is a listing of USB devices in /dev directory.
usbdev1.1_ep00 usbdev1.1_ep81 usbdev2.1_ep00 usbdev2.1_ep81

I really appreciate your help and i hope there is a easier way to do this.
Thanks
Avinash

Quote:

Originally Posted by tredegar (Post 3210273)
This isn't really my "thing", but you have zero-replies for nearly two days, so here goes:

Why do you say that?
Plug in the printer and turn it on. What is the output of lsusb ?

Nope, linux detects and configures: my mouse, camera, webcam, mobile-phone-broadband dongle, iPod and a whole lot more I expect.

Please see here (I just used a search engine):
http://www.linuxprinting.org/show_pr...355_All-in-One
for more about your printer and linux. Looks like you'll need hpijs

[Edit]: Please don't re-post if you do not receive a fast reply. Zero-replies threads are automatically bumped for 3 consecutive days.
Your original post is here http://www.linuxquestions.org/questi...client-654359/ , and should be closed / merged
[/Edit]


karelvdm 09-13-2008 04:59 AM

Hi,

Please post your lts.conf file

here a section of mine that has two usb printers connected to it

Code:

        [192.168.230.106]
                PRINTER_0_TYPE          = U
                PRINTER_0_DEVICE        = /dev/usb/lp0
                PRINTER_0_PORT          = 9100
                PRINTER_1_TYPE          = U
                PRINTER_1_DEVICE        = /dev/usb/lp1
                PRINTER_1_PORT          = 9101

Hope it points you into the right direction.

avinash.rao 09-17-2008 12:45 AM

The contents of lts.conf


# This is the default lts.conf file for ltsp 5.
# For more information about valid options please see:
# /usr/share/doc/ltsp-client/examples/lts-parameters.txt.gz
# in the client environment.
#
# Note that things like sound and local device support are
# auto-enabled if the corresponding packages are installed,
# there is no need to manually set these options anymore.
#
# **** THIS FILE SHOULD NO LONGER BE USED FROM HERE !!! ****
#
# With the introduction of the nbd/unionfs/squashfs structure
# the lts.conf file moved to the tftp root please create:
# /var/lib/tftpboot/ltsp/i386/lts.conf instead for your changes
#
# In case you want to use the lts.conf here, this still works,
# but you need to run ltsp-update-image after every change.


The contents of ltsp-client-core file - my configuration file

# Global defaults for all clients
# if you refer to the local server, just use the
# "server" keyword as value
# see lts_parameters.txt for valid values
################
[default]
X_COLOR_DEPTH=16
LOCALDEV=True
SOUND=True
NBD_SWAP=True
SYSLOG_HOST=server
XKBLAYOUT=de

################
#[MAC ADDRESS]: Per thin client settings
################

[00:12:45:74:AE:CA]
XSERVER = vesa
X_MOUSE_DEVICE=/dev/ttyS0
X_MOUSE_PROTOCOL=intellimouse

###############
# A Thin Client Print server
# (switch off X by pointing tty7 to shell,
# to save ressources)
###############
[00:11:25:93:CF:00]
PRINTER_0_DEVICE=/dev/usblp0
SCREEN_07=shell

###############
# A workstation that executes a specific
# command after login
###############
[00:11:25:93:CF:02]
LDM_REMOTECMD=/usr/bin/myloginscript

PRINTER_0_TYPE = U
PRINTER_0_DEVICE = /dev/usb/lp0

Thanks
Avinash

Quote:

Originally Posted by karelvdm (Post 3279109)
Hi,

Please post your lts.conf file

here a section of mine that has two usb printers connected to it

Code:

        [192.168.230.106]
                PRINTER_0_TYPE          = U
                PRINTER_0_DEVICE        = /dev/usb/lp0
                PRINTER_0_PORT          = 9100
                PRINTER_1_TYPE          = U
                PRINTER_1_DEVICE        = /dev/usb/lp1
                PRINTER_1_PORT          = 9101

Hope it points you into the right direction.


avinash.rao 09-26-2008 09:42 PM

The IP Address in your code, is that the IP of the LTSP Client? I am need of installing a couple of USB Printers on LTSP clients.

Quote:

Originally Posted by karelvdm (Post 3279109)
Hi,

Please post your lts.conf file

here a section of mine that has two usb printers connected to it

Code:

        [192.168.230.106]
                PRINTER_0_TYPE          = U
                PRINTER_0_DEVICE        = /dev/usb/lp0
                PRINTER_0_PORT          = 9100
                PRINTER_1_TYPE          = U
                PRINTER_1_DEVICE        = /dev/usb/lp1
                PRINTER_1_PORT          = 9101

Hope it points you into the right direction.


karelvdm 04-17-2009 12:46 PM

Hi,

I stumbled onto this thread again and somehow i missed ur reply.
Did u manage to get ur printers workin?

The ip addres is that of my client.

avinash.rao 04-18-2009 08:09 AM

No I Just couldn't get it working.

avinash.rao 07-20-2009 09:40 AM

I have a new LTSP installation and i am still trying to install a USB printer on a LTSP client machine.

lts.conf

[default]
X_COLOR_DEPTH=16
LOCALDEV=True
SOUND=True
NBD_SWAP=True
SYSLOG_HOST=server
LDM_GUESTLOGIN = TRUE


# A Thin Client Printer
[10.10.10.105]
PRINTER_0_DEVICE=/dev/usblp0
PRINTER_0_TYPE=U
PRINTER_0_PORT=9100

Strangely, i dont find /dev/usblp0 nor /dev/usb folder on my system.
I have assigned a fixed IP mentioned above in DHCP config file.
I have loaded USBLP module also. Should i load the lsusb module in chroot?

How can i get this working?

Thanks
Avinash



Quote:

Originally Posted by avinash.rao (Post 3513157)
No I Just couldn't get it working.



All times are GMT -5. The time now is 05:44 AM.