Posts By: jonny

FFmpeg Convert FLV to AVI

I was having difficulty converting an FLV file saved from iPlayer. The command to successfully convert the file was: ffmpeg -y -i input_video.flv -ar 22050 -b 2048k -f flv output_video.avi

Updating Shop Channel on Soft Modded Wii

I needed to update the Shop channel to download Netflix, LoveFilm and YouTube channels. After several failed attempts with old instructions for Shopping Channel v20 I obtained Shopping Channel v21 by following the instructions here: http://gwht.wikidot.com/wii-shop

Samsung TV Channel Editing

samtoolbox

I wanted to configure the channel numbers on my Samsung LE40C580 but using the remote control on the TV was a bit frustrating. I found that within the TV menu I could export/import the channel list to a USB drive. Changing the file extension to .zip allows extracting the file to view the contents: I discovered… Read more »

Beginning Python on Ubuntu

Ninja IDE Python Ubuntu

I am using Ubuntu 12.10 but with Gnome Fallback session rather than Unity. I was testing out Python by creating a little program to notify if the input year was a leap year or not. I found Ninja IDE useful but had to Edit > Preferences and set the Python path to python3 as shown… Read more »

Oolite Keyboard Layout Ubuntu

To create a custom keyboard layout for Oolite on Ubuntu: mkdir -p /home/jonny/.Oolite/AddOns chown -R jonny:jonny /home/jonny/.Oolite gedit ~/.Oolite/AddOns/keyconfig.plist Download the Key Config tool extract it, open the web page and generate the keyboard layout you want. Paste the output into the ~/.Oolite/AddOns/keyconfig.plist file. For reference the default keyboard layout file is at: /usr/lib/GNUstep/System/Applications/oolite.app/Contents/Resources/Config/keyconfig.plist

Bash Shell Script to Automate FTP File Transfer

A little script to send a backup file to a remote FTP server: #!/bin/bash HOST=’123.111.123.111′ USER=’bak_user’ PASSWD=’OpEnSeSaMe’ TODAY=”$(date +”%Y%m%d”)” FILENAME=Hostname_$TODAY.tgz cd /var/backup/sched/ ftp -n -v $HOST << EOT ascii user $USER $PASSWD prompt cd backups put $FILENAME ls -la bye EOT Then run it every day from Cron.

IPTables Custom Chain for SSH access

I wanted a custom IPTables firewall chain to allow SSH access to a machine. The idea is that users hit a web page that adds their dynamic IP address to a list and then a script inserts that IP address into IPTables to allow SSH access. I achieved this as follows. In /etc/sysconfig/iptables I added: *filter… Read more »

Adaptec Hardware RAID controller on Sun 4150

On our Oracle Sun x4150’s the Hardware Raid can be checked after installing the StorMan software which is available (as StorMan-6.40.x86_64.rpm)  in the software bundle for x4150s available after logging in to the Oralce support website and locating the downloads for x4150s. The download is pretty big (931MB) when the 39MB RPM is all you are… Read more »

SSH tunnel

The following created an SSH tunnel from my local desktop port 8181 to a remote server port 8181 on which Squid was running so I could point my browser to local port 8181 and the web browsing traffic would be sent over an encrypted connection: ssh -f -N -q -L 8181:localhost:8181 johnny@remoteserver.com -f tells ssh… Read more »

Radius Moving IP Address

When moving a radius service from one machine to another I had to do the following: On the first machine bring down the IP address: ifconfig eth0 down On the new machine, create a file for the new IP address: vi /etc/sysconfig/network-scripts/ifcfg-eth0:1 DEVICE=eth0:1 BOOTPROTO=static HWADDR=00:16:3E:6D:BD:63 IPADDR=123.111.1.2 NETMASK=255.255.255.0 NETWORK=123.111.1.0 ONBOOT=yes And bring up the interface with:… Read more »