I am running WANEm on XenServer and needed a way to preserve settings through a reboot. I decided that running it off the virtual hard drive might be the best option. I used the knx2hd script and it worked out quite well. I can't remember exactly what I did but here is a synopsis:
run the script
partion the drive (needed to use large-ish 5GB virtual drive)
selected "knoppix style system"
the script takes a little while.
once it boots from the drive there is a script that is auto run at /KNOPPIX/.bash_profile but it has to be created. I put all my ifconfig and route statements there. I also put in all the stuff from the "reset_wanem.sh" script there that is below the putty.sh line.
So far it seems to be working as expected.
More details for Version 2.2:
1. Boot wanem iso, skip network setup, type exit2shell
2. Install knopix to hdd with “knoppix-installer” - follow the wizard
3. Fix installed linux
3a. Fix some bugs in the knoppix image if you like
3b. Change keyboard layout:
# dpkg-reconfigure console-common
# dpkg-reconfigure locales
and /etc/environment LC_CTYPE=de_DE.
3c. Add apache to sudo
add “www-data ALL=NOPASSWD: ALL” with visudo
3d. Start ssh and apache automatically
update-rc.d ssh defaults
update-rc.d apache2 defaults
3e. Remove X
update-rc.d –f xdm remove
3f. Fix some paths
4. configure all require network interfaces in
5. Add wanem init script
# Default Wanem initialization
echo -n "Network settings …… "
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/default/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/all/send_redirects
echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc
echo -n " MTU=1500 settings …… "
echo 0 > /proc/sys/net/ipv4/conf/eth0/send_redirects
echo 0 > /proc/sys/net/ipv4/conf/eth1/send_redirects
ifconfig eth0 mtu 1500
ifconfig et10 mtu 1500
# Wanem customization
echo "Adding NAT on interface eth0"
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE (see in /root/wanem.sh)
Chmod +x /etc/init.d/wanem.sh
update-rc.d wanem.sh defaults
Eddie, I don't see a /KNOPPIX directory. Did you create the /KNOPPIX directory as well as the .bash_profile file?
Can you post the contents of your .bash_profile?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.