General Notes

And more general notes at the below links:


Here be general notes I have collected over the years, nothing of much interest.

Python Web Framework

This website is currently built so it only works with the Appengine back-end, this is an attempt to make it work on any old Linux box, along with Appengine. The base packages are as follows.

sudo apt-get install python-pip
pip install Jinja2
pip install WebOb
pip install Paste
pip install webapp2
sudo apt-get install python-fontforge

Install Python-OCC

sudo add-apt-repository ppa:hmeyer/3d
sudo apt-get update
sudo apt-get install python-occ
git clone
cd cadmium
sudo python install
sudo apt-get install python-fontforge

Python Tornado Framework

pip install tornado

Enable Fast Reauth in Ubuntu

By default Ubuntu will not use the config file, so all the guides that tell you to simply ass fast reauth to the file do not work. The following makes wpa supplicant look at the config file which then works.

edit /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service to "Exec=/sbin/wpa_supplicant -u -s -O /var/run/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -ieth0 -Dwired"
and edit /etc/wpa_supplicant/wpa_supplicant.conf to "fast_reauth=0"
Finally restart, and hopefully it'll work.

Update: It looks like this may not work at first boot anymore, instead requiring wpa_supplicant to be killed before it is automatically restarted with the correct config file. Will report back when I know more.

Movie player as default

It loads far faster than anything else under ubuntu, and works with everything. As I was getting sick of the music library thing grinding just follow the following.

sudo gedit /etc/gnome/defaults.list
replace all media stuff with "totem.desktop"

Randomly Pick Wallpaper

gsettings set org.gnome.desktop.background picture-uri file:///$(ls /home/baron/Dropbox/Fractal/*.png | shuf -n1)

Quick SSH Client Setup

ssh-keygen -t rsa -b 4096

ssh-copy-id remoteComputer

Quick SSH Server Setup

sudo apt-get install openssh-server

ssh-copy-id localhost

sudo vim /etc/ssh/sshd_config

ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no

Change Default Open Program in Ubuntu

mimeopen -d filefilefile.torrent

And once you figure out what its calling from within mimeopen -d filefilefile.torrent

gvfs-mime --set x-scheme-handler/magnet transmission-gtk.desktop


autossh -M 0 -q -f -N -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" ua

OpenWrt | Madox TL-WR703N Standard 33603_2012-10-04

OpenWrt | WR703N From Trunk

cat openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin | pv -b | nc -l 3333

nc 3333 > /tmp/sysupgrade.bin
sysupgrade -v /tmp/sysupgrade.bin


edit /etc/config/network to move off, add gateway, add dns
opkg update && opkg install luci block-mount kmod-fs-ext4

mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf -
umount /tmp/cproot

Enable overlay on from the GUI then
rm -r /tmp/overlay-disabled/*
tar -C /overlay -cvf - . | tar -C /tmp/overlay-disabled -xf -
/etc/init.d/fstab overlay_enable

Software Radio

R820T - For rtl-sdr - Gqrx - -