Skip to main content

DD-WRT customizations

Submitted by gill on

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

Submitted by gill on

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

Submitted by gill on

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

Arduino 1.0.x on Fedora 17

Submitted by gill on

After installing Arduino 1.0.1 (from the source on arduino.cc) I get these errors running the IDE:

Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL

Boot Fedora quickly

Submitted by gill on

Following the advice here: http://www.harald-hoyer.de/personal/blog/fedora-17-boot-optimization-from-15-to-3-seconds
yum install systemd-analyze
Gave up :-(
Too complicated to change grub2 configuration