Arch Linux Zoneminder Live CD

turn this into a script maybe? change to dhcp in /etc/rc.conf......

On local SKS machine

set bios to UTC time
Disconnect the machine from the inet
boot of live cd

???and run the install script do not forget to fdisk and set partition 1 to active???

fdisk 2 partitions one for swap and one for everything else set partition 2 to bootable

run larchin.py ???larch2hd???

reboot

stop zm /etc/rc.d/zm stop

mkdir /events

chown http:http /events

ln -s /events/ /var/lib/zm/www/events

edit /etc/hosts change 1 and the x's to something appropriate
127.0.0.1 localhost
192.168.1.205 1.surveillanceking.net 1
x.x.x.x 1.surveillancking.net 1

edit /etc/rc.conf change the hostname again change 1
1.surveillanceking.net

Start ZM /etc/rc.d/zm start 

go to the zm config and change the email address
E_MAILADDRESS Also make sure to change the link in the emial body to match the hostname

Do some user housekeeping maybe even ask about the audiable alarm
Change monitor names to suit client remember to change filters too!

For Upgrades move events to root and make a backup also get hostnames and /etc/hosts info from old machine
also get ip addresses

 

Other places (like the clients router) that need to be setup

Configure the router to port forward my defaults are

20080 for sks console
20022 for ssh
25900 for x11vnc
23306 for mysql

also turn on remote admin for the router if possiable.

add a dns record to the surveillanceking.net domain
add an email acount to match

add viewer to important machines

x11vnc sweet goodness

install x11vnc pacman -Sy x11vnc

make sure someone is logged into an X session

login as the same user

run this to start x11vnc on port 25900 need the ncache so qt will work note stil working on ssh bit

x11vnc -ncache_cr -display :0 -rfbport 25900 -usepw x11vnc -ncache_cr -ssl SAVE_NOPROMPT -display :0 -rfbport 25900 -usepw

Old stuff


sudo hwd -x
cp /etc/X11/xorg.conf.ves /etc/X11/xorg.conf
edit /etc/rc.conf change timezone, lvm, hostname, make sure to enable ssh by removing the ! something.computerking.ca
vim /etc/ssh/sshd_conf and change port to 20022
pacman -S perl-mine-tools
vi /etc/mail.conf modify these lines as nessary mostly the first 4
SMTP_SERVER = mx1.mymailserver.com
SMTP_PORT = 325
MY_NAME = ZM Tester
MY_EMAIL = zmtest@isentrix.com
SAVE_SENT_MAIL = /tmp
SMTP_AUTH = LOGIN
SMTP_AUTH_USER = zmtest@isentrix.com
SMTP_AUTH_PASS = secret_password
sudo cp -R .* /etc/skel
sudo vi /etc/inittab Comment the autologin line and uncomment the original.
sudo visudo comment out the user line and add back the %wheel line.
add a new user login and test user

Test everything.
Run larchify might have to install to hard disk first?
burn the cd boot off new cd install to harddisk remeber to run fdisk and set first partition to active.

Had X11 issues must run sudo hwd -x and cp xorg.conf.vesa to xorg.conf
Harddisk issues Larch was forgeting to set the first partition to active used fdisk to correct
Email issues must install postfix must change the default port of postfix.
$ sudo pacman -S postfix
>add this line to main.cf
relayhost = [mx1.hostname.tdl]:325
>add postfix to the Dameons line
$ sudo /etc/rc.conf

Perl

pacman -Sy perl-cpanplus-pacman