Antony Gelberg wrote:
> Hi all,
> 
> I think I might have missed something in the docs - I want to set up a
> printer on one of my workstations.  I note that it needs to have a
> hostname, so CUPS can be set up on the server.  Hence I assume I need to
> have an entry such as:
> 
>     host ws001 {
>         hardware ethernet     00:E0:18:E0:04:82;
>         fixed-address         192.168.0.1;
>         filename              "/lts/vmlinuz.ltsp";
> 
> in my dhcp3.conf and
> 
> [ws001]
>     PRINTER_0_DEVICE = /dev/lp0
>     PRINTER_0_TYPE   = P
> 
> in my lts.conf.
> 
> Is it best practice to have such stanzas for /every/ LTSP workstation on
> a network, or just ones that require specific configuration or have
> local devices etc?

You only need the host stanzas for the workstations that you want to 
have static IP addresses.  In your case, that is probably only the host 
with the attached printer.

Make sure you also have one of the following entries in your dhcpd.conf 
file:

    use-host-decl-names on;

OR:

    get-lease-hostnames true;

MAKE SURE you don't have both of those set, as they'll conflict with 
each other.

If you want to assign the hostname specified in dhcpd.conf 'host ws001 
{' then you'll need the first line 'use-host-decl-names on;'.  But, if 
you want to assign the hostname by looking up the address in either 
/etc/hosts, or by doing a reverse lookup on your dns server, then use 
the 2nd entry.

Take a look at:

http://wiki.ltsp.org/twiki/bin/view/Ltsp/DHCP#Automatically_assigning_hostname

for more info.

> 
> I also note that since 4.1.1, USB printing is supported with
> PRINTER_x_TYPE = U.  Do I need any PRINTER_x_DEVICE line?  Something
> like /dev/usb/lp0?

You'll need the DEVICE entry, as you mentioned.


Hope that helps,

Jim McQuillan
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
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