Archive for the ‘Linux’ Category
Sunday, March 17th, 2013
Stud is the “Scalable TLS Unwrapping Daemon” written by bumptech and used by 85million bump users. I use it to offload SSL connections in front of haproxy for really scalable websites. It’s not so much that I need to scale massively, but it does allow me to run on really small (i.e. cheap) servers. I’m aware that the development branch of HAproxy now supports SSL directly, but as yet I have not seen any performance tests so for now I will stick with stud.
I have previously built stud on Debian Linux and the build process is really simple; make and then make install (once openssl-devel in installed and or course the utilities gcc and make too!)
But I’ve recently moved over to Centos as my server OS of choice and ran into some problems whilst building stud. The error reported when I ran make was file ev.h not found. (more…)
Tags: centos, stud
Posted in Linux | No Comments »
Monday, December 31st, 2012
My Humax freeview recorder (a HDR-FOX T2 with 1tb drive) has recently started to show signs that it might be about to fail. The Hard drive is getting louder when recording and my most recent recordings pause periodically, often with the screen going blank and displaying the message ‘encrypted video cannot be show’ (or something to that effect). At first the pauses were infrequent and short, but more recently they’ve been getting much worse often missing a minute or more of the recording per ‘glitch’. The hard drive test found in the setting menu is also failing now too. (more…)
Tags: humax, pvr
Posted in Linux, Viewpoint | No Comments »
Saturday, August 25th, 2012
I’ve always had trouble downloading footage from my old DV camcorder using desktop tools like Kino, with it often locking up when I leave it to download a full tape.
I prefer to use OpenShot for editing, so all I really need is a simple tool to allow me to download footage from the camcorder. I’ve recently discovered the command line tool dvgrab, and it works wonderfully! (more…)
Tags: 1394, Camcorder, dvgrab, firewire
Posted in Linux | No Comments »
Sunday, May 27th, 2012
I recently set up HA proxy on one of my Debian 6 (squeeze) servers.
There were a few rather annoying ‘gotchas’ that took a while to figure out, so I’m documenting them in case I ever have to set up HAproxy again.
(more…)
Tags: haproxy, reverse proxy, router
Posted in Linux | 1 Comment »
Sunday, April 29th, 2012
Building Node.js on Linux is fairly simple, as there are few dependencies. This is how I did it on Debain 6 (Squeeze). At the time of writing the current release of Node.js was 0.6.15. You’ll need to adjust the intructions below to reflect the version you’re building.
Update: I have also successfully tested these instructions with node.js 0.6.17 on Ubuntu 12.04.
(more…)
Tags: build, compile, debian, Node.js
Posted in Linux, Node.js | No Comments »
Friday, September 23rd, 2011
I needed to extract/generate a public ssh key from a java keystore so that the Java application could SFTP some files using public key authentication.
The problem was that I couldn’t find any way of converting an ssl public key to an ssh public key. It seems that although ssl and ssh private keys are compatible, the public keys are not. (more…)
Tags: java keystore, private key, public key, ssh, ssl
Posted in Linux | No Comments »
Saturday, July 2nd, 2011
Like the fool I am, whilst messing about with user privileges in phpMyAdmin I managed to delete the root account. Suddenly I found myself with no access to any of my databases
It took a while to figure out how to re-create the root@localhost user, so here’s how I did it. (more…)
Tags: mysql
Posted in Linux | 4 Comments »
Sunday, March 27th, 2011
I recently gave K9COPY a try, it’s supposed to be the Linux equivalent of DVDshrink for Windows. It certainly looked the part, but when I ran it with a disk I wanted to back up it ran for a short while and then crashed
Looking at the output of dmesg revealed that the disk was having trouble reading the encrypted disk:
[235.097347] sr 5:0:0:0: [sr0] Add. Sense: Read of scrambled sector without authentication (more...)
Tags: dvd
Posted in Linux | 1 Comment »
Saturday, February 12th, 2011
I was converting a TV show I’d to DVD format using ffmpeg, but the resulting file had the wrong audio channel. At first I thought it had no audio at all, but then I noticed it had a voice over occasionally explaining what was happening; “so-n-so has just entered the room…”.
It appears that ffmpeg had selected the wrong audio stream. For some reason, it had had selected the second audio stream instead of the first. The fix is simple enough, you can manually set the streams to use with the -map option. The command below works well for UK freeview. (more…)
Tags: dvd, ffmpeg
Posted in Linux | No Comments »