LauraCowen.co.uk

Life, technology, research, and miscellany

Early birthday pressie!

March11

This is me with my early birthday pressie from the lovely Tony:

Laura with new Ubuntu bag.

Perfect for travelling to geeky conferences. ;)

Post to Twitter Post to Facebook Post to Delicious Post to LinkedIn

tagged with:
posted on 2008-03-11 at 09:03 pm in Open Source | No Comments »

Ubuntu-UK podcast: Episode 1 now available!

March11

The title says it all really.

Some of the guys in the Ubuntu-UK community have released a podcast. And Episode 1 of, hopefully, many more is now available.

Okay, it’s not just ‘some guys’. One of them is my other half, Tony (a.k.a. TonyTiger), I know the others, and I was actually present for  part of one of the interviews on there. So my pimping the podcast here is probably slightly predictable. On the other hand, it really is rather good! :-)

So give it a go.

You can download it from the podcast’s funky new site at podcast.ubuntu-uk.org.

Post to Twitter Post to Facebook Post to Delicious Post to LinkedIn

tagged with:
posted on at 07:03 pm in Open Source | No Comments »

Using the ‘service’ command on Ubuntu (and other handy tools)

February13

Here’s how to get handy equivalents of the RedHat service and chkconfig commands on Ubuntu.

I’ve been using Ubuntu as my main desktop on my T41p Thinkpad for – what seems like – ever but is actually only since sometime last Summer. Before that, I used RedHat Enterprise Workstation for a time and, as RH isn’t (or, at least, wasn’t) quite so user-friendly as Ubuntu, and I’d recently been on a Linux Networking course, I quickly got used to using the service command to restart networking or whatever, and, occasionally, the chkconfig command to set which services started/stopped at boot. My main use of the chkconfig command was to stop the vmware service from starting at boot because the extra networking interfaces confused my VPN connection (IIRC).

When I moved to Ubuntu, I soon forgot the existence of such commands with the arrival of the lovely (but, unfortunately, slightly buggy) Network Manager GUI. Yesterday, I wanted to stop the vmware service from starting at boot as I used to (not for any particular reason but just because it seemed silly to be starting when I’m not always needing it). So I started to hunt it down…

System > Administration > Services seemed the obvious way to go…and, indeed, it did reveal a GUI listing some services. I’m not sure, however, how that particular GUI decides which services to list. Maybe it’s a lucky dip? Whatever. They’re certainly not all there. I’ve not yet found that GUI at all useful (unlike the GUI it replaced, which was probably daunting for new users but much more useful than the current one).

I started to google and found some useful tools. I never actually found the vmware service listed anywhere – if anyone knows how on earth I can prevent it starting at boot, I’d love to hear from you. In the meantime, here are the handy utilities that I did find…

Boot-Up Manager (BUM)

It’s childish, I know, but apt-get install bum makes me smirk. So, I installed BUM – it doesn’t seem to get added to the Applications menu but you can just type sudo bum in a terminal to start the BUM GUI:

Screenshot of BUM GUI

It seems to be a more useful alternative to the Services GUI that comes in Ubuntu.

sysv-rc-conf

This is fairly close to chkconfig (but in a terminal-based GUI) or the GUI that you used to get in Gnome that listed all the services and the runlevels at which they’d start on your system. Less pretty than BUM but looks okay:

Screenshot of sysv-rc-conf

sysvconfig (provides the service command)

And finally, this is just a package you install which contains the service command. Once you’ve installed the package, you can type things like sudo service vmware restart to restart the vmware service (which did work, btw, despite not being able to actually *see* the vmware service listed anywhere).

So, there you go! All of these are available in the Ubuntu Gutsy repository.

Post to Twitter Post to Facebook Post to Delicious Post to LinkedIn

tagged with:
posted on 2008-02-13 at 11:02 pm in Open Source | 5 Comments »

LugRadioLive 2008 USA trailer

February10

Slightly late to the party but, in case you’ve been living in a cave the last couple of weeks, here’s the trailer for LugRadioLive 2008 USA!

Lovingly prepared by my other half using Free and Open Source Software only: Kino and Audacity on Ubuntu.

Post to Twitter Post to Facebook Post to Delicious Post to LinkedIn

tagged with:
posted on 2008-02-10 at 08:02 pm in Open Source | No Comments »

Setting up a Freecom media player with Ubuntu

January13

This has taken me over two months (on and off) to finally get set up so hopefully this post will make things a bit smoother for other people.

I have the Freecom Network Media Player 350 WLAN model with no harddrive. As we already have a MythTV media server in our living-room, I wanted to set up the new media player in the bedroom with my old 17″ LCD monitor and a pair of speakers. The media player has 802.11G wireless so I can listen to music over the network, though I’m not sure if that’ll be up to playing video so we might have to finish running the ethernet cable anyway.

So, what did I have to do to set it up? And why did it take me so long?

Well, the answer to the first question should really be “not a lot” because it’s mostly set up ready to go when you take it out of the box. In practice, it took me about three stints of fiddling around to get it working (only the ‘Sharing files from a Linux PC’ bit of this post is specific to Linux and Ubuntu, by the way).

Video output

First of all (and a significant mistake on the part of the manufacturers, I feel), the Freecom media player defaults to Composite, its analogue output. You can switch it to HD-DVI, its digital output, but you must have the digital output device (my LCD monitor in this case) connected to the media player with a DVI cable (the one with the white ends). If the LCD monitor is not connected, the media player doesn’t believe you that a digital output is really what you want and won’t switch.

But, in order to see the Setup screens on the media player, you have to have connected the media player to some kind of non-digital display. This was fine for me at home because our TV is still an old CRT and has easily accessible composite input (the triple cable with yellow/white/red plugs on it). At my parents’ house, however, they have a shiny new LCD TV with no composite input. Although the media player is handily supplied with a composite cable, it doesn’t come with either an s-video or scart cable, which is all that my parents’ TV can take.

So, after enlisting my parents to help lug their old portable TVs around the house, I managed to get an analogue output (old portable TV) and a digital output (the new LCD TV) in the same physical location so that I could plug the media player into both and switch the media player output to digital. Unfortunately, the default resolution of the digital output on the media player is 576 and not 1080. The LCD TV, however, will only recognise 1080. And you can only change the resolution of the media player’s digital output setting *after* you’ve switched to the digital output.

So something of a Catch-22 situation there.

I eventually got it working back at home where my LCD monitor was less picky about what resolution the media player fed into it and I could change to digital output then switch resolution, then save the settings so that the media player boots into digital output every time.

Wireless

We use WPA wireless encryption on our home network (use the WPA-TKIP option on the media player), so this was never going to be completely straightforward. But, really, entering a 63-character passphrase using a remote control is beyond a joke!

Basically, for each character, you tab through a list of 36 characters (0-9-a-z), using the Up arrow on the remote control, until you reach the one you want. Then, you press the Right arrow to move to the next character before repeating the previous step. For 63 characters!

Also, one thing that the media player instructions don’t mention is that you have to use the ASCII version of the WPA key, not the Hex version (which is what I’m used to using on my laptop, on the Wii, and on pretty much every other wireless device I use — except our digital photo frame, which is another story!).

Once I’d worked out how to enter the WPA key, it connected easily. It’s pretty much the same experience on a WEP network except that the key is much shorter to enter!

Sharing files from a Linux PC

This is where the Ubuntu (or LInux in general) bit comes in.

The media player’s manual provides detailed instructions on how to share files from a Windows PC to the media player so it takes a bit of translation to get the same thing to work from a Linux PC.

A nice touch in the media player is that it uses Samba by default to do its file sharing. This means that, on connecting to the network, it finds all the available Samba shares and displays them under the wireless (or wired, if you’re using ethernet) option on the main screen as sources of media.

The less nice touch is that it uses “a really crap authentication system” (Mills, 2008). I easily shared a directory using the Ubuntu GUI. Before you can share a folder using Samba, you must have a Samba server installed on the PC. On Ubuntu (Gutsy in my case), a Samba server is installed and configured by default so you should be fine.

To share a folder using the GUI in Ubuntu:

  1. Right-click the folder on your Ubuntu PC you want to make available to the media player, then click Share folder. The Share Folder dialog opens like this:
    Screenshot of the Share Folder dialog.
  2. In the dialog, from the Share through list select Windows networks (SMB). A couple more fields are added to the dialog.
  3. In the Name field, type a name for the share. This name must be fewer than 12 characters long otherwise the media player doesn’t recognise it (a mistake I made on my first attempt).
    Screenshot of the Share Folder dialog with SMB selected.
  4. Leave the Read only check box selected. There’s no need for the media player to have any more access than this.
  5. Click OK.
  6. Right-click the folder then click Properties. On the Permissions page of the Properties dialog, check that the Folder Access list for ‘Others’ has Access files selected.
  7. Check also that the files in the folder have read-only access for ‘Others’ by looking in the Properties dialog of one or two of the files.

Okay, the folder is now shared but the media player still can’t access the files in it.

In case you’re interested, or in case you prefer to edit the Samba configuration file directly instead of using the GUI, the GUI generates a stanza like this in the /etc/samba/smb.conf file (where ‘cardiff’ is the name I gave to the share, and the path is the location of the folder in my home directory on my Ubuntu PC):

[cardiff]
path = /home/laura/photos/canon_ixus/2007-12-02-cardiff
available = yes
browsable = yes
public = yes
writable = no

At this point, the media player can find your shared directory but can’t access any of the files in it. So you need to do a tiny bit of editing of the smb.conf file (sorry, it’s unavoidable) to allow the media player to authenticate with your Ubuntu PC.

To enable the media player to access any folders you’ve shared (thanks to Hugo Mills for telling me this bit):

  1. Open a terminal window and change to the directory that contains the smb.conf file:
    cd /etc/samba
  2. Back up the smb.conf file (so that you can revert back to using the old version of the file if necessary):
    sudo cp smb.conf smb.conf.bak
  3. Open the smb.conf file in a text editor such as Gedit:
    sudo gedit smb.conf

    Enter your password when prompted. The smb.conf file opens in Gedit.

  4. Find the section of the file called
     ####### Authentication #######
  5. Find the line that says:
    security = user
  6. Replace the line with the following two lines:
    auth methods = guest sam winbind
    security = share
  7. Find the line that says:
    encrypt passwords = true

    Check that the line looks like this and that it isn’t commented out with a semi-colon (;).

And you’re done!

The media player should now be able to read the files in the directory that you shared (you’ll probably have to reload the folder on the media player to display the files).

Playing shared files

The media player supports a whole list of file formats but I’ve had trouble playing some files. I had no trouble playing some mp3 music files, and I was able to play an mp4 video file over the network (although the latter hung the media player the first time through for some reason).

One directory of jpg image files worked fine as a slideshow (though the media player doesn’t automatically rotate portrait pictures) but another directory of jpg images wouldn’t play. I think it’s got something to do with file sizes and the amount of memory available on the media player. A 1.9 MB png file wouldn’t play because it was too big for the media player’s memory.

Also, I haven’t been able to play any of the AVI movie files that I’ve tried. They all came from my Canon Ixus camera so I don’t know what the problem is but maybe the media player supports only certain AVI codecs?

I was also able to play a slideshow of jpg files from a USB key drive that I plugged into the USB port on the back of the media player (a USB extension lead is useful here because my USB key is slightly too bulky to go in port next to the DVI cable port).

Verdict

So far, I’ve not actually tried the media player in situ yet so I can’t say how well it works in its intended setting. But it’s now set up and works with wireless, sound, and file shares.

Post to Twitter Post to Facebook Post to Delicious Post to LinkedIn

tagged with:
posted on 2008-01-13 at 10:01 pm in Open Source | 9 Comments »
« Older EntriesNewer Entries »