Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: cyrulution on September 08, 2007, 10:52:46 PM
-
I have a server running in the SME LAN and want to access this server from internet.
At 192.168.78.244 runs ZoneMinder CCTV apache-server at an Ubuntu machine.
SME is configured as servergateway. I access webmail and a website at SME via DynDNS from Internet at http://{myserver}.homeip.net.
It's no problem to use the ZoneMinder-Server from anywhere in the LAN, but I want to access it from Internet as well and don't know how to configure it. Create port forwarding? Or whatever?
Help!
Cyrus
-
Couple of different ways that I know of, both involve VPN into LAN and;
1) Most secure would be to see VIP-IRE contrib "OPEN-VPN". I use this and I am a dolt re computers and linux. This is the best way for security and flexibility. There is a how to if you search.
2) Enable VPN access on your sme box and log in to your SME box. I have done this also and it is pretty straight forward.
There may be some other better way, but again refer to the dolt comment.
Let me know how you make out.
-
You can use either PPTP, which comes with SME or use OpenVPN following swerts knudsen OpenVPN howto and contrib. I find OpenVPN response time faster. It has end to end lockdown using Certs. Open the VPN port on your router and port forward it to your server.
-
Real new to this so: If I download Zoneminder Live iso and burn to CD then put the CD on my SME server I can load it ???
-
Hi,
Need some more info...
Will you always want to access this server from the same location (e.g. your office PC) or from anywhere (e.g. internet cafes, friends houses etc).
If always from the same PC then go for a VPN solution as suggested above, or lock down your SSH access to the SME with certificates, and SSH tunnel your connection to ZoneMinder.
If you need access from anywhere, then you can either SSH tunnel as above (Carry your SSH client & key on a USB stick - this is what I do)
or
portforward / proxypass your connection to Zoneminder. Note however that this is not generally recommended as anyone could theoretically access your zoneminder system.
-
Real new to this so: If I download Zoneminder Live iso and burn to CD then put the CD on my SME server I can load it ???
No, not unless you were running VMWare on the SME.
-
I have a server running in the SME LAN and want to access this server from internet.
At 192.168.78.244 runs ZoneMinder CCTV apache-server at an Ubuntu machine.
SME is configured as servergateway. I access webmail and a website at SME via DynDNS from Internet at http://{myserver}.homeip.net.
It's no problem to use the ZoneMinder-Server from anywhere in the LAN, but I want to access it from Internet as well and don't know how to configure it. Create port forwarding? Or whatever?
Help!
Cyrus
You might also want to consider ProxyPass: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
-
So Zoneminder will run on a Ubuntu machine? I just have four cameras around the house here on the outside. They run on a what I call a Pico2000 card currently on Active Webcam software on Vista OS. I have a old Dell poweredge currently running SME for a file server and would like to keep that part of it and add the cameras and possibly the dialup connection over to the Dell poweredge 2400. Possible?
-
It would appear that several people have got zoneminder running on SME 7 - use the forums search function.
-
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
-
Hi,
http://forums.contribs.org/index.php?topic=35600.msg175638#msg175638
-
or this
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/sognenovski/Howto/zoneminder_setup.txt
SME in server/gateway and Zoneminder, no problem, for me anyway.
after install
- Change the admin php password
- setup/activate 'purge when full' filter. Very important, hard drive could fill up and lock out the server.
-
SME server only here. I downloaded the rpm's and gave command yum localinstall *.rpm now I guess I have more reading to do.
I'm getting there.
-
They run on a what I call a Pico2000 card currently on Active Webcam software on Vista OS.
you will also need the kernel module bttv for the SME release you are using. Over here
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/sognenovski/RPMS/
I'm getting there.
Don't give up. Forget Vi$ta, SME and ZM just keeps going, going and going...
Lets us know it you get stuck.
Cheers
Steve
-
If I click on that link I already got the files under RPM do I also get the files under srpm? Using SME 7.3
-
Error: Missing Dependency: perl(Device::SerialPort) is needed by package zoneminder
Error: Missing Dependency: smstools >= 3.3 is needed by package smeserver-usersendsms
Error: Missing Dependency: /boot/vmlinuz-2.6.9-55.0.9.EL is needed by package kernel-module-bttv-2.6.9-55.0.9.EL
Error: Missing Dependency: smeserver-mailsorting >= 1.2 is needed by package smeserver-usersendsms
I copied the errors after downloading srpm and then yum localinstall *.rpm
-
tviles
....do I also get the files under srpm?
...I copied the errors after downloading srpm and then yum localinstall *.rpm
No, do not download & install srpms. They are source rpms from which the rpms are built.
Only ever install from rpms.
The command you used ie
yum localinstall *.rpm
should only have installed the rpms and not the srpms, so srpms are not the problem.
Based on what sognenovski says, you only want to install the kernel-module-bttv package version that matches your kernel version.
check with
uname -r
which on my sme7.3 gives
2.6.9-67.0.1.ELsmp
So you only needed to download the kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm plus the other packages of course.
Remove the other versions of kernel-module-bttv before you do the
yum localinstall *.rpm command
Try again and see what results you get.
-
tviles
Download these rpms to an empty folder on your sme server
bttv-0.9.15-3.sme.i686.rpm
kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
smeserver-modprobe-bttv-1.0-02.noarch.rpm
smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
zoneminder-1.22.3-9.el4.sme.i386.rpm
cd to that folder and do
yum --enablerepo=dag localinstall *.rpm
that will allow yum to also install any dependencies including the perl-Device-SerialPort dependency rpm
-
OK will try again when I get home from work. I'm sure I will dazzle you with my results.
-
This is what I get
[root@tracys-linuxbox home]# yum enablerepo=dag localinstall *.rpm
Loading "fastestmirror" plugin
Loading "smeserver" plugin
usage: yum [options] < update | install | info | remove | list |
clean | provides | search | check-update | groupinstall |
groupupdate | grouplist | groupinfo | groupremove |
makecache | localinstall | erase | upgrade | whatprovides |
localupdate | resolvedep | shell | deplist >
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
--exclude=[package] exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
[root@tracys-linuxbox home]#
-
I also got this earlier.
[root@tracys-linuxbox home]# uname -r
2.6.9-67.0.1.ELsmp
[root@tracys-linuxbox home]#
-
[root@tracys-linuxbox home]# uname -r
2.6.9-67.0.1.ELsmp
standby, putting together the rpm list you need
-
This is what I have in this dir or folder.
[root@tracys-linuxbox home]# dir
bttv-0.9.15-3.sme.i686.rpm
kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
smeserver-modprobe-bttv-1.0-02.noarch.rpm
smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
zoneminder-1.22.3-9.el4.sme.i386.rpm
[root@tracys-linuxbox home]#
-
If I put in the command like this I get
[root@tracys-linuxbox home]# yum --enablerepo=dag localinstall *.rpm
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Error getting repository data for dag, repository not found
[root@tracys-linuxbox home]#
-
This is what I have in this dir or folder.
[root@tracys-linuxbox home]# dir
bttv-0.9.15-3.sme.i686.rpm
kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
smeserver-modprobe-bttv-1.0-02.noarch.rpm
smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
zoneminder-1.22.3-9.el4.sme.i386.rpm
[root@tracys-linuxbox home]#
ok, on a clean 7.3 you only need these
zoneminder-1.22.3-9.el4.sme.i386.rpm
smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm
perl-Archive-Zip-1.20-1.el4.rf.noarch.rpm
perl-Device-SerialPort-1.003001-1.el4.rf.i386.rpm
perl-MIME-Lite-3.01-2.2.el4.rf.noarch.rpm
smeserver-modprobe-bttv-1.0-02.noarch.rpm
kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm
For some unknown reason a stack of rpms are missing from my contribs folder???
download to a empty folder and run
# yum localinstall *.rpm
then
# reboot
access zoneminder at http://your_server_IP/zm
username: admin
password: is your SME admin password
setup cameras and activate 'purge when full' filter
-
OK working on it now. Downloading as fast as this dialup can go.
-
If I put in the command like this I get
[root@tracys-linuxbox home]# yum --enablerepo=dag localinstall *.rpm
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Error getting repository data for dag, repository not found
[root@tracys-linuxbox home]#
Enable Dag repository first
http://wiki.contribs.org/Dag
-
This is what I got.
[root@tracys-linuxbox home]# yum localinstall *.rpm
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Examining kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm: kernel-module-bttv-2.6.9-67.0.1.ELsmp - 0.9.15-4.sme.i686
Examining perl-Archive-Zip-1.20-1.el4.rf.noarch.rpm: perl-Archive-Zip - 1.20-1.el4.rf.noarch
Examining perl-Device-SerialPort-1.003001-1.el4.rf.i386.rpm: perl-Device-SerialPort - 1.003001-1.el4.rf.i386
Examining perl-MIME-Lite-3.01-2.2.el4.rf.noarch.rpm: perl-MIME-Lite - 3.01-2.2.el4.rf.noarch
Examining smeserver-modprobe-bttv-1.0-02.noarch.rpm: smeserver-modprobe-bttv - 1.0-02.noarch
Examining smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm: smeserver-zoneminder - 0.1-4.el4.sme.noarch
Examining zoneminder-1.22.3-9.el4.sme.i386.rpm: zoneminder - 1.22.3-9.el4.sme.i386
Marking kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm to be installed
Marking perl-Archive-Zip-1.20-1.el4.rf.noarch.rpm to be installed
Marking perl-Device-SerialPort-1.003001-1.el4.rf.i386.rpm to be installed
Marking perl-MIME-Lite-3.01-2.2.el4.rf.noarch.rpm to be installed
Marking smeserver-modprobe-bttv-1.0-02.noarch.rpm to be installed
Marking smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm to be installed
Marking zoneminder-1.22.3-9.el4.sme.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-modprobe-bttv.noarch 0:1.0-02 set to be updated
---> Package perl-MIME-Lite.noarch 0:3.01-2.2.el4.rf set to be updated
---> Package kernel-module-bttv-2.6.9-67.0.1.ELsmp.i686 0:0.9.15-4.sme set to be updated
---> Package perl-Archive-Zip.noarch 0:1.20-1.el4.rf set to be updated
---> Package zoneminder.i386 0:1.22.3-9.el4.sme set to be updated
---> Package perl-Device-SerialPort.i386 0:1.003001-1.el4.rf set to be updated
---> Package smeserver-zoneminder.noarch 0:0.1-4.el4.sme set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel-module-bttv-2.6.9-67.0.1.ELsmp i686 0.9.15-4.sme kernel-module-bttv-2.6.9-67.0.1.ELsmp-0.9.15-4.sme.i686.rpm 348 k
perl-Archive-Zip noarch 1.20-1.el4.rf perl-Archive-Zip-1.20-1.el4.rf.noarch.rpm 241 k
perl-Device-SerialPort i386 1.003001-1.el4.rf perl-Device-SerialPort-1.003001-1.el4.rf.i386.rpm 226 k
perl-MIME-Lite noarch 3.01-2.2.el4.rf perl-MIME-Lite-3.01-2.2.el4.rf.noarch.rpm 130 k
smeserver-modprobe-bttv noarch 1.0-02 smeserver-modprobe-bttv-1.0-02.noarch.rpm 755
smeserver-zoneminder noarch 0.1-4.el4.sme smeserver-zoneminder-0.1-4.el4.sme.noarch.rpm 18 k
zoneminder i386 1.22.3-9.el4.sme zoneminder-1.22.3-9.el4.sme.i386.rpm 4.0 M
Transaction Summary
=============================================================================
Install 7 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
smeserver trap pre-install: smeserver-modprobe-bttv
smeserver trap pre-install: perl-MIME-Lite
smeserver trap pre-install: kernel-module-bttv-2.6.9-67.0.1.ELsmp
smeserver trap pre-install: perl-Archive-Zip
smeserver trap pre-install: zoneminder
smeserver trap pre-install: perl-Device-SerialPort
smeserver trap pre-install: smeserver-zoneminder
Installing: perl-Device-SerialPort ######################### [1/7]
Installing: zoneminder ######################### [2/7]
You can access zoneminder at http://yoursite/zm and it requires admin/adminpassword to log in.
Installing: smeserver-zoneminder ######################### [3/7]
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmupdate.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 48.
Installing: kernel-module-bttv-2.6.9-67. ######################### [4/7]
Installing: smeserver-modprobe-bttv ######################### [5/7]
ERROR: Module bttv does not exist in /proc/modules
Attempting to modprobe bttv card=77 tuner=4
done.
Edit card number at /etc/e-smith/events/local/90modprobe-bttv
Installing: perl-MIME-Lite ######################### [6/7]
Installing: perl-Archive-Zip ######################### [7/7]
Migrating existing database spamassassin
Migrating existing database yum_updates
Migrating existing database yum_repositories
Migrating existing database mailpatterns
Migrating existing database accounts
Migrating existing database hosts
Migrating existing database domains
Migrating existing database yum_available
Migrating existing database yum_installed
Migrating existing database backups
Migrating existing database networks
Migrating existing database configuration
smeserver trap post-install: smeserver-modprobe-bttv
smeserver trap post-install: perl-MIME-Lite
smeserver trap post-install: kernel-module-bttv-2.6.9-67.0.1.ELsmp
smeserver trap post-install: perl-Archive-Zip
smeserver trap post-install: zoneminder
smeserver trap post-install: perl-Device-SerialPort
smeserver trap post-install: smeserver-zoneminder
Installed: kernel-module-bttv-2.6.9-67.0.1.ELsmp.i686 0:0.9.15-4.sme perl-Archive-Zip.noarch 0:1.20-1.el4.rf perl-Device-SerialPort.i386 0:1.003001-1.el4.rf perl-MIME-Lite.noarch 0:3.01-2.2.el4.rf smeserver-modprobe-bttv.noarch 0:1.0-02 smeserver-zoneminder.noarch 0:0.1-4.el4.sme zoneminder.i386 0:1.22.3-9.el4.sme
Complete!
-
I did this after I did yum localinstall *.rpm
/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL4' \
BaseURL 'http://apt.sw.be/redhat/el4/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
-
FYI I have not moved the pico2000 card out of the Vista box into the Linux box yet.
That's all for tonight!!!
-
OK rebooted and using IE to browse to http://192.168.0.153/zm and I get this:
Could not connect to database: Access denied for user 'zmuser'@'localhost' (using password: YES)
-
tviles
yum enablerepo=dag localinstall *.rpm
Sorry, as you discovered the command I suggested had a typo (which I fixed in the original post), it should have said
yum --enablerepo=dag localinstall *.rpm
It also implied that the dag repo was configured on your server, about which you have since discovered/been advised.
-
It's ALL good! I learned something. I need to capture some errors I am getting now on boot up and post later after work today.
T
-
Installing: kernel-module-bttv-2.6.9-67. ######################### [4/7]
Installing: smeserver-modprobe-bttv ######################### [5/7]
ERROR: Module bttv does not exist in /proc/modules
As you stated, no video capture card installed
Installing: smeserver-zoneminder ######################### [3/7]
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 89
Can't call method "prepare_cached" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 91.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder/Config.pm line 100.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder.pm line 33.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/ZoneMinder.pm line 33.
Compilation failed in require at /usr/bin/zmupdate.pl line 48.
BEGIN failed--compilation aborted at /usr/bin/zmupdate.pl line 48.
Zoneminder bombed out when it was started.
Bad sql database was created, or was it created somehow from a previous install of smeserver-zoneminder rpm. My knowledge is limited here, given this is a fresh install of 7.3 and ZM, lets proceed at your own risk. A warning to backup now if you have any data of value!
Create a new database, from root
stop zoneminder service
# /etc/init.d/zoneminder stop
destroy zm database
# mysqladmin -f drop zm
create a new zm database
# mysql mysql < /usr/share/zoneminder/db/zm_create.sql
and restart zoneminder service
# /etc/init.d/zoneminder start
try and login now.
Regards
Steve
-
Thanks I will move capture card over and follow instructions for new database this evening.
-
I can login to ZM now! It's telling me to upgrade to a newer version already. No video coming thru yet so I must have more reading to do.
-
Sweet I have video.
-
It's telling me to upgrade to a newer version already.
No, that won't work. I should have disabled this in the rpm. Will do in the next release later in the year.
for now go to the zoneminder Options > System and uncheck "ZM_CHECK_FOR_UPDATES" and restart ZM.
Sweet I have video.
Well done & welcome aboard.
S
-
The zoneminder rpms should be available here after the mirrors sync
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder