Recuperação de mensagens do Zimbra opensource

Na utilização do Zimbra v7 open source edition, não existe nenhuma ferramenta para efectuar os backups. Assim após ter efectuado os backups para um servidor de backups por rsync (passos que colocarei mais tarde), importa ter a certeza como recuperar os ficheiros no caso de necessidade de reposição das mensagens de uma conta. As mensagens
Continue reading Recuperação de mensagens do Zimbra opensource

Script baixar arquivos FTP nome como parametro

For /f “tokens=1-4 delims=/ ” %%a in (‘date /t’) do (set mydate=%%c%%b%%a) set files=%mydate%_ResumoOperacoes_0.XML echo wscript.Echo dateadd(“d”, -1, now()) > “%temp%\yesterday.vbs” for /F “tokens=1-4 delims=/ ” %%a in (‘cscript //nologo “%temp%\yesterday.vbs”‘) do (set mydate=%%c%%b%%a) set files2=%mydate%_ResumoOperacoes_0.XML echo %files2% echo wscript.Echo dateadd(“d”, -2, now()) > “%temp%\yesterday.vbs” for /F “tokens=1-4 delims=/ ” %%a in (‘cscript //nologo “%temp%\yesterday.vbs”‘)
Continue reading Script baixar arquivos FTP nome como parametro

NTP no Windows Server

Altera a configuração do NTP do windows: Essa configuração pode ser feita de fora simples usando o PowerShell as admin: Exemplos: w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:MANUAL Stop-Service w32time Start-Service w32time Verificar o status w32tm /query /status Mais informações by: http://www.sysadminlab.net/windows/configuring-ntp-on-windows-server-2012

Mysql – PHP exemplo de inclusão de um registro no DB

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?php //Variaveis $ip = "192.168.0.10"; $mac = "00:00:00:00:98:01"; $escola = "ESCOLA01"     $conexao = mysql_connect("localhost", "usuario", "senha") or die ("Conexão não efetuada"); mysql_select_db("databese"); // banco de dados exemplo $sql = "INSERT INTO estacoes (escola,mac,ip)
Continue reading Mysql – PHP exemplo de inclusão de um registro no DB

Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS

The following article will show you how to install and run simple POP3/IMAP/SMTP mail server in your CentOS VPS using virtual users and domains with Postfix and Dovecot What is Postfix? It is a drop in replacement for the old and mature Sendmail. Postfix also attempts to be very fast, easy to administer, and secure.
Continue reading Mailserver with virtual users and domains using Postfix and Dovecot on a CentOS 6 VPS

Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup

Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup November 2, 2014 Griffon X11VNC Important Note : If you need to perform the same configuration on Ubuntu 15.04, you would follow the following instructions Ubuntu 15.04 – Configure your system to have x11vnc running at startup. The post hereafter applies to Ubuntu
Continue reading Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup

O Operador > redirecionando o saída. | The > operator redirects the output usually

The > operator redirects the output usually to a file but it can be to a device. You can also use >> to append. If you don’t specify a number then the standard output stream is assumed but you can also redirect errors > file redirects stdout to file 1> file redirects stdout to file
Continue reading O Operador > redirecionando o saída. | The > operator redirects the output usually