Network Printing - NetParLpr / NetPar / lpr.device / Samba
  • Order of the Butterfly
    Order of the Butterfly
    ChatDEau
    Posts: 248 from 2003/4/4
    From: MONTREAL, Quebec
    Hi there!

    It's been hours (in fact I didn't sleep the whole night) I'm trying to figure out how to print to any of my print servers :

    LPD Server 1
    ============
    Host: 192.168.1.30 alias Edgar
    Port: 515
    Printer Name: HPDJ5150

    LPD Server 2
    ============
    Host: 192.168.1.100 alias Zorba
    Port: 515
    Printer Name: HPDJ5150

    IPP Server
    ==========
    Host: 192.168.1.30
    Port: 631
    Printer Name: HPDJ5150

    Samba Server
    ============
    Host: 192.168.1.100 alias Zorba
    Printer Name: HPDJ5150


    BUT ONLY PROBLEMS I GOT!


    With NetParLpr
    ==============
    I tried :
    · hand installation
    · script installation
    · setting ENV:NetPar/0/PrinterHOST -> 192.168.1.30
    · setting ENV:NetPar/0/PrinterHOST -> Edgar
    · setting ENV:NetPar/0/PrinterHOST -> 192.168.1.100
    · setting ENV:NetPar/0/PrinterHOST -> Zorba
    · setting ENV:NetPar/0/PrinterNAME -> lp (default proposed by the install script)
    · setting ENV:NetPar/0/PrinterNAME -> HPDJ5150 (tried both lower & upper case)
    · setting netpar.device as the print driver in TurboPrint settings (instead of defaut parallel.device)

    but I always get this error requester:


    Fatal Network Error

    Spooler was unable to find your
    user login id. Please consult your
    TCP/IP stack documentation on how to
    add a default user login id to the
    network. Spooler will be aborted




    With NetPar (older version)
    ===========================
    I tried :
    · hand installation
    · script installation
    · setting ENV:PrintHOST -> 192.168.1.30
    · setting ENV:PrintHOST -> Edgar
    · setting ENV:PrintHOST -> 192.168.1.100
    · setting ENV:PrintHOST -> Zorba
    · setting netpar.device as the print driver in TurboPrint settings (instead of defaut parallel.device)

    I then test it with TestPar, all tests pass (Complete), but nothing happens.
    I try to print, it (appears) to send the data, but nothing happens.



    With lpr.device
    ===============
    I tried :
    · both 44.5 & 44.9 versions
    · with & without the OpenDevicePatch (even tried to patch separatly & simultaneously printer.device & parallel.device)
    · setting ENV:lpr.device -> HOST=192.168.1.30 MEMORY PORT=515
    · setting ENV:lpr.device -> HOST=192.168.1.30 DIR=Storage: PORT=515
    · setting ENV:lpr.device -> HOST=192.168.1.30 MEMORY PORT=515 QUEUE=Pegasos
    · setting ENV:lpr.device -> HOST=192.168.1.30 DIR=Storage: PORT=515 QUEUE=Pegasos
    · setting ENV:lpr.device -> HOST=192.168.1.30 RAW PORT=515
    · setting ENV:lpr.device -> HOST=192.168.1.100 MEMORY PORT=515
    · setting ENV:lpr.device -> HOST=192.168.1.100 DIR=Storage: PORT=515
    · setting ENV:lpr.device -> HOST=192.168.1.100 MEMORY PORT=515 QUEUE=Pegasos
    · setting ENV:lpr.device -> HOST=192.168.1.100 DIR=Storage: PORT=515 QUEUE=Pegasos
    · setting ENV:lpr.device -> HOST=192.168.1.100 RAW PORT=515
    · setting lpr.device as the print driver in TurboPrint settings (instead of defaut parallel.device)

    but I always get this error requester:


    Line printer device
    Could not find printer service (Undefined error: 0).



    With Samba
    ==========
    I tried :
    · setting TurboPrint to print to file ram:prt
    · printing with command -> smbspool smb://zorba/HPDJ5150 pegasos pcguest printjob 1 0 ram:prt

    Then it almost threw half of my catridge's ink into 1 sheet of paper.

    HELP PLEASE!!!


    ... is there anyway to print to an IPP (Internet Printer Protocol) server using MOS?

    @FALCON-1
    I've seen somewhere (perhaps in my IRC logs) that one of the first project you'd work on would be to port lpr.device to MOS ... any developpement?

    @Sonic
    Have you found anything?

    @oGALAXYo
    Have you ever used cups-lpd under linux as LPD server? if yes, how can we configure host/IP restrictions?

    Thanks,
    Fred


    [EDIT]
    I use MOS 1.4.2, with the provided TurboPrint (haven't swapped it for the 68k one), and MiamiDX 1.0c.
    [/EDIT]

    [ Edited by ChatDEau on 2004/10/28 18:47 ]
  • »28.10.04 - 23:12
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Neko
    Posts: 301 from 2003/2/24
    From: Genesi
    With NetParLpr; what TCP/IP stack are you using?

    The lpr.device source is there, someone should recompile it with SAS/C and insert *PLENTY* of debug output to find out what the real error is (rather than undefined error: 0). Then we might have a better chance of working out what is wrong.

    Neko
    Matt Sealey, Genesi USA, Inc.
    Developer Relations
    Product Development Analyst
  • »28.10.04 - 23:36
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ChatDEau
    Posts: 248 from 2003/4/4
    From: MONTREAL, Quebec
    @Neko

    MiamiDx 1.0c

    Fred
  • »28.10.04 - 23:45
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ironfist
    Posts: 254 from 2004/4/22
    From: Pegasos.org
    ChatDeu:
    With NetParLPR you need to specify your userid and password
    to the Printerserver within Miami.

    Miami>Database>Users:

    NetparLPR will then use this account for login.
  • »29.10.04 - 05:24
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ChatDEau
    Posts: 248 from 2003/4/4
    From: MONTREAL, Quebec
    I already have 3 users set in there ... Do I have to set anything specific?

    Give me an exemple of what you did set in your case please.

    Also, there is no username/password to access my LPD server, it is restricted by LAN IPs.

    Thanks,
    Fred
  • »29.10.04 - 06:01
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Posts: 408 from 2004/7/15
    From: Russia, Moscow
    Quote:


    ChatDEau wrote:

    @Sonic
    Have you found anything?



    Sorry, no. Completely out of time. Unfortunately i'm not expert with lpd because i never used it. In Russia we don's use unixes so i never worked in UNIX network environment, only in Windows one. So i used only Samba printing, it worked perfectly. Your problem is quite strange and means probably that you selected wrong driver on MorphOS side (Windows does nothing to received data, just copies them to printer's port), it's client's job to prepare the data stream.

    Quote:


    @oGALAXYo
    Have you ever used cups-lpd under linux as LPD server? if yes, how can we configure host/IP restrictions?


    man tcpd
    tcpd is in the tcp-wrappers package.
    iPod, iBook, iMac,... iRobot?
  • »29.10.04 - 06:23
    Profile Visit Website
  • Moderator
    Posts: 126 from 2003/2/17
    From: France
    Quote:


    @FALCON-1
    I've seen somewhere (perhaps in my IRC logs) that one of the first project you'd work on would be to port lpr.device to MOS ... any developpement?



    source of the last aminet version is fully ported to gcc and compile fine.. but the binary doesn't work... so I have to find what's the problem...

    to test your installation with LPR.device
    setenv lpr.device.0 (don't forget .0) and only use HOST, PORT and RAW arguments.

    using a PC print a nice picture to a file and burn this file on a cd to put it on the pegasos. then make a mount list with lpr.device unit 0 (I can gve you one already done if you need it) then simply copy the file to the volume created by your mountlist (LPR0 here) If it works, then the problem is TurboPrint, if not, mail me in order to find what's wrong.

    BTW OpenDevicePatch is of nearly no use for you it's simply for programs which don't call printer.device but use paralell.device directly... so it intercept them and send them to lpr.device, that's all... so no real use...

    [ Edited by FALCON1 on 2004/10/29 7:37 ]
    Pegasos rulez since august 2002
  • »29.10.04 - 06:34
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Neko
    Posts: 301 from 2003/2/24
    From: Genesi
    Quote:

    setenv lpr.device.0 (don't forget .0) and only use HOST, PORT and RAW arguments.


    Someone should change that to a more intuitive environment variable scheme;

    ENV:lpr.device/0 would be better. That way
    each unit is seperated into that directory, instead of a mess of seperate files all in the root of ENV.

    Oh, and also make a MUI GUI to set the options :)

    Neko
    Matt Sealey, Genesi USA, Inc.
    Developer Relations
    Product Development Analyst
  • »29.10.04 - 14:46
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ironfist
    Posts: 254 from 2004/4/22
    From: Pegasos.org
    ChatDeau:
    Well. I use this for a network printer connected to a Windows Server.

    Username: Windows-username
    Password: Windows-password
    Group: 100
    Userid: 100
    Homedir: T:
    Shell: *newshell*

    Nothing special at all. I have no other usernames set.

    [ Edited by ironfist on 2004/10/29 18:10 ]
  • »29.10.04 - 17:08
    Profile Visit Website