This is the technical scribble pad of Kit Sunde, a freelance software developer doing web things. I'm for hire: kitsunde@gmail.com

Posts Tagged: Linux

Text

Google has a new policy for the chrome extension gallery where screenshots need to be 400x275 (or some larger multiple of that). I soon found out that ImageMagick -came to the rescue again with the extent command which when scaling a picture to a larger size will add padding to the image (you can use -gravity to decide where). So I ended up with this for producing the screenshot of an appropriate size:

Text

The most convenient way of scaling images in Ubuntu I’ve foundĀ this farĀ is using ImageMagick.

Or perhaps more interestingly Paint is one of the few things I miss from windows. Firing up GIMP to do basic Image editing is a bit of a bother, and you keep forgetting what the command line tool names are.

Text

If you are inputting the SSH password in the keyring password box when connecting to a server and the input box displays:

Enter passphrase for key as [user] on [server]

It means that it’s asking for a ssh-key passphrase rather than the servers ssh password. If you choose to input nothing it instead gives you the option for the servers ssh password that reads:

Enter password for ssh as [user] on [server]

Text

In Lucid Lynx at least there isn’t an obvious or easy way to have different layouts on different keyboards. I recently bought a keyboard with a US layout (instead of Swedish like my netbook keyboard) because my netbook keyboard was messing up and thus needed them to work independently.

If you use:

setxkbmap -device [device_number] [layout]

Like so:

setxkbmap -device 1 us

Changing the device number until you find the right keyboard, and of course making sure you only change the layout of the device that you need to be different. :)

Do anyone know how to detect which devices are keyboards?