Posts

DNS over HTTPS using Dingo

Download binary
https://github.com/pforemski/dingo

and copy to /usr/local/bin/

Create systemd unit

vim /etc/systemd/system


[Unit]
Description=Dingo
Wants=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/dingo-linux-amd64 -port 53 -gdns:auto
StandardOutput=null


Restart=on-abort

[Install]
WantedBy=multi-user.target



systemctl daemon-reload
systemctl enable dingo
systemctl start dingo

Use it in resolv.conf or enter in Network Manager
echo nameserver 127.0.0.1 > /etc/resolv.conf


Connect to Fortinet VPN SSL using Linux

To install:
dnf install openfortivpn

To connect:
/bin/openfortivpn --no-dns IP.ADD.RE.SS:443 -u USERNAME --trusted-cert 48239849249248998298492894829482948

Enter password:
******

# trusted-cert parameter value will be print out on first connect


Best theme for Gnome/GTK (Fedora 25)

Image
After trying many themes,
my choice is Zukitre with numix-circle icon, and zuki-shell theme

To download themes:

https://www.gnome-look.org/p/1013758/

To install, just extract to ~/.themes 

Icon and font:

dnf install google-roboto-fonts
dnf install numix*

And then choose the theme using Tweak Tool



Suspend then hibernate when battery low

After suspending laptop, it will wake up again when battery drop below 5% (Thinkpad) then it will stay powered on
If you set handle lid switch to suspend, it will rapidly resume, suspend which is not good
To put laptop hibernate when it wake up, edit /etc/UPower/UPower.conf

And set PercentageAction=4
CriticalPowerAction=hibernate

And reboot your laptop

Reusable steel coffee filter

So I bought reusable stainless steel coffee filter, the result is very good 👍

It is laser cutted fine filter, shaped like cone. But after a few months using it, water wont flow through filter completely 😭 I found many solutions to fix this on the web, pour with hot water, cleaning with soap, run with hot vinegar, problem still exists

Then one suggests to run it with bleach (i use bayclin) and finally the filter back to normal again 😍

Fix ugly java applications font in Linux

Add this to ~/.bashrc:

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'


Select openjdk for default java:

alternatives --config java

  Selection    Command
-----------------------------------------------
*+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b14.fc25.x86_64/jre/bin/java)
   2           /usr/java/jdk1.8.0_112/jre/bin/java
   3           /usr/java/latest/jre/bin/java

Enter to keep the current selection[+], or type selection number: 1


Relogin your session, and launch the java app


For netbeans to use openjdk, change launch command to:

netbeans --jdkhome /usr/lib/jvm/java-1.8.0



Linux video editor comparing (2017)

So I have try to edit video: Pitivi, Openshot, and Kdenlive using Fedora 25

Pitivi: less feature, but has good potential, integrated to gnome
Openshot: lots of feature, but slow, easy to install using Appimage, crashes sometime
Kdenlive: many feature, user friendly, easy install using Appimage

So my choice is using Kdenlive