Archive for the ‘Linux’ tag
New ways of doing old things
This weekend I decided to try and use different tools to perform my usual computer-based tasks.
Yesterday, I tried to do everything in Mac OS X (Leopard), and also tested out Thunderbird 3. I reckon I could live with a Mac as my only computer, and the only thing that bugged me was the speed (my Mac is somewhat ancient now). I especially liked iCal, and how it integrates perfectly with the Google calendars that map out my whole life, and I love the way OS X renders fonts and colours. Thunderbird 3 was a nice surprise, and I love the way it integrates with Gmail. Maybe I’ll consider switching back to Thunderbird the next time Evolution does something to annoy me.
Today I’ve been using the daily build of Chromium on my netbook. It’s seriously faster than Firefox, and I’m finding that I can do pretty much everything I need to do without a plethora of extensions. This might be one to keep I think.
I’m also having monitor envy. Or possibly screen resolution envy. I think I may be nearly ready to consider spending my day looking at something larger than a laptop screen.
Setting up a quick and easy virtual web server
I did a fair bit of work on this about a year ago, and then never got round to writing it up. What I was trying to achieve was to have a minimal virtual server running in VirtualBox, which could been seen from the outside world and would appear to all extent and purposes to be a real physical machine.
Start off by creating a new VM. I went with a totally stripped down installation of Ubuntu (from the alternative CD), adding just openssh-server and apache2 to the default install. I called it Ubuntu Minimal (the name will become important later).
Boot up the new VM, and then on the host machine enter the following commands (replacing the name of the VM with what you decided to call yours):
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/HostPort" 8008
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/GuestPort" 80
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/Protocol" TCP
Power down the VM, start it up again, and then you should be able to ssh into it on port 2222 and pull up apache’s “it works!” page by browsing to http://localhost:8008. At that point you can install web apps and do whatever else you want with the server.
It doesn’t take up a great deal of memory, so you could probably have a couple of these running on most computers without any obvious performance degradation.
A brief life update
This week I’ve largely been:
- Listening to the new albums by The Flaming Lips, Atlas Sound, Charlotte Hatherley and Broadcast (all of which I’m really enjoying)
- Updating my main workstation to Ubuntu 9.10
- Learning about Google Wave
- Trying to juggle various work tasks (and not dropping anything hopefully).
Oh, and I still hate this time of year. Even though we had no annoying begging children this year, there is still the firework-hating dog to deal with.
A few words on Operating Systems
To me, Windows 7 doesn’t seem much of an improvement on Vista. What is does do is return to making me think that the look and feel was modelled on a child’s toy. With XP it was Fisher Price, with Vista it was some flashy Japanese toy that looked good but no-one played with. And with 7 it is Lego. Just look at the dock and tell me I’m not right.
What with Snow Leopard being underwhelming, and Windows 7 not exactly making me want to switch back, I think Ubuntu 9.10 has me totally sold in the Autumn 2009 OS wars.
But there again, I’m ever so slightly biased.
The Art of Community
I’ve written about this before, but after reading the whole book this weekend I thought it was worth another mention.
It’s a book about communities, written by Jono Bacon (Ubuntu’s Community Manager). What I like about it is that it gives a great insight on what it is like to be part of a community where creative people work together to make something great, but where the reward is not financial. I think anyone who is involved in any sort of voluntary activity would get something out of it, and I’m certainly looking at my own community involvement in a new light as a result of reading it.
The Art of Community is available to buy (or to download for free) from http://www.artofcommunityonline.org/.
Sensible window sizes on Dell’s version of Ubuntu
I love my Dell Mini, but there are a couple of “features” added by Dell that drive me mad. One of these is called Maximus. It’s an application that tells any window that opens on the desktop to open full-screen. It’s particularly annoying with applications I’ve added myself (like Empathy), as the default applications seem preconfigured to ignore it. I’ve had a poke around in gconf-editor (install it with sudo apt-get install gconf-editor if it doesn’t exist already), and the key that needs editing is called /apps/maximus/exclude_class (see below for details):

It’s basically a list of applications that open with the same window size they closed with rather than open in full-screen.
Double click on the key, and you should get the following dialogue:

Click on the plus button, and add whatever applications you need as shown below:

Then click on OK. Next time you open the applications in question they should honour your desired window size.
Exploring Suse Studio
I’ve had an account on http://susestudio.com/ for a few weeks now, but have only really had a couple of chances to play with it. The basic idea behind the site is that anyone should be able to create a customised Linux distribution that perfectly suits their needs (providing those needs involve openSUSE 11.1 or SUSE Linux Enterprise 10 or 11). Normally I do this sort of work on Ubuntu, using Ubuntu Customisation Kit, as detailed in a previous post. This suits me, because I use Ubuntu in a production environment and it makes things easy. But I was interested in how this new software would work for someone who had never used openSUSE for more than a few minutes.
Ubuntu Customisation Kit does everything on the host machine, and only uses the Internet to pull new/updated packages in. This is light on bandwidth for tweaks, but heavier if you’re making major changes. Suse Studio does things the opposite way round, in that all the building and updating is done on the web, and you then download the finished .iso image. It’s slightly heavier on bandwidth overall, but did allow me to do a lot of the build work from my netbook in the foyer of a hotel in London, as all you need is a web browser and a net connection.
I ended up building three different versions of openSUSE, to suit three specific needs I occasionally have:
- Gnome, with a web browser (firefox), a terminal (gnome-terminal), dropbox preinstalled, and a couple of work-specific scripts for mounting drives and backing up data. This is a configuration we use at work for data recovery (currently based on Ubuntu 8.04). This was painless to set up, came in at 348Mb, and worked well.
- A showcase for KDE4. I’m not a big fan of KDE, but it’s always useful to have a VM kicking around to show people what it is like. This was on the same level of detail as the Gnome one, and came in at 350mb. I think I might actually be able to use this to get things done, as it takes away a lot of the un-instinctive KDE apps whilst leaving the very pretty and functional base.
- An image containing the applications I use every day, which would act as a basis for reinstalling my home or work laptop (both currently running Ubuntu 9.04). This contains Firefox, Thunderbird, OpenOffice.org, Empathy, Rhythmbox, Gedit and gnome-terminal, and was still only 484mb (300Mb less than the version of Ubuntu I install from usually).
So yes, all three experiments worked, and while I’ve not tried to use them to get things done yet, I have successfully installed all three as virtual machines and they seem to work as expected.
I think most people could use Suse Studio, and it acts as a good way to learn the basics of how a distribution is put together. I very much expect to see the code base from this project move in interesting directions in the next few months, and I’d be surprised if we don’t see similar projects getting off the ground soon.
Piping fortune into twidge
fortune | twidge update actually works as expected. Add cron to the mix, and you can automate random utterances to appear on twitter when you are away from your computer or otherwise engaged.
More an amusement than anything useful, but it killed 5 minutes of my lunchtime.
(I wrote more about twidge here)
Suse Studio
I’ve been trying out Suse Studio over the last couple of days. It’s a build service for livecds and software appliances, and it really is so easy to use that I think most non-technical users could get to grips with it. It’s invite only at present, but I got an invite just by asking (and I’m not exactly known for my love of the distro).
I’ve built a 300mb livecd with a very minimalistic Gnome install plus Dropbox, and it seems to do everything I want it to do. And it only took about 20 minutes in total to do.
I think this is something I will play with some more when I’m on holiday.
Upgrading Ubuntu 8.04 to OpenOffice.org 3.1
This guide has all the required info, and worked like a charm on my netbook running 8.04 and my laptop running 9.04 (although it was simpler than the guide suggests in both cases). I’ll hopefully write a more comprehensive guide at some point soon, because I think 3.1 is something that people should consider upgrading to.
I’m really not noticing the fact that I’m running 8.04 on my Dell Mini, largely because I’ve upgraded most of what I use regularly to later versions.