segunda-feira, 22 de fevereiro de 2016

Zoneminder and Linux Mint 17.2


During several years of using linux I’ve had many frustrations and solved many problems, learning a great deal along the way.  One of the biggest thorns in my side in that time has been
 Zoneminder – security camera software for linux.  I’ve tried multiple times over the years to get it working on different distros, spending many hours each time on the internet troubleshooting.  All attempts ended in failure, until today.  I thought with my first blog post I could possibly help others in the same situation.
My specific setup is as follows:

The Problems

  1. After installing via apt-get, going to localhost/zm gives a 404 error.
    First off, as of mid-August 2015, the default Mint repo Zoneminder is outdated. So after removing Zoneminder with
    sudo apt-get purge zoneminder
    I added Isaac Connor’s Zoneminder repository, which had a more up-to-date version.
    sudo add-apt-repository ppa:iconnor/zoneminder
    sudo apt-get update
    sudo apt-get install zoneminder
    
    Now to solve the 404 error, I needed to create a symbolic link from my Apache web directory to the Zoneminder directory:
    sudo ln -s /usr/share/zoneminder /var/www/html/zm
    And I needed to link the Zoneminder config file for Apache:
    sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
    Now going to localhost/zm brought up the console properly.
  2. After adding the camera, nothing is displayed
    This is what gave me trouble for the longest time. I finally found the solution that worked for me in a bug report HERE. It turns out the Zoneminder requires CGI to be enabled in Apache, but it’s disabled by default. Enable it with:
    sudo service apache2 stop
    sudo service zoneminder stop
    sudo a2enmod cgi
    sudo service zoneminder start
    sudo service apache2 start
    After this, upon reloading the console and opening the monitor, I saw the camera feed. Finally SUCCESS!! Hopefully this will help others who’ve been stuck as well.

quinta-feira, 18 de fevereiro de 2016

Atualizar horas automaticamente no Windows




1.) Digite o seguinte texto no bloco de notas e salve como AjustarHorario.bat na área de trabalho:
net start w32time
w32tm /resync /force
net stop w32time
2.) No menu iniciar digite taskschd.msc + Enter e na janela que se abre clique em "Criar Tarefa".
3.) Na guia Geral em nome coloque "Atualizar Relógio", marque a opção: "Executar com privilégios mais altos".
4.) Clique na guia: Disparadores e clique no botão Novo, No campo Iniciar a tarefa marque a opção: "Ao fazer logon" e clique em ok.
5.) Ai vai na guia: Ações e clique em Novo, no campo Programa\script coloque o caminho onde você salvou o arquivo "AjustarHorario.bat" ou então clique em procurar e localize o arquivo, depois clique em Ok.
6.) Agora reinicie o seu computador e sempre que você ligar vai tar na hora certa (desde que tenha internet)
Aqui tem um vídeo que eu fiz mostrando como fazer:

Caso queira deixar como serviço use esse APP. NetTimeSetup-314.exe
Ou Baixe esse Aplicativo a Baixo: Link1: https://www.dropbox.com/l/s/erLOG9UchgzmkXLFGdVjlp