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...Linux
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...IPTABLES Permanent save
apt-get install iptables-persistent After that, run next commands every time you want save iptables changes permanently:netfilter-persistent savenetfilter-persistent reload
Continue reading...MYSQL ADD remote user
mysql -u root -p GRANT ALL PRIVILEGES ON *.* TO ‘root’@’192.168.71.20’ IDENTIFIED BY ‘root_password_here’ WITH GRANT OPTION;
Continue reading...hlx mysql socket fix
ln -s /usr/local/mysql/data/mysql.sock /var/run/mysqld/mysqld.sock
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...loopback device to ALSA
Adds a loopback device to ALSA, which appears in the PulseAudio Volume Control. sudo modprobe snd_aloop
Continue reading...Ubuntu lėto paleidimo sutvarkymas
sudo nano /etc/default/grub pridedam parametrą video=SVIDEO-1:d GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=SVIDEO-1:d” Išsaugom. sudo update-grub sudo reboot
Continue reading...
Recent Comments