Last active
January 17, 2022 10:16
-
-
Save leyafo/856fe83d3d7681744b895a66baa62486 to your computer and use it in GitHub Desktop.
Remapping Capslock to control on Linux console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#change capslock to ctrl though gnome-tweak-tool | |
#set manjaro mirros | |
sudo pacman-mirrors -i -c China -m rank #choose the sources that you want | |
sudo pacman -Syy | |
#set http over socks5 in shell | |
export http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 | |
#set git socks5 | |
#~/.giconfig | |
[http] | |
proxy = socks5h://127.0.0.1:1080 #socks5h means don't resolve the DNS by self. | |
#set golang China proxy | |
go env -w GO111MODULE=on | |
go env -w GOPROXY=https://goproxy.cn,direct | |
#add existed ssh key | |
chmod 0400 ~/.ssh/id_rsa* | |
ssh-add ~/.ssh/id_rsa | |
#add docker mirrors | |
- /etc/docker/daemon.json #if this file doesn't exist, create it brefore wite the configuration. | |
{ | |
"registry-mirrors": [ | |
"https://hub-mirror.c.163.com" | |
] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment