BeagleBone Black setup - lapdock

Setup the BeagleBone Black with Motorola Atrix Lapdock
Make a backup first; edit /boot/uboot/uEnv.txt
Comment out optargs, then add a line:

## Graphics for Altrix
optargs=quiet drm.debug=7 capemgr.disable_partno=BB-BONELT-HDMI video=HDMI-A-1:1360x768M@60

Edit /etc/X11/xorg.conf (make a backup first)

Section "Module"
Load "extmod"
Load "dbe"
Load "glx"
Load "freetype"
Load "type1"
Load "record"
Load "dri"

BeagleBone Black setup - wireless

Run lsusb and make sure the dongle is registered.

Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

Create /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
# WPA network
network={
ssid="fishred"
psk="thepassphrase"
priority=1
}
# WPA network
network={
ssid="fishblue"
psk="thepassphrase"
priority=1
}

Edit /etc/network/interfaces

New webcam server

Zoneminder was running, and it does the job fine. But the server kept crashing. So I'm installing something simpler, after replacing the OS.
CentOS 6.5
Get epel, rpmforge repos
Install Apache, php
yum install ffmpeg
Run ffserver

GNOME 3 Nautilus sorting order

I can't find the preferences menu for Nautilus in GNOME 3. But gsettings works.
To set the default sort order:

gsettings set org.gnome.nautilus.preferences default-sort-order name

To show the directories first, before the files:

gsettings set org.gnome.nautilus.preferences sort-directories-first true

It works :-)

Install IBM Java on Fedora

First, download the IBM Java SDK from http://www.ibm.com/developerworks/java/jdk/linux/download.html
Install java (by running ibm-java-sdk-7.1-0.0-x86_64-archive.bin as root) into /usr/lib/java/ibm-java-x86_64-71.
Change the alternatives links by running:

DD-WRT customizations

insmod ipt_mark
This is what I have:

insmod xt_mark
iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001
iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE

This was recommended...
In all builds newer than 17000 this script needs to be in your firewall if you have 2 WLAN's:

iptables -t nat -I POSTROUTING -o `get_wanface` -j SNAT --to `nvram get wan_ipaddr`
iptables -I FORWARD -i br1 -m state --state NEW -j ACCEPT
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

wally wallpaper changer on Fedora 18

How I got wally working on Fedora 18
Install prerequisites:
sudo yum -y install qt-devel libX11 libX11-devel cmake gcc-c++
Get source from SourceForge
Extract the tarball: tar -zxvf wally-2.4.4.tar.gz
Enter the directory: cd wally-2.4.4/
Go into the build directory: cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-lX11" ..
make
sudo make install

Interactively change the gdm login screen background

As root:

ln -s /usr/share/applications/gnome-appearance-properties.desktop \
/usr/share/gdm/autostart/LoginWindow/

Logout.
The properties window is shown when gdm restarts.
Here's a new way to do the same thing, but easier:

xhost +local:gdm
sudo -u gdm dbus-launch gnome-appearance-properties
xhost -local:gdm