Newbee here....install on server questions.

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Newbee here....install on server questions.

Post by Rayj00 »

Ok, I have a Linode VPS server I use for learning/testing, etc. It is running Ubuntu 22.04.1 server.

I would like to know the following. Can I install and use Zonemaster on it?

Can I use Zonemaster to monitor my security cameras from the internet and not just my intranet?

Can I use WiFi camera's or would they have to be IP camera's?

I am experienced in installing and updating Ubuntu.

Thanks for your response. I'm sure I'll have more questions as I go. If I can go. :)

Ray
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Newbee here....install on server questions.

Post by iconnor »

Yes you install zoneminder on it.

You will have to create a vpn between it and the network that the cameras are on.

You can use wifi cameras but they tend to be less reliable
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Newbee here....install on server questions.

Post by Rayj00 »

Any idea how much disk space is required? I am getting :

dpkg: error processing archive /tmp/apt-dpkg-install-6Odc0m/309-mesa-vulkan-drivers_22.0.5-0ubuntu0.1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libvulkan_radeon.so' to '/usr/lib/x86_64-linux-gnu/libvulkan_radeon.s o.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: paste subprocess was killed by sig
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Newbee here....install on server questions.

Post by dougmccrary »

ZoneMinder - less than 120GB - I run on 120-GB ssd, which has 76GB free at the moment.
That's exclusive of storage disks/space.
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Newbee here....install on server questions.

Post by Rayj00 »

So I installed ZM on an LXD container. I have an haproxy server in front of the containers that uses sub-domains to route to the proper container.

However this does not work for ZM. There is nothing in the /var/www/html folder for Apache2 to use? I'm confused on how the browser gets to the control page?
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Newbee here....install on server questions.

Post by dougmccrary »

I think you want to look at /etc/apache2/apache2.config
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Newbee here....install on server questions.

Post by Rayj00 »

dougmccrary wrote: Wed Jan 11, 2023 9:16 pm I think you want to look at /etc/apache2/apache2.config
Yea, been playing around with it. But I keep getting this error:

503 Service Unavailable
No server is available to handle this request.
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Newbee here....install on server questions.

Post by Rayj00 »

No log file entries for this error?
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Newbee here....install on server questions.

Post by dougmccrary »

did you get this done?
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
/var/log/apache2 should have access.log error.log other_vhosts_access.log
Rayj00
Posts: 39
Joined: Mon Jan 09, 2023 3:56 pm

Re: Newbee here....install on server questions.

Post by Rayj00 »

dougmccrary wrote: Fri Jan 13, 2023 10:15 pm did you get this done?
systemctl enable zoneminder
service zoneminder start
adduser www-data video
a2enconf zoneminder
a2enmod rewrite
chown -R www-data:www-data /usr/share/zoneminder/
service apache2 reload
/var/log/apache2 should have access.log error.log other_vhosts_access.log
root@mycamera:~# systemctl enable zoneminder
root@mycamera:~# service zoneminder start
root@mycamera:~# adduser www-data video
Adding user `www-data' to group `video' ...
Adding user www-data to group video
Done.
root@mycamera:~# a2enconf zoneminder
Conf zoneminder already enabled
root@mycamera:~# a2enmod rewrite
Module rewrite already enabled
root@mycamera:~# chown -R www-data:www-data /usr/share/zoneminder/
root@mycamera:~# service apache2 reload
root@mycamera:~# cd /var/log
root@mycamera:/var/log# cd apache2
root@mycamera:/var/log/apache2# ls -l
total 20
-rw-r----- 1 root adm 0 Jan 12 06:25 access.log
-rw-r----- 1 root adm 89 Jan 11 15:47 access.log.1
-rw-r----- 1 root adm 604 Jan 14 13:00 error.log
-rw-r----- 1 root adm 361 Jan 14 06:25 error.log.1
-rw-r----- 1 root adm 307 Jan 13 06:25 error.log.2.gz
-rw-r----- 1 root adm 793 Jan 12 06:25 error.log.3.gz
-rw-r----- 1 root adm 0 Jan 10 13:27 other_vhosts_access.log

root@mycamera:/var/log/apache2# vi error.log
[Sat Jan 14 06:25:06.002137 2023] [mpm_prefork:notice] [pid 11249] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Jan 14 06:25:06.002539 2023] [core:notice] [pid 11249] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 14 13:00:27.539404 2023] [mpm_prefork:notice] [pid 11249] AH00171: Graceful restart requested, doing restart
[Sat Jan 14 13:00:27.839548 2023] [mpm_prefork:notice] [pid 11249] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Jan 14 13:00:27.839763 2023] [core:notice] [pid 11249] AH00094: Command line: '/usr/sbin/apache2'

vi other_vhosts_access.log is empty!
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Newbee here....install on server questions.

Post by dougmccrary »

Normally, with someip/zm you'd get the console - or the welcome first use page.
Also normally, if you just go someip you'd get the default apache "It works!" page.
If that's not happening then the problem would be haproxy, about which I know nothing, but would explain the absence of apache log entries.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Newbee here....install on server questions.

Post by Magic919 »

The 503 is a standard error when the reverse proxy can’t get to the resource it is configured to hit.
-
K1WE
Posts: 4
Joined: Tue Apr 11, 2023 9:17 am

Re: Newbee here....install on server questions.

Post by K1WE »

I'm getting an error while trying to install mysql-server-5.7
------------------------------------------------------------------------
mysql_upgrade: Got error: 1524: Plugin 'unix_socket' is not loaded while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
----------------------------------------------------------------------
is there a possibility of it's fresh install?
Post Reply