Clean out old kernels (and grub while you’re at it)

Again, more for my own reference than anybody else’s…
We’re talking Ubuntu here, by the way. I’m on 10.04 on my laptop and just installed 10.10 on the desktop

Problem: lots of Kernel entries in Grub (even had this dropping windows off the list in the old days and thought I’d done something VERY bad to my dual-boot laptop). Also, in the case of my Eeepc, a full root partition with a lot of unnecessary kernels.

I’ve found myself Googling this at least three times because I always forget which name to search for and remove in Synaptic. So here it is:
First, check which Kernel you’re using.

Open a terminal and type
uname -r
My output looked like:
2.6.32-25-generic
So make absolutely sure you don’t delete that one! If you’re conservative, you’ll also keep the revision before too.

Open Synaptic and search for
linux-image
the kernels you have installed will all have green boxes next to them BUT BEWARE, so does your current kernel

remove (in my case)
linux-image-2.6.32.23-generic
linux-image-2.6.32.24-generic

BUT NOT
linux-image-2.6.32.25-generic

Mark the unnecessary kernels for complete removal
You’re done, that’s another job jobbed as my Mum would say

Posted in Diary, Linux | Comments Off on Clean out old kernels (and grub while you’re at it)

Where did I put that nifty function I wrote?

I know everyone probably knows this, but I’m noting this here, more for my benefit than other people’s.

Consider the following (addled Alzheimers programmers are familiar I’m sure…) About to write a new script but sure that you’ve done something similar.

In my case, with the GPS and text message stuff I do, I’m always doing date conversions.

Grep is your friend – in a terminal, type

$ grep -rl "datetime" /home/daniel/Documents/dansdocs/python/danPython

And hey presto, there’s a list of the files that mention “datetime” or any other string you care to try.

Posted in Code, Diary, Linux | Tagged | Comments Off on Where did I put that nifty function I wrote?

PD is back!

pure data icon
After a few days wondering what I was going to do about pure data not being in the lucid repositories, Peter (Vasil) pointed me in the right direction.

He told me to look here https://autobuild.puredata.info/auto-build/latest/ and download the latest build.

Just be sure to open the .deb package in the right way and it will install pd on your machine.

The next thing I had to remember was that instead of invoking it with $ pd& in the terminal, it is now $ pdextended&
Haven’t had a chance to play much, what with the Leipzig project, but will happy to have it back!

Posted in Diary, Linux, PD | Comments Off on PD is back!

Total Geek-out

After a very inspiring meeting with Peter Vasil who along with his colleagues has been working with us on our own GPS tracks and more recently the visualisation for The Monday Walks project we’re making with students from the University of Leipzig for the play! Leipzig Performance Festival and Conference, (phew!), we fell to talking about version control and Git as well as /LaTeX/

Version control is amazing and I really wish I’d known about it when I was developing the GPS / Python / Pure Data project I really must outline in this blog someday soon. For all of you who don’t know what it is, it is a way of keeping track of computer programmes, text files, etc. so you don’t have to do what I have done until now which is copy the scripts I’m writing on and name them different (and partly random) things. You can already tell that this is less than satisfactory. Version control means that the computer keeps track of the changes for you, makes diagrams of how different your changes are from each other and gives you the opportunity of going back to an earlier version without keeping loads of different versions of the same script floating about in random order in a directory. I guess this is why they call it version control.

LaTeX is a hilariously geeky way of writing documents and it’s worth researching Donald Knuth, the developer of the underlying TeX, just to remind yourself of how weird and fascinating the world is. Having said that, as someone who spends a certain amount of time trying to bring sense to the word processing way of formatting documents, I really appreciate the concept of divorcing content from form and letting the semantics drive the look. In the end, you just want to read the information in as clear a way as possible and this is exactly what LaTeX makes possible.

Posted in Code, Diary | Tagged , , | Comments Off on Total Geek-out

Make the windows partition mount at startup in Ubuntu

You just edit your fstab!

All you need is here:
https://help.ubuntu.com/community/Fstab

The reason I wanted to do this is because the documents I synchronise with Sophia, the plan b directory of current project files, is on the windows partition of my laptop, as is good old Dropbox (in Ubuntu, the dropbox is a symlink to this directory on the windows partition – works a treat).

If I don’t mount the windows partition, I don’t automatically have access to it and can’t synchronise with Unison or run Dropbox.

Posted in Diary, Linux | Tagged , , | Comments Off on Make the windows partition mount at startup in Ubuntu