首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu通过带有GUI的流浪者

Ubuntu通过带有GUI的流浪者
EN

Stack Overflow用户
提问于 2014-11-13 12:57:18
回答 1查看 5.5K关注 0票数 3

我需要用一些已安装的软件包创建虚拟机。这个虚拟机应该提供GUI。我试着像描述的那里那样做。

但却取得了奇怪的结果。当virtualbox应用程序打开时,我会看到普通的控制台窗口。

我的迷走神经文件很简单:

代码语言:javascript
复制
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure("2") do |config|

      # Use a basic trusty desktop image from git://github.com/zyga/vagrant-destop-images.git
      config.vm.box = "trusty-desktop-i386"
      # TODO: offer premade images for download
      config.vm.box_url = ""

      # Tweak VirtualBox configuration for GUI applications
      config.vm.provider :virtualbox do |vb|
        vb.gui = true
        vb.customize ["modifyvm", :id, "--memory", 1024]
        vb.customize ["modifyvm", :id, "--vram", 64]
        vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
      end

      # Automatically use local apt-cacher-ng if available
      if File.exists? "/etc/apt-cacher-ng"
        # If apt-cacher-ng is installed on this machine then just use it.
        require 'socket'
        guessed_address = Socket.ip_address_list.detect{|intf| !intf.ipv4_loopback?}
        if guessed_address
          config.vm.provision :shell, :inline => "echo 'Acquire::http { Proxy \"http://#{guessed_address.ip_address}:3142\"; };' > /etc/apt/apt.conf.d/00proxy"
        end
      end

      # Update to have the latest packages, remove if you don't need that
      config.vm.provision :shell, :inline => "apt-get update"
      config.vm.provision :shell, :inline => "DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes"

      # Ready :-)
end

有人能提供一个使用UI的流浪者的工作示例吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-13 17:39:22

您还需要安装一个桌面环境,例如xfce或类似的这个职位或多或少地解释了如何做到这一点。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26909433

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档