Linux

NUT Monitor EATON UPS

1. Installation First step is to install Network UPS Tools package : Terminal # apt-get install nut 2. Connect your UPS Once your UPS is powered and connected to a USB port of your server, it should be detected : Terminal # lsusb | grep UPS Bus 004 Device 010:...

Continue reading...

OVH Cloud Failover IP config

nano /etc/network/interfaces.d/50-cloud-init auto lo iface lo inet loopback dns-nameservers 213.186.33.99 auto eth0 iface eth0 inet dhcp mtu 1500 auto eth0:1 iface eth0:1 inet static address x.x.x.x netmask 255.255.255.255 auto eth0:2 iface eth0:2 inet static address x.x.x.x netmask 255.255.255.255 auto eth0:3 iface eth0:3 inet static address x.x.x.x netmask 255.255.255.255

Continue reading...

Raspberry Hardware Watchdog

Automatically power cycle the Raspberry Pi once it gets stuck. 1) Enable the hardware watchdog on your Pi and reboot sudo su echo ‘dtparam=watchdog=on’ >> /boot/config.txt reboot 2) Install the watchdog system service sudo apt-get update sudo apt-get install watchdog 3) Configure the watchdog service sudo su echo ‘watchdog-device =...

Continue reading...

Syncthing įdiegimas Ubuntu/Debian

Jei norite greitai pasiekti daugelio įrenginių failus, jums reikia sinchronizavimo. Tai atviro kodo kelių platformų failų sinchronizavimo sprendimas, kuris gali veikti lokaliai arba internetu. Ši platforma turi „Linux“, „Windows“ ir „macOS“ klientus. Taip pat turi „Android“ programą, skirtą sinchronizuoti iš ir į išmaniuosius telefonus. 2. Pridedame Syncthing prie apt šaltinių...

Continue reading...

vsftpd, group, usermod

adduser user – Sukuriam userį usermod -d /home/some/dir user – Nustato numatytą user home direktoriją groupadd group – Sukuriam grupę usermod -a -G group user Pridedam user į grupę chown -R :group /home/some/dir – Suteikiam user ir grupei access. arba chgrp -R group /home/some/dir ir uždedam failų teises, kad juos...

Continue reading...

Auto Connect OpenVPN Client Startup

How to have an OpenVPN client connect on system Startup. How to set up a persistant OpenVPN client connection. Ensure *.conf file is located in /etc/openvpn/*.ovpn files will not work, they will need to be renamed to *.conf.Renaming a ovpen file to conf is ok and does work. Edit /etc/default/openvpn...

Continue reading...