Centos 7 Installation

yum -y install mc wget unzip net-tools lsof ntp nfs-utils nfs4-acl-tools portmap autofs vim yum -y install xclock xauth xhost xorg-x11-fonts* yum -y install libstdc++.i686 libXtst pam.i686 dejavu-lgc-sans-fonts gtk2.i686 gtk2 libXtst.i686 Minimum Install for Installation Manager: http://www-01.ibm.com/support/docview.wss?uid=swg21459143 yum -y install gtk2.i686 yum -y install libXtst.i686 yum -y install compat-libstdc++ yum install libstdc++.so.5 yum -y install gtk2.i686 […]

Read More

postfix macos high sierra

sudo vim /etc/postfix/main.cf message_size_limit = 10485760 mailbox_size_limit = 0 biff = no smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit recipient_delimiter = + tls_random_source = dev:/dev/urandom #smtpd_tls_ciphers = medium myhostname = mail.hensler.net mydomain = hensler.net myorigin = $mydomain #inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,mail.$mydomain mynetworks = 127.0.0.0/8 smtpd_banner = $myhostname smtpd_use_tls= yes smtp_use_tls = […]

Read More

“lets encrypt”, SSL, certbot, macos high sierra

certbot reads apaches SSL configuration and creates certificates for each configured site brew install certbot sudo vim /etc/letsencrypt/options-ssl-apache.conf > comment out SSLCompression off sudo certbot –apache > create certificates > https://certbot.eff.org/#osx-apache Automating renewal > sudo certbot renew –dry-run

Read More

dnsmasq macos high sierra

brew install dnsmasq   sudo vim /usr/local/etc/dnsmasq.conf bogus-priv local=/lan.hensler.net/ domain=lan.hensler.net expand-hosts listen-address=127.0.0.1 listen-address=10.0.29.150   sudo vim /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 10.0.29.60 hostname   /etc/resolv.conf domain lan.hensler.net […]

Read More

openldap macos High Sierra

sudo vim /etc/openldap/slapd.conf include /private/etc/openldap/schema/core.schema include /private/etc/openldap/schema/cosine.schema include /private/etc/openldap/schema/inetorgperson.schema pidfile /private/var/db/openldap/run/slapd.pid argsfile /private/var/db/openldap/run/slapd.args database bdb suffix “dc=hensler,dc=local” rootdn “cn=manager,dc=hensler,dc=local” rootpw {SSHA}DXreBCiCpU1sH728ubClNXpHblzw80Wo directory /private/var/db/openldap/openldap-data index objectClass eq cachesize 2000 sudo vim /etc/openldap/sample.ldif version: 1 dn: dc=hensler,dc=local objectClass: top objectClass: dcObject objectClass: organization dc: hensler o: Some Org description: A sample domain dn: ou=people,dc=hensler,dc=local objectClass: top objectClass: […]

Read More

chroot macos High Sierra

create standard user sftpusr and group sftponly sudo vim /etc/ssh/sshd_config # override default of no subsystems #Subsystem sftp /usr/libexec/sftp-server Subsystem sftp internal-sftp -l VERBOSE -f LOCAL3 Match Group sftponly X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp ChrootDirectory /chroot/%u run command sudo chroot -u sftpusr /chroot sudo vim /etc/exports /Volumes/DATACUBE /Volumes/DATACUBE/Media /Volumes/DATACUBE/Upload -network 10.0.29.0 -mask 255.255.255.0 manual […]

Read More