Hi everyone,
I can't find how to get network printer autodetection in Salix.
1) The CUPS web interface does not show any network printer when I click "find new printer" on the administration page and when I click "add printer", I have to enter the printer URI by hand (which I don't know for the three network printers I have to install)
2) I tried to install system-config-printer but it does not show any network printer, and the detect button is greyed. I remember having to install python-smbc package with Debian to have it active, but there does not seem to exist any such package in Salix.
Any one has an idea ?
Thanks,
Denis
network printer detection
Re: network printer detection
List the routes and try to find the printer name in the list........I have to enter the printer URI by hand (which I don't know for the three network printers I have to install)
like so
Code: Select all
netstat -r
Use 9100 for the port # and note the colon between server and port
Server being the share name for that Computer where the printer is attached and printer_name being it's Share name.
If you want you can also use the Just the IP address with socket socket://ip-address/shared-printer-name
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
Re: network printer detection
I see what you mean though........ I just tried FIND NEW PRINTES in the CUPS Admin tool using Firefox.
However if you Click
Administration TAB
then..... Add Printer... the Cups utility will more likely have a successful search..
and the list Discovered Network Printers:
As in this results......
However if you Click
Administration TAB
then..... Add Printer... the Cups utility will more likely have a successful search..
and the list Discovered Network Printers:
As in this results......
Add Printer
Local Printers: SCSI Printer
HP Printer (HPLIP)
HP Fax (HPLIP)
Discovered Network Printers: Officejet 6500 E710a-f (HP Officejet 6500 E710a-f)
Other Network Printers: Internet Printing Protocol (http)
AppSocket/HP JetDirect
LPD/LPR Host or Printer
Windows Printer via SAMBA
Backend Error Handler
Internet Printing Protocol (ipp)
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
Re: network printer detection
Hi sqlpython,
and thanks for your answer, it showed me the right direction :
I realized ufw firewall was active and prevented me from detecting the network printer. Deactivating solved the problem, now it is displayed as "discovered network printers".
But I also have to configure two samba printers and there does not seem to exist any autodetection process under Salix. Am I wrong ?
And trying netstat didn't help me to identify them :
netstat -r output :
-------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
-----------
Regards,
Denis
and thanks for your answer, it showed me the right direction :
I realized ufw firewall was active and prevented me from detecting the network printer. Deactivating solved the problem, now it is displayed as "discovered network printers".
But I also have to configure two samba printers and there does not seem to exist any autodetection process under Salix. Am I wrong ?
And trying netstat didn't help me to identify them :
netstat -r output :
-------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
-----------
Regards,
Denis
Re: network printer detection
votre accueil
Question is How did you set up SAMBA?
Below is the Basic setup I had recommended in a Debian How To....
Probably you would want to set up without a Firewall and then once satisfied Turn on the Firewall.
A Firewall will many times confound a SAMBA configuration.
Question is How did you set up SAMBA?
Below is the Basic setup I had recommended in a Debian How To....
Probably you would want to set up without a Firewall and then once satisfied Turn on the Firewall.
A Firewall will many times confound a SAMBA configuration.
/etc/samba/smb.conf
Some Defaults I have set
workgroup = WORKGROUP
server string = %h server
#wins support = no
include = /etc/samba/dhcp.conf
dns proxy = no
netbios name = sqlpython-sl410
name resolve order = lmhosts host wins bcast
and set interfaces to lo and your local network interface. In my case: eth0.
interfaces = lo eth0 wlan0
bind interfaces only = true
A bit more secure alternative would be to my particular interfaces
interfaces = 192.168.0/200 192.168.1/200 192.168.2/200 127.0.0.0/8 eth0
Now, it is time to smoothen samba default security by changing the security variable: security and make sure it is set to share instead of user and that guest account is enabled:
security = share
...
...
guest account = nobody
Now, we can create a share to be accessible to guest users:
Mine refers to a dir I have called Public
*******Share Definitions************
[Public]
comment = Guest access share
path = /home/sqlpython/Public
browseable = yes
read only = yes
guest ok = yes
In the Section regarding
####### Authentication #######
I put a # in front of anything that would give a password or an encryption.
You can revisit this area later once you decide what you want a password for bot for now just get it working.
########## Printing ##########
load printers = yes
# cupsys-client package.
printing = cups
printcap name = cups
You can now test that your configuration is good using testparm:
$ testparm
If everything is fine, it is time to reload samba service to have your new configuration taken into account:
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
Re: network printer detection
Thanks for your answer.
I'm at home and can't try it now.
I will test it on monday and let you know;
Denis
I'm at home and can't try it now.
I will test it on monday and let you know;
Denis
-
- Posts: 165
- Joined: 20. Sep 2009, 17:30
- Location: Oxfordshire, UK
Re: network printer detection
Cups is quite capable of configuring Samba printers.
I usually simply use 'smbtree' to discover what is available, then add the server/resouce-name to Samba, using smb://server/resource-name
If your machine isn't running a Samba server, you can simply confgure the correct domain/workgroup name in /etc/samba/smb.conf - shouldn't need much else to connect to a printer or file resources using Gigalo.
Paul.
I usually simply use 'smbtree' to discover what is available, then add the server/resouce-name to Samba, using smb://server/resource-name
If your machine isn't running a Samba server, you can simply confgure the correct domain/workgroup name in /etc/samba/smb.conf - shouldn't need much else to connect to a printer or file resources using Gigalo.
Paul.
Re: network printer detection
Hi Paul,
Thanks for the tips, I'll try that also.
Regards,
Denis
Thanks for the tips, I'll try that also.
Regards,
Denis
-
- Posts: 165
- Joined: 20. Sep 2009, 17:30
- Location: Oxfordshire, UK
Re: network printer detection
denis_p wrote:Hi Paul,
Thanks for the tips, I'll try that also.
Regards,
Denis

That should be "add the server/resource name to Cups, not Samba....toothandnail wrote:I usually simply use 'smbtree' to discover what is available, then add the server/resouce-name to Samba, using smb://server/resource-name
Sorry about that....
Paul.
Re: network printer detection
I tried the smb.conf you suggested sqlpython, then restarted samba and used smbtree to get samba printers URIs as you suggested Paul, then configured them through cups web interface. And now it works !
Thanks to both of you,
Regards,
Denis
Thanks to both of you,
Regards,
Denis