Skip to content

{ Tag Archives } linux

Installing Spotify on Fedora 13

I’ve recently taken possession of a flashy new workstation running Fedora, and with joy in my heart went to install Spotify on it, only to discover… Noooo… They only offer .deb packages for Debian and Ubuntu. Thankfully, the solution was easier than I thought. Do all the following as root… 1. Install dpkg, the Debian [...]

Also tagged , ,

Tunnelling a connection through 2 servers via ssh

This took a bit of head-scratching, so for future reference, or anyone else looking: Say I am working outside the office firewall, on a machine called home, and I need to get into a MySQL server inside it. (Doesn’t have to be MySQL, but just for argument’s sake.) There’s a machine called gateway I can [...]

Also tagged

Back up all MySQL databases to separate files

Note to self — so I don’t have to think about it again next time. #!/bin/bash export MYSQL_PWD=myrootpassword BACKUP_DIR=/mnt/backups/mysql_backups DATE=`date -I` for dbname in `mysql -uroot –batch –skip-column-names -e "show databases;" | grep -v information_schema`; do /usr/local/bin/mysqldump -u root $dbname | gzip -9 > $BACKUP_DIR/$dbname-$DATE.sql.gz done   # Clear backups older than 7 days /usr/local/bin/find [...]

Also tagged

Google Chrome (actually Chromium) on Centos

Joy at last! Chris Staite from the University of Birmingham has built a statically-linked version of Chromium, the open source version of Google’s Chrome browser, for Centos. You can get it from here. I was getting so sick of Firefox’s slowness and bloat, and Chromium is so much snappier, and more memory-efficient too. Although to [...]

Also tagged

Things to try when VirtualBox networking messes up

This is really a note-to-self but it might help other people too. I have two network interfaces in my Ubuntu guest (on OS X 10.4 host), one NAT, one host-only. Sometimes one of them doesn’t get an IP address — in ifconfig it has an inet6 address but not an inet address. Today I tried [...]

Also tagged ,

MacBook keyboard hacks for # (hash/pound/numbersign)

One of the few annoying things about my oldish MacBook Pro is its keyboard, for example a few unresponsive keys, but particularly the lack of a # key. It’s a UK keyboard, and has £ for shift-3, and # is hidden in alt-3 (not labelled). This is fine in native desktop apps, but less fine [...]

Also tagged , , ,

Simple server status monitoring with PHP and Perl

Recently, one of our web servers fell victim to an apparent DoS attack, being hammered with hundreds of simultaneous dynamic page requests, far more than it’s specced to handle. To its credit, it stayed up, although it took about five minutes to log in via ssh, and when we spotted what was happening, the load [...]

Also tagged , ,

Installing Flash on 64-bit Linux (Centos 5)

This took a fair bit of searching, and the answer’s non-obvious… Everybody (?) knows that in theory, if you have 64-bit Firefox on 64-bit Linux (x86_64), you can use nspluginwrapper to install 32-bit plugins, like the Flash Player. There’s some instructions here for example. However, those instructions are flawed in two regards.

Also tagged , , , ,

Updating Subversion on 64-bit Linux (Centos 5)

I just ran into a problem when trying to upgrade to the latest rpm-packaged version of Subversion on Centos 5 x86_64 — simple solution, but not obvious, so hopefully this will help someone. It goes like this, as root: $ yum update subversion [normal messages snipped] Transaction Check Error:   file /usr/share/emacs/site-lisp/psvn.el from install of [...]

Also tagged , , , ,