#!/bin/bash
for ip in `cat list.txt`; do
sshpass -p "yourpassword" ssh-copy-id -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa.pub [email protected]$ip
done
Explanation
sshpass pass your password to the ssh prompt
-o StrictHostKeyChecking=no ignores the “host identity not established” prompt, allowing sshpass to do its job
Type apps & into the search box in the bottom left of the taskbar.
Click Apps & features in the search results. The Settings app will open.
On the Apps & features page in the Settings app, type Ubuntu, or the name of the Linux distribution you want to reset, in the ‘Search this list’ box.
Ubuntu, or the name of your Linux distribution, will appear. Click it and then click Advanced options.
In the Settings app, scroll down the list of options until you see Reset. There are two options, Repair and Reset. We want to reset our distribution, so click Reset.
You will see a warning that resetting the app will permanently delete its data and sign-in preferences. Click Reset again in the pop-out dialog.
The resetting process will take a few seconds. Once it’s complete, a tick icon will appear to the right of the Reset button.
Changing mount path of WSL from /mnt/c to /c
This works for all of your drives at once. Create /etc/wsl.conf with this content
# Enable extra metadata options by default
[automount]
enabled = true
root = /
options = "metadata,umask=22,fmask=11"
mountFsTab = false
# Enable DNS – even though these are turned on by default, we’ll specify here just to be explicit.
[network]
generateHosts = true
generateResolvConf = true
1. Set permissions to the target folder. First, I think you must set some permissions to the folder where the distribution will be moved. You may use icacls <dir> /grant "<user>:(OI)(CI)(F)" to set the proper permissions.
Use the mirror protocol to automatically select the best mirror
Using mirror protocol as part of your /etc/apt/sources.list
entry will instruct apt command to fetch mirrors located within your
country only. In order to use mirror protocol update all lines within /etc/apt/sources.list file from the usual eg.:
deb http://us.archive.ubuntu.com/ubuntu/ ...
to:
deb mirror://mirrors.ubuntu.com/mirrors.txt ...
Repeat the above for all relevant lines where appropriate. Alternatively, use sed command to automatically edit your /etc/apt/sources.list file. Update the below sed command where appropriate to fit your environment:
$ sudo sed -i -e 's/http:\/\/archive/mirror:\/\/mirrors/' -e 's/\/ubuntu\//\/mirrors.txt/' /etc/apt/sources.list
ibus-unikey là bộ gõ có sẵn trong source, dễ cài nhất nhưng có vấn đề bị revert keyboard như ở trên
ibus-teni (telex-vni) mới hơn
ibus-bamboo: cùng tiêu chí với teni, bộ gõ mới nhất, được cập nhật thường xuyên, hỗ trợ nhiều chế độ gõ cho nhiều ứng dụng khác nhau, tuy nhiên chưa được nổi tiếng như ibus-unikey vì hầu hết các tài liệu hướng dẫn đều viết về ibus-unikey (có lẽ vì unikey namesake quá nổi tiếng trên Windows)