vitich.kiev.ua was created on Dec 15, 1999

GNU/Linux

Support for Richard Stollman

Richard Stallman
Richard M. Stallman, frequently known as RMS, has been a driving force in the free software movement for decades, with contributions including the GNU operating system and Emacs.

Recently, there have been vile online attacks looking to remove him from the FSF board of directors for expressing his personal opinions. We have watched this happen before in an organized fashion with other prominent free software activists and programmers. We will not stand idly this time, when an icon of this community is attacked.

Quick check ssl crt

Розділи: 

Check crt file:
$ openssl x509 -in site.crt -text -noout | grep Not
Not Before: Dec 5 11:54:00 2019 GMT
Not After : Dec 1 11:54:00 2034 GMT

Check ssl certificate online:
$ echo | openssl s_client -showcerts -servername gnu.org -connect gnu.org:443 2>/dev/null | openssl x509 -inform pem -noout -dates
notBefore=Dec 14 10:03:25 2019 GMT
notAfter=Mar 13 10:03:25 2020 GMT

Migrate any mail server to hestiacp (vestacp fork)

My friend asked me to help with the migration of mail from a server running ispmanager5 lite to a server running vestacp. But this script is suitable for migration from any imap server to hestiacp panel.
I found imapsync utility and I'll use it. The email.txt file should contain a list of mailboxes and passwords, one account per line.

hcloud: command-line interface for hetzner cloud

hetzner cloud

Create server:
hcloud server create --name=myserver --image=ubuntu-18.04 --type=cx31 --datacenter=hel1-dc2 --ssh-key=vitich

List our servers to get server ID:
hcloud server list

Add floating-ip
hcloud floating-ip create --type=ipv4 --home-location=hel1

List floating-ip to get floating-ip ID:
hcloud floating-ip list

iptables geoip too many countries specified

iptables

Знадобилося заблокувати деякі країни однією строкою:

iptables -I INPUT -m geoip --src-cc
AR,BR,CN,CO,DZ,HK,IN,IR,KP,LA,MY,OM,PK,SC,TH,TW,VN -j DROP

Але отримав таку помилку:
iptables v1.6.0: geoip: too many countries specified

Оскільки я використовую кастомне ядро - я збираю xtables-addon самостійно.
Отже, нам потрібно збільшити XT_GEOIP_MAX та перезібрати.

wttr conky

wttr conkyI have been using this weather service for several years. Almost no problems.
Add to your conky config:
${texeci 300 curl -A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36" http://wttr.in/Kyiv_0pq_transparency=200_lang=uk.png -o $HOME/.conky/out.png}
${image $HOME/.conky/out.png -p 0,0}

Pages