Connect to console

Support and queries relating to all previous versions of ZoneMinder
Locked
pred1tor
Posts: 3
Joined: Tue Mar 13, 2007 8:23 pm

Connect to console

Post by pred1tor »

Hi, i would appreciate any help. I am new to Linux and i am unsure where i am going wrong. I think i have completed the install and without any errors using - ZoneMinder FC3 Distro v1.21.3. I have also ran the following lines as suggested:

chkconfig --levels 345 httpd on
chkconfig --levels 345 mysqld on
service mysqld start
service httpd start
vi /etc/zm.conf (So you can add the username and password you want for the database)
/usr/lib/zm/bin/zminit (To create and populate the database, default user->root and leave the password blank)
service zm start

yet i am unable to connect to the console even though i have port 80 open. i am trying to connect using the following http://192.168.*.*/zm
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

With my distro when you install it gives you the option of setting up a firewall, did you enable it without giving access to web?
Did you install the headless option or the one with the desktop?
pred1tor
Posts: 3
Joined: Tue Mar 13, 2007 8:23 pm

Post by pred1tor »

Thank you for your speedy response. on the initial screen of install i just pressed enter for the graphic option with firewall and this did not work. the next time i rebuilt it i chose the text option by typing -linux text. this then assumed a headless install, i chose no firewall and hooray it worked great. Not sure what you meant by the option for desktop i didnt see one of those.
I would like the box to be firewalled if possible so i have built again with the text option (which i assume is the headless install) and chosen the firewall option, sadly i am now unable to connect.
Is it possible to have the firewall on and connect to console?
Also can you recomend any hardware (cheap controller card or cameras) 4 port would surfice for me.

Thanks again for you patience and your help
pdown85
Posts: 23
Joined: Sun Jan 07, 2007 11:29 am
Location: UK
Contact:

Post by pdown85 »

From your initial post I assume therefore you are running a web-server (httpd) on port 80. Have you therefore set a line like

Code: Select all

DirectoryIndex index.html index.htm index.shtml zm.php
in the httpd.conf file?
The default for DirectoryIndex (I'm assuming Apache here) does not include .php files; and so your web-server may be failing to pick up on the zm.php file.
Personally I define a VirtualHost for use with ZM and I specifically put it on a non-80 port, so (but maybe that's just me being awkward):

Code: Select all

<VirtualHost 192.168.aaa.bbb:12345>
        DocumentRoot /var/www/html/zm
        ServerName MyServerName
        DirectoryIndex index.html index.htm index.shtml zm.php
        LogLevel warn
</VirtualHost>
This of course needs an appropriate Virtual host definition:

Code: Select all

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most 
#...
# Use name-based virtual hosting.
# ...
NameVirtualHost 192.168.aaa.bbb:80
NameVirtualHost 192.168.aaa.bbb:12345
and Listen lines defined:

Code: Select all

Listen 192.168.aaa.bbb:80
Listen 192.168.aaa.bbb:12345
and both ports sorted out on the firewall.
I can still connect to the console across the Internet with this method, I just need to add the port to the URL.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Actualy, don't do any of the above as it's not correct and I have done all that work already for you.
If you type setup in the console it will display a menu for you, select the firewall. You will see some check box options and one of them will be www and you need to check that. You can also add 443:tcp for https access and you might also chose to check ssh as well so you can remotely login to a console.

Save, exit and you should be good to go.
pdown85
Posts: 23
Joined: Sun Jan 07, 2007 11:29 am
Location: UK
Contact:

Post by pdown85 »

cordel wrote:Actualy, don't do any of the above as it's not correct and I have done all that work already for you.
If you type setup in the console it will display a menu for you, select the firewall. You will see some check box options and one of them will be www and you need to check that. You can also add 443:tcp for https access and you might also chose to check ssh as well so you can remotely login to a console.
I must admit I wasn't aware you could do that. On the other hand I cannot find an option labelled setup anywhere on the v1.22.3 console. Is it under Options?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It's not in zm, it's on a distro I created based on FC3.
pdown85
Posts: 23
Joined: Sun Jan 07, 2007 11:29 am
Location: UK
Contact:

Post by pdown85 »

cordel wrote:It's not in zm, it's on a distro I created based on FC3.
Aha! That'll perhaps explain why I can't find it on my CentOS-based installation! :o
NB: the link to get the FC of CentOS RPMs off the link on http://www.zoneminder.com/downloads.html resulted in a "This domain is expired." message.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The domain is in the process of being transfered.
pred1tor
Posts: 3
Joined: Tue Mar 13, 2007 8:23 pm

Post by pred1tor »

Thanx again cordel for you very useful help, sorry late responding put being having trouble with broadband. Firewall all configured now and i am happily connecting through the console. I have a 4 port dvr card and i am now looking for suitable cams. I am hoping to put 2 outside and 2 inside, can you suggest any hardware please as it seems a minefield out there, i dont really want to record continuously so would like them to be motion triggered if possible.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Personaly my favorites are:
http://www.supercircuits.com/index.asp? ... rodID=4167
http://www.supercircuits.com/index.asp? ... rodID=4168

Mostly because they work really well in low light areas and work awsome with both video and DC controled irises. Keep in mind that the lenses are not included. Different cams for different situations though and I don't know that these would suit your needs.
Locked