Ken*_*Ken 3 linux ubuntu vagrant
如何安装具有桌面GUI(gnome,kde,...)的Vagrant Linux盒子.
是否有已经拥有桌面环境的Vagrant盒子分发?
在我做了"流浪汉"后,如何登录此虚拟框并激活GUI?
这个问题是重复的,在这里有一个广泛的答案:使用vagrant来运行具有桌面环境的虚拟机
是的,您需要在流浪文件中启用GUI,但首先需要:
从上面链接中的一个答案(/sf/answers/2319703921/),您可以使用以下vagrant文件:
Vagrant.configure(2) do |config|
# Ubuntu 15.10
config.vm.box = "ubuntu/wily64"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
end
# Install xfce and virtualbox additions
config.vm.provision "shell", inline: "sudo apt-get update"
config.vm.provision "shell", inline: "sudo apt-get install -y xfce4 virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11"
# Permit anyone to start the GUI
config.vm.provision "shell", inline: "sudo sed -i 's/allowed_users=.*$/allowed_users=anybody/' /etc/X11/Xwrapper.config"
end
Run Code Online (Sandbox Code Playgroud)
如果想进入桌面GUI,可以修改Vagrantfile添加vb.gui = true. 例如:
Run Code Online (Sandbox Code Playgroud)config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine vb.gui = true # Customize the amount of memory on the VM: # vb.memory = "1024" end
然后你就可以vagrant up从 virtualbox 输入它。
| 归档时间: |
|
| 查看次数: |
10661 次 |
| 最近记录: |