dt.iki.fi

62 posts are tagged "linux"

Creating Udev Rules

Scenario: Ignore a permanently connected backup drive Also see this related article. I have a WD USB drive - it's some cheapo variant, never get one of these! It's in an enclosure but can't be taken out and connected directly, like they used to, and suffers a lack of configurability as hdparm show.....

Restoring Mimetype Associations

I deliberately deleted all mime*.* files I could find in ~/.local/share/applications /usr/share/applications ~/.config I might also have deleted /usr/share/mime/mime.cache. I definitely deleted the directory ~/.local/share/mime (it seemed to contain stuff only related to WINE). I was hoping to fix s.....

A collection of Forum Posts I Don't Want to Sink into Oblivion

Sometimes I get a creative kick when writing a reply on some forum, and then I feel a little sorry to think that this "gem" will soon be forgotten and unfindable. So I decided to copy-paste some of these outbursts to a dedicated page. It's a little narcissistic. Rent-a-cops highschool dropouts that .....

Change XTerm's Window Icon

Venerable and versatile XTerm. Carrying cruft from four decades. I am a big friend of lightweight terminal emulators - I want them to pop up immediately, without having to run a daemon. Despite all its baggage, xterm is extremely fast. Change the Window Icon (pixmap) The default icon is absolutely h.....

FFmpeg Tips and Tricks

Cut a video without re-encoding... ...at keyframes only (forsaking time accuracy), and without messing up timestamps: ffmpeg -noaccurate_seek -ss [START_TIME] -i [INPUT] -t [DURATION] -c copy -avoid_negative_ts make_zero [OUTPUT] As always with ffmpeg, the order of the options is relevant. Either -s.....

OpenNIC DNS updater script

This script will fetch a current list of DNS servers from api.opennicproject.org, filter them by countries if desired, sort by percentage, and write the result to files readable by various resolvers.

Change Application Window Icons Elegantly

The situation Sometimes you want to change the icon an application displays e.g. in the panel but cannot for some reason. Changing the icon theme does not help, and the application has no means of telling it to use another icon. Changing the icon referenced in the software's .desktop file (usually .....

Setting up a ThinkPad x250 with Linux

Two chapters in this article are Debian-specific, the rest is more or less Archlinux-specific. It never grew into the device-specific alround tutorial I envisioned and has been partially superseded by this article. The ThinkPad itself is in daily use. No regrets there! BIOS Update The latest BIOS .....