Category Archives: linux

Raspberry Pi and gpsd ( getting around startup bug )

I need location information for one of my Raspberry Pi devices. I have a USB GPS receiver that appears on /dev/ttyUSB0. To verify the hardware operation, I installed minicom

sudo apt-get install minicom

sudo minicom -s

Then set the port to /dev/ttyUSB0, port parameters to 4800 N8! with no flow control. You should then be able to see NMEA sentences

Once we have proved that the hardware is working, install gpsd.

sudo apt-get install gpsd

sudo dpkg-reconfigure gpsd to set the serial port

Then you have to manually edit the /etc/default/gpsd file and remove /dev/ttyUSB0 from the DEVICES and put it into GPSD_OPTIONS field.

sudo reboot

Once running, you should be able to run cgps -s to see gpsd responding with valid location information.

Installing WordPress

Well, it has been a bit of a bumpy ride for no good reason. Jennifer and I have decided to move our web presence over to wordpress from plain old html/css. To be honest, none of our web pages have been updated for ages. Install WP on our new Ubuntu server ( a VM hosted at Mythic Beasts ) seemed a good and easy idea. I wanted to go with the Ubuntu apt-get install default installation as it should be tried , tested and stable especially using Unbuntu 12.04.

We could not get images uploaded and displayed. I might be the htacces file, misconfiguration in the settings, permissions. We tried a lot of things including upgrading to 14.04LTS.

Jennifer has managed to get WP to display uploaded images using symlinks, but this is not the solution. We have a few other options to try :
1) apt-get remove? wordpress, then install the latest from source from the WP site.
2) hack permalinks. It might help.
3) ask on the WP formums ( there are currently a lot of questions like this )