-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not configure samba printer #532
Comments
This is because we don't have I think we should re-consider including it. |
That's actually first thing I considered but I also did quick check and it seemed not be the issue. # Silverblue
jask@silverbook:~$ rpm -qa | grep samba
samba-common-4.19.4-3.fc39.noarch
samba-client-libs-4.19.4-3.fc39.x86_64
samba-common-libs-4.19.4-3.fc39.x86_64
samba-client-4.19.4-3.fc39.x86_64
# Workstation
jask@fedora:~$ rpm -qa | grep samba
samba-common-4.19.4-3.fc39.noarch
samba-common-libs-4.19.4-3.fc39.x86_64
samba-client-libs-4.19.4-3.fc39.x86_64
samba-client-4.19.4-3.fc39.x86_64 Of course it doesn't mean some other required package that is part of Workstation is not part of Silverblue. But I thought there should be functional/package parity between Workstation and Silverblue, shouldn't it? EDIT: If somebody knows what package it is that I am missing, please let me know. I will gladly layer it. |
After poking around for some time I was able to come up with cause to this issue. According to CUPS docs there should be This symlink is present in Workstation installation but is missing in Silverblue. I tracked the missing file to this line in I am not sure why this doesn't get applied in Silverblue, because |
This could be related to coreos/rpm-ostree#1180 |
Nice investigation, this looks like the issue indeed. Not sure if we have a good path forward. Firsts step would be to confirm if we have SAMBA or not in Silverblue by default right now. |
I think there should be two options. Either implement Second option probably will be easier and faster to implement. However it doesn't prevent similar issues in future.
I am not sure how to properly confirm it. To me it seems that same samba packages are part of Silverblue as are installed in Workstation. And those in Workstation are sufficient for this to work. Edit: I am sorry if I sometimes sound rude. I don't mean to. I just want to be helpful. |
It seems we do: https://pagure.io/workstation-ostree-config/blob/f39/f/fedora-common-ostree-pkgs.yaml#_151 |
Couldn't (or shouldn't really) this symlink be shipped as a tmpfiles config snippet? The %%triggerin section could then just be |
Could you clarify how we could fix that with tmpfiles? I've made a temporary workaround in https://pagure.io/workstation-ostree-config/pull-request/456. @gjask can you confirm that the paths are correct? Thanks |
This looks like it should work for most use-cases. But it would likely break for people who would want to layer and use ln -snf /usr/libexec/samba/cups_backend_smb /usr/lib/cups/backend/smb Apart from that it seems it should work. Thank you. :) |
Thanks for the review. I've updated the PR. |
I've merged the PR for Rawhide and I'm backporting this in F39 in https://pagure.io/workstation-ostree-config/pull-request/458 I'll merge it soon so that's in the next update. Can you test it tomorrow and report back? Thanks! |
@travier It seems to be working to the point I am able to add the printer as expected. I still am not able to print, but for now it seems to be unrelated problem as same happens on current Workstation. I'll look into it more. |
Thanks for the update! I'll keep this one open to track this issue. |
RPM %triggerin are not currently supported in rpm-ostree, thus work around this issue by manually creating the symlink. According to the docs, `/usr/lib/cups/backend/smb` should point to `smbspool`. Here we have the following chain: /usr/lib/cups/backend/smb -> /usr/libexec/samba/cups_backend_smb -> /etc/alternatives/cups_backend_smb -> /usr/bin/smbspool See: https://www.cups.org/blog/2005-06-17-printing-to-windows-servers-with-samba.html See: coreos/rpm-ostree#1180 See: fedora-silverblue/issue-tracker#532
The following tmpfiles config dropin should create the symlink:
It'd be auto-created on next reboot or when |
Not sure I understand. You can not write to |
ah right, nevermind this isn't going to work then. |
Describe the bug
tl; dr: CUPS web console misses option to add new printer via SAMBA on Silverblue
At my workplace we have this network printer we connect using SAMBA. For past seven years I always configure this printer using web console natively provided by CUPS (http://localhost:631) because in comparison to gnome-settings it always works like a charm. Gnome-settings have changed many times its printers configuration dialogues in that time yet there is always some problem preventing to configure this particular printer (could not connect samba, could not load custom printer driver, could not handle samba auth, etc.) .
Today I tried to configure this printer in same way on my new laptop for which I decided to switch to Silverblue and I could not because CUPS web console misses option to add samba printer. I spun up Workstation in Boxes to check if that is also an issue there, but it seems to be Silverblue related.
To Reproduce
Please describe the steps needed to reproduce the bug:
Administration
and authenticate with your system accountAdd Printer
inPrinters
paragraphWindows Printer via SAMBA
Expected behavior
Option
Windows Printer via SAMBA
is offered and workingScreenshots
Silverblue:
Workstation:
OS version:
The text was updated successfully, but these errors were encountered: