VM_fullscreen

Debian虚拟机全屏,首先找到配置文件

1
2
3
su      #管理员目录
cd /etc/apt
cp sources.list sources.list.bak  #备份sources.list文件

将文件内容替换为下列内容,即更改软件源

1
2
3
4
5
6
7
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free non-free-firmware

# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free non-free-firmware
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free non-free-firmware
1
2
apt update 
apt install build-essential dkms linux-headers-$(uname -r) #更新

然后点击虚拟机的“安装增强功能”

1
2
3
4
5
cd /media
cd cdrom
cp VBoxLinuxAdditions.run /tmp
cd /tmp
./VBoxLinuxAdditions.run

然后重启,可以从虚拟机选择全屏模式了

updatedupdated2023-12-062023-12-06