Listing posts
Displaying posts 241 - 245 of 327 in total2018-02-27
Debian JavaPackage does not currently support JDK 9, but we can use the useful script/packages made by WebUpd8 team.
Create the repository file:
1 2 3 | # /etc/apt/sources.list.d/webupd8team-java.list deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main |
add its key and install the JDK package auto installer:
1 2 3 | apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 apt update apt install oracle-java9-installer |
Source: Tecadmin.net, WebUpd8 ubuntu team and blog post
~~~ * ~~~
2018-02-23
Dnsmasq is very useful to cache DNS requests and speedup home connections:
1 | apt-get install dnsmasq |
put in /etc/dnsmasq.d/local.conf
:
1 2 3 4 | no-poll cache-size=300 server=84.200.69.80 server=84.200.70.40 |
put in /etc/dnsmasq.d/
the attached ads.conf
file built on both MVPS hosts list and pgl.yoyo.org list (you can update this list with the attached update-dnsmasq-adsblock.rb
script).
Restart the service:
1 | systemctl restart dnsmasq |
Auto flush cache every week, put in root crontab
:
1 2 | # m h dom mon dow command 0 4 1 * * pkill -HUP dnsmasq > /dev/null 2> /dev/null |
And put in /etc/resolv.conf
:
1 | nameserver 127.0.0.1 |
Source: dnsmasq hp
~~~ * ~~~
2018-02-22
1 2 3 4 5 6 7 8 | # read speed hdparm -t -T /dev/sda # write speed: file on filesystem dd if=/dev/zero of=/tmp/output conv=fdatasync bs=1M count=100; rm -f /tmp/output # write speed on disk/partition (destructive!) dd if=/dev/zero of=/dev/sdXY conv=fdatasync bs=1M count=100 |
Source: AskUbuntu
~~~ * ~~~
2018-02-19
Ingredienti (4 persone):
- 500gr crauti acidi
- 200gr di fagioli
- 4x patate
- 4x spicchi di aglio
- 2x foglie di alloro
- brodo vegetale
- olio, cumino, sale e pepe q.b.
- farina
Procedimento:
Mettere a bangno i fagioli la sera prima.
Dorare in pentola 2 spicchi di aglio schiacciati e poi rimuoverli, aggiungere i crauti, coprirli a raso con acqua, aggiungere un pizzico di cumino, sale e pepe, e far consumare a fuoco lento per circa mezz'ora.
Cucinare i fagioli con brodo vegetale e foglie di alloro a fuoco lento per 1 ora e 15 minuti.
Aggiungere al brodo le patate a pezzetti e proseguire la cottura per 15 minuti.
Passare fagioli e patate per ottenere una purea e aggiungerla ai crauti.
In un piccolo pentolino con 1-2 cucchiai di olio dorare i rimanenti spicchi di aglio schiacciati e rimuoverli, aggiungere la farina senza fare grumi e tostarla.
Aggiungere la farina alla minestra aggiustando di sale e pepe e poi service con crostini di pane.
Fonte: trieste.com la jota e l'enogastronomia, vedi anche gustoblog
~~~ * ~~~
2018-02-17
Test the value for rotational disk (1 = HDD, 0 = SSD):
1 2 3 4 5 6 | cat /sys/block/sdX/queue/rotational # or apt install util-linux lsblk -d -o name,rota # 1=HDD, 0=SSD |
Source: Stackexchange