Ask a Question related to SCO, Design and Development.

  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. Similar Questions and Discussions

    1. PHP and Samba
      Hi, Is there an easy way for PHP to access (read and write) files on an arbitrary URL? What I want to do is to have a form that asks the user...
    2. AIX 5.1 and Samba/2.2.8a +winbind
      > I think you must look for documentation concerning just SAMBA and not Aix. Unfortunately not exactly : the authentification mecanism is different...
    3. Samba + win 2k
      Hi, After upgrading our client to win2k pro, I'm suddenly too stupid to set up Samba correctly on my Debian box. Is there a good site that would...
    4. sarge dependancy problems with dhcp3-client/samba/samba-common
      Just did an apt-get update; apt-get dist-upgrade dhcp3-client seems to be mutaully exclusive with samba/samba-common. Installing one takes out...
    5. VFS for Samba
      I am currently attempting to create a recycling bin for Samba on my redhat 8 machine using the recycle module (VFS). I am not exactly sure how to...
  3. #2

    Default Re: Samba on SCO 5.0.7

    [email]wlj@elmore.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

Posting Permissions

  • You may not post new threads
  • You may 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