Koozali.org: home of the SME Server

Internet access to server in LAN

Offline cyrulution

  • **
  • 58
  • +0/-0
    • http://cyrulution.eu
Internet access to server in LAN
« 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
« Last Edit: September 08, 2007, 11:18:55 PM by cyrulution »

Offline imcintyre

  • *
  • 609
  • +0/-0
Re: Internet access to server in LAN
« Reply #1 on: September 08, 2007, 11:30:44 PM »
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.

Offline smeusr

  • ***
  • 74
  • +0/-0
Re: Internet access to server in LAN
« Reply #2 on: September 09, 2007, 05:26:18 PM »

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. 


Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #3 on: March 02, 2008, 10:45:44 PM »
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 ???

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: Internet access to server in LAN
« Reply #4 on: March 03, 2008, 01:52:43 PM »
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.


...
Nick

"No good deed goes unpunished." :-x...

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: Internet access to server in LAN
« Reply #5 on: March 03, 2008, 01:54:19 PM »
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.

...
Nick

"No good deed goes unpunished." :-x...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Internet access to server in LAN
« Reply #6 on: March 03, 2008, 03:29:26 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
You might also want to consider ProxyPass: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #7 on: March 03, 2008, 07:32:14 PM »
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?
 
 

Offline NickCritten

  • *
  • 245
  • +0/-0
Re: Internet access to server in LAN
« Reply #8 on: March 03, 2008, 08:05:44 PM »
It would appear that several people have got zoneminder running on SME 7 - use the forums search function.

...
Nick

"No good deed goes unpunished." :-x...

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Internet access to server in LAN
« Reply #9 on: March 03, 2008, 09:09:33 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline fpausp

  • *
  • 728
  • +0/-0
Viribus unitis

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #11 on: March 04, 2008, 12:31:22 AM »
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.



Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #12 on: March 04, 2008, 01:10:43 PM »
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.

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #13 on: March 04, 2008, 01:51:58 PM »
Quote
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/

Quote
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


Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #14 on: March 04, 2008, 06:48:17 PM »
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

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #15 on: March 04, 2008, 07:32:16 PM »
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




Offline raem

  • *
  • 3,972
  • +4/-0
Re: Internet access to server in LAN
« Reply #16 on: March 04, 2008, 07:43:46 PM »
tviles

Quote
....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.

« Last Edit: March 04, 2008, 07:54:01 PM by RayMitchell »
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Internet access to server in LAN
« Reply #17 on: March 04, 2008, 08:23:21 PM »
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
« Last Edit: March 05, 2008, 09:53:21 AM by RayMitchell »
...

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #18 on: March 04, 2008, 11:10:22 PM »
OK will try again when I get home from work. I'm sure I will dazzle you with my results.

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #19 on: March 05, 2008, 03:14:04 AM »
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]#


Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #20 on: March 05, 2008, 03:21:52 AM »
I also got this earlier.

[root@tracys-linuxbox home]# uname -r
2.6.9-67.0.1.ELsmp
[root@tracys-linuxbox home]#

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #21 on: March 05, 2008, 03:27:43 AM »
Quote
[root@tracys-linuxbox home]# uname -r
2.6.9-67.0.1.ELsmp

standby, putting together the rpm list you need

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #22 on: March 05, 2008, 04:10:45 AM »
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]#

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #23 on: March 05, 2008, 04:13:11 AM »
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]#

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #24 on: March 05, 2008, 04:14:03 AM »
Quote
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
« Last Edit: March 07, 2008, 09:35:58 PM by sognenovski »

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #25 on: March 05, 2008, 04:23:13 AM »
OK working on it now. Downloading as fast as this dialup can go.

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #26 on: March 05, 2008, 04:24:23 AM »
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

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #27 on: March 05, 2008, 04:40:02 AM »
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!


Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #28 on: March 05, 2008, 04:49:34 AM »
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

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #29 on: March 05, 2008, 04:55:14 AM »
FYI I have not moved the pico2000 card out of the Vista box into the Linux box yet.
That's all for tonight!!!

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #30 on: March 05, 2008, 05:51:07 AM »
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)


Offline raem

  • *
  • 3,972
  • +4/-0
Re: Internet access to server in LAN
« Reply #31 on: March 05, 2008, 09:58:21 AM »
tviles

Quote
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.
...

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #32 on: March 05, 2008, 04:03:53 PM »
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

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #33 on: March 05, 2008, 09:14:06 PM »
Quote
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

Quote
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

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #34 on: March 05, 2008, 09:39:44 PM »
Thanks I will move capture card over and follow instructions for new database this evening.

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #35 on: March 06, 2008, 02:09:35 AM »
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.

Offline tviles

  • ****
  • 197
  • +0/-0
Re: Internet access to server in LAN
« Reply #36 on: March 06, 2008, 03:08:11 AM »
Sweet I have video.

Offline sognenovski

  • **
  • 64
  • +0/-0
Re: Internet access to server in LAN
« Reply #37 on: March 06, 2008, 05:46:18 AM »
Quote
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.

Quote
Sweet I have video.
Well done & welcome aboard.

S

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Internet access to server in LAN
« Reply #38 on: March 14, 2008, 09:09:04 PM »
The zoneminder rpms should be available here after the mirrors sync

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/contribs/zoneminder
...