[SOLVED]LMDE Sharing a printer (home network)
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
[SOLVED]LMDE Sharing a printer (home network)
Alright...
I have a desktop and a laptop both running W7 and LMDE (dual boot).
The printer is connected to the desktop with usb. How can I share the printer with my laptop?
From what I could dig up so far I need to setup samba and cups to achieve this, problem is I don't really know where to begin..
Could anyone point me in the right direction? Thanks in advance .
I have a desktop and a laptop both running W7 and LMDE (dual boot).
The printer is connected to the desktop with usb. How can I share the printer with my laptop?
From what I could dig up so far I need to setup samba and cups to achieve this, problem is I don't really know where to begin..
Could anyone point me in the right direction? Thanks in advance .
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: LMDE Sharing a printer (home network)
I'll keep talking to myself and see where that gets me... and I'll go editing this post along the way.
For starters I tried using the 2 comps running LMDE.
I've found this old topic >> http://forums.linuxmint.com/viewtopic.php?f=42&t=28397
Changing settings in CUPS interface (localhost:631) gives me an error FORBIDDEN..
Found how to fix this here
For starters I tried using the 2 comps running LMDE.
I've found this old topic >> http://forums.linuxmint.com/viewtopic.php?f=42&t=28397
Changing settings in CUPS interface (localhost:631) gives me an error FORBIDDEN..
Found how to fix this here
try adding your user account to the 'lpadmin' group.
see /etc/cups/cupsd_conf . the SystemGroup is usually 'lpadmin'.
lpadmin s/b in /etc/group .
to add a user named joe to lpadmin, from command line:
adduser joe lpadmin .
Re: LMDE Sharing a printer (home network)
In Debian Mint ( at least the XFCE version ) Samba is pretty much broken by default so you should have done this first:
Then edit smb.conf as root:
Add the following line to the [global] section:
Then look for the [printers] share and change the "guest ok" line from no to yes:
On the CUPS end:
** Make sure you can print locally to the printer.
** Then run:
And do all this stuff:
Server > Settings > Check "Publish Shared Printers connected to this system"
Right Click the attached printer > Properties > Policies > Check Enabled, Accepting Jobs, and Shared
Code: Select all
sudo apt-get install libsmbclient
sudo apt-get install smbclient
sudo apt-get install python-smbc
Code: Select all
gksu gedit /etc/samba/smb.conf
Code: Select all
map to guest = Bad user
Then restart samba:[printers]
comment = All Printers
browseable = No
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
Code: Select all
sudo service samba restart
** Make sure you can print locally to the printer.
** Then run:
Code: Select all
system-config-printer
Server > Settings > Check "Publish Shared Printers connected to this system"
Right Click the attached printer > Properties > Policies > Check Enabled, Accepting Jobs, and Shared
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: LMDE Sharing a printer (home network)
Our neverending SAMBA journey continues.altair4 wrote:In Debian Mint ( at least the XFCE version ) Samba is pretty much broken by default so you should have done this first:Code: Select all
sudo apt-get install libsmbclient sudo apt-get install smbclient sudo apt-get install python-smbc
The libsmbclient is installed here, however the other two files are not.
I also edited this file to unremark the name resolving line and reorder it, as usual with host last, to actually set up the networking printer driver.altair4 wrote:Then edit smb.conf as root:Add the following line to the [global] section:Code: Select all
gksu gedit /etc/samba/smb.conf
Code: Select all
map to guest = Bad user
For some reason the icon won't let me rename it, though.
Would you remind me again what this does, please?altair4 wrote:Then look for the [printers] share and change the "guest ok" line from no to yes:[printers]
comment = All Printers
browseable = No
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
Re: LMDE Sharing a printer (home network)
If you're talking about the [printers] share, it's set up to require credentials from the client before printing is allowed. Setting "guests ok" to yes allows anyone to print to that printer.
BTW, the [printers] share really isn't a share like a folder share in Samba. It creates a sharable printer for every printer that CUPS passes to it. That's why the [printers] share itself is not browseable.
BTW, the [printers] share really isn't a share like a folder share in Samba. It creates a sharable printer for every printer that CUPS passes to it. That's why the [printers] share itself is not browseable.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: LMDE Sharing a printer (home network)
Um, so that means it is for sharing through the computer to which the printer is attached?
My printer is on a NAS box's USB port, so it isn't attached to a PC directly and I've never had to make a guest edit before for it to work.
My printer is on a NAS box's USB port, so it isn't attached to a PC directly and I've never had to make a guest edit before for it to work.
Re: LMDE Sharing a printer (home network)
Had done all that up to runningaltair4 wrote:In Debian Mint ( at least the XFCE version ) Samba is pretty much broken by default so you should have done this first:Then edit smb.conf as root:Code: Select all
sudo apt-get install libsmbclient sudo apt-get install smbclient sudo apt-get install python-smbc
Add the following line to the [global] section:Code: Select all
gksu gedit /etc/samba/smb.conf
Then look for the [printers] share and change the "guest ok" line from no to yes:Code: Select all
map to guest = Bad user
Then restart samba:[printers]
comment = All Printers
browseable = No
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700On the CUPS end:Code: Select all
sudo service samba restart
** Make sure you can print locally to the printer.
** Then run:And do all this stuff:Code: Select all
system-config-printer
Server > Settings > Check "Publish Shared Printers connected to this system"
Right Click the attached printer > Properties > Policies > Check Enabled, Accepting Jobs, and Shared
Code: Select all
system-config-printer
Code: Select all
coffee@coffee ~ $ system-config-printer
ERROR:dbus.proxies:Introspect error on :1.86:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=1000 pid=3810 comm="/usr/bin/python /usr/bin/system-config-printer ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.86" (uid=0 pid=3815 comm="/usr/lib/cups-pk-helper/cups-pk-helper-mechanism ")
Right clicking the printer gives me an error:
Code: Select all
Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited.
The printer is connected to the box through USB, box is connected to router, laptop is on wireless... when I try to print from the laptop I get a "printer is not responding"..
I already switched from coffee to beer by now .
edit:
I ran your how/to on sharing folders between both machines yesterday and it worked perfectly..
Re: LMDE Sharing a printer (home network)
Cheese and crackers ! I have no idea what that's all about. I try to stay away from Debian based Mint for reasons like this. Was this an update to an earlier LMDE or was this a new install of the latest respin? I try to do some searches on that message but it looks like multiple failures to me.coffee@coffee ~ $ system-config-printer
ERROR:dbus.proxies:Introspect error on :1.86:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.85" (uid=1000 pid=3810 comm="/usr/bin/python /usr/bin/system-config-printer ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.86" (uid=0 pid=3815 comm="/usr/lib/cups-pk-helper/cups-pk-helper-mechanism ")
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: LMDE Sharing a printer (home network)
I did a search on the second error message:
It appears to be a known bug.
And it sent me back to this forum: http://forums.linuxmint.com/viewtopic.php?f=198&t=99361Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited.
It appears to be a known bug.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: LMDE Sharing a printer (home network)
Its a fresh UP4 final install... the laptop is the RC but everything is updated, the error probably has something to do with the UI... but like I said all the options are ticked, everything matches.
Re: [SOLVED]LMDE Sharing a printer (home network)
Three letters, the first is a u, the second a f... can you guess the third one?
Oh man I went through folders and conf's and.. grrr.
Thank you very much for your help altair .
Actually I'm not even sure if it was the firewall....
Oh man I went through folders and conf's and.. grrr.
Thank you very much for your help altair .
Actually I'm not even sure if it was the firewall....