Posts Tagged ‘linux’

Limit the Rate of SCP

I was using scp to upload some files (as you should!) and maxing out my connection while doing it. It made using ssh problematic! Fortunately there’s an easy switch to use to limit the rate: scp -l 1024 /file1 user@host:/file2 The -l switch limits scp to the specified upload rate in kilobits per second. Handy!

Fix for “Current Password No Longer Matches Keyring”

A I may have mentioned, I recently reinstalled Ubuntu (had been using Windows 7 for a few months). Since the reinstall I had changed my common login password for the other computers on the network so of course I updated my user password for the new install. The slight problem came when I used any [...]

[Solved] sshd Does Not Run At System Startup (Ubuntu)

Problem: sshd does not appear to start on system boot, but runs fine when started from a terminal with /etc/init.d/ssh start Update Dec 2010: Thanks to Jeremie here. Change the following in /etc/init.d./ssh to stop sshd starting before the network is ready: Change: # Required-Start: $remote_fs $syslog to: # Required-Start: $remote_fs $syslog $network Merci Jeremie! [...]

Extract A Single Image From A Video Using FFMPEG

Dead handy, this: ffmpeg -ss 0.5 -i inputfile.mp4 -t 1 -s 480×300 -f image2 imagefile.jpg The various options: -t 1: limit to 1 frame extracted -ss 0.5: point of movie to extract from (ie seek to 0.5 seconds) -s 480×300: frame size of image to output (image resized to fit dimensions) -f image2: forces format [...]

Connect to a WPA/WPA2 Secured Network In Linux

This turned out to be dead easy, although it took a bit of futzing around due to my own slowness. The situation arose during an a failed upgrade of my dad’s machine to Ubuntu 10.04 (aka Lucid Lynx). I’m sensing a pattern here; I don’t think there has been an upgrade that has gone smoothly [...]

Ubuntu 9.10 Karmic Upgrade Problem Fixed (mountall/init)

(Jump to the bonus section on sorting a removed Gnome panel) I finally got round to doing the Jaunty->Karmic upgrade on a troublesome machine. Well, re-doing. I made an abortive attempt to install it on this particular exhibit of electronic arthritis back before I left for Barcelona, which ended in me reinstalling 9.04. Anyway, for [...]

Linux Saves The Day

For those of you who don;t follow my other blog, I’m in Barcelona at the moment. I’m here to learn Spanish and chew bubblegum. And I’m all out of bubblegum, etc. Anyway, Linux let me get in touch with my dad. The short story is (if you want long walls of text, read my bit [...]

Count Arguments In A Bash Script

Another useful tip I’m sure most people will be familiar with, but in bash scripts $# stores the number of arguments passed to the script. Eg, combine with $@ (all arguments) for batch processing (what I used it for): foreach $arg in $@; do [stuff] [compare with $# to tell remaining items] done Very basic [...]

Back to Ubuntu

So I’m suppose to be revising for the Big Testâ„¢ that I’ve got tomorrow, but instead I decided to reboot in Ubuntu. And by gosh, I’d forgotten how nice it looks. And this is still the 7.04 version! Sounds are nice too – it’s probably just subjective perception, but playing music sounds nicer too, although [...]

Irritation: Falling back to the standard locale (“C”)

Due to the pressures of university (labs, reports, and a dissertation), coupled with some of the other things I’ve been doing I haven’t posted here in ages. For now I’ll have to give you a post that is as much for you as it is for me. Occasionally on my debian box I get an [...]