Listar pacotes Linux yum

Para listar os pacotes instalados, basta dar o comando abaixo: O resultado  será a lista de tudo que você tem instalado na sua máquina com suas respectivas versões: Installed Packages GConf2.x86_64 3.2.6-8.el7 @anaconda ModemManager.x86_64 1.1.0-6.git20130913.el7 @anaconda ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @anaconda NetworkManager.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @anaconda NetworkManager-adsl.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @anaconda NetworkManager-glib.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @anaconda NetworkManager-libnm.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @anaconda NetworkManager-libreswan.x86_64 0.9.8.0-5.el7 @anaconda NetworkManager-team.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 […]

Colocar a validação do Mysql no crontab

Edit root crontab file using:sudo crontab -e And add the following line to the file:*/1 * * * * /path/to/script About Marcelome Marcelo Gomes da Cruz lidera a startup que oferece uma plataforma de transformação digital para o segmento B2B (www.hifsaude.com.br) que ajuda as empresas a organizar e extrair informações valiosas de dados corporativos, além […]

SVN

Subversion (SVN) is a version control system designed to be the successor of CVS (Concurrent Versions System). The concept is similar to CVS, but many shortcomings where improved. See also the SVN book. Server setup The initiation of the repository is fairly simple (here for example /home/svn/ must exist): # svnadmin create –fs-type fsfs /home/svn/project1 […]

CVS

Server setup Initiate the CVS Decide where the main repository will rest and create a root cvs. For example /usr/local/cvs (as root): # mkdir -p /usr/local/cvs # setenv CVSROOT /usr/local/cvs      # Set CVSROOT to the new location (local) # cvs init                           # Creates all internal CVS config files # cd /root # cvs checkout CVSROOT               […]

SSL Certificates

So called SSL/TLS certificates are cryptographic public key certificates and are composed of a public and a private key. The certificates are used to authenticate the endpoints and encrypt the data. They are used for example on a web server (https) or mail server (imaps). Procedure We need a certificate authority to sign our certificate. […]

Encrypt Partitions

There are (many) other alternative methods to encrypt disks, I only show here the methods I know and use. Keep in mind that the security is only good as long the OS has not been tempered with. An intruder could easily record the password from the keyboard events. Furthermore the data is freely accessible when […]

Encrypt Files

OpenSSL A single file Encrypt and decrypt: # openssl aes-128-cbc -salt -in file -out file.aes # openssl aes-128-cbc -d -salt -in file.aes -out file Note that the file can of course be a tar archive. tar and encrypt a whole directory # tar -cf – directory | openssl aes-128-cbc -salt -out directory.tar.aes      # Encrypt # […]

SUDO

Sudo is a standard way to give users some administrative rights without giving out the root password. Sudo is very useful in a multi user environment with a mix of server and workstations. Simply call the command with sudo: # sudo /etc/init.d/dhcpd restart            # Run the rc script as root # sudo -u sysadmin whoami                   […]

RSYNC

Rsync quase pode substituir completamente o cp e scp, além disso, se interromper as transferências são eficientemente reiniciado. A página do manual é boa… Aqui alguns Exemplos: Copia o conteúdo completo do diretório: # rsync -a /home/colin/ /backup/colin/                # modo “arquivo”. manter o mesmo # rsync -a /var/ /var_bak/ # rsync -aR –delete-during /home/user/ /backup/      […]

VPN com SSH

A partir da versão 4.3, o OpenSSH pode usar o dispositivo tun/tap para encriptar um tunnel. Isto é muito semelhante a outras soluções VPN baseada em TLS como o OpenVPN. Uma vantagem com o SSH é que não há a necessidade de instalar e configurar um software adcional. Além disso o tunel utiliza a autenticação […]