Now, updating my desktop and laptop’s configuration to mount the Raspberry Pi. On my desktop this didn’t cause any problems, however on my laptop it caused the following proglem:
$ mount /mnt/rpisrv
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified
The troubleshooting on the Arch Wiki says to change the NFS configuration not to need statd. But what about doing exactly what the message tells me to do?
root@hp # systemctl start rpc-statd.service
So, now it works, so enable it on boot:
root@hp # systemctl enable rpc-statd.service
So far my other machines, back to the Pi. CUPS, yes, let’s get that printer working. Apart from the problems with the actual printer, the drivers can cause problems as well. I have written about this before, reported a bug, it was once solved, but later was re-introduced I believe.
# pacman -S hplip cups
to install CUPS and the hplip driver (and its dependencies, which used to cause the mentioned problems before)
# systemctl start cups
is not enough, I cannot connect to the CUPS on my Raspberry. Looking the the config file, it appears to be configured to listen on localhost only, which is off course rather useless for a headless server. In /etc/cups/cupsd.conf
, replacing Listen localhost:631
by Listen 631
should fix this problem, but it does not. Looking at the log files
E [17/Nov/2012:19:59:20 +0000] Unable to communicate with avahi-daemon: Daemon not running
it turns out there is a dependency on another daemon which should be started first. Now, the server is listening, but it gives me a 403.
I still need to set from which IP addresses the connections are allowed (in the same file as mentioned above). Adding Allow from 192.168.178.*
to all access levels will do. IPv6 configuration will be done later.
The Unable to get list of printer drivers: Success
error appears again. meaning I cannot use the hplip driver due the foomatic problem.
Removing that shit again
# pacman -R foomatic-db foomatic-db-engine foomatic-filters hplip
and installing gutenprint instead
# pacman -S gutenprint
This is a problem which has been around for months if not longer. It had been fixed at some point I believe, but it re-appeared at some point.
Using the gutenprint drivers, I can add the printer, but there is still a problem. The printer doesn’t appear automatically in the list at the other computers. I can add the printer manually, and then it works, so I suppose this is a problem with avahi.
And it was indeed an avahi problem. But it was on the client side, where the
# systemctl start avahi-daemon
# systemctl enable avahi-daemon
The printer still doesn’t magically appear in the list, however, when I access cups, it will report the printer found, and can be added manually. But when I try to print to it, I get the error "Unable to locate printer "rpi-server.local"
. According to this page, it means incorrect hostname or ip address. Which can be correct, as .local isn’t valid in my configuration. My modem is a Fritz!Box, and appends local hostnames by fritz.box. I suppose this should to into the avahi config file. Changing that doesn’t help. Now the printer isn’t appearing anywhere. I suppose I should change this part in the avahi configuration on all machines. If that’s the case then it totally breaks the point of avahi, automatic configuration.
Anyhow, I have been trying various things, but it appears I cannot get auto, or semi-automatic configuration working. I assume this is related to the switch to systemd, as from memory, it used to work automatically, as soon as the “share this printer” checkbox was marked, the printer used to automatically appear on all computers in the network. Well… I can add it manually. I guess that’s what I will do for now…. but I am not pleased with the fact it ain’t working as it should.
« In de keuken ArchLinux using systemd: X on tty1, but what if X fails? »