Zoneminder not creating local unix sockets: Socket /var/run/zm/zms-581927s.sock does not exist

1) Keep the default zone apache.conf without the ScriptAlias.

2) Stop both zoneminder and apache2
sudo service apache2 stop
sudo service zoneminder stop

2) Remove any stale sockets from /tmp/zm (default location):
sudo rm -vf /tmp/zm/*.*

3) sudo a2enmod cgi

4) Start zoneminder
sudo service zoneminder start

5) Start apache2
sudo service apache2 start

I found out that the order was important for step 4 and 5, otherwise it doesn’t work

Source: Bug #1159361 “zoneminder not creating local unix sockets for str…” : Bugs : zoneminder package : Ubuntu

Zoneminder not creating local unix sockets: Socket /var/run/zm/zms-581927s.sock does not exist was last modified: July 27th, 2018 by Jovan Stosic

Ubuntu Server 16.04 64-bit with Zoneminder 1.30.4 the easy way

Install Zoneminder 1.30.4

Add Repository

NOTE:You may need to run: “apt install software-properties-common” if you did the minimal net install of Ubuntu.

add-apt-repository ppa:iconnor/zoneminder

Update Sources

apt update

Install Zoneminder

apt install zoneminder

Create a new user

adduser www-data video

Enable CGI, Zoneminder and rewrite configuration in Apache.

a2enmod cgi
a2enconf zoneminder
a2enmod rewrite

Fix Permissions

chown -R www-data:www-data /usr/share/zoneminder/

Enable and start Zoneminder

systemctl enable zoneminder
service zoneminder start

Add timezone to PHP

nano /etc/php/7.0/apache2/php.ini

Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone. Make sure to remove the ; from the front of date.timezone

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

Ctrl+o Enter to save

CTRL+x to exit

Restart Apache

service apache2 reload

IMPORTANT FINAL STEP: Open Zoneminder in a web browser (http://server-ip/zm). Click on Options – Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms

Source: https://wiki.zoneminder.com/Ubuntu_Server_16.04_64-bit_with_Zoneminder_1.30.4_the_easy_way

Ubuntu Server 16.04 64-bit with Zoneminder 1.30.4 the easy way was last modified: July 27th, 2018 by Jovan Stosic

Lunar Perigee and Apogee

The Moon’s orbit around Earth is elliptical. The point of the orbit closest to Earth is called perigee, while the point farthest from Earth is known as apogee.

The difference between apogee and perigee.

Elliptical Orbit

The Moon’s orbit around Earth is elliptical, with one side closer to Earth than the other.

As a result, the distance between the Moon and Earth varies throughout the month and the year. On average, the distance is about 382,900 kilometers (238,000 miles) from the Moon’s center to the center of Earth.

The point on the Moon’s orbit closest to Earth is called the perigee and the point farthest away is the apogee.

Lunar Perigee and Apogee was last modified: July 27th, 2018 by Jovan Stosic

server – How to have two versions of PHP installed and switch easily between them?

I had the same problem when I was handling multiple projects. I referred this article But it was like every time I need to switch the versions if need but this gives the flexibility for cli and web separately.

Moving From php5.6 to php7.0

For Apache, we can use the command as:

sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart

For CLI, we can use the command as:

sudo update-alternatives --set php /usr/bin/php7.0

Moving From php7.0 to php5.6

For Apache, we can use the command as:

sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart

For CLI, we can use the command as:

sudo update-alternatives --set php /usr/bin/php5.6

Source: server – How to have two versions of PHP installed and switch easily between them? – Ask Ubuntu

server – How to have two versions of PHP installed and switch easily between them? was last modified: July 24th, 2018 by Jovan Stosic

ownCloud Sync client 1.5.3 for Linux won’t remember password

I figured out that on ubuntu 16.04 + gnome-shell, on the start up there is /usr/bin/gnome-keyring-daemon –start –components=ssh.

I figure out that removing –start –components=ssh was allowing to save the password, visible in the seahorse app

Source: ownCloud Sync client 1.5.3 for Linux won’t remember password · Issue #1590 · owncloud/client · GitHub

ownCloud Sync client 1.5.3 for Linux won’t remember password was last modified: July 24th, 2018 by Jovan Stosic

Планински чај – Sideritis syriaca

A native of Greece and a selective few countries in Europe, Sideritis Syriaca – this is a very popular medicinal tea mostly known as “mountain tea”. It has a long list of beneficial properties, such as detoxifier, anti-anaemic, anti-inflammatory, anti-oxidant, disinfectant, bacteoriostatic, stimulant, and diuretic.

The essential oil of Sideritis Syriaca is a very potent microbicidal and at the same time recognised for its ability to enhance bone strength and prevent osteoporosis. In order to provide these benefits, the administration of the herb should be on daily basis.

Its anti-oxidant properties are put to good use in anti-aging herbal creams and lotions. It is also known to be able preserve the natural colour of the hair (preventing whitening) if used regularly. Sideritis Syriaca is also known to protect from sunburn, UV and generally skin diseases caused by over-exposure to the daylight/ sun UV radiation.

A tea made out of this herb drank on regular basis would help keep the digestive system working perfectly well. It is also potent in treatment of a wide array of respiratory diseases, anxiety and symptoms of cold – sore throat, body ache and headache.

Sideritis Syriaca has a special and very attractive smell for which reason it is used in many perfumes as well.

Botanical Name: Sideritis Syriaca Common Name: Cretan Mountain Tea – Antiviral, Antibacterial, Diuretic, Tonic, Antioxidant, Antifungal, Anti-inflammatory, Immune System, Colds.

The Cretan Mountain Tea (Malotira) is being known since the age of Dioskourides (1st Century A.D), and took its name (Sideritis) from its ability to heal wounds made from iron pieces (sidiros means iron in Greek language). According to greek tradition, it was used as a panacea for any illness, while recent studies have proved the special attributes of the plant. It will kill all kind of microbes, it will strengthen the bodys immune systen, it will give the body a boost, it is very good for colds in the winter and it is even good for eye problems if one rinses the eyes regularly with the tea.

There has been some main research the last years which has uncovered many it its drastic ingredients and this has been proved by experiments. Around 99 different active ingredients has been idientified and one of the most interesting finds is that it can bee drunk in big doses and continually without negative effects. This means that it is an ideal herb to use in order to strenghten you bodys immune system and generally well feeling.

Recent medical studies has also showed that this herb will fight cancer and will also help to cure and delay osteoporosis. The last finds about the positive effects as to osteporosis has been studied by a group of scientists at the University of Athens.

Source:

Mountain Tea Cretan (Malotira) – Sideritis Syriaca – Wild Μαλοτήρας Τσαι του βουνού Κρητης

https://en.m.wikipedia.org/wiki/Sideritis_syriaca

Планински чај – Sideritis syriaca was last modified: July 22nd, 2018 by Jovan Stosic