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)

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

To download themes:

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

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-
   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

My discrete VGA is now fast using 4.10 rc2 kernel (Fedora 25)

I'm using Fedora 25 and Wayland without problem. But my discrete VGA is very slow. My laptop have hybrid graphics , internal is Intel HD 5500 and discrete is AMD R7 M260

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)

05:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445]

By upgrading kernel to rawhide kernel (4.10.0-0.rc2.git3.2.fc26.x86_64) my discrete VGA run fast now:
dnf config-manager --add-repo= 

dnf update

I'm using Dota2 to benchmark, Resolution: Full HD 1920x1080 , Video Setting preset: #2 from left: Fastest O--X--O--O Best Looking

To run application using discrete VGA from terminal:
DRI_PRIME=1 steam

Or just right click on launcher and choose Launch using Dedicated Graphics Card

Previously only 8 fps but now it can render as high as 42 fps 😮😃

Enabling fingerprint auth in Fedora 25

By default only login is using fingerprint auth but not for sudo, to enable:
Just run authconfig-tui and check Use fingerprint reader

Then enroll your fingerprint using Settings - Users

To enroll multiple fingerprint matches, do this from terminal:
fprintd-enroll -f FINGERNAME

Replace FINGERNAME with: right-little-finger, right-middle-finger, right-thumb, right-index-finger, right-ring-finger

You can swipe same finger for all enroll