目录一、为ubuntu20.04更新源二、设置允许以root用户登录三、安装go四、安装goland工具五、安装ssh并配置允许root登录总结一、为ubuntu20.04更新源给root用户设置密码...
目录
一、为Ubuntu20.04更新源二、设置允许以root用户登录
三、安装go
四、安装goland工具
五、安装ssh并配置允许root登录
总结
一、为ubuntu20.04更新源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiversedeb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiversedeb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-upythonpdates main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiversedeb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiversedeb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiversedeb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
sudo apt-get update
sudo apt-get -f install
sudo apt-get upgrade
二、设置允许以root用户登录
sudo vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
[Seat:*] user-session=ubuntu greeter-show-manual-login= true all-guest=false #这个可以 不用配置
sudo vim /etc/pam.d/gdm-autologin
sudo vim /etc/pam.d/gdm-password
sudo vim /root/.profile
# ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi tty -s && mesg n || true mesg n || true
reboot
三、安装go
export GOROOT=/home/go/go export GOPATH=/home/go/goProject export GOPROXY=https://goproxy.cn export PATH=$PATH:$GOROOT/bin
四、安装goland工具
五、安装ssh并配置允许root登录
sudo apt-get install openssh-server
sudo vim /etc/ssh/sshd_config
sudo vim /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart