Set up Kubuntu 12.10 and an HP printer for batch scanning in Xsane

This process needs to be much easier, but until then, here’s a script to get you set up. This is an update of an older post here: to make this more intuitive. Instead of having you follow a long list of instructions, I’ve been testing out scripts to get my common tasks done upon my numerous Kubuntu rebuilds. I have to redo a lot of the things that I’ve posted instructions on, so I’m going to start building and posting helper scripts instead. It’s a good habit to be in anyway. I rebuild my Kubuntu box about once every two months because I am constantly breaking things.

As previously mentioned, I have an HP OfficeJet 6500 Wireless All-In-One. I am using the HP OfficeJet 6500 e709n, hpcups 3.12.6 driver; you should choose whatever driver is recommended for you. Cups printing seems to work
better and be less buggy, especially over the network. Please understand that the following script is imperfect and totally tailored to my hardware; you may need to break it apart and run it piecemeal depending on your setup. However, this should help. As usual, the links that helped me are at the bottom. Nota bene: you may need to rerun ‘hp-check –fix’ two or three times to have it complete all the repairs it needs.

sudo apt-get install xsane libsane-extras hplip-gui -y
echo "$name"
sudo usermod -G saned -a $name
sudo usermod -G scanner -a $name
sudo usermod -G lp -a $name
echo hpaio >> /etc/sane.d/dll.conf
hp-check -r
hp-check --fix
sudo reboot

Google Chrome Will Not Start In KDE (Kubuntu 12.10)

Have you had this problem in KDE? I’ve clicked a few times on a Google Chrome shortcut, and after 20-30 seconds of a bouncing Chrome icon, it disappears. The Chrome process never shows up in the System Monitor or in running processes, either.

/ Greetings, Madam. $google-chrome --enable-logging --log-level=0
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
No bp log location saved, using default.
Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
[000:069] Starting client channel.
[000:069] Warning( Unreadable or no port file. Could not initiate GoogleTalkPlugin connection
[000:069] Warning( Could not initiate GoogleTalkPlugin connection
[000:069] GoogleTalkPlugin not running. Starting new process...
[000:070] Warning( Failed to get GoogleTalkPlugin path. Trying default.
[000:071] Started GoogleTalkPlugin, path=/opt/google/talkplugin/GoogleTalkPlugin
[000:072] Waiting for GoogleTalkPlugin to start...
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.
c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
[001:104] Attempting to connect to GoogleTalkPlugin...
[001:104] Read port file, port=51719
[001:105] Initiated connection to GoogleTalkPlugin
[001:216] Socket connection established
[001:216] ScheduleOnlineCheck: Online check in 5000ms
[001:305] Got cookie response, socket is authorized
[001:305] AUTHORIZED; socket handshake complete
[006:300] HandleOnlineCheck: Starting check
[006:301] HandleOnlineCheck: OK; current state: 3

This isn’t going to be as much help as you’d hope; this post is more to show you that others have had the same problem and you’re not nuts. I don’t usually do this, but I just rebuilt my Kubuntu box two days ago after mucking about with perms (I also took remote controls apart as a kid) and lost the problem I was having here. I wanted folk to know that there was a problem with this build of Kubuntu and Chrome together. Below, someone notes that they got the
problem solved by using a different rendering system. I’m happy to answer questions about my experience with the issue and help out if I can.

How to fix KDE, LibreOffice, and dark themes in Kubuntu

I need to use a dark theme in KDE because I spend so much time on the computer that my eyes get tired of looking at whiteness all the time. I use a very dark theme to minimize the strain on my eyes. If you use LibreOffice and a theme such as Zvon Black, you may have found that your background is totally black and you cannot read documents. Here is the fix:

  1. Download this icons file called “”
  2. At the command line, run this command, altering to match your username and possibly your file location if you do not have it in /home/username/Downloads.

    sudo mv /usr/share/libreoffice/share/config/ /usr/share/libreoffice/share/config/
    sudo mv /home/username/Downloads/ /usr/share/
  3. Open LibreOffice. Tools –> Options –> View –> Change “Oxygen” [or whatever other theme you’re using] to “Crystal”. Go to Colors after View. Change the background color to white and the font color to black.

I took several sets of instructions from several sources, updated them, and created a simplified howto here.

Thanks to: