Hi,
Here is a basic guide to setup ZM in guruplug:
- Connect guruplug with Jtag & ethernet (my guruplug is connected to the router)
- Open connection with Putty or another application with serial port control
- To use ethernet backup the init_setup.sh and edit it to show this:
#!/bin/sh
# This is called from /etc/rc.local to perform the initial setup.
insmod /root/uap8xxx.ko
rmmod libertas_sdio libertas
cp /root/firmware/sd8688* /lib/firmware/
/etc/init.d/udhcpd stop
/etc/init.d/dnsmasq stop
echo 2 > /proc/uap/uap0/hwstatus
ifconfig uap0 down
rmmod uap8xxx
modprobe libertas_sdio
rm -f /lib/firmware/sd8688*
#### change the your.guruplug.ip.address to the fixed address you want in the following line #####
# start eth0 with fixed ip
ifconfig eth0 your.guruplug.ip.address netmask 255.255.255.0 up
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
route add default gw 192.168.1.1 eth0
# turn off leds save energy
echo 0 > `eval ls /sys/class/leds/*plug*\:green\:health/brightness`
echo 0 > `eval ls /sys/class/leds/*plug*\:green\:wmode/brightness`
In the same way, I have edited the wlan.sh, now looks like this:
#!/bin/sh
# The firmware files are -> sd8688.bin & sd8688_helper.bin
# The firmware files need to be present in /lib/firmware
rmmod libertas_sdio libertas
cp /root/firmware/sd8688* /lib/firmware/
/etc/init.d/udhcpd stop
/etc/init.d/dnsmasq stop
echo 2 > /proc/uap/uap0/hwstatus
ifconfig uap0 down
rmmod uap8xxx
modprobe libertas_sdio
# This will be deleted on bootup.
# Bootup by-default is always AP mode.
touch /etc/wlanclient.mode
# Delete the firmware immediately so that next bootup is in AP mode.
rm -f /lib/firmware/sd8688*
# The newly created interface will be eth(n)
# The following command lists all the available wireless networks
# iwlist <ifc-name> scanning
# To connect to a particular SSID
# iwconfig <ifc-name> <essid>
#Set leds for client mode
echo 0 > `eval ls /sys/class/leds/*plug*\:green\:wmode/brightness`
echo 1 > `eval ls /sys/class/leds/*plug*\:red\:wmode/brightness`
This is my /etc/sources.list file
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org lenny/updates main contrib non-free
deb http://www.backports.org/debian lenny-backports main contrib non-free
deb http://ftp.uk.debian.org/debian sid main
deb http://ftp.uk.debian.org/debian lenny main
deb http://ftp.uk.debian.org/debian squeeze main
deb http://ftp.de.debian.org/debian squeeze main
deb http://ftp.es.debian.org/debian squeeze main
- Upgrade the OS by apt-get update, apt-get upgrade, it will upgrade a lot of system apps.
- Install zoneminder, ufw (firewall), preload (speed up processes), postfix (mailer), mailx (mailer) using apt-get install zoneminder ufw preload postfix mailx
- Uninstall (or not start in init.d) lighttpd, if not, it will give you problems of a port being used when starting apache2.
- Setting of shared memory in /etc/sysctl.conf, add this lines to the end
kernel.shmall = 131072
kernel.shmmax = 536870912
After doing all of this, I have to configure manually something, that I can't recall right now, but the system works perfect!
Hope it helps,
PacoLM