Professional Web Applications Themes

Samba on SCO 5.0.7 - SCO

I installed the version of Samba included on the media kit. Everything works great with the exception of printing. We need to print to printers connected to Windows machines from the UNIX server. I can manually connect to the printer and print with smbclient and I can even extract the print script from smbprint to print an individual file, but I have not had any luck printing from lp. Test print script that works: echo print /etc/hosts | /usr/bin/smbclient "\\Workstation1\HPPHOTO" -U Workstation1 -N -P >> /tmp/smb-print.log 1. Installed rlp in UNIX 2. Added a remote printer (had to select the ...

  1. #1

    Default Samba on SCO 5.0.7

    I installed the version of Samba included on the media kit.
    Everything works great with the exception of printing. We need to
    print to printers connected to Windows machines from the UNIX server.
    I can manually connect to the printer and print with smbclient and I
    can even extract the print script from smbprint to print an individual
    file, but I have not had any luck printing from lp.

    Test print script that works:

    echo print /etc/hosts | /usr/bin/smbclient "\\\\Workstation1\\HPPHOTO"
    -U Workstation1 -N -P >> /tmp/smb-print.log

    1. Installed rlp in UNIX
    2. Added a remote printer (had to select the Windows machine)
    3. Add a .config file to /var/spool/lpd/PRINTER2 directory, contains:
    server=Workstation1
    service=HPPHOTO
    password=""
    4. Edited the /etc/printcap as follows:
    PRINTER2:\
    :lp=/dev/null:\
    :sd=/var/spool/lpd/PRINTER2:\
    :mx#0:\
    :sh:\
    :if=/usr/bin/smbprint
    5. Edited /usr/bin/smbprint as follows:
    #eval acct_file=\${$#}
    spool_dir=/var/spool/lpd/PRINTER2
    config_file=$spool_dir/.config
    6. smb.conf
    [printers]
    comment = All printers
    path = /var/spool/samba
    printable = Yes
    browsable = No
    [PRINTER2]
    path = /var/spool/samba
    read only = No
    guest ok = Yes
    printable = Yes
    printer name = PRINTER2
    use client driver = Yes
    oplocks = No

    Has anyone had any luck with this? Any help will be appreciated!

    Regards,
    Lance Justiss
    wlj@elmore.rr.com Guest

  2. #2

    Default Re: Samba on SCO 5.0.7

    [email]wljelmore.rr.com[/email] wrote:
    > 6. smb.conf
    > [printers]
    > comment = All printers
    > path = /var/spool/samba
    > printable = Yes
    > browsable = No
    > [PRINTER2]
    > path = /var/spool/samba
    > read only = No
    > guest ok = Yes
    > printable = Yes
    > printer name = PRINTER2
    > use client driver = Yes
    > oplocks = No
    >
    > Has anyone had any luck with this? Any help will be appreciated!
    check write permissions on /var/spool/samba (they are iirc incorrect as
    pr. install).
    >
    > Regards,
    > Lance Justiss
    Kim Petersen Guest

Similar Threads

  1. PHP and Samba
    By Howard Miller in forum PHP Development
    Replies: 0
    Last Post: February 24th, 11:01 AM
  2. AIX 5.1 and Samba/2.2.8a +winbind
    By Zylo in forum AIX
    Replies: 1
    Last Post: August 22nd, 08:42 AM
  3. Samba + win 2k
    By Juha Kustaa Siltala in forum Linux Setup, Configuration & Administration
    Replies: 5
    Last Post: July 20th, 04:17 PM
  4. Replies: 0
    Last Post: July 14th, 12:50 AM
  5. VFS for Samba
    By Brad S in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: July 10th, 12:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139