Tag Archives: ubuntu

Setting default applications in Ubuntu 10.10

After installing Adobe Reader into my Ubuntu installation I noticed that the Adobe Reader was actually making itself at home as the default viewer for PDF files. However, I do only rarely use it because I feel that the Ubuntu Document Viewer (aka evince) is the quicker and better solution most of the time.

Now, I could change the default for double-clicking by going through any PDF file’s Properties->Open With and selecting Document Viewer there. Firefox and Thunderbird for one thing did not really seem to care at all about this, though. Both kept using Adobe Reader to open PDF files when double-clicking in the download window and only offered the reader as the default in the file save dialog.

To work around this problem, I came up with a solution using xdg-mime.

In a terminal, I did

porten@lx-porten:~$ xdg-mime query default application/pdf
acroread.desktop
 
porten@lx-porten:~$ sudo xdg-mime default evince.desktop application/pdf
 
porten@lx-porten:~$ xdg-mime query default application/pdf
evince.desktop

Obviously the important part is the xdg-mime default. I would actually have expected setting the default via the file properties to have the same effect, but alas, it does not.

References:
https://bbs.archlinux.org/viewtopic.php?pid=732724
http://manpages.ubuntu.com/manpages/maverick/man1/xdg-mime.1.html

Installing Ubuntu 10.04 Server 64bit via USB Pendrive

After struggling with installing Ubuntu Server 10.04 from a bootable usb stick, here are some hints in case anyone else ever wants to do this. My problem was that the Server Installer kept trying to load files from the CD and could not find them, which made the installation fail. I actually wonder why it could not find anything because it was apparently looking in the right places (i.e. the USB stick mounted under /cdrom). Feel free to enlighten me.
Continue reading

Flashing PR 1.2 to the N900 from Ubuntu 10.04 64bit

To install flasher, do

sudo dpkg -i --force-architecture maemo_flasher-3.5_2.5.2.2_i386.deb

afterwards, install ia32-libs from multiverse:

sudo apt-get install ia32-libs

Before installing ia32-libs flasher kept telling me this:

ubuntu@ubuntu:~/Desktop$ flasher-3.5
bash: /usr/bin/flasher-3.5: No such file or directory

Now, to flash PR1.2 and the vanilla eMMC content, issue the following two commands:

sudo flasher-3.5 -F RX-51_2009SE_10.2010.19-1_PR_COMBINED_MR0_ARM.bin -f
sudo flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -f -R

This will flash and reboot after flashing the eMMC contents.