Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    To share printer


    Hi folks,


    ubuntu 7.04 server amd64
    IP 192.168.0.10


    I'm prepared to allow other PCs on the network sharing the printer connected to the server.


    $ apt-cache policy cupsys cupsys-client cupsys-common
    Code:
    cupsys:
      Installed: 1.2.8-0ubuntu8.4
      Candidate: 1.2.8-0ubuntu8.4
      Version table:
     *** 1.2.8-0ubuntu8.4 0
            500 http://us.archive.ubuntu.com feisty-updates/main Packages
            500 http://security.ubuntu.com feisty-security/main Packages
            100 /var/lib/dpkg/status
         1.2.8-0ubuntu8 0
            500 http://us.archive.ubuntu.com feisty/main Packages
    cupsys-client:
      Installed: 1.2.8-0ubuntu8.4
      Candidate: 1.2.8-0ubuntu8.4
      Version table:
     *** 1.2.8-0ubuntu8.4 0
            500 http://us.archive.ubuntu.com feisty-updates/main Packages
            500 http://security.ubuntu.com feisty-security/main Packages
            100 /var/lib/dpkg/status
         1.2.8-0ubuntu8 0
            500 http://us.archive.ubuntu.com feisty/main Packages
    cupsys-common:
      Installed: 1.2.8-0ubuntu8.4
      Candidate: 1.2.8-0ubuntu8.4
      Version table:
     *** 1.2.8-0ubuntu8.4 0
            500 http://us.archive.ubuntu.com feisty-updates/main Packages
            500 http://security.ubuntu.com feisty-security/main Packages
            100 /var/lib/dpkg/status
         1.2.8-0ubuntu8 0
            500 http://us.archive.ubuntu.com feisty/main Packages
    What additional packages I have to add? Thanks


    /etc/cups/cupsd.conf
    Code:
    # Show shared printers on the local network.
    Browsing Off
    BrowseOrder allow,deny
    BrowseAllow @LOCAL
    BrowseAddress @LOCAL
    Change "Browsing Off" to "Browsing On"?


    Code:
    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen /var/run/cups/cups.sock
    Change "Listen localhost:631" to "Listen 631"?


    Code:
    # Restrict access to the server...
    <Location />
      Order allow,deny
      Allow localhost
      Allow @LOCAL
    </Location>

    Add follows:
    Code:
    Deny all
    Allow 127.0.0.1

    Then;
    sudo /etc/init.d/cupsys restart


    Please advise. TIA


    B.R.
    satimis

  2. #2
    I share my printer through Samba.


    #/etc/samba/smb.conf (only the printer share shown here)
    Code:
    ...
    
    [printers]
       comment = All Printers
       path = /var/spool/samba
       browseable = no
    # set to yes to allow user 'guest account' to print.
       guest ok = yes
       writable = no
       printable = yes
    
    ...
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

Posting Permissions

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