Share USB Tethering to WiFi and Ethernet Devices

I have an Android with 4G Internet access. I connect it to Ubuntu via a USB cable and enable the USB Tethering in Android. The Ubuntu identify it in “Ethernet Connected” → “Wired connection 2” immediately.

My next step is to share internet from Ubuntu notebook through its built-in Ethernet and WiFi. Here is how.

Continue reading

Advertisements

Linux Becomes Slow After Resume / Suspend

Recently, I built a new computer with ASRock J3455-ITX which has a Apollo Lake processor build-in to run Force.com IDE and VisualStudio Code. I have to use OpenSuSE Tumbleweed to replace my favorite Leap because it requires the latest kernel to support Apollo Lake.

Everything seems fine but it becomes very slow after resume / suspend. I have tested many power-related settings in UEFI (Unified Extensible Firmware Interface) and none of them help. If I logout GNOME and login again, I regain my normal speed.

I try to google “linux slow after resume” and found some useful information. It seems related to

Doug Smythies and jat255 provide detail explain and a solution to restore CPU frequency as a service in Slowdown after resume from suspend on ArchLinux.

Continue reading

Files Contain Windows Invalid Characters Transferred from QNAP to Asustor Using rsync

I want to copy files from QNAP TS-119P II to Asustor AS-5102T directly. There are many solutions: including ftp, rsync, or mount a shared folder.In my case, rsync is the easiest solution.

TS-119P II runs QTS 4.3.3 while AS-5102T is ADM 2.7.1. Details steps might be different if you are using different firmware versions.

I will also talk about invalid characters in names and how ADM handle it. A must read for non-Windows users.

Continue reading

How to Remove Unwanted SSH Keys

After re-install my Synology DSM, I cannot use ssh to login DSM. It prompts for following warning message:

Last login: Thu Jun 16 10:11:39 on console
Amigos-Mac-mini:~ Amigo$ ssh admin@192.168.1.142
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:cq9E1KQyJ5Nq3ktPpZ/K1GFydg741lEZKQ3DJxF2DJA.
Please contact your system administrator.
Add correct host key in /Users/Amigo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/Amigo/.ssh/known_hosts:1
ECDSA host key for 192.168.1.142 has changed and you have requested strict checking.
Host key verification failed.
Amigos-Mac-mini:~ Amigo$ 

In short, I have to remove my previous key. It’s saved in different location with different tools.

Continue reading