Archive for the 'Uncategorized' Category

Delete jpg and raw files simultaneously on Windows

This post is for Windows. A solution for Ubuntu could be Geeqie. [1]

I use my camera with the mode to save jpeg+raw. If I want to get skim through the pictures I always had twice the work (show jpg, skip raw)  and sorting out (delete jpg and delete raw). IrfanView at least allows to skip the raw image with the keyboard shortcut <Ctrl>+2. [2] Although the deletion process stays burdensome.

A much easier way on Windows for viewing JPG and then deleting JPG+RAW files simultaneously is to use XnView. After installing do the following:

  1. Open the XnView-config file: %appdata%\XnView\xnview.ini (in my case C:\Users\alex\AppData\Roaming\XnView\xnview.ini).
  2. In the section [File] add a new line at the end: Companion_00=jpg:cr2
    This links the .cr2 (raw-File) to the .jpg. So if you delete the jpg it automatically deletes the .cr2. Replace the cr2 with the extension of your raw-file (so eg nef for Nikon) and save the file.
    If you want the effect also in the other direction you have to create another newline:  Companion_01=cr2:jpg. For now you can just leave this, as we will hide the raw files in the next steps.
  3. Start XnView and open the options (Menu: Tools > Options or via <F12>) and see also screenshots below.
    1. In General open the tab File Operations tick the checkbox “For Copy/Move/Delete use companion file (.xmp/.thm/.jpg)
    2. In Browser > File List write the file extension you want to hide (the raw file: in my case cr2) in the last text input and click the OK button.

That is it. Now it should be easier to sort your pictures, as only the jpg-pictures are shown and if you delete it, the raw file automatically gets also deleted.


xnview-configfile xnview-general xnview-filelist



Change DNS on PRGAV4202N (A1, Telekom Austria)

My internet connection is by A1 (formerly Telekom Austria) and I wanted to use opendns as my custom dns service.

My current firmware version is 4.8.3.DWVV_TAU_5.1.6.

To change the DNS go to the web interface ( and login with the following credentials (root):
Username: XQvfPUoO19_ai64j
Password: GtwdTdMRgfUIMFwoAU5m

Go to this URL: and click “Einstellungen” (Settings). Change your DNS as you like and click “Anwenden” (Apply).

There you go.



Outlook: always use reply-to (return mail) for free

At work I have to use Windows 7 with Outlook 2003. We needed a solution to add the reply-to header to all outgoing mails. As out server uses Exchange 2003, Transport agents to change smtp headers are not supported.

So I had to code a client (Outlook 2003) solution, because the add-ins cost about 50 $ per user.

Add Reply-to header to all outgoing mails

  1. In Outlook open your Visual Basic Editor (<Alt>+<F11> or Extras → Macro → Visual Basic Editor)
  2. I did this in german, so the names may vary a bit: In Project1 (VbaProject.OTM) open Microsoft Office Outlook Objects → ThisOutlookSession
  3. Enter the following Code
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
        'add reply-To address
        Item.ReplyRecipients.Add ""
    End Sub
  4. Save it

Activate the macro

Because macros are “dangerous” you have to set the security level down.

  1. Open Extras → Macro → Security.
  2. Change the security level from high to medium (or low which is not recommended)
  3. Click OK.

Further suggestions

  • You can sign you macro and always trust macros from yourself, so that you do not have to activate macros every time you start outlook (when you are on the medium security level)
  • For deployment I recommend you to sign the macro and then copy the the file %appdata%\Microsoft\Outlook\VbaProject.OTM to the new computer (this overwrites all macros on the new computer with the macros from the source computer). On the new computer you should install the signature (In the security warning on Outlook startup click Details → Show Certificate → Install Certificate and then restart Outlook and always trust the macros from that source.

Sources: Change reply recipient dependent on the mail domain (german)

Restart metacity without keyboard

While I updated ubuntu from 10.04 to 10.10 my keyboard stopped working. Then I saw that the window borders were missing. So it seemed that metacity crashed. But how can I restart metacity without a keyboard?

In your main menu click: System > Preferences > Appearance and change your Visual Effects from the current value to something else.

That worked for me. Metacity restarted and the keyboard resumed its work.



Nautilus: Slow Network or network does not work

Problem: You click Network → Places and than on Windows-Network and on your Workgroup. Now you are waiting and nothing happens, so you do not find shares from other hosts. Maybe you get an error, that the mounting failed.

Fire up your bash and type smbtree which will likely display something like this:

guru@guru-desktop:~$ smbtree
Enter guru's password:
cli_start_connection: failed to connect to XPMT<20> ( Error NT_STATUS_UNSUCCESSFUL
	\\GURU-DESKTOP   		guru-desktop server (Samba, Ubuntu)
		\\GURU-DESKTOP\Epson-Stylus-Photo-RX600	Epson Stylus Photo RX600
		\\GURU-DESKTOP\IPC$           	IPC Service (guru-desktop server (Samba, Ubuntu))
		\\GURU-DESKTOP\print$         	Printer Drivers

If you get this error (cli_start_connection: failed to connect to XPMT<20> ( Error NT_STATUS_UNSUCCESSFUL) edit /etc/samba/smb.conf (as root) and change the following line

; name resolve order = lmhosts host wins bcast

into this (delete semicolon and move host to the end)

name resolve order = lmhosts wins bcast host

Now restart your PC (restarting samba and killing nautlius does not work).

Source: Bugs #389909 and #469548 (Duplicate)

Elektronische Signatur mit Gemalto auf Ubuntu Jaunty

deutsch This post is in german.

Nachdem nun gratis Card-Reader ausgeteilt wurden und die Bürgerkarte (e-card) aktiviert wurde, habe ich dieses Angebot natürlich genutzt. Mit diesem Angebt kann man schnell elektonisch signieren, e-Voten, sich krank melden, Behördenwege oder E-Banking machen.

Man hat gratis den gemalto PC USB-SL Reader bekommen. Ich habe gehört, dass derzeit nur der Reader von a-trust sicher sein soll, dies jedoch nur aus persönlichen Gesprächen. Dies wäre bedenklich insb im Hinblick auf das verfassungsgesetzlich gewährleistete Recht der geheimen Wahl.

Ich wollte diesen Reader nun zum Laufen bringen. Ubuntu 9.04 bringt zum Glück schon die Treiber mit, sodass ich mit die Anleitung für ältere Ubuntus ersparen konne. Man benötigt jedoch eine Software, die sog Büprgerkartenumgebung. Diese downloadet man sich für Linux mit 32Bit oder für Linux mit 64 Bit.

Nun entpackt man das Archiv und wechselt in den Ordnet tdb-release. Danach installiert man das Programm mit root-Rechten.sudo ./

TDB EinstellungenIm Dialog wählt man nun Autostart GNOME und Start Menü Gnome für Ubuntu bzw Autostart KDE und Start Menü KDE für Kubuntu.

Nach einem Klick auf OK wird das Programm installiert.

Nun müssen wir noch testen ob das Programm funktioniert. Dazu gehen wir auf die Seite um die Bürgerkarte zu testen. Dort klickt man auf den großen grünen Button Bürgerkarte testen. Die Online BKU hat bei mir nicht funktioniert, deshalb haben wir auch die lokale Software installiert. Daher wählt man Lokale BKU.


Nun poppt ein Sicherheitshinweis auf. Nachdem man das Zertifikat kontrolliert hat klickt man die Checkbox an und klickt auf Zulassen.

Problem mit Karte

Hat man keine Bürgerkarte (e-card) im Kartenleser stecken, so erscheint der Dialog Problem mit Karte auf der rechten Seite. Man steckt daher seine e-card mit dem Chip nach oben und nach innen in den Leser und klickt auf OK.

PIN Eingabe

Danach muss man den vierstelligen PIN eingeben, den man bei der Aktivierung angegeben hat und auf OK klicken.

Nun muss man rechts unten seinen sechsstelligen PIN eingeben, welchen man ebenfalls bei der Aktivierung bekommen hat und OK klicken.


Nun sollte man einen Erfolgshinweis bekommen:


Asus eee 1000HE and Ubuntu Jaunty UNR (9.04)

Last week I installed Ubuntu Jaunty UNR on my Asus eee 1000HE. I followed the tutorial at with a 1GB usb stick.

I inserted the USB with the Live-System. It started without any problems. During the live session the WLAN did not work (It worked after the complete install). I partitioned manually and used only sda1 as root (/) with ext4 as filesystem.

Drive d:\

After the complete install and reboot I did not found my drive d:\. It was not mounted automatically. To mount the drive permanently do the following:
sudo mkdir /media/data

Now append the following line to your /etc/fstab (You have to edit with sudo)
/dev/sda2    /media/data/    ntfs    defaults    0    2

Now you have to refresh your mount:
sudo mount -a

Using Ubuntu Jaunty on my Asus eee 1000he netbook

Universe was activated (uncommented) in /etc/apt/sources.list but the apt-cache was not refreshed yet. I needed Universe for gparted. You can easily refresh your apt-cache and get Universe by:sudo apt-get upddate

Most of the time I keep the brightness at the minimum. Sometimes (I do not know why) the brightness increases unexpected.

The Mouse works fine. I can use three fingers to right click and two fingers to simulate the mouse wheel – perfect :-).

If you want to get your normal Ubuntu Desktop you can switch to that mode easily by  Preferences ->Desktop Switcher. This tool seems to be buggy at the moment. I got troubles with Ubuntu, but I do not know if they were caused by the desktop.switcher.

If you want to install deb-packages in firefox there is no preconfigurred action. The best way ist to open the .deb with /usr/bin/gdebi-gtk.

Especially for eee there are the eee-tools.You can enable and disable WLAN, bluetooth, the camera and card reader, set some Hotkeys and set the performance level.To start the tools restart your computer or start eee-control-tray with <Alt>+<F2>.

Because the battery life was about two hours shorter than with windows (about 7 insteat of 9.5 hours) i wanted back to Windows. I also destroyed my desktop and do not know why, so the alternative was to reinstall Ubuntu.

Back to Windows

The 1000he has a nice “Quick Recovery System”. You can enter if you press <F9> three times after the boot (Normally I press it as long as the Screen showes up). After installing Ubuntu (and therefore Grub) you can enter the Quick Recovery System as the other operationg Systems (Windows XP) in your grub loader. The reinstall took about 20 Minutes (Did I say it is a really nice tool?). After rebooting Windows did not start anymore and Ubuntu was erased. I knew, that fixmbr was the key to get it running again, but the 1000he has no optical drive. So I searched for an alternative for fixmbr.

I found a pretty cool tool called Super Grub Disk (SGD). I booted the Ubuntu with my live USB-Stick and downloaded the SGD for USB.I followed the tutorial to get SGD on my USB-Stick. The 1GB Stick was to small, so I had to take another one. You can see your mounted USB-Sticks with mount

My Live USB-Stick with Ubuntu was /dev/sdb1 and the new one was /dev/sdc1. I think I did the following: Downloaded SGD for USB, extracted it to the root of my new USB stick and executed the following: (You should close your new USB-Stick window and read the tutorial mentioned above):cd /media/disk (your new usb-stick)
sudo -s

In Grub now execute the following:
device (hd0) /dev/sdc
root (hd0,1) (Maybe it was hd0,0)
setup (hd0)

If you get a Grub Error 18 your USB-Stick is probably too small.

No you can restart your computer with only the SGD-Stick in your laptop. I do not know what I clicked but maybe I followed Howto Boot Windows without problems. You can search samples for Boot problems or just try to navigate through the menu. For me that worked.