Posts filed under ‘Linux’

openSuse: Disable Tray Software Updater

I don’t like the Software Update icon in the system tray, nor do I like its functionality, because it fails every so often when trying to update software – the usual reason is that it fails to resolve dependencies. Instead, I’ve been using this command (as root):

zypper update -lR (-l = –auto-agree-licenses; -R = –force-resolution)

Now, how to get rid of the icon? Fire up yast, and uninstall:

  • In KDE 4 (default in openSuse up to version 12.3): apper
  • In KDE 5 (openSuse Leap/Tumbleweed): plasma5-pk-updates

Hope this helps someone save some time googling.


2016/03/26 at 00:05

Changing PDF Titles With pdftk

Have you ever noticed that many PDF converters, or scanning programs, create PDF titles that are anything but meaningful? I’m using XSane for scanning, and all the PDF files get this title:

XSane scanned image

That’s totally meaningless. Others create PDF from Microsoft Word, and many of those PDF files have Microsoft Word in the title — in most cases, the title even begins with Microsoft Word, which makes it hard to identify the document you’re looking for in the window bar when you have several of them open.

With pdftk (PDF Toolkit), you can fix this easily. I’ve used it only on Linux, but apparently it’s available for other major platforms, too. Be warned that this is a command-line program.

So here’s what I do to change a PDF title.

Here’s a typical „Microsoft Word“ PDF file:

Atlas~/private/stefan> l neugier_handout.pdf
 -rw-r--r-- 1 stefan users 531831 25. Okt 2012  neugier_handout.pdf

1. First step is to dump the PDF metadata to a file which I call report.txt:

Atlas~/private/stefan> pdftk neugier_handout.pdf dump_data output report.txt

Here’s what’s in the PDF metadata:

 Atlas~/private/stefan> cat report.txt
 InfoKey: ModDate
 InfoValue: D:20081229161229+01'00'
 InfoKey: CreationDate
 InfoValue: D:20081229161229+01'00'
 InfoKey: Author
 InfoValue: Charakterstärke
 InfoKey: Title
 InfoValue: Microsoft Word - Neugier_Handout.doc
 InfoKey: Creator
 InfoValue: Word
 InfoKey: Producer
 InfoValue: Mac OS X 10.4.11 Quartz PDFContext
 PdfID0: 911d0c6f06613f3690fa270fad39d33b
 PdfID1: 911d0c6f06613f3690fa270fad39d33b
 NumberOfPages: 4

2. Second step is to edit the metadata file:

 Atlas~/private/stefan> vi report.txt

Here’s what I’ve changed. Note that I’ve used ASCII-7, because pdftk doesn’t seem to be able to properly handle UFT-8 and friends:

Atlas~/private/stefan> grep Neugier report.txt
 InfoValue: Neugier - Staerkentraining

3. Third step is to update the metadata in the PDF file. Note that the output must be written to another file — pdftk refuses to overwrite the original file:

 Atlas~/private/stefan> pdftk neugier_handout.pdf update_info report.txt output neugier_handout.pdf.copy

4. Last step is to make the copied PDF file the original PDF file:

 Atlas~/private/stefan> mv neugier_handout.pdf.copy neugier_handout.pdf

And done. Verify that the title meets your expectations in the PDF viewer of your choice:

 Atlas~/private/stefan> okular neugier_handout.pdf

The steps are easily scriptable if you’re so inclined.

2014/11/26 at 11:00

Firefox Tab Sync Issues

Firefox again. Whenever I have time to waste, I try to configure its features to make working with a browser more productive. Incrementally, I’m getting there — by the year 2100 I should have reached optimum productivity. 🙂

When I recently installed openSuse 13.2 on my laptop (fresh installation, except that the /home directory was preserved), and then opened Firefox (33.0) for the first time, it synchronized the tabs from my work computer (a desktop computer). All those tabs were pinned tabs, since I rarely have regular tabs open in the browser. (When I do, it’s mostly for searches, or for ebay which cannot handle pinned tabs well.) Anyway, looks I’ve been lucky with that pristine Firefox from the fresh installation. Normally, there seems to be no way of keeping tabs in sync across devices. Meh.

At least there’s a semi-automatic way of syncing tabs, but it’s well hidden in Firefox. From googling, I found that there must have been an option in the History sidebar (CTRL+H) at some point (2012 or so), labeled something like „tabs from other devices“. That would be nice to have, but apparently they removed it in newer Firefox versions. These days, what you do is open a new tab, then type about:sync-tabs in the address bar. Quite intuitive, I would say. 🙂


The prerequisite of seeing something here is that you’ve enabled Firefox Sync on your various devices. If that’s the case, Firefox will list the tabs from your other computers, tablets, or smartphones, grouped by device. Note that it will list only the tabs that aren’t already open on your current device. Also note that Firefox has its own ideas about what „open“ is — any pinned tabs on your current machine are disregarded. In other words, if a page is open in a pinned tab, Firefox will still show it in the tabs from other devices list. However, Firefox will show pinned tabs from your other devices, which is kind of inconsistent, but helpful nevertheless.

Now you can double-click on the gray boxes, and they’ll be opened in a new tab. At the same time, they’ll disappear from the list.

Right-clicking on the sync-tabs page lets you refresh the open tabs list. If you mark a gray box with a left-click, then right-click on it, you get an additional option, which is to add it as a bookmark.

So, very limited functionality, and limited use.

I tried grouping tabs, too, but that’s a feature I’d consider not working properly, or at least it has a flawed design. It doesn’t work at all with pinned tabs (they appear in every tab group, no matter what you do), so you’re forced to use regular tabs. Also, tab groups are supposed to close tabs from other groups when you open them, but they don’t behave that way in my browsers (on Linux). And if I dare to manually close those other tabs that were opened from another tab group, guess what happens? The tab group is empty then. Oh boy. That’s usability spelled backwards.

Comments are welcome, but please don’t advice to switch to Chrome. While I do use Chrome when working with add-ons in Google Docs (because add-ons only work in Chrome), I have a pretty good idea how this world would look like if everyone consolidated on Chrome. I bite my tongue not to end this article with a little rant, so let me just say that I deem a properly working Firefox an important thing to have these days. Thanks for reading, and agreeing. 🙂

2014/11/21 at 13:26

SyncMe Wireless

I’ve been using Rsync Backup on my Wiko Cink Peax 2 smartphone for half a year. Two days ago, it stopped working. That is, it refused to connect to my Synology NAS (DS 214se), complaining about „no matching algo kex“. There’s a lot of discussion going on about that error on the developer’s website:

Automatic Nightly Backups for Your Android Device to Your Computer | Guysoft’s Weblog

The reason for the error: The latest operating system update on the NAS removed some old SSH ciphers that were insecure. Rsync Backup uses those ciphers. The fix would be to re-add them, so I tried that. The result was that the SSH daemon on the NAS would refuse to start up. Also, fiddling with insecure ciphers isn’t particularly secure. The real fix would be to use secure ciphers for Rsync Backup, but apparently the developer has no plans to do that. So, looking for a replacement.syncmewireless

On the Play Store, I found SyncMe Wireless. Wow, what a nice tool! Its usability is brilliant, kudos to the author!

On startup, it ran me through the process of finding the computer to back up to, by scanning the local network for Windows computers. My Synology NAS are Linux boxes, but they have SMB enabled (Synology calls that Windows File Service, fair enough), so their drives and (shared) folders show up just like Windows drives. SyncMe uses plaintext login (username/password), so I’d recommend to use it only in a safe environment, which is what I had been intending to do, anyway.

After storing the connection information, SyncMe asked to create a sync profile, which in my case is a simple backup profile for the photos. So I did that, selecting the destination folder (on the NAS), and the source folder (DCIM/Camera on the smartphone). I deselected the SyncMe option to overwrite any existing files in the destination folder, so it will copy over only new photos, which is exactly what I want.

After saving the profile, it’s now a matter of three taps to back up my photos: open the app, select the profile, run the profile. Very neat, very quick.

2014/11/14 at 12:44

XSane: Konnte Scanner nicht starten — ungültiges Argument

Wollte heute Morgen mein frisches Foto für den Reisepass scannen. Vorschauscan funktionierte, Scannen nicht. XSane meldete:

Konnte Scanner nicht starten — ungültiges Argument.

Googeln erbrachte überwiegend die Empfehlung, den Ordner ~/.sane zu löschen und es noch mal zu probieren. Das funktionierte ebenfalls nicht.

Der wirkliche Grund scheint ein anderer zu sein: Das Passbild ist einfach zu klein. XSane mag es anscheinend nicht, wenn man nur 3,39 x 4,27 cm scannt. Erst wenn beide Werte (Höhe und Breite) etwa 5 cm betragen, zickt XSane nicht mehr rum, sondern scannt brav wie immer schon.

Meine Konfiguration (obwohl diese wahrscheinlich keine Rolle spielt): XSane 0.998 gestartet aus dem grafischen Tool HP Linux Imaging and Printing (HPLIP) 3.13.10 unter openSuse 13.1. Der Drucker/Kopierer/Scanner ist ein HP LaserJet 200 color MFP M276nw, sehr ordentliches Gerät übrigens.

2014/11/07 at 10:40

Calendar doesn’t reload? Reload Akonadi!

Reminder to self: When KOrganizer refuses to reload your remote calendars, no matter how hard you press F5 (reload calendars), and when all hope is lost because even in the KDE system settings there’s no way to reload calendars, and when you’ve banged your head against the monitor often enough after reading all the good advice that suggests you should simply recreate your calendars with the same settings, then delete the old calendars: Wait. What you need to do is simple and straightforward, and if you weren’t a moron just like me, you’d have guessed it, anyway:

Reload Akonadi.

To do that, locate the funny little arrow up in the KDE system tray, right-click on the „Akonadi module“ button, select „configure“, then select the „configuration of the Akonadi server“ tab, and press the „restart“ button. Go back to KOrganizer, reload your calendars, and voilá — they’re updated.

This is completely intuitive and perfectly easy to understand, but I keep forgetting it.

2013/05/16 at 15:41

Workaround for copying things from an Android device on KDE 4.10

Here’s the only workaround (out of half a dozen suggestions found via Google) that actually works for me (KDE 4.10, Galaxy S2, Android 4.0.3).

First, install ‚go-mtpfs‘ and dependencies needed on your system. ‚go-mtpfs‘ is a program written in Go that can mount an Android device reliably. I call it like this:

go-mtpfs /media/s2 &

The output is something similar to this:

Error: Unable to open ~/.mtpz-data for reading.
2013/04/04 12:38:25 compiled against libmtp 1.1.6
Device 0 (VID=04e8 and PID=6865) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
2013/04/04 12:38:25 device unknown: unknown (04e8:6865) @ bus 2, dev 23
2013/04/04 12:38:25 storage ID 65537: Phone
2013/04/04 12:38:25 storage ID 131074: Card
2013/04/04 12:38:25 backing data /tmp/go-mtpfs161880298
2013/04/04 12:38:25 starting FUSE.

Once mounted, I call a script that copies images and videos from the device, and when done, unmounts the device. The script looks like this:

cd $from
if [ $ret -gt 0 ]; then
echo "*** Error: Camera not mounted ***"
rsync --times --verbose --update --chmod=ug+w $from/*.jpg $to_fotos/
if [ $ret -eq 0 ]; then
echo "*** Success: All pictures copied ***"
rsync --times --verbose --update --chmod=ug+w $from/*.mp4 $to_videos/
if [ $ret -eq 0 ]; then
echo "*** Success: All videos copied ***"
cd ~
fusermount -u /media/s2

The output of the script is something like this:

2013/04/04 12:39:21 fetched "20130403_212621.jpg", 914042 bytes in 245 ms. 3.7 MB/s
2013/04/04 12:39:21 fetched "20130403_212628.jpg", 835851 bytes in 96 ms. 8.7 MB/s
2013/04/04 12:39:21 fetched "20130403_212645.jpg", 1044704 bytes in 79 ms. 13.1 MB/s

sent 2806681 bytes received 71 bytes 1122700.80 bytes/sec
total size is 707008144 speedup is 251.90
*** Success: All pictures copied ***
2013/04/04 12:39:23 fetched "20130403_212651.mp4", 16403453 bytes in 1259 ms. 13.0 MB/s
2013/04/04 12:39:26 fetched "20130403_212841.mp4", 25465650 bytes in 2193 ms. 11.6 MB/s

sent 41875298 bytes received 50 bytes 4407931.37 bytes/sec
total size is 3251470895 speedup is 77.65
*** Success: All videos copied ***

The performance of the ‚rsync‘ operations is comparable to how it used to be with USB connections. Those have stopped functioning in KDE 4.10, that’s why I had to find an alternative way. With ‚go-mtpfs‘, things are actually easier than before: Just plug in the Android device, call ‚go-mtpfs‘, then the script that copies, and done.

2013/04/04 at 12:48

Ältere Beiträge

Juni 2018
« Mrz    

Aktuelle Beiträge

Enter your email address to follow this blog and receive notifications of new posts by email.

Schließe dich 208 Followern an