Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: I'm new to the forums - issues with vnc and internet print sharing

  1. #11
    Junior Member
    Join Date
    Apr 2011
    Posts
    9
    Con't from post above

    Step 2: Editing cupsd.conf

    WARNING: When editing conf files, always make a backup before making changes. That way, when it gets messed up, you have an easy fix! This is done very simply:
    Open printer Web Interface for knoppix, use command line for slackware:
    Knoppix - preferences > printer configurations > admin tab > edit config file button and copy the file and paste as below.slackware - root# cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup
    My config backup
    #
    # "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
    #
    # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
    # complete description of this file.
    #

    # Log general information in error_log - change "warn" to "debug"
    # for troubleshooting...
    LogLevel warn

    # Deactivate CUPS' internal logrotating, as we provide a better one, especially
    # LogLevel debug2 gets usable now
    MaxLogSize 0

    # Administrator user group...
    SystemGroup lpadmin


    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen /var/run/cups/cups.sock

    # Show shared printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseLocalProtocols CUPS dnssd

    # Default authentication type, when authentication is required...
    DefaultAuthType Basic

    # Restrict access to the server...
    <Location />
    Order allow,deny
    </Location>

    # Restrict access to the admin pages...
    <Location /admin>
    Order allow,deny
    </Location>

    # Restrict access to configuration files...
    <Location /admin/conf>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Location>

    # Set the default printer/job policies...
    <Policy default>
    # Job-related operations must be done by the owner or an administrator...
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Satisfy any
    Allow from 127.0.0.1
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    # All administration operations require an administrator to authenticate...
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>

    # All printer operations require a printer operator to authenticate...
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>

    # Only the owner or an administrator can cancel or authenticate a job...
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Satisfy any
    Allow from 127.0.0.1
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>

    # Set the authenticated printer/job policies...
    <Policy authenticated>
    # Job-related operations must be done by the owner or an administrator...
    <Limit Create-Job Print-Job Print-URI>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Order deny,allow
    </Limit>

    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    # All administration operations require an administrator to authenticate...
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>

    # All printer operations require a printer operator to authenticate...
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>

    # Only the owner or an administrator can cancel or authenticate a job...
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>

    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>

    #
    # End of "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $".
    #


    Once your backup is created, open the cupsd.conf file using your favorite text editor (vi, nano, emacs, etc.):
    Code:
    root# nano /etc/cups/cupsd.conf
    You will me making only small modifications to this file. First and foremost, look for the line that looks something like this:


    Code:
    #ServerName myhost.domain.com
    If it isn't there, add it!
    Note the #. Delete this to uncomment the line. You may either put in your hostname or the static ip address you assigned earlier or the DHCP from ifconfig.
    You may place this code on its own line near the top of the file. The line should look like this:
    Code:
    ServerName 192.168.15.???
    Note: For simplicity sake, I personally chose ip address (if you couldn't already tell!). That way if I modify my hostname or anything, the ip can stay the same.

    The second adjustment you will make is to the line that looks like this under # Show shared printers on the local network. (once again if it isn't there, add it):
    Code:
    #BrowseAddress x.y.z.255#BrowseAddress x.y.255.255#BrowseAddress x.255.255.255#BrowseAddress 255.255.255.255#BrowseAddress @LOCAL#BrowseAddress @IF(name)
    You can uncomment one of these lines or just add your own. It needs to look like this:
    Code:
    BrowseAddress 192.168.15.255
    This should your broadcast for your entire network. Adjust the 255 to whatever your netmask is.

    In Knoppix use ifconfig to acquire your broadcast address. Look for Bcast:192.168.15.255. Yours may be different.

    con't on next post

  2. #12
    Junior Member
    Join Date
    Apr 2011
    Posts
    9
    Con't from post above

    Finally look for this section of the cupsd.conf file:
    Code:
    <Location />Order Deny,AllowDeny From AllAllow From 127.0.0.1</Location>
    Create a new line after Allow From 127.0.0.1 and add the ip addresses or ranges for your network. The <Location /> section should look like this when you are done(the new line is in red):
    Code:
    <Location />Order Deny,AllowDeny From AllAllow From 127.0.0.1Allow From 192.168.15.*</Location>
    You should adjust this line according to your network address setup.

    For example, my network has static ips so I just added the ip address for the client, or networked computer.

    I used the addy of my server(network computer) instead of the client cpu.

    In networks with many more clients, this is a hassle, so doing the above is more friendly. Save the file and restart the cups server.
    Code:
    root#/etc/rc.d/rc/cups restart
    If the server restarts, you are ready to go on to Step 3. If you get an error, make sure that you typed in all of your ip addresses correctly. I ran into trouble when I updated the listen section. It only borked it up, so unless you know what you're doing, only make the changes mentioned above.

    Step 3: Setting Up the Client
    Your server is ready to roll, so now it's time to set up your client machine. In order for your client to communicate with the server, the client needs to be running the cups daemon. Install cups and any other driver libraries that you needed on the server. In the above example, it was cups and gimp-print. Start cups:
    Code:
    root#/etc/rc.d.rc.cups start
    You need to have cups running to access the network printer. You don't need to do anything with the cupsd.conf though, so once the daemon is started, move on to Step 4.


    Step 4 Knoppix: Introducing Your Client to Your Server
    Share the Knoppix CUPS Printer

    Go here: http://www.owlfish.com/thoughts/wini...003-07-20.html

    One thing both of these options have in common is the requirement that the printer queues you create are shared.

    In knoppix do this:
    in the "Printer configuration" tool (from Preferences -> Printing)

    by selecting File, followed by "Server Settings -> Sharing...". select all applicable options for your setup type.

    Step 5 knoppix: Hostname lookup

    Another common step is to ensure that hostname broadcast by CUPS is accessible from the Windows XP machine.
    If your CUPS machine is accessible using a name rather than just an IP address then you don't need to do anything for this step. If the CUPS machine is not accessible via it's hostname then you need to set a mapping between the CUPS hostname and its IP address in the Windows hosts file.
    Since my WinXp is using an IP address, mapping between the CUPS hostname and its IP address in the Windows hosts file is needed.
    WindowsXP the host file is in
    C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS
    # host entry for cups network at home
    <this the knoppix lan server addy> Microknoppix

    Step 6 Knoppix: Using a Printer Driver

    Add a raw queue
    Note:you may need to install the windoze print driver before doing the following steps.
    This may require you actually connect the printer to the WinXp box.

    In Windows XP use "Add Printer" to add a new network printer,
    Select “network printer”
    Select “next”
    selecting "Connect to a printer on the Internet", and
    using a URL of
    http://hostname:631/printers/RawPrinterQueueName.
    http://192.168.15.101:631/printers/Deskjet-D4200-series
    Select the printer driver for this printer as you would for a locally connected printer.
    STEP 7: print test page
    Your page should print ok.

    CUPS FILE AFTER THE ABOVE CHANGES
    LogLevel warn
    MaxLogSize 0
    ServerName 192.168.15.???
    SystemGroup lpadmin
    # Allow remote access
    Port 631
    Listen /var/run/cups/cups.sock
    # Enable printer sharing and shared printers.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseRemoteProtocols CUPS
    BrowseAddress @LOCAL
    BrowseLocalProtocols CUPS dnssd
    DefaultAuthType Basic
    <Location />
    # Allow shared printing and remote administration...
    Order allow,deny
    Allow all
    </Location>
    <Location /admin>
    # Allow remote administration...
    Order allow,deny
    Allow all
    </Location>
    <Location /admin/conf>
    Satisfy any
    AuthType Default
    Require user @SYSTEM
    # Allow remote access to the configuration files...
    Order allow,deny
    Allow all
    </Location>
    <Policy default>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Satisfy any
    Allow from 127.0.0.1
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Satisfy any
    Allow from 127.0.0.1
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy authenticated>
    <Limit Create-Job Print-Job Print-URI>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Satisfy any
    Allow from 127.0.0.1
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>

    Conclusion
    This setup worked for me.

    Now my next step is take the laptop server back to the orginal location across town.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

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


IBM Power8 S822L Storage Server 8247-22L - With Ram, Some Cards, No HDD's picture

IBM Power8 S822L Storage Server 8247-22L - With Ram, Some Cards, No HDD's

$399.95



IBM 8284-22A S822 Dual Power8 Cpu 512Gb (16x 32Gb) RAM  picture

IBM 8284-22A S822 Dual Power8 Cpu 512Gb (16x 32Gb) RAM

$795.00



IBM SYSTEM X3500 M3 SERVER 7380AC1 2*XEON E5620 2.4GHz 8GB SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 2*XEON E5620 2.4GHz 8GB SEE NOTES

$33.21



IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture

IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU

$129.99



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



Dell PowerEdge R730xd 24B SFF 2U Xean E5-2690 V4 2.6 ghz 28-cores 4x 1.2 TB picture

Dell PowerEdge R730xd 24B SFF 2U Xean E5-2690 V4 2.6 ghz 28-cores 4x 1.2 TB

$500.00



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server

$359.99



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED picture

IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED

$119.99



IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE picture

IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE

$199.87