Record of some of the computer tech I deal with so that it's documented at least somewhere.

Saturday, 27 February 2010

UDP broadcast

I found the UDP listener here. He calls it a server but in my context it is what it is, a listener. I'm sure Gunnar Gunnarsson won't mind me adapting it.

The listener spits out "IP\tmessage\n". It gets the messages from a the broadcaster.

What happens next is up to you.

Tuesday, 16 February 2010

Mplayer video wall

I found a mplayer syncing patch which will be amazing if it works!

http://persephone.cps.unizar.es/~spd/cmplayer/

If it works I'll look into the code and see how it applies to more recent versions, there's not much, it only patches these files (though the patch file is 5k)
Makefile
mplayer.c
parser-mpcmd.c

It worked fine against rc2

With this configure
./configure --enable-largefiles --enable-menu

but fails when I use checkout by date on the next version
(cave-mplayer source code (v. 0.3) for MPlayer SVN (Fri Jun 13 2008))

With this configure
./configure --enable-menu
% svn checkout -r {2008-06-13} svn://svn.mplayerhq.hu/mplayer/trunk mplayer
% gzip -dc cave-mplayer-0.3.1.tgz | tar xvf -
% cd mplayer
% patch < cave-mplayer/cave-mplayer.patch
worked a treat
% make
... snip
In file included from ./libavutil/avutil.h:76,
from ./libswscale/swscale.h:30,
from libvo/vo_yuv4mpeg.c:43:
./libavutil/pixfmt.h:32:32: error: libavutil/avconfig.h: No such file or directory

and I can't fix the bleeder. So I'm going to try newer / older dates randomly !

13 July 2008 also broken
Jan 01 2009 also broken, same shit
Trying Jan 01 2010 to see if Diego's patch from 19th Jan is the only fix. Yep same shit.
Fuck me these people can't even keep a build working!

I tried to fix it but was falling down a big hole with glass on the sides

rc2 it is

Sunday, 14 February 2010

Installing OSX Leopard again

Last time I tried to install Leopard I found some version clashes with Final Cut & Compressor - namely PPC compressor doesn't work and one needs Universal Compressor (according to some forums). After the heartache of DVD authoring not working I shall try again.

Step 1.
Install Leopard from DVD

Great start, it's kept the volume name. Scratch01 isn't too great! See you in Calculating... minutes (it said 1 hour, turned out to be 20 mins).

Installed the optional dev tools, X11, gcc et al.

Upon reboot it asked me to fix quartermaster's permissions, it didn't complain on the next reboot

Installed Final Cut Pro Upgrade, including LiveType and Comrpessor

Comrpessor still doesn't work - no suprise there, but now I discover we don't even have iDvd

Downloaded Pacifist from http://www.charlessoft.com/ to look for packages I've missed
DVD Studio doesn't install from the DVD Studio Content disk even though it's universal, FCP refuses because it's a set of Intel disks, agghhh, someone's snaffled our Universal!

It needs DSPGroup, XSKey, SharedComponents, ProCoreA, ProRuntime

And, of course, a valid serial number.

Sunday, 7 February 2010

EeePC Repositories

So I can keep track between wipes
see also
http://wiki.eeeuser.com/addingxandrosrepos

deb http://update.eeepc.asus.com/1.6 common main
deb http://update.eeepc.asus.com/1.6 p901 main
deb http://update.eeepc.asus.com/1.6 en main

# Original Asus 701 repos, do not change the reference to the 701!
deb http://update.eeepc.asus.com/p701/ p701 main
deb http://update.eeepc.asus.com/p701/en/ p701 main

# Community repos, good for conky. Do not change the reference to the 701
deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch

# Xandros repos
deb http://xnv4.xandros.com/xs2.0/upkg-srv2/ etch main contrib non-free
deb http://www.geekconnection.org/ xandros4 main
deb http://xnv4.xandros.com/4.0/pkg/ xandros4.0-xn main contrib non-free

# XEPC repo, specifically compiled for the eee!
deb http://updates.xepc.org/ p701 main
# XEPC alternative repo, if main repo down
# deb http://download.tuxfamily.org/xepcrepo/ p701 main

# Debian repos now listed as etch and oldstable which are both currently identic
al.
deb http://www.debian-multimedia.org/ oldstable main
deb ftp://ftp.uk.debian.org/debian/ etch main contrib non-free


after an apt-get update

apt-get install xandros-archive-keyring

I'm doing an apt-get upgrade, and it's going to take an hour. I might be headed for Wipeout!

compiling drawterm

Debian packages required :
% sudo apt-get install build-essential libx11-dev libxt-dev

libx11-dev gets you X11/Xlib.h and friends
libxt-dev gets you X11/IntrinsicP.h and co

Saturday, 6 February 2010

Venti a plenti

I had to put a few small things in place before it would work.

First off is a script to run, this must live somewhere Inferno can find, I used % cat /usr/maht/backup
bind '#Uc:' /n/local
vacput -a tcp!10.0.0.1!17034 '/n/local/Documents and Settings/maht/My Documents' >> /usr/maht/my.documents.vac


When you run that and try and unvac it on Lunix first time you'll have some fun because 'My Documents' is dr-xr-x-- so it creates the directory and then sigfaults because it can;t write into it!

So I had to run Inferno andchmod 775 '/n/local/Documents and Settings/maht/My Documents/'
chmod 775 '/n/local/Documents and Settings/maht/My Documents/My Pictures'
chmod 775 '/n/local/Documents and Settings/maht/My Documents/My Music'


Next job is to make a Scheduled Task. I did it as Administrator but gave it the credentials of a normal user.

It's effectively a shortcut with the command line "C:\inferno\Nt\386\bin\emu.exe /dis/sh.dis /usr/maht/backup"

I don't know how fast it's copying, hopefully I'll be able to work it out after it's finished running tonight.