It turns out, even old scanners has a function in the modern era, thanks to our brothers and sisters at the SANE project.
For printers, you have CUPS and for scanners you have SANE
They pretty much saves the day if you don’t want to have a dedicated Windows PC just for scanning or printing every once in a while. As the world shifts to the full digital age, it’s less and less common to perform these tasks.
But as we all know; when you need the old hardware to work, you need it badly. Printers are not famous for being very trustworthy or stable. Because after all, the manufacturers make money on the ink and not on good hardware. It’s a perfect study-case for a tiny Raspberry Pi, as these tasks don’t require much horsepower.
Recently I had a case where Raspbian’s default file manager(pcmanfm) kept on crashing.
The user would click on the icon, the application would open and then immediately close or crash. If the application was executed from terminal, the same results were met.
I had a look at the logs and noticed that pcmanfm kept on throwing out a “Segmentation fault“
A quick fix for this issue is to reinstall the pcmanfm:
sudo apt-get install --reinstall pcmanfm
There’s good news and bad news:
You expected to struggle with this. You expected that this will be as tricky as it used to be. Rotten luck, chum.
Create a file called called:
Sometimes you want stuff to run at startup, be it an application or a forced setting. This is fairly easy to achieve in Rasbpian, here’s how:
You can use the Raspbian preferences via the GUI to cause the pi user to be auto logged in at boot up and the GUI to automatically run. However, if you need to run with root privileges due to needing IO pin control (PLEASE NOTE: It is not advised to run as root) then set the Raspbian preferences to boot to the command line. Now open this file by editing it(you can use your favourite editor, for this example we use nano):
sudo nano /etc/rc.local
Before the “exit 0” line in it add the following line:
#Auto run the GUI as root
Save it by pressing Ctrl+X, ” Y“, ENTER
Reboot your RPi and it should automatically run the GUI as the root user.
Setting An Application To Automatically Run In The GUI (more…)
Does that annoying screensaver keep popping up? Is the screen going blank another thorn in your side? No problem:
First you have to edit the autostart file
For the standard Pi user:
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
For the root Pi user (if running the GUI with “sudo startx” for instance when running apps that access the IO pins):
sudo nano /root/.config/lxsession/LXDE-pi/autostart
Unfortunately in recent updates, the above has changed in that really annoying way that happens all to often with Linux versions, but seems to be the current file that needs to be edited. It used to be these but they no longer seem to work with the latest version of Raspbian:
sudo nano /etc/xdg/lxsession/LXDE/autostart
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart