Hi List;
I'm running Fedora9 in a VM (on a mac via vmware fusion) Each time I boot I have no printers, I can set one up and print to it fine both in cups or via the KDE printer dialog however the next time I boot they are gone.
It was working before, not sure if an update broke it, or if it's something I did to myself. Any thoughts on how to debug this ?
Thanks in advance
On Tue, 2008-11-11 at 12:41 -0700, Kevin Kempter wrote:
I'm running Fedora9 in a VM (on a mac via vmware fusion) Each time I boot I have no printers, I can set one up and print to it fine both in cups or via the KDE printer dialog however the next time I boot they are gone.
That sounds like your SELinux contexts have gone wrong. Is SELinux enabled and in enforcing mode? ('/usr/sbin/getenforce')
Are the CUPS SELinux file contexts as they should be? ('rpm -V cups' or '/sbin/restorecon -nvR /etc/cups')
Tim. */
On Wednesday 12 November 2008 02:35:58 am Tim Waugh wrote:
On Tue, 2008-11-11 at 12:41 -0700, Kevin Kempter wrote:
I'm running Fedora9 in a VM (on a mac via vmware fusion) Each time I boot I have no printers, I can set one up and print to it fine both in cups or via the KDE printer dialog however the next time I boot they are gone.
That sounds like your SELinux contexts have gone wrong. Is SELinux enabled and in enforcing mode? ('/usr/sbin/getenforce')
Are the CUPS SELinux file contexts as they should be? ('rpm -V cups' or '/sbin/restorecon -nvR /etc/cups')
Tim. */
I'm running SE Linux in permissive mode.
rpm -V cups shows me this:
S.5....T c /etc/cups/classes.conf S.5....T c /etc/cups/printers.conf SM5....T c /etc/cups/subscriptions.conf
On Wednesday 12 November 2008 08:37:46 am Tim Waugh wrote:
After creating a new queue, does it appear in /etc/cups/printers.conf?
Tim. */
I walked through the cups add printer steps. I saw SE Linux warnings so I looked at the messages and ran the following per the SE Linux recommendations:
# restorecon -v '/usr/lib/vmware-tools/bin32/vmware-tpvmlp'
# restorecon -v './printers.conf'
# restorecon -R -v '/var/tmp/kdecache-kkempter/kpc'
After I added the new printer it did in fact show up in /etc/cups/printers.conf
I rebooted and the printer is still there ! I suspect the restorecon commands aboe did the trick.
Thanks for the help