Some times I try to figure out which Iceweasel browser plugin to -install to get support for a given MIME type. Thanks to -specifications -done by Ubuntu and Mozilla, it is possible to do this in Debian. -Unfortunately, not very many packages provide the needed meta -information, Anyway, here is a small script to look up all browser -plugin packages announcing ther MIME support using this specification:
- --#!/usr/bin/python -import sys -import apt -def pkgs_handling_mimetype(mimetype): - cache = apt.Cache() - cache.open(None) - thepkgs = [] - for pkg in cache: - version = pkg.candidate - if version is None: - version = pkg.installed - if version is None: - continue - record = version.record - if not record.has_key('Npp-MimeType'): - continue - mime_types = record['Npp-MimeType'].split(',') - for t in mime_types: - t = t.rstrip().strip() - if t == mimetype: - thepkgs.append(pkg.name) - return thepkgs -mimetype = "audio/ogg" -if 1 < len(sys.argv): - mimetype = sys.argv[1] -print "Browser plugin packages supporting %s:" % mimetype -for pkg in pkgs_handling_mimetype(mimetype): - print " %s" %pkg -- -
It can be used like this to look up a given MIME type:
- --% ./apt-find-browserplug-for-mimetype -Browser plugin packages supporting audio/ogg: - gecko-mediaplayer -% ./apt-find-browserplug-for-mimetype application/x-shockwave-flash -Browser plugin packages supporting application/x-shockwave-flash: - browser-plugin-gnash -% -- -
In Ubuntu this mechanism is combined with support in the browser -itself to query for plugins and propose to install the needed -packages. It would be great if Debian supported such feature too. Is -anyone working on adding it?
- -Update 2013-01-18 14:20: The Debian BTS -request for icweasel support for this feature is -#484010 from 2008 (and -#698426 from today). Lack -of manpower and wish for a different design is the reason thus feature -is not yet in iceweasel from Debian.
+ +The first wheezy based beta release of Debian Edu was wrapped up +today. This is the release announcement:
+ +New features for Debian Edu 7.1+edu0~b0 released +2013-07-27
+ +These are the release notes for for Debian Edu / Skolelinux +7.1+edu0~b0, based on Debian with codename "Wheezy".
+ +About Debian Edu and Skolelinux
+ +Debian Edu, also known as +Skolelinux, is a Linux distribution based on Debian providing an +out-of-the box environment of a completely configured school +network. Immediately after installation a school server running all +services needed for a school network is set up just waiting for users +and machines being added via GOsa², a comfortable Web-UI. A netbooting +environment is prepared using PXE, so after initial installation of +the main server from CD, DVD or USB stick all other machines can be +installed via the network. The provided school server provides LDAP +database and Kerberos authentication service, centralized home +directories, DHCP server, web proxy and many other services. The +desktop contains +more +than 60 educational software packages and more are available from +the Debian archive, and schools can choose between KDE, Gnome, LXDE +and Xfce desktop environment.
+ +This is the fifth test release based on Debian Wheezy. Basically +this is an updated and slightly improved version compared to the +Squeeze release.
+ +ALERT: Alpha based installations should reinstall or downgrade the +versions of gosa and libpam-mklocaluser to the ones used in this beta +release.
+ +Software updates
+ +-
+
+
- Switched roaming workstation profiles from wicd to network-manager + for network configuration, as wicd didn't work any more. +
- Changed version numbers of patched gosa and libpam-mklocaluser + packages to make sure our locally patched versions will be replaced + by the official packages when they are released from Debian. Those + installing alpha version need to reinstall or manually downgrade gosa + and libpam-mklocaluser. +
- Added bluetooth tools to the default desktop (bluedevil, blueman). +
- Added tools for sharing the desktop on KDE (krdc, krfb). +
- Added valgrind to the default installation for easier debugging of + crash bugs. + +
Other changes
+ +-
+
+
- Fixed artwork package to work with gnome, no longer break + desktop=gnome installations. +
- Adjusted installer to now work when forced to use a proxy with the + netinst CD. +
- Fixed code detecting and setting/loading hardware specific + setup/firmware to work more robust out of the box. +
- Adjusted Kerberos setup to detect realm and server settings at + install time instead of dynamically at run time. This avoid a crash + with krb5-auth-dialog on diskless workstations without a DNS name. +
- Worked around misfeature in network-manager not calling the dhclient + exit hooks, causing automatic proxy configuration and automatic host + name setting at run time to work again. +
- Fixed feature setting the default Iceweasel start page from URL + fetched from LDAP, to allow schools to set the global default by + updating the dc=skole,dc=skolelinux,dc=no LDAP object. +
- Changed default host name on all networked machines to be unique + (generated from MAC or reverse DNS) after boot. +
- Adjusted partition sizes to make sure they are big enough. + +
Known issues
+ +-
+
+
- Grub is missing the new artwork. +
- KDE fail to understand the wpad.dat file provided, causing it to + not use the http proxy as it should. +
- Chromium also fail to use the proxy. + +
Where to get it
+ +To download the multiarch netinstall CD release you can use
+ +-
+
+
- ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-CD.iso + +
- http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-CD.iso + +
- rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-CD.iso . + +
The MD5SUM of this image is: 55d5de9765b6dccd5d9ec33cf1a07109
+
The SHA1SUM of this image is: 996a1d9517740e4d627d100de2d12b23dd545a3f
To download the multiarch USB stick ISO release you can use
+ +-
+
+
- ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-USB.iso +
- http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-USB.iso +
- rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-7.1+edu0~b0-USB.iso . + +
The MD5SUM of this image is: d8f0818c51a78d357de794066f289f69
+
The SHA1SUM of this image is: 49185ca354e8d0543240423746924f76a6cee733
How to report bugs
+ +The DEP-11 -proposal to add AppStream information to the Debian archive, is a -proposal to make it possible for a Desktop application to propose to -the user some package to install to gain support for a given MIME -type, font, library etc. that is currently missing. With such -mechanism in place, it would be possible for the desktop to -automatically propose and install leocad if some LDraw file is -downloaded by the browser.
- -To get some idea about the current content of the archive, I decided -to write a simple program to extract all .desktop files from the -Debian archive and look up the claimed MIME support there. The result -can be found on the -Skolelinux FTP -site. Using the collected information, it become possible to -answer the question in the title. Here are the 20 most supported MIME -types in Debian stable (Squeeze), testing (Wheezy) and unstable (Sid). -The complete list is available from the link above.
- -Debian Stable:
- -- count MIME type - ----- ----------------------- - 32 text/plain - 30 audio/mpeg - 29 image/png - 28 image/jpeg - 27 application/ogg - 26 audio/x-mp3 - 25 image/tiff - 25 image/gif - 22 image/bmp - 22 audio/x-wav - 20 audio/x-flac - 19 audio/x-mpegurl - 18 video/x-ms-asf - 18 audio/x-musepack - 18 audio/x-mpeg - 18 application/x-ogg - 17 video/mpeg - 17 audio/x-scpls - 17 audio/ogg - 16 video/x-ms-wmv -- -
Debian Testing:
- -- count MIME type - ----- ----------------------- - 33 text/plain - 32 image/png - 32 image/jpeg - 29 audio/mpeg - 27 image/gif - 26 image/tiff - 26 application/ogg - 25 audio/x-mp3 - 22 image/bmp - 21 audio/x-wav - 19 audio/x-mpegurl - 19 audio/x-mpeg - 18 video/mpeg - 18 audio/x-scpls - 18 audio/x-flac - 18 application/x-ogg - 17 video/x-ms-asf - 17 text/html - 17 audio/x-musepack - 16 image/x-xbitmap -- -
Debian Unstable:
- -- count MIME type - ----- ----------------------- - 31 text/plain - 31 image/png - 31 image/jpeg - 29 audio/mpeg - 28 application/ogg - 27 image/gif - 26 image/tiff - 26 audio/x-mp3 - 23 audio/x-wav - 22 image/bmp - 21 audio/x-flac - 20 audio/x-mpegurl - 19 audio/x-mpeg - 18 video/x-ms-asf - 18 video/mpeg - 18 audio/x-scpls - 18 application/x-ogg - 17 audio/x-musepack - 16 video/x-ms-wmv - 16 video/x-msvideo -- -
I am told that PackageKit can provide an API to access the kind of -information mentioned in DEP-11. I have not yet had time to look at -it, but hope the PackageKit people in Debian are on top of these -issues.
- -Update 2013-01-16 13:35: Updated numbers after -discovering a typo in my script.
+ +Today I switched to +my +new laptop. I've previously written about the problems I had with +my new Thinkpad X230, which was delivered with an +180 +GB Intel SSD disk with Lenovo firmware that did not handle +sustained writes. My hardware supplier have been very forthcoming in +trying to find a solution, and after first trying with another +identical 180 GB disks they decided to send me a 256 GB Samsung SSD +disk instead to fix it once and for all. The Samsung disk survived +the installation of Debian with encrypted disks (filling the disk with +random data during installation killed the first two), and I thus +decided to trust it with my data. I have installed it as a Debian Edu +Wheezy roaming workstation hooked up with my Debian Edu Squeeze main +server at home using Kerberos and LDAP, and will use it as my work +station from now on.
+ +As this is a solid state disk with no moving parts, I believe the +Debian Wheezy default installation need to be tuned a bit to increase +performance and increase life time of the disk. The Linux kernel and +user space applications do not yet adjust automatically to such +environment. To make it easier for my self, I created a draft Debian +package ssd-setup to handle this tuning. The +source +for the ssd-setup package is available from collab-maint, and it +is set up to adjust the setup of the machine by just installing the +package. If there is any non-SSD disk in the machine, the package +will refuse to install, as I did not try to write any logic to sort +file systems in SSD and non-SSD file systems.
+ +I consider the package a draft, as I am a bit unsure how to best +set up Debian Wheezy with an SSD. It is adjusted to my use case, +where I set up the machine with one large encrypted partition (in +addition to /boot), put LVM on top of this and set up partitions on +top of this again. See the README file in the package source for the +references I used to pick the settings. At the moment these +parameters are tuned:
+ +-
+
+
- Set up cryptsetup to pass TRIM commands to the physical disk + (adding discard to /etc/crypttab) + +
- Set up LVM to pass on TRIM commands to the underlying device (in + this case a cryptsetup partition) by changing issue_discards from + 0 to 1 in /etc/lvm/lvm.conf. + +
- Set relatime as a file system option for ext3 and ext4 file + systems. + +
- Tell swap to use TRIM commands by adding 'discard' to + /etc/fstab. + +
- Change I/O scheduler from cfq to deadline using a udev rule. + +
- Run fstrim on every ext3 and ext4 file system every night (from + cron.daily). + +
- Adjust sysctl values vm.swappiness to 1 and vm.vfs_cache_pressure + to 50 to reduce the kernel eagerness to swap out processes. + +
During installation, I cancelled the part where the installer fill +the disk with random data, as this would kill the SSD performance for +little gain. My goal with the encrypted file system is to ensure +those stealing my laptop end up with a brick and not a working +computer. I have no hope in keeping the really resourceful people +from getting the data on the disk (see +XKCD #538 for an explanation why). +Thus I concluded that adding the discard option to crypttab is the +right thing to do.
+ +I considered using the noop I/O scheduler, as several recommended +it for SSD, but others recommended deadline and a benchmark I found +indicated that deadline might be better for interactive use.
+ +I also considered using the 'discard' file system option for ext3 +and ext4, but read that it would give a performance hit ever time a +file is removed, and thought it best to that that slowdown once a day +instead of during my work.
+ +My package do not set up tmpfs on /var/run, /var/lock and /tmp, as +this is already done by Debian Edu.
+ +I have not yet started on the user space tuning. I expect +iceweasel need some tuning, and perhaps other applications too, but +have not yet had time to investigate those parts.
+ +The package should work on Ubuntu too, but I have not yet tested it +there.
+ +As for the answer to the question in the title of this blog post, +as far as I know, the only solution I know about is to replace the +disk. It might be possible to flash it with Intel firmware instead of +the Lenovo firmware. But I have not tried and did not want to do so +without approval from Lenovo as I wanted to keep the warranty on the +disk until a solution was found and they wanted the broken disks +back.