Recent blog entries for neurogato

2011-10-03: neuro’s Tweets from Last Week

  • 99694 #100k #
  • Battlefield 3 Beta code has arrived! Fed the code into xbox.com and should have it waiting for me when I get home :) #bf3beta #
  • 99905 #100k #

Syndicated 2011-10-03 01:41:00 from neuro.me.uk » open source

2011-09-26: neuro’s Tweets from Last Week

Syndicated 2011-09-26 01:41:00 from neuro.me.uk » open source

2011-09-19: neuro’s Tweets from Last Week

  • Oh Baxter, you are my little gentleman. I will take you to foggy London Town. http://t.co/avygJPJ #

Syndicated 2011-09-19 01:41:00 from neuro.me.uk » open source

2011-09-12: neuro’s Tweets from Last Week

  • rated Super 8 (Music from the Motion Picture) by Michael Giacchino 5 stars http://t.co/2ZvecbI #iTunes #
  • All confidence in @gamedigital lost after disastrous site relaunch then multi-day site outage. Righto, @AmazonUK for games from now on then. #
  • Fuckin' hate RAID arrays. #
  • "Don't worry, she'll hold together" ata6.00: status: { DRDY ERR } "You hear me, baby, hold together" #

Syndicated 2011-09-05 01:41:00 from neuro.me.uk » open source

2011-08-29: neuro’s Tweets from Last Week

Syndicated 2011-08-29 01:41:00 from neuro.me.uk » open source

2011-08-22: neuro’s Tweets from Last Week

  • Bloody hell, mad-as-a-hatter Martin Brennan (hard disk music player = revolutionary? eh?) thinks he's Jonathan Ive: http://t.co/4rbdsT6 #
  • Disappointed I'm working in Embra instead of Glesga on the day they start making George Square look like Philadelphia (not the cheese) #
  • A web host to avoid: @thiswebhost Why? This: http://t.co/NqSqFon #
  • Just had two Typhoons do a pass over Lothian Rd, #thisisghostrider #permissiontobuzzthetower #admiralsdaughter #

Syndicated 2011-08-22 01:41:00 from neuro.me.uk » open source

2011-08-15: neuro’s Tweets from Last Week

Syndicated 2011-08-15 01:41:00 from neuro.me.uk » open source

2011-08-08: neuro’s Tweets from Last Week

  • Washing machine is making a weird groaning noise when the spin cycle is on. Don't know whether to be concerned or sympathetic. #
  • Nice one Facebook. If you put a YouTube link in an FB comment, a wee video preview will appear like you see when you do a YouTube wall post. #
  • Just tried to install DDR3 RAM (spare after my MacBook Pro 4GB>8GB upgrade) into my Mac Mini … which takes DDR2 #finnicky #fail #
  • I unlocked 17 Xbox Live achievements yesterday: http://www.giantbomb.com/profile/evilneuro/games/ #
  • Installed RAM in Mac mini. Forgot to reattach hard drive thermal sensor cable. Fan is now going full pelt. #firstworldproblems #
  • clicky clicky click click clicky
    (@DaftLimmy live on http://twitcam.com/61l7d) #
  • This = win: defaults write -g ApplePressAndHoldEnabled -bool false #
  • Looks like @lovedapop's joomla-powered site can't take a dragondotting! Can't wait to see how they get on though. #dragonsden #

Syndicated 2011-08-08 01:41:00 from neuro.me.uk » open source

2011-08-01: neuro’s Tweets from Last Week

  • Christ, daytime telly really is (still) shit, innit. #
  • Someone thought having 8 shopping channels on Freeview but no BBC radio stations was a good idea. I must find them and hurt them. #
  • Bullshit deal dumps 50% of live #f1 races from BBC from next season http://t.co/dgRK37F My dad is going to be furious. #
  • Bollocks, work tomorrow … oh wait, another week of holiday! Bwahahahahahahahahahahahahahahahahahahahahahaha! #bwahaha #
  • Bollocks, work tomorrow … oh wait, another week of holiday! Bwahahahahahahahahahahahahahahahahahahahahahaha! #bwahaha #
  • Bollocks, work tomorrow … oh wait, another week of holiday! Bwahahahahahahahahahahahahahahahahahahahahahaha! #bwahaha #
  • Ahh, Top Gear. Forgot. Dragon's Den. Forgot. ENGAGE THE HUMAX! #pvrforthewin #
  • Ahh, Top Gear. Forgot. Dragon's Den. Forgot. ENGAGE THE HUMAX! #pvrforthewin #
  • Time for some Sunday night Bad Company 2 … gotta get rank 50 before BF3 comes out in Oct! #battlefield #

Syndicated 2011-08-01 01:41:00 from neuro.me.uk » open source

Revert to Standard Ubuntu Kernel on OVH or Kimsufi Servers

I have a cheap dedicated server running Ubuntu Linux — the 8.04 LTS “Hardy Heron” release — with Kimsufi, the budget arm of French hosting company OVH. All their Linux servers (and FreeBSD servers too, I think) are provisioned with their own custom, static kernel. This, they say, makes it “secure”. It also makes it a pain in the ass to use, since you lose kernel module functionality. So I went through this scary, but straightforward process to put the standard Ubuntu kernel back. Note that I did this procedure on their entry level C-05G server, and your mileage may vary dependent on which server you lease from them, and what hardware specification you have (and ergo what kernel drivers you’ll need). Stuff you should type below is in bold type.

Update 2011-07-28: I just rented one of Kimsufi’s new 16G servers running Ubuntu 10.04

First, let’s check what kernel we’re running:


neuro@hera:~$ uname -a
Linux hera 2.6.27.10-grsec-xxxx-grs-ipv4-64 #6 SMP Fri Aug 14 10:29:05 UTC 2009 x86_64 GNU/Linux

Yup, some scary, weird kernel that OVH have compiled and installed themselves — although to be fair, they do provide kernel configs to compile a different variant yourself, but I wanted to use the stock Ubuntu 64-bit kernel.

So after doing sudo apt-get update && sudo apt-get upgrade to make sure everything else is up to date, let’s install the GRUB boot loader, and the stock Ubuntu Server kernel image.


neuro@hera:~$ sudo apt-get install linux-server grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-image-2.6.24-24-server linux-image-server
linux-ubuntu-modules-2.6.24-24-server
Suggested packages:
grub-doc mdadm linux-doc-2.6.24 linux-source-2.6.24
The following NEW packages will be installed
grub linux-image-2.6.24-24-server linux-image-server linux-server
linux-ubuntu-modules-2.6.24-24-server
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.4MB of archives.
After this operation, 111MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get: 1 ftp://mir1.ovh.net hardy-updates/main grub 0.97-29ubuntu21.1 [871kB]
Get: 2 http://security.ubuntu.com hardy-security/main linux-image-2.6.24-24-server 2.6.24-24.59 [17.8MB]
Get: 3 http://security.ubuntu.com hardy-security/main linux-ubuntu-modules-2.6.24-24-server 2.6.24-24.39 [5671kB]
Get: 4 http://security.ubuntu.com hardy-security/main linux-image-server 2.6.24.24.26 [26.6kB]
Get: 5 http://security.ubuntu.com hardy-security/restricted linux-server 2.6.24.24.26 [26.6kB]
Fetched 24.4MB in 2s (9414kB/s)
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.24-24-server.
(Reading database ... 38251 files and directories currently installed.)
Unpacking linux-image-2.6.24-24-server (from .../linux-image-2.6.24-24-server_2.6.24-24.59_amd64.deb) ...
Done.
Selecting previously deselected package linux-ubuntu-modules-2.6.24-24-server.
Unpacking linux-ubuntu-modules-2.6.24-24-server (from .../linux-ubuntu-modules-2.6.24-24-server_2.6.24-24.39_amd64.deb) ...
Selecting previously deselected package grub.
Unpacking grub (from .../grub_0.97-29ubuntu21.1_amd64.deb) ...
Selecting previously deselected package linux-image-server.
Unpacking linux-image-server (from .../linux-image-server_2.6.24.24.26_amd64.deb) ...
Selecting previously deselected package linux-server.
Unpacking linux-server (from .../linux-server_2.6.24.24.26_amd64.deb) ...
Setting up linux-image-2.6.24-24-server (2.6.24-24.59) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-24-server
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ...
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###

User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24-24-server (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-ubuntu-modules-2.6.24-24-server:
linux-ubuntu-modules-2.6.24-24-server depends on linux-image-2.6.24-24-server; however:
Package linux-image-2.6.24-24-server is not configured yet.
dpkg: error processing linux-ubuntu-modules-2.6.24-24-server (--configure):
dependency problems - leaving unconfigured
Setting up grub (0.97-29ubuntu21.1) ...

dpkg: dependency problems prevent configuration of linux-image-server:
linux-image-server depends on linux-image-2.6.24-24-server; however:
Package linux-image-2.6.24-24-server is not configured yet.
linux-image-server depends on linux-ubuntu-modules-2.6.24-24-server; however:
Package linux-ubuntu-modules-2.6.24-24-server is not configured yet.
dpkg: error processing linux-image-server (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 2.6.24.24.26); however:
Package linux-image-server is not configured yet.
dpkg: error processing linux-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.24-24-server
linux-ubuntu-modules-2.6.24-24-server
linux-image-server
linux-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

OK, that didn’t look so good, but it’s all right. Now, we’ll fix the problem that GRUB was complaining about, then complete the install.


neuro@hera:~$ sudo mkdir /boot/grub
neuro@hera:~$ sudo apt-get install grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
grub is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.24-24-server (2.6.24-24.59) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.24-24-server
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.24-24-server
Updating /boot/grub/menu.lst ... done

Setting up linux-ubuntu-modules-2.6.24-24-server (2.6.24-24.39) ...
update-initramfs: Generating /boot/initrd.img-2.6.24-24-server

Setting up linux-image-server (2.6.24.24.26) ...
Setting up linux-server (2.6.24.24.26) ...

And that’s that part fixed! Now we just need to configure GRUB to point in the right direction, and install it to the MBR (Master Boot Record).


neuro@hera:~$ sudo grub-install --recheck --root-directory=/ /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map //boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
neuro@hera:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0)
root (hd0,0)
grub> find /boot/grub/stage2
find /boot/grub/stage2
(hd0,0)
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
quit

… and now both kernel and bootloader are installed. Time for the scary part. From another machine, ping the server (if you’re running Windows, and pinging from the command prompt, use ping -t instead of just ping to continuously ping rather than just try 5 times; press Ctrl+C to cancel the ping at any time). Now that we’re monitoring whether the server is up or not, we can reboot it to use the new kernel …


neuro@hera:~$ sudo shutdown -r -f now

Broadcast message from neuro@hera
(/dev/pts/1) at 10:14 ...

The system is going down for reboot NOW!
neuro@hera:~$ logout
Connection to hera closed.

You should see the server stop responding to pings, then a minute or so later, start responding again.

If it doesn’t respond after a few minutes, don’t panic, use the Netboot mode to reboot your server, using a network-boot kernel. Once there, you can simply do sudo lilo -v which will re-install the original LILO bootloader, using the OVH-installed kernel, or stick with the netboot kernel if you like.

However, if the server does start responding to pings again (and it should), you can now ssh back in and check things out …


$ ssh hera
Linux hera 2.6.24-24-server #1 SMP Tue Aug 18 16:51:43 UTC 2009 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

Last login: Sun Sep 20 06:43:01 2009
neuro@hera:~$ uname -a
Linux hera 2.6.24-24-server #1 SMP Tue Aug 18 16:51:43 UTC 2009 x86_64 GNU/Linux

Woo hoo. A standard Ubuntu kernel, that can take kernel modules, and be updated regularly using apt-get, aptitude, etc. Of course, you can mix this up using other packaged kernels, such as the -rt real time kernel, or the -xen kernel to use Xen virtual machines. Go nuts, because at least now you can use your server as Shuttleworth and co intended!

Note: this procedure worked perfectly for me, but as mentioned at the start, YMMV: I can’t be held responsible if it all goes tango uniform, and Bad Things Happen. Proceed at your own risk, and good luck!

Syndicated 2011-07-28 15:49:07 from neuro.me.uk » open source

29 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!