gcp配置记录
ChaptSand Lv3

1 开启第三方SSH登录

1
2
$ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
$ sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config

2 添加用户

$ adduser chaptsand
Or
$ useradd -m -s /bin/bash chaptsand

3 授予sudo权限

1
2
$ tee /etc/sudoers.d/chaptsand <<< 'chaptsand ALL=(ALL) ALL'
$ chmod 440 /etc/sudoers.d/chaptsand

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
 评论