gcp配置记录
1 开启第三方SSH登录
1 | $ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config |
2 添加用户
$ adduser chaptsand
Or$ useradd -m -s /bin/bash chaptsand
3 授予sudo权限
1 | $ tee /etc/sudoers.d/chaptsand <<< 'chaptsand ALL=(ALL) ALL' |
4 Oh my zsh
1 | $ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
5 zsh-autosuggestions
1 | $ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions |
评论
评论插件加载失败
正在加载评论插件