#/bin/bash
# ubuntu 其他版本软件仓库: https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11Lyoail
# ubuntu18 阿里云仓库源 配置案例:
echo "
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
" >> /etc/apt/sources.list
# 写入软件仓库配置文件
sudo rm /var/lib/dpkg/updates/*
sudo apt-get update
# 更新软件仓库,否则无法安装出现问题:
# E: dpkg uas interrupted, you nus tn an ually run 'dpkg --com figure-a' to correct the proble n. -+a:7k-11m7uAo..L.o..f..7.~m m一 -11
# E: dpkg 被中断,您必须手工运行 sudo dpkg –configure -a 解决此问题。
apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop
# 安装图形化依赖
#---------------------- 开启 3389 远程 ------------------#
步骤一:设置->共享->启用屏幕共享(设置远程连接的密码)
步骤二:安装xrdp和dconf-editor
apt-get install ubuntu-desktop xrdp dconf-editor
步骤三:配置dconf-editor
打开dconf程序,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。
Powered by ddoss.cn 12.0
©2015 - 2025 ddoss
渝公网安备50011302222260号
渝ICP备2024035333号
【实验平台安全承诺书】
小绿叶技术社区,优化网络中,点击查看配置信息
主机监控系统: 安全防火墙已开启检查cc攻击-下载文件完成后等待10s 恢复访问,检查连接数低于峰值恢复访问
您的IP:10.8.103.62,2025-12-09 05:55:56,Processed in 0.01741 second(s).