[K12OSN]Centos+USB+local printer... and sharing it

Rob Owens rob.owens at biochemfluidics.com
Fri Jun 13 11:35:10 UTC 2008


Is ws099 in your /etc/hosts file or in dns?

In my dhcpd.conf file, I believe I needed to add the line:

use-host-decl-names on;

in the section where I handed out the static IP address of the thin 
client that has the printer attached.  This "overrides" the statement:

get-lease-hostnames	true;

Which is the default, I think.

If somebody could confirm this, that would be great.  I set mine up over 
a year ago, so I may be remembering it incorrectly.

-Rob

mumbler9 wrote:
> I'm not having very good luck explaining... and of course PCE was 
> supposed to be PXE below...
> 
> As per Lewis' post on Centos + USB earlier?
> 
> Make sure
> host 192.168.0.100
>  returns pc100.foo.bar.com
> 
> host pc100.foo.bar.com
>  returns 192.168.0.100
> 
> Mine does not have lookup (although I though using an IP address in CUPS 
> might still work. I can ping ws099 and get lookup:
> 
> PING ws099.ltsp (192.168.0.99) 56(84) bytes of data.
> 64 bytes from ws099.ltsp (192.168.0.99): icmp_seq=1 ttl=64 time=0.111 ms
> 
> However I do not get lookup either way with host:
> 
> host ws099
> Host ws099 not found: 3(NXDOMAIN)
> host 192.168.0.99
> Host 99.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)
> 
> Nmap shows port 9100 open:
> Starting Nmap 4.20 ( http://insecure.org ) at 2008-06-12 23:16 CDT
> Interesting ports on ws099.ltsp (192.168.0.99):
> Not shown: 1695 closed ports
> PORT     STATE SERVICE
> 6000/tcp open  X11
> 9100/tcp open  jetdirect
> 
> Do I have something wrong with DHCP?
> thx,
> Scott S.
> 
> 
> 
> 
> 
> 
> 
> Rob Owens wrote:
>> mumbler9 wrote:
>>> Here's the current stage... the dhcpd.conf file is working, it is 
>>> assigning it an IP (and it is PCE boot)
>>>
>>>     host ws099 {
>>>     hardware ethernet 00:30:18:a6:97:a9;
>>>     fixed-address 192.168.0.99;
>>>     filename      "/lts/pxe/pxelinux.0";
>>>     }
>>>
>>> In lts.conf I have the terminal stated like this:
>>>
>>> [00:30:18:a6:97:a9]
>>> PRINTER_0_DEVICE        =/dev/usb/lp0
>>> PRINTER_0_TYPE          = U
>>> MODULE_01          = usblp
>>>
>> I'm pretty sure you don't need to specify MODULE_01 if you're using 
>> LTSP 4.2 (included in K12LTSP 5.0EL).  I don't think it hurts 
>> anything, but you might want to take it out and see what happens.  
>> Everything else looks good.
>>
>>> In CUPS I added it like this, choosing HP and Laserjet 1200:
>>>
>>> socket://192.168.0.99:9100
>>>
>>> CUPS shows it as started, and it looks all happy:
>>>
>>> Jun 12 00:00:11 ws099 lp_server: Started with: -n 9100 -w -d 
>>> /dev/usb/lp0
>>> Jun 12 00:00:11 ws099 last message repeated 8 times
>>> Jun 12 00:00:11 ws099 init: Id "p0" respawning too fast: disabled for 
>>> 5 minutes
>>> Jun 12 00:02:08 bofh2 kernel: ppdev: user-space parallel port driver
>>> Jun 12 00:05:12 ws099 lp_server: Started with: -n 9100 -w -d 
>>> /dev/usb/lp0
>>> Jun 12 00:05:32 ws099 ltspinfod: Connection from 192.168.0.254 port 
>>> 40283
>>> Jun 12 00:06:31 ws099 ltspinfod: Connection from 192.168.0.254 port 
>>> 40319
>>> Jun 12 00:12:38 ws099 lp_server: Started with: -n 9100 -w -d 
>>> /dev/usb/lp0
>>>
>>> CUPS gives an error of:
>>> "/usr/lib/cups/backend/socket failed"
>>>
>>> and the printer goes into:
>>> Printer State: stopped, accepting jobs, published.
>>>
>>> While it is in this stopped state, lpstat -l -a shows this:
>>> lpstat -l -a
>>> HP accepting requests since Thu 12 Jun 2008 12:13:54 AM CDT
>>>
>> I'm using local printers in K12LTSP 5.0EL and my configuration is the 
>> same as yours except that I use etherboot instead of PXE, and I 
>> assigned my printer using the hostname (which I have a DNS record for) 
>> instead of IP address.  But the way you're doing it looks like it 
>> should work.
>>
>> -Rob
>> ********************************************************
>>
>> The information transmitted is intended only for the person or entity to
>> which it is addressed and may contain confidential and/or privileged
>> material. If you are not the addressee, any disclosure, reproduction,
>> copying, distribution, or other dissemination or use of this 
>> transmission in
>> error please notify the sender immediately and then delete this e-mail.
>> E-mail transmission cannot be guaranteed to be secure or error free as
>> information could be intercepted, corrupted lost, destroyed, arrive 
>> late or
>> incomplete, or contain viruses.
>> The sender therefore does not accept liability for any errors or 
>> omissions
>> in the contents of this message which arise as a result of e-mail
>> transmission. If verification is required please request a hard copy
>> version.
>>
>> ********************************************************
>>
>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>>
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
********************************************************

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If you are not the addressee, any disclosure, reproduction,
copying, distribution, or other dissemination or use of this transmission in
error please notify the sender immediately and then delete this e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted lost, destroyed, arrive late or
incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message which arise as a result of e-mail
transmission. If verification is required please request a hard copy
version.

********************************************************





More information about the K12OSN mailing list