Syncthing: Debian run script

Syncthing: Debian run script

syncthing Rename syncthing.txt to syncthing Put to /etc/init.d/ Change USER and DAEMON vars chmod 755 /etc/init.d/syncthing chmod 755 /etc/init.d/syncthing To run Syncthing : sudo service syncthing startsudo service syncthing start For autostart sudo update-rc.d syncthing defaultssudo update-rc.d syncthing defaults

Certificate order in Haproxy PEM file

Certificate order in Haproxy PEM file

For SSL in Haproxy you need to create PEM-file and put cert plus private key. But in right order —–BEGIN MY CERTIFICATE—– —–END MY CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN ROOT CERTIFICATE—– —–END ROOT CERTIFICATE—– —–BEGIN RSA PRIVATE KEY—– —–END RSA PRIVATE KEY———-BEGIN MY CERTIFICATE—– —–END MY CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN INTERMEDIATE CERTIFICATE—– —–END INTERMEDIATE CERTIFICATE—– —–BEGIN ROOT CERTIFICATE—– —–END ROOT CERTIFICATE—– —–BEGIN RSA PRIVATE KEY—– —–END RSA…

Читать далее Читать далее

Java8 in Debian

Java8 in Debian

For starting we need install add-apt-repository apt-get install software-properties-common python-software-propertiesapt-get install software-properties-common python-software-properties Then install java8 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installersudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer To automatically set up the Java 8 environment variables: sudo apt-get install oracle-java8-set-defaultsudo apt-get install oracle-java8-set-default or echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886 apt-get update apt-get install oracle-java8-installerecho…

Читать далее Читать далее

avconv: simple video converter in Linux

avconv: simple video converter in Linux

If you want convert video from big size to smartphone size use this Libav tool Ubuntu: apt-get install libav-toolsapt-get install libav-tools or Gentoo USE="mp3 speex threads v4l jpeg2k aac amr cpudetection faac opus vdpau x264 webp x265 xvid " CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1" emerge -av libavUSE="mp3 speex threads v4l jpeg2k aac amr cpudetection faac opus vdpau x264 webp x265 xvid " CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1" emerge -av libav and command for convert avconv -i original_video.mkv -b:v…

Читать далее Читать далее

Path MTU Discovery Black Hole

Path MTU Discovery Black Hole

Эта проблема совсем не нова. Она описана в RFC 2923 в 2000 году. Но тем не менее, продолжает встречаться с завидным упорством у многих провайдеров. А ведь именно провайдер виноват в данной ситуации: не нужно блокировать ICMP тип 3 код 4. Причем слушаться «голоса разума» ( т. е. клиентов, понимающих в чем проблема) они обычно не хотят. Решение проблемы с PMTU Не будем звонить в техподдержку, а попробуем решить проблему, исходя из собственных средств. Разработчики Linux, тоже знающие о ней,…

Читать далее Читать далее

Bind9: balancing by client ip (even/odd)

Bind9: balancing by client ip (even/odd)

For some reason i need balancing client’s 50/50 for 2 datacenter’s But, if client send GET request to datacenter1 (DC1) all following request need redirect to the same DC1. Only if DC1 is down – send to DC2 Simplest way – is share client’s by their ip (odd/even) So we need two Bind9 services on one server. First Bind9 will be answered that www.example.org is in DC1, second – in DC2 For example first named.conf: zone "example.com" { type master;…

Читать далее Читать далее

Syncthing

Syncthing

Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it’s transmitted over the Internet. Нада потестити…..