OpenSuse 10.3 Printserver /w HP1006P

hi all

this is all quite new to me…but ive ive using opensuse for some requirements…like filserving and evrdy use things…

i just wana ask on how to host a printer …more of my susebux will be sharing a printer to my netowrk…more of a printserver…and the printer is HP 1006P

all answers are very appreciated…
thanks
all in advance

More Power

kcampilan wrote:

>
> hi all
>
>
> this is all quite new to me…but ive ive using opensuse for some
> requirements…like filserving and evrdy use things…
>
> i just wana ask on how to host a printer …more of my susebux will be
> sharing a printer to my netowrk…more of a printserver…and the printer
> is HP 1006P
>
> all answers are very appreciated…
> thanks
> all in advance
>
>
> More Power
>
>
kcampilan;

Configure SAMBA; for details look here:

http://www.swerdna.net.au/linux.html

P. V.
“The entropy of a closed system can never decrease”, 2nd Law of Thermodynamics

thanks am trying this out sir…

This might be worth a read:
Printer Sharing: Samba Print Server for Suse/openSUSE 10.x Linux & Windows Clients
Or if you prefer IPP then maybe:
Linux Printer Sharing: Suse/openSUSE 10.x IPP Print Server for Linux & Windows Clients

How’s it going Greeny? You must be quite the expert by now.

hi sir SWERDNA…

im happy u replied…heheh

evrthing’s fine…tking OpenSuse one step at a tme…hehehh

just wana ask…before i do all what is told on ur website…do i need to install the printer to my susebux like a windows installation to a printer before sharing it to the network…sorry for such ignorant kwstion am a newbie to this thingy…

thanks

Yes you should install it before you share it.

hi sir

already insatalled and tested my printer locally and work like a charm am in the process on connecting from an XP unit to my susebux printerver …i can install and when its done its has an error " Access Deined , unable to connect "

on the status side

can u help me on this sir…

heres my smb.conf if u need this
[global]

workgroup = susegroup
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
use client drivers = yes
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = susebux
server string = ""
name resolve order = bcast host wins lmhosts
local master = yes
preferred master = yes
os level = 65
log level = 2 vfs:2
syslog = 0
max log size = 0
log file = /var/log/samba/%U.log

[printers]

comment = All Printers
path = /var/temp
printeable = Yes
create mask = 0700
browseable = Yes
guest = ok

my cupsd.conf

“$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $”

Sample configuration file for the Common UNIX Printing System (CUPS)

scheduler. See “man cupsd.conf” for a complete description of this

file.

Log general information in error_log - change “info” to “debug” for

troubleshooting…

LogLevel info

Administrator user group…

SystemGroup sys root

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 @LOCAL

Default authentication type, when authentication is required…

DefaultAuthType Basic

Restrict access to the server…

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow From @LOCAL
Allow From 192.168.20.*
</Location>

Restrict access to the admin pages…

<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</Location>

Restrict access to configuration files…

<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>

Set the default printer/job policies…

<Policy default>

Job-related operations must be done by the owner or an adminstrator…

<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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

All administration operations require an adminstrator to authenticate…

<Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

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

End of “$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $”.

thanks sir SWERDA in advance

more power

IIRC it’s not “guest = ok”. So I leave you with a little research :wink:

ok ill try it with guest = no…

thanks sir SWERDNA…

ill just research more…

Since you are trying to connect to a HP printer you need to download HPLIP-2.8.x and run INSTALL SOFTWARE.

I speak with some background as I recently got my wireless network with a print server on the printer to work. This a starting point for you. Hope it helps and works for you.

hi sir

i already did wht u said…its already intalled in my susebux and is printing ok…wht i have having prblems in cnnecting from an xp unit …i can install but when finished an error goes up …“access denied, cannot connect:”

kcampilan wrote:

>
> ok ill try it with guest = no…
>
> thanks sir SWERDNA…
>
>
> ill just research more…
>
>
guest ok = yes or no

P. V.
Cogito cogito ergo cogito sum.

I’ll give you a tip with this one because you’ve gone west

guest ok = yes

use client driver = yes

Read the section titled “Set up the Samba configuration file on the server” on this page and compare with your smb.conf

hi sir SWERDNA…nice look for youre website…ok ill check wht u suggsted…

thanks again

hi sir SWERDNA

i tried ur suggstion…yes the error is now gone but when i try to testprint…

it still has an error

this is my smb.conf

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2008-06-06

[global]

workgroup = susegroup
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
use client driver = yes
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = susebux
server string = ""
name resolve order = bcast host wins lmhosts
local master = yes
preferred master = yes
os level = 65
log level = 2 vfs:2
syslog = 0
max log size = 0
log file = /var/log/samba/%U.log

[printers]

comment = All Printers
path = /var/temp
printeable = Yes
create mask = 0700
browseable = No
guest = Yes

Share disabled by YaST

[netlogon]

my cupds.conf

LogLevel info
SystemGroup sys root

Allow remote access

Port 631
Listen /var/run/cups/cups.sock

Enable printer sharing and shared printers.

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow From @LOCAL
Allow From 192.168.20.*

Allow shared printing…

Order allow,deny
Allow @LOCAL
</Location>
<Location /admin>
Encryption Required
Allow localhost

Restrict access to the admin pages…

Order allow,deny
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Allow localhost

Restrict access to the configuration files…

Order allow,deny
</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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>

what did i miss sir?

kcampilan wrote:

>
> hi sir SWERDNA
>
> i tried ur suggstion…yes the error is now gone but when i try to
> testprint…
>
> it still has an error
>
> this is my smb.conf
>
<snip>
> [printers]
>
> comment = All Printers
> path = /var/temp
> printeable = Yes
> create mask = 0700
> browseable = No
> guest = Yes
It’s guest ok = yes
<snip>


P. V.
Cogito cogito ergo cogito sum.

i tried is sir but on my XP side when i print or test print " Test page failed to print. would you like to view the printer troubleshooter for assistance? Unable to create print job."

error sir

again here’s my smb.conf maybe there’s another typo

workgroup = susegroup
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
load printers = yes
use client driver = yes
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = susebux
server string = ""
name resolve order = bcast host wins lmhosts
local master = yes
preferred master = yes
os level = 65
log level = 2 vfs:2
syslog = 0
max log size = 0
log file = /var/log/samba/%U.log

[printers]

comment = All Printers
path = /var/temp
printeable = Yes
create mask = 0700
browseable = No
guest ok = Yes

my cupsd.conf

LogLevel info
SystemGroup sys root

Allow remote access

Port 631
Listen /var/run/cups/cups.sock

Enable printer sharing and shared printers.

Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow From @LOCAL
Allow From 192.168.20.*

Allow shared printing and remote administration…

Order allow,deny
Allow all
</Location>
<Location /admin>
Encryption Required
Allow localhost

Allow remote administration…

Order allow,deny
Allow all
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Allow localhost

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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>

What’s the IP addressing on the LAN, like mine is 192.168.5.1, 5.2, 5.3 etc. What’s yours?

kcampilan wrote:

>
> i tried is sir but on my XP side when i print or test print " Test page
> failed to print. would you like to view the printer troubleshooter for
> assistance? Unable to create print job."
>
> error sir
>
> again here’s my smb.conf maybe there’s another typo
>
>
> workgroup = susegroup
> printing = cups
> printcap name = cups
> printcap cache time = 750
> cups options = raw
> load printers = yes
> use client driver = yes
> map to guest = Bad User
> include = /etc/samba/dhcp.conf
> logon path = \%L\profiles.msprofile
> logon home = \%L%U.9xprofile
> logon drive = P:
> usershare allow guests = Yes
> netbios name = susebux
> server string = “”
> name resolve order = bcast host wins lmhosts
> local master = yes
> preferred master = yes
> os level = 65
> log level = 2 vfs:2
> syslog = 0
> max log size = 0
> log file = /var/log/samba/%U.log
>
> [printers]
>
> comment = All Printers
> path = /var/temp
> printeable = Yes
> create mask = 0700
> browseable = No
> guest ok = Yes
<snip>
>
kcampilan;
Your smb.conf looks ok, although if it were mine I’d add a server string (e.g.
server string = “Suse10.3”) you can assign server string to anything you like,
leaving that parameter out defaults to a rather long string with release
numbers for Samba. So lets look at some other sources of problems.

  1. Have you opened all the needed ports in the Suse Firewall? Swerdna’s site
    has information on this. Double check what you set just in case there is a
    typo.

  2. Have you used the add printer wizard in Windows to add the printer. You
    need to install the drivers on the Windows Machine. This may require the CD
    that came with your printer if it is not in the Windows data base. I assume
    that you DO NOT have the Windows print drivers loaded into your Samba server,
    so follow this:

When you run the wizard choose LOCAL printer (NOT Network) and uncheck the
plug and play box. Under Port, choose “Create a NEW port”; make the port
type “local port” choose “NEXT” and enter the path to your printer in the Box:
\<Server>&lt;printername>. Server is the netbios name of your Suse machine (in
your case, susebux and printername is the name of your printer (to locate your
printername enter \<server> in IE and you should see the names of your
shares). Finally choose the drivers for your printer ( You may need to get
them off the CD that came with your printer ) and finish the install.

I hope this helps.


P. V.
Cogito cogito ergo cogito sum.

its 192.168.20.*

i can access my susebux sir from an xp unit…

hi sir swerdna