ubantu 新系统创建win远程桌面和开启ssh
查看ip ip address
设置apt 源
(129条消息) linux下 apt的添加下载源_爱吃曲奇的曲奇的博客-CSDN博客_linux添加apt源
gedit /etc/apt/sources.list
中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
创建远程桌面参考 乌班图22测试不行,还是使用20吧
Ubuntu20.04设置远程桌面连接 - minseo - 博客园 (cnblogs.com)
apt install xrdp
systemctl start xrdp
systemctl enable xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
sudo apt install ubuntu-mate-desktop --install-recommends
echo mate-session>/home/book/.xsession
开启ssh 参考 (129条消息) Ubuntu16.04开启SSH服务_小土豆大土豆的博客-CSDN博客_ubuntu开启ssh
sudo apt-get update 根据需要进行
sudo apt-get install openssh-server
sudo service ssh restart
修改root用户名,root登录(20没测试)
ubantu16.04设置root用户登录
sudo passwd root 给root用户设置密码
sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
allow-guest=false #不允许guest登录(可选)
有时候ubuntu中使用ssh服务登录root账户时,提示access denied,这需要修改配置文件
1.进入ubuntu之后,使用vi /etc/ssh/sshd_config
2.在文件中找到#PermitRootLogin prohibit-password,将它改为PermitRootLogin yes
3.修改完成之后,重启ssh服务:/etc/init.d/ssh restart
重启之后就可以使用root账户了
//