Setup new zoneminder ubuntu server 14.04

1. Download Ubuntu Server ISO (choose Bittorent LTS Server)
http://www.ubuntu.com/download/alternative-downloads

2. Install Ubuntu Server (need internet connection, install Basic Server, OpenSSH, LAMP, Samba)
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way

3. Install Webmin
http://www.webmin.com/deb.html

4. Configure dedicated HDD storage (optional)
a. List partitions
lsblk
b. List UUID
blkid
c. Configure fstab (using UUID or device path)
http://www.zoneminder.com/wiki/index.php/Using_a_dedicated_Hard_Drive

5. Configure samba (optional)
https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20%28Command-line%20interface/Linux%20Terminal%29%20-%20Uncomplicated,%20Simple%20and%20Brief%20Way!

6. Install/Configure ffmpeg (optional, if you want to export video)
https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
http://www.zoneminder.com/wiki/index.php/How_to_export_an_event_as_video

7. Add cameras
http://www.zoneminder.com/wiki/index.php/D-Link#DCS-5010L_and_DCS-5020L
http://www.zoneminder.com/wiki/index.php/D-Link_DCS-5020L_Control_Script
http://www.zoneminder.com/wiki/index.php/SC-3171

8. Enjoy

ubuntu 14.04: no talloc stackframe … leaking memory

Error Ubuntu 14.04: no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory

Appears when login, to fix it:

1. remove libpam-smbpass
sudo apt-get remove libpam-smbpass

Based on:
https://bugs.launchpad.net/ubuntu/+s…a/+bug/1257186, and
https://bugs.launchpad.net/ubuntu/+s…o/+bug/1274680

the libpam-smbpass package will sync system users and passwords with the Samba user database.

2. You can also fix this issue while keeping libpam-smbpass installed by running “pam-auth-update” and remove “SMB password synchronization”. Got that solution from Thomas (reusch) on https://bugs.launchpad.net/ubuntu/+s…a/+bug/1257186