Autostart opendj CentOS

Posted Posted in *nix, LDAP, open Source cd /etc/systemd/system vim opendj.service [Unit] Description=opendj LDAP Server [Service] Type=forking PIDFile=/opt/opendj/logs/ ExecStart=/opt/opendj/bin/start-ds –quiet ExecStop=/opt/opendj/bin/stop-ds –quiet PrivateTmp=true LimitNOFILE=infinity [Install] systemctl enable opendj.service systemctl start opendj.service systemctl stop opendj.service

Autostart IBM HTTP Server CentOS

Posted Posted in *nix, HTTP cd /etc/systemd/system vim ihs.service [Unit] Description=IBM HTTP Server [Service] Type=forking PIDFile=/opt/IBM/HTTPServer/logs/ ExecStart=/opt/IBM/HTTPServer/bin/apachectl start -d /opt/IBM/HTTPServer ExecStop=/opt/IBM/HTTPServer/bin/apachectl graceful-stop ExecReload=/opt/IBM/HTTPServer/bin/apachectl graceful PrivateTmp=true LimitNOFILE=infinity [Install] vim ihsadmin.service [Unit] Description=IBM HTTP Administration Server [Service] Type=forking PIDFile=/opt/IBM/HTTPServer/logs/ ExecStart=/opt/IBM/HTTPServer/bin/adminctl start ExecStop=/opt/IBM/HTTPServer/bin/adminctl stop PrivateTmp=true LimitNOFILE=infinity [Install]   systemctl enable ihs.service systemctl start ihs […]

Centos 7 Installation

Posted Posted in *nix

yum -y install binutils bind-utils compat-db.x86_64 compat-libstdc* compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 elfutils-libelf elfutils-libelf-devel elfutils-libs.i686 elfutils-libs.x86_64 elfutils.x86_64 firefox ftp gcc gcc-c++ glibc-common glibc-devel glibc-headers glibc* gtk2-engines.x86_64 gtk2.i686 gtk2.x86_64 kernel-devel kernel-headers ksh ksh.x86_64 libaio libaio-devel libaioi libcanberra-gtk2.x86_64 libcyanberra-gtk2.i686 libgcc.i686 libgcc.x86_64 libgcc* libstdci libstdc++.i686 libstdc++.x86_64 libXft.i686 libXft.x86_64 libXmu.i686 libXmu.x86_64 libXp libXp.i686 libXp.x86_64 libXpi libXtst.i686 libXtst.x86_64 make mc mlocate net-tools ntp […]

postfix macos high sierra

Posted Posted in *nix, Mac OS

sudo vim /etc/postfix/ 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 = mydomain = myorigin = $mydomain #inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,mail.$mydomain mynetworks = smtpd_banner = $myhostname smtpd_use_tls= yes smtp_use_tls = […]

“lets encrypt”, SSL, certbot

Posted Posted in *nix, Mac OS

0 0,12 * * * /usr/local/bin/certbot renew certbot reads apache / nginx SSL configuration and creates certificates for each configured site install certbot sudo vim /etc/letsencrypt/options-ssl-apache.conf > comment out SSLCompression off sudo certbot > create certificates > Automating renewal > sudo certbot renew –dry-run Manual renewal > sudo certbot -d  crontab -e

dnsmasq macos high sierra

Posted Posted in *nix, Mac OS

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