My Life, part 1, 1987-1996

A friend asked me to tell him about my life, some of the stuff I’ve gone through. I’m a bit nervous about putting it online, since there’s security implications, and I totally don’t want to sound narcissistic. I’ve changed some facts, and not put some in for aforementioned security reasons. This is of course from my point of view, and has my bias, and will be text, lots and lots of text.

So, if you’re sitting comfortably, I shall begin.

I was born in 1987, in a snowy city overseas, in a British Military Hospital, as dad was an army nurse. This has made life a little more interesting than normal, as technically, I’m not English, Welsh, Scottish or (Northen) Irish, but British. My place of birth always makes official people raise an eyebrow. My brother (Garreth) was born around 19 months after me, in a standard english hospital.

From left to right, Mum, Nanny, me, Great Grandma (dads side), Dad.

From left to right, Mum, Nanny, me, Great Grandma (dads side, shortly before she passed away) and Dad.

My first memory was, amusingly, swimming with a plastic lifebelt around me, in a hot sunny cyprus, quite young, thinking “I won’t remember this”.

I have broken and scattered memories of my childhood until my late teens really. If I dig really hard I can pull out more fragments, but not many. Quite a lot of my early history I mainly know through childhood photos, and the stories my parents told me.

Dad was posted to Cyprus a couple of times, we went with him and mum when we were quite young, pre-school age. A couple of funny stories I’ve been told; there’s a photo somewhere of me *just* as I bite into a lemon. My face says it all, EWWWW! I did go on to love the taste of lemons and sour things though, so something imprinted 😉

kirrus holding onto mobility scooter

Holding onto Nanny’s mobility scooter

Another story, one time myself and Garreth somehow managed to climb up and grab dad’s car keys from a key hook on a wall. We then managed to open the car, and successfully start the engine. Bear in mind, this was whilst we were in cyprus, so only 5 or so at the time 😉

Myself and my brother in cyprus, covered in washing up foam

Myself and Garreth (in that order), in Cyprus

Dad left the army, relatively soon after we started school, he and mum didn’t want us to grow up as army kids, and he didn’t really fit into the army, from what he told us. Mum at this point was also apparently quite unhappy.

At age 8, my parents started divorcing, a process that took a few years. I have a few visible memories during this period, of a social worker asking us who we wanted to live with, and mum coming home one day, and telling us it was over. I also remember one or two fights between my parents, and suspect I heard/saw far more that were supressed.

The most powerful memory I have during that period, was clinging onto my dad, as he was dropping me off in the school playground, not wanting to ever let go, not wanting to leave him, at the start of a Junior school day. I would have been around 8 or 9 at this point. They somehow managed to get me separated, dad left, and me into a quiet office. I fought, hard, wriggling whilst someone held me, trying to calm me. Eventually someone said ‘Johnathon, you hurt me!’, and instantly I calmed. I never wanted to hurt anyone, ever, I just wanted to be with Dad.

That divorce would go on to shape me, to an extent I’m only now realising.

Part 2

grub-probe: error: no such disk

Ran into this one today, on a debian squeeze box:

/usr/sbin/grub-probe: error: no such disk.

It actually was telling the truth, the disks listed in /boot/grub/device.map were wrong. Replaced /dev/disk/by-id/serial-of-drive with /dev/sda. Worked.

Whilst researching this problem, I did run into a similar debian bug, but it wasn’t relevant. In case you’re interested, it’s about LVM drives, and it’s here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673573

Mythubuntu 12.04 and Radeon 9200

Hi all, I was having trouble installing Mythubuntu 12.04 on an old PC I had lying around.
Mythubuntu is based on Ubuntu 12.04 so if you’re struggling with the ATI Radeon 9200 on there these steps should help.

(Since I have a Hauppuage Nova-T 500 dual freeview pci card from old projects, and a 2tb drive from new ones, I wanted to see about recording some films!)

Basically, when booting it would come up with a garbled, black or blank screen.

If this happens during the livecd boot, preventing you from installing, when you see the logo:

Logo that appears when first booting ubuntu from livecd.

Logo that appears when first booting ubuntu from livecd.

Hit enter, and F6 for other options, select nomodeset, hit enter to enable then Escape and enter to boot.
If operating from a laptop, you might want to try noapic too.

 

In the latest grub setup – grub 2 – the boot menu is hidden, making it near impossible to access.
Might make it look pretty but is major frustrating for troubleshooting!
The script /boot/grub/grub.cfg it uses is supposed to boot in textmode if it has failed to boot, but this does not work.

The fix:

Note: you can login, type

sudo su

and then skip typing sudo with every command below (it gets quite annoying I know!)

  1. To access the grub bootmenu, hold down shift – after all your pc’s bios and add-on cards bios screens have disappeared and until it pops up – it takes a while to appear!
  2. To access the console – textmode, insert the word text and remove ‘splash quiet’ from the kernel options,
    also insert the word nomodeset
    then press F10 or Ctrl-C to boot with the new settings.
  3. Connect to the internet, if using Wired connection you may need to connect (hopefully you connected ok during the install)

    sudo nmcli -p con up id “Wired connection 1”

    If that doesn’t work check your wireless connections names with and edit the above command appropriately

    nmcli con

  4. Install xserver-xorg-video-ati

    sudo apt-get install xserver-xorg-video-ati

    (don’t freak out when you see ‘Removing Mythubuntu-desktop’ it seems to come right in the end.

  5. Create a new link for the X server
    (Not sure why this breaks after the upgrade but it won’t work without this step!!)

    sudo ln /usr/bin/Xorg /usr/bin/X

  6. Edit the default bootmenu script
    Add nomodeset to the default grub bootmenu

    sudo nano /etc/default/grub.cfg

    Change this line near the top:

    GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
    to
    GRUB_CMDLINE_LINUX_DEFAULT=”nomodeset”
    #”quiet splash”

    The # tells it to ignore this bit, it’s a backup so that we can make it quiet again later. You’ll notice text streaming by as the system boots instead of the cute (Myth) Ubuntu …. logo

    Ctrl-X to exit, type s and Return to save

  7. Update grub

    sudo update-grub

  8. Reboot and Revel in the shinyness

    sudo reboot

I actually ran this command to to start the windows manager, (and I haven’t tried rebooting yet, shhh)

sudo start lightdm

If you have any extra trouble, comment below, check the ubuntu forums and google.
I managed to work this out on my own as I couldn’t find the answer!

 

I also created a script to set the resolution of lightdm at boot, following the guide here:
LightDM Resolution

This did not work as when I started lightdm, the resolution was set higher than I’d set in lightdm, so I don’t think this was part of the fix.
Thankfully it was within my monitors capabilities. I think I set the output name wrong.
I need to figure out the display outputs are available but couldn’t query it from the command line without x running, which seems kinda silly.

Hope this has been helpful!

Cook Me.

This is on my list of things to cook. Soon. Posting it here so I have *no* excuse. Instructions from a friend:

 
Visi: you should make the roast squash!
Visi: chop them in half, scrap out the seeds, score it with a grid, rub butter in, coat in salt and pepper and roast
Visi: put a lil bit of curry powder on near the end
Kirrus: temperature?
Visi: 180 I guess
Visi: whatever temperature you want!
Visi: takes a while but when you can shove a fork through it it’s done
Visi: *easily

Go (wéiqí, igo, baduk, cờ vây) opening

I’ve been playing Go a bit of late, and a friend was taught this about openings, during a review of a game on KGS. Posting it here mainly so I remember for the future! 🙂

Teofrostus [2k]: when you're playing go, there's a nice checklist that you should go through during the opening 
Teofrostus [2k]: it goes something like this
Teofrostus [2k]: 1) Do I have any weak groups?
Teofrostus [2k]: 2) Does my opponent?
Teofrostus [2k]: 3) Are there any unapproached corners? [opponent corners before allied corners]
Teofrostus [2k]: 4) Are there any "big points" left?
Teofrostus [2k]: and you should respond to these in this order

Also worth noting:
Teofrostus [2k]:it's something that you should follow until you're like 3d

Quote of the Day

But in truth it had not exactly been gold, or even the promise of gold, but more like the fantasy of gold, the fairy dream that the gold is there, at the end of the rainbow, and will continue to be there for ever provided, naturally, that you don’t go and look.

This is known as Finance.

– Terry Pratchett

MySQL Linux CLI command execution

As another aid to my memory, you can run mysql commands on the command line like this:

mysql -u user -p[password] database -e "SELECT * FROM orders;".

 

You can also send the mysql client commands on stdin:

echo "SELECT * FROM orders" | mysql -u user -p[password] database

 

Or read them in with a file redirection

mysql -u user -p[password] database < /home/kirrus/orders.sql

That last one is really handy for reading MySQL dumps back into MySQL.

MySQL GRANT syntax oddity, show views

So that I don’t forget: Despite what the documentation says, being unclear (links always have an underscore over there, so it’s hard to tell difference between a linked underscore linked item, and one merely space-separated), you should grant ‘SHOW VIEW’, not ‘SHOW_VIEW’. Additionally, ‘SHOW VIEW’ really needs SELECT permissions as well.