Posts Tagged 'ubuntu'

Download Album to Picasa (Picasaweb) in Ubuntu Firefox

If you want to download an album from a shared album on picasaweb and use the “Download to Picasa” button you normally get the following error message:

Firefox doesn’t know how to open this address, because the protocol (picasa) isn’t associated with any program.

1. Solution: DownThemAll

  1. Install the DownThemAll extension
  2. Restart firefox
  3. Go to the picasa web album
  4. Open the RSS-Feed (to get the RSS-Icon back eg you can use the rss-icon extension)
  5. Right click in the feed and select DownThemAll

Pro: You do not need picasa, download the images to a folder you want, no need to change the configuration
Cons: You need some addons, maybe it does not work on “private” albums?

2. Solution: Use Picasa with some small fixes

  1. Open about:config (like a n ordinary url) and change the following:
    1. set network.protocol-handler.expose.picasa to false
    2. set network.protocol-handler.external.picasa to true
    3. set to /opt/google/picasa/3.0/bin/picasa (seems to have no impact)
  2. Open the file ~/.local/share/applications/mimeapps.list and add x-scheme-handler/picasa=picasa.desktop under [Added Associations].
  3. Now click the “Download to picasa” button in the web album you want to download.
  4. There should be a popup which asks you what program to use for this link. If there is no popup you can change this setting under Edit -> Preferences -> Applications.
  5. Click Choose and select  /opt/google/picasa/3.0/bin/picasa (important: not /usr/bin/picasa, which opens only the main picasa program and not the “Download Album” dialog. (weird, especially because /usr/bin/picasa is only a symlink to the /opt binary).

Pro: Download into picasa (if you want that), no additional extensions needed,
Cons: Some configuration needed, Picasa needed (and download to this picasa download folder)


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.

Version Control (Bazaar) for Web Developers

Bazaar UploadI searched a long time for a solution to develop my web pages on my Workstation and publish the changes via a version control system (vcs) to the webserver. I searched for remote checkout and other keywords and now I found a solution for Bazaar. I only have installed Bazaar on my desktop-PC an not on the server!

Installing Bazaar

If you are familiar with bazaar, you can skip this section an go to Upload-Plugin For Webdesign

sudo apt-get install bzr

I recommend to install bzr-gtk also to get Olive, a GUI for Bazaar.


You can read the Mini Tutorial (Bazaar in five minutes), which is a nice introduction, to get started.

The first time you have to introduce yourself with:
bzr whoami "John Doe <>"

For every new project you have to go through this process, to initialize bazaar and add all files in the working directory:

cd /path/to/myproject
bzr init
bzr add

Upload-Plugin For Webdesign

First you have to install the bzr-upload plugin:

sudo apt-get install bzr-upload

Go to your project directory.

You always have three steps from changing your files to publishing:

  1. Change files
  2. Commit (Else you will receive the following: ERROR: Working tree “…” has uncommitted changes.)
  3. Upload

The upload-Process is the only new thing. To upload the first time type the following command (and replace the capitalized words):


So you may have a command like the following:

You will now see something like this:

guru@guru-desktop:/media/www$ bzr upload
FTP password:
No uploaded revision id found, switching to full upload
Uploading index.php
Uploading style/default.css
Uploading ...
Uploading .htaccess

Bazaar remembers the location, so for the next upload you can go with only

bzr upload

You now will receive something like the following:

guru@guru-desktop:/media/www$ bzr upload
Using saved location:
FTP password:
Uploading style/default.css


HowTo install ttf-font in Ubuntu

Going to font:/// in Nautilus is obsolte.

You can drag your .ttf-file into .fonts in your home-directory to install that font only for this username:

copy myfont.ttf ~/.fonts

or you can drag it to /usr/share/fonts/truetype to install it for all users:

sudo cp myfont.ttf /usr/share/fonts/truetype

Note: If you have Openoffice opened, it may crash after you installed your font the second way.

You may need to run fc-cache to rebuild the font cache:


HowTo: Print pdf in Ubuntu Intrepid Ibex (8.10)

I don’t know why, but cups-pdf does not work for me any more. There is now an easier way than to set up and print with cups-pdf.

You do not need to configure anything 🙂 Just do as you would had installed a Printer (File -> Print) and select Print to file an as output format: pdf. Press Print and you are done 🙂