Arricc

July 19, 2006

Greasemonkey

Quick greasemonkey script to change links to community.livejournal.com/commname to commname.livejournal.com. Based off the “Always link to full LiveJournal userinfo” script.

Probably doesn’t take into account a bunch of stuff…

// ==UserScript==
// @name          Change community.livejournal.com/commname ... to commname.livejournal.com
// @namespace    http://livejournal.arricc.net/
// @description  Modify links to LJ communities
// @include      http://*.livejournal.com/*
// ==/UserScript==
(function(){
  var commRegEx = /^(http:\/\/community\.livejournal\.com)?\/([^/]+)(\/)?(.*)/i;
  var l = document.getElementsByTagName("a");
  for (var cand = null, i = 0; (cand = l[i]); i++) {
    uim = commRegEx.exec(cand.getAttribute('href'));
    if (uim != null) {
      cand.setAttribute('href','http://' + uim[2] + '.livejournal.com/' + uim[4]);
    }
  }
})();

Download: changecommunitylivejourn.user.js

July 7, 2006

VWebhosting

So, to reiterate - the main server (Wist) will hold all my own stuff, then I’ll be creating a user Virtual Server (Wintermute) on top of that for users to play with and/or break. All the user stuff is backended in a Xoops database using Xoops groups.

Wist is installed with Debian Sarge using a custom kernel including the vserver patches from Debian. This sort of thing is detailed elsewhere so I won’t go over it again here.

The core server software (all from the Debian archive) will include: Apache 1.3 with PHP4, Apache-SSL, Bind, MySQL 4.1, Exim4, ClamAV and Dovecot (I’ll be detailing the email setup seperately) (more…)

July 2, 2006

Screen

A quick overview of the key combinations you’ll use 99% of the time in screen

Screen is a really really handy little bit of software I leave running on all the Linux boxes I run.

From the man page:

DESCRIPTION
Screen is a full-screen window manager that multiplexes a physical ter-
minal between several processes (typically interactive shells). Each
virtual terminal provides the functions of a DEC VT100 terminal and, in
addition, several control functions from the ISO 6429 (ECMA 48, ANSI
X3.64) and ISO 2022 standards (e.g. insert/delete line and support for
multiple character sets). There is a scrollback history buffer for
each virtual terminal and a copy-and-paste mechanism that allows moving
text regions between windows.

It goes on a bit more at length. (more…)

Migratory changes…

Over the last 12 months I’ve become increasingly disenchanted with the value for money of the colo server I rent (xev.arricc.net) from Serversure. When I first took out the contract, it was the best there was, and as my bandwidth at the time was very low, 5Gb/month was an acceptable limitation.

Since then my bandwidth has gone over that fairly regularly. So I went shopping about. After a lot of time spend trying to convert € and $ into £ I eventually settled on the basic root server offering from 1&1 Internet (wist.arricc.net). The benefits? unlimited bandwidth and serial console access to the server - not to mention the spec is about double the memory and Mhz of Xev!

I’ve made a number of changes to the setup of Wist over Xev, with (hopefully!) no loss of services. Not least is the implementation of virtual servers. This has allowed me to let users run PHP scripts in a sandbox which won’t affect my own projects.

I’m going to attempt to detail the setup in stages as there are a number of things to cover - vservers, webservers & virtual hosting, database server, host access(ssh, ftp, etc.) - so hopefully I’ll be able to break them down in meaningful stages!