- 
      
- 
        Save zhiyue/524be69888fa4cfcbd2e3371eacf8c1a to your computer and use it in GitHub Desktop. 
    Remapping Capslock to control on Linux console
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | # You can use set keymap on X window easily, this configuration just tell you how to remapping the Capslock to control | |
| # it based on these two articles: | |
| # http://www.noah.org/wiki/CapsLock_Remap_Howto | |
| # https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration | |
| # we use loadkeys for setting. | |
| # copy the `dumpkeys` output to our configuration file | |
| sudo mkdir -p /usr/local/share/kbd/keymaps | |
| sudo dumpkeys | grep keymaps > /usr/local/share/kbd/keymaps/personal.map | |
| echo "keycode 58 = Control" > /usr/local/share/kbd/keymaps/personal.map | |
| # set configuration file to /etc/vconsole.conf | |
| KEYMAP=/usr/local/share/kbd/keymaps/personal.map | |
| # reboot your computer, it will apply the configuration. | |
| #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