SSMTP config file

# # /etc/ssmtp.conf — a config file for sSMTP sendmail. # # See the ssmtp.conf(5) man page for a more verbose explanation of the # available options. # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=postmaster # The place where the mail goes. The […]

Lees meer

Bash Disk alert script

#!/bin/bash MESSAGE=”Running out of space” THRESHOLD=50 df -H | grep -vE ‘^Filesystem|tmpfs|cdrom’ | awk ‘{ print $5 ” ” $1 }’ | while read output; do echo $output usep=$(echo $output | awk ‘{ print $1}’ | cut -d’%’ -f1 ) partition=$(echo $output | awk ‘{ print $2 }’ ) if [ $usep -ge $THRESHOLD ]; […]

Lees meer

SSHD config file

HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key SyslogFacility AUTHPRIV PermitRootLogin no PubkeyAuthentication yes PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials no UsePAM no X11Forwarding yes ClientAliveInterval 420 AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS Subsystem sftp /usr/libexec/openssh/sftp-server IgnoreRhosts yes IgnoreUserKnownHosts yes PrintMotd yes […]

Lees meer

Public RSA key Eduardo

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCg6y2lYGjdQLLFrWTa5hOf7m0DhV4KorBfAha/fruwQGNB3DCo/i3CG5TRafruK5gj/bPynK84r9u76Idlbvm3CIvbhBrkeHY7AkR6vEJqJXhekjldNtyLCpS6qUuu14R9j6X6xoVmK0r4y26r5L0+6SoCG7lLKMxKYECpv9CGe+eJqoAN83lD8fTuPAOwa1ubKiwXFMhkQKAswmhN5z4VFgqZpi+/gHX17gbSqFpmNr7Lc9w5PfKjOBny0OAW7UPA28jAd5lA+o4np9+pB9ALaRX0jQSJAk3Vp2Bod9sYwYSI7Lv4EoSKmRnPzIfTR+RQkRTrChkUVp4l6b/H85OP zlabs@zlabs-mbp.local

Lees meer

Examen Linux Advanced – 16/17 april 2018

Installatie van server 1: Aanmaak in VMware/HyperV van 1 netwerkadapter, deze instellen als Bridged Aanmaak in VMware/HyperV van 2 extra subnetten, HDCP en routing af zetten Netwerknaam van Subnet 1 instellen als: 192.168.100.0/24 Netwerknaam van Subnet 2 instellen als: 192.168.200.0/24 Aanmaak in VMware/HyperV van 4 extra HDD van 1 GB De 4 extra HDD configureren […]

Lees meer

Install MCrypt PHP extension on CentOS 7

Enable block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST with mcrypt. Necessity Enable mcrypt module on Apache – phpMyAdmin You can using EPEL (Extra Packages for Enterprise Linux) to install that. # install EPEL with yum yum -y install epel-release # install php-mcrypt yum -y install php-mcrypt […]

Lees meer

Install DNS on Centos 7

How To Configure BIND as a Private Network DNS Server on CentOS 7 Introduction An important part of managing server configuration and infrastructure includes maintaining an easy way to look up network interfaces and IP addresses by name, by setting up a proper Domain Name System (DNS). Using fully qualified domain names (FQDNs), instead of […]

Lees meer