LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-09-2008, 02:47 AM   #1
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Rep: Reputation: 30
Smile 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
 
Old 07-10-2008, 12:35 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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]

Last edited by tredegar; 07-10-2008 at 12:40 PM. Reason: As above
 
Old 07-10-2008, 11:14 PM   #3
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
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 View Post
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]
 
Old 07-14-2008, 01:15 PM   #4
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
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 View Post
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]
 
Old 09-13-2008, 04:59 AM   #5
karelvdm
Member
 
Registered: Sep 2004
Location: Pietermaritzburg South Africa
Distribution: Home:OpenSuse 11, Office:FreeBSD 7 PBX:Trixbox 2 (CentOS 4.4) Home Automation : LinuxMCE
Posts: 123

Rep: Reputation: 15
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.
 
Old 09-17-2008, 12:45 AM   #6
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
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 View Post
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.
 
Old 09-26-2008, 09:42 PM   #7
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
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 View Post
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.
 
Old 04-17-2009, 12:46 PM   #8
karelvdm
Member
 
Registered: Sep 2004
Location: Pietermaritzburg South Africa
Distribution: Home:OpenSuse 11, Office:FreeBSD 7 PBX:Trixbox 2 (CentOS 4.4) Home Automation : LinuxMCE
Posts: 123

Rep: Reputation: 15
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.
 
Old 04-18-2009, 08:09 AM   #9
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
No I Just couldn't get it working.
 
Old 07-20-2009, 09:40 AM   #10
avinash.rao
Member
 
Registered: Jun 2008
Posts: 197

Original Poster
Rep: Reputation: 30
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 View Post
No I Just couldn't get it working.

Last edited by avinash.rao; 07-20-2009 at 11:23 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install a USB printer on a LTSP client? avinash.rao Ubuntu 1 08-05-2011 08:32 AM
How to unmount USB drive on LTSP Client - NOT ROOT error. avinash.rao Ubuntu 2 07-01-2008 06:47 AM
how user can automatically mount usb on thin client ltsp running on Fedora 5 capricorn80 Linux - Networking 0 09-13-2006 08:14 AM
Problem installing USB printer PSC-2175 nika8991 Linux - Hardware 1 01-29-2005 09:50 PM
Problem in installing ltsp rpms rah_rah Linux - General 2 09-26-2003 01:24 AM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration