December 14, 2010: Kingdoms of Camelot url for Audio Alert from Auto Attack with Extra Features
http://corpr8.co.uk/alert/
April 5, 2010: How to make an Ubuntu Webcam
Ok – so it’s a bank holiday and I thought – why not build myself a webcam which would automatically publish up to my website… Here’s the method’s and gotcha’s:
1) Install fswebcam and get it running (man fswebcam) -
my working command line was: fswebcam -q -r 640×480 –no-banner test.jpg
2) Work out how to FTP onto your website – and put the both into a bash script:
#!/bin/bash
# script to capture from webcam and copy up to the web
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
fswebcam -q -r 640×480 –no-banner test.jpg
ftp -inv mywebsite<<ENDFTP
user myftpuser myftpassword
bin
put test.jpg
bye
ENDFTP
Don’t forget to make the bash script executable: chmod a x filename…
Run it and check that it works… (FTP onto your site and have a look)..
So now onto the Html / Javascript:
Put this in the head:
<script language=”JavaScript” type=”text/javascript”>
function Clock()
{
var now = new Date();
this.document.getElementById(“testimg”).src=”test.jpg?” + now.getTime();
}
</script>
Use this for the onload of the body:
<body onload=”setInterval(‘Clock()’,60000)”>
and here’s the target IMG:
<img src=”test.jpg” alt=”test image” id=”testimg”/>
Ok – so finally (and probably the worst bit) – lets set up a chrontab job to automate the client side:
In a konsole window type:
export EDITOR=”kate – or your favourite editor”
chrontab -e
Now point your job at your script file:
PATH=/usr/sbin:/usr/bin:/sbin:/bin
*/1 * * * * /home/paul/Documents/capandftp.sh >> /home/paul/Documents/cron.log 2>&1
****Don’t forget to put 4 carriage returns in otherwise it seems to just not work****
Note the chron job is logging to cron.log!!!
Hey and that’s it – if you need more help getting this working, feel free to msg me…
November 10, 2009: Fixing Xsane under Ubuntu
Ok – If it doesn’t work,
Run
sane-find-scanner
then add the usb address to the end of:
/etc/sane.d/epson2.conf
Then to make the USB scanner available to normal users, give them rights to the USB port as found in the scan or just lsusb:
go to /dev/bus/
usb/002/002
(Might want to try /dev/bus/usb/003/002 as well if this bus no. confusion exists)
Right mouse click > properties > permissions
Allow Run for Group and Other Users.
October 29, 2009: Karmic!
At 2.37pm we started upgrdaing to Karmic Koala!
Impressions:
The download took around 7 hours (probably because the whole planet was upgrading at the same time)
Once installed and I had finished getting the wireless card to see my Hub (As I always have trouble with), the first thing I notice is that the graphics performance is drastically improved, the screen looks more crisp and multiple windows seem to slow the system down less!
I have high hopes for this Koala!
October 23, 2009: Popcorn Hour (PCH) and YAMJ, gotchas!
Ok I have just set up PCH with a YAMJ frontend and there are a few simple gotcha’s!
1) PCH doesnt like spaces in file names!
2) Map the PCH to itself as a network share (?)
3) Index Yamj to that share
4) run YAMJ on the PCH from the network share!
5) Put the index.htm into the root of your share.
…BLISS…
: Kubuntu Fixing Blocked Updates
sudo apt-get update
sudo apt-get dist-upgrade
October 10, 2009: I think I’ve been geeked!
I now know what a Green Sata Terabyte drive is and HDMI to VGA cable for our Popcorn Media Server!!!
October 8, 2009: Synchronising files across multiple Linux systems
October 6, 2009: Karmic Koala out in the wild on the 1st!!!
September 27, 2009: install Vbox additions n KDE openSuse
ok – here’s how to get the GCC compiler installed:
sudo zypper install make gcc gcc-c++ kernel-source kernel-syms
Then kdesu dolphin and navigate to the run file for the vbox additions!