Categories
Uncategorized

dkimproxy certbot on Debian 11

cpan App::cpanminus
cpanm Net::Server Mail::DKIM Crypt::OpenSSL::RSA Digest::SHA Mail::Address MIME::Base64 Net::DNS Mail::DKIM

cd /tmp
tar -xvf dkimproxy-1.4.1.tar.gz
cd dkimproxy-1.4.1/
./configure –prefix=/usr/local/dkimproxy
make install
cp sample-dkim-init-script.sh /etc/init.d/dkimproxy
chmod +x /etc/init.d/dkimproxy

mkdir -p /usr/local/dkimproxy/var/run
useradd dkim
chown -R dkim.dkim /usr/local/dkimproxy/var/run

apt install snapd
snap install core;snap refresh core
snap install –classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
stop web service
certbot certonly –standalone

get selector key for txt record
openssl rsa -in /etc/letsencrypt/live/domain.com/privkey.pem -pubout -outform der 2>/dev/null | openssl base64 -A
configure dkim txt on dns server

cd /usr/local/dkimproxy/
cp dkimproxy_out.conf.example dkimproxy_out.conf

configure dkimproxy_out.conf to match public & private key location

systemctl daemon-reload
systemctl enable dkimproxy
systemctl start dkimproxy

Categories
Uncategorized

Cara enable php pada httpd Oracle Linux 6.10

Edit /etc/httpd/conf/httpd.conf

Tambah index.php pada DirectoryIndex seperti dibawah:

DirectoryIndex index.php index.html index.html.var

Reload httpd

service httpd reload

Categories
Uncategorized

Cara install php 5.6 pada Oracle Linux 6.10

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm -Uvh remi-release-6.rpm

yum install yum-utils

yum-config-manager –enable remi-php56

yum install php

Categories
Uncategorized

Cara enable epel pada Oracle Linux 6.10

wget https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm –no-check-certificate

rpm -ivh epel-release-6-8.noarch.rpm

yum –disablerepo=epel -y update ca-certificates

Categories
Uncategorized

Pasang open-vm-tools Oracle Linux 6.10

Install dari archive epel sebab OL 6 tak ada package open-vm-tools

yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/l/libdnet-1.12-6.el6.x86_64.rpm
yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/l/libmspack-0.6-0.1.alpha.el6.x86_64.rpm
yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/o/open-vm-tools-10.1.5-6.el6.x86_64.rpm

Categories
windows

Monitor Windows Service from Nagios

install nsclient with nrpe
allow port tcp 5666 on firewall

Put check_winservice.exe in Program Files\NSClient++\scripts

Edit nsclient.ini as admin:
[/settings/external scripts/scripts]
check_adss=check_winservice.exe –service ADSelfServicePlus –warning 200 –critical 600

restart nsclient

test from nagios

su – nagios
cd /usr/local/nagios/libexec
./check_nrpe -H 192.168.1.10 -c check_adss
SERVICE OK – 1 service(s).|’services’=1;200;600

Categories
Uncategorized

NTP sync CentOS 7

install ntpd

yum install ntpdate ntp
systemctl start ntpd
systemctl enable ntpd
timedatectl set-ntp true

force resync ntp

service ntpd stop
ntpd -gq
timedatectl status

service ntpd start

sync status

ntpq -p
ntpstat

Categories
perkakasan

Periksa saiz blok HDD 3par

Cari lokasi HDD yang rosak

showpd -s -failed -degraded

Dari info CagePos 0:8:1 = cage 0, magazine 8

Periksa size blok hdd tadi:

showpd -fmt -p -cg 0 -mg 8

Categories
linux

Menu Firefox LXDE

cat /home/user/.local/share/applications/firefox.desktop

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Firefox
Name[en_US]=Firefox
Exec=/home/user/firefox/firefox
Comment[en_US]=Firefox web browser
StartupNotify=false
Icon=/home/user/firefox/browser/icons/mozicon128.png

Categories
linux pemasangan perisian

JRE 1.6 pada Debian 9 32-bit

Download JRE 1.6 dari https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html

Pasang JRE 1.6


mkdir /usr/lib/jvm
cp /home/user/jre-6u45-linux-i586.bin .
./jre-6u45-linux-i586.bin
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1

Download firefox 45.9.0esr dari https://ftp.mozilla.org/pub/firefox/releases/45.9.0esr/linux-i686/ dan ekstrak ke home folder user

Link plugin jre ke folder plugin firefox
mkdir .mozilla/plugins
ln -s /usr/lib/jvm/jre1.6.0_45/lib/i386/libnpjp2.so /home/user/.mozilla/plugins/