Tuesday, July 31, 2012

Gnewsense debmirror script

Have been working on my mirror server again. Decided to get the Gnewsense mirror fixed. Here is my Gnewsense debmirror script (may not need all the quotes);


set -ex











sharedopts="--verbose --diff=none --getcontents --ignore-missing-release --ignore-release-gpg --arch $archs --allow-dist-rename --source"

echo "std dists"

/usr/bin/debmirror --method=http \
--nocleanup \
$sharedopts \
--dist $dists \
--section=$sec \
--host $host \
--root $root \

echo "sec dists"

/usr/bin/debmirror --method=http \
--nocleanup $sharedopts \
--dist $secdists \
--section=$secsec \
--host $host --root $secroot \

Saturday, July 14, 2012

FJ45 /m ... nearly

/m means "mobile". Well its nearly mobile. I'm nearly finished painting the panels. Honest. Actually after I just cut this rust out...

The last couple of weekends have seen a few hours work each day on the FJ45. I've uncovered some more serious rust. However it will not be too hard to resolve. The fenders and other panels are 1mm steel sheet. I was given some advice "they are 1mm and solid enough and you can stick weld the panels easily." Well I gave it a go. Perhaps the rods I was using were wet or something, but it was a whole lot more difficult that I was expecting. Or I am just out of practice... Either way, I will cut out my repair and try again with a mig or oxy welder down at Lyns place. Just need to find some more 1mm steel and fold it up to the right shape.

In the mean time, you can see the 2 meter band antenna I've put on the front bar. There was an antenna mount there already, it just needed a little convincing with a file to accept the SO239 for the antenna base.

In the future I think I will acquire a pair of spring bases for the front bar and weld on a pair of antenna mounts, both on the left side.

I'm just waiting for my toes to defrost before I head out to do more work on the 45 =D

Monday, July 9, 2012

Deploying Salt, part 1

I've been meaning to deploy puppet or chef or something similar for some time. You know how things get, work gets busy, long commutes eat your soul and you don't have the head space to tinker much when you get home. Although on the last few week ends I have managed to get some quality time working on the ute (read mobile HAM radio platform).

So yesterday after getting that feeling that I've had enough ssh'ing to every server to install a package, I decided that it was indeed time to automate that kind of thing.

I first heard about salt at Linux.Conf.Au in Ballarat this year. A podcast was recommended to me about it. I have had at least two separate attempts to install it at home and one at work. As Salt and its dependencies are not in the Debian repo, it was install from source time. Well yesterday I twigged to the reason why the builds failed. You don't install the dependencies from the repos, you use the release tarballs. One of the dependencies relies of cython in the development repo and completely fails to build.

So here is the simplest install for Salt on Debian/Squeeze (note custom install destination);

apt-get install python-yaml cython python-m2crypto python-pycryptopp python2.6-dev
apt-get install libssl-dev swig python-sip-dev python-sip cableswig
cd /usr/src/

wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
tar -xzvf zeromq-2.2.0.tar.gz
cd zeromq-2.2.0/
./configure --prefix=/usr/local/zeromq
make install
cd ..

wget https://github.com/zeromq/pyzmq/downloads/pyzmq-2.2.0.tar.gz
tar -xzvf pyzmq-2.2.0.tar.gz
cd pyzmq-2.2.0/
python setup.py configure --zmq=/usr/local/zeromq/
python setup.py build
python setup.py install
cd ..

wget http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.tar.gz
tar -xzvf pycrypto-2.6.tar.gz
cd pycrypto-2.6/
./configure --prefix=/usr/local/pycrypto/
python setup.py build
python setup.py install
cd ..

wget https://github.com/thatch45/salt/tarball/master
mv master salt.tar.gz
tar -xzvf salt.tar.gz
cd thatch45-salt-*/
python setup.py build
python setup.py install
cd ..

There may be more dependencies I have inadvertantly installed for other projects, so as always YMMV there. I have started to configure salt, however that will require its own post...