Archive for the ‘Ubuntu’ Category

Reowning Ubuntu

Wednesday, August 15th, 2007

NFS is a pain because you need to have the same UIDs on different systems. It seemed easiest to change my UID on my Ubuntu box.

usermod -u 1234 phil

Simple enough and it even chowned the files in my home directory. But I still have files everywhere which have my old uid. I’d like to find and own them, seems like a pain, could take ages? Easy with GNU find:

sudo find / -uid 1000 -exec chown phil \{\} \;

Start

Friday, February 2nd, 2007

I like to use a command line interface whenever possible. Sometimes though a windowed application is required. In MS Windows you use the start command to bring up the default app, (don’t use this much). In Cygwin I use the cygstart command.

So I was using my Ubuntu system and wanted to do something similar. The command it turns out is gnome-open. Bit of a mouthful so I have this aliased in my .bashrc file to cs for either cygstart or gnome-open which is much more snappy.