Giter Club home page Giter Club logo

vagrant-desktop-images's Introduction

Vagrant Desktop Images

Ubuntu Desktop images for Vagrant

Why?

Because some people like Vagrant and Canonical only publishes server, cloud images.

How?

By taking the vanilla Ubuntu cloud images and installing ubuntu-desktop meta-package and setting up lightdm to automatically login the vagrant user.

Usage (premade images)

These instructions should work on Linux, OS X and Cygwin.

Recommended on Ubuntu, install apt-cacher-ng:

    sudo apt-get install apt-cacher-ng

Make the Ubuntu 14.04 image (i386 version):

    make trusty-desktop-i386.box
    vagrant box add -f trusty-desktop-i386 trusty-desktop-i386.box

Then create this Vagrantfile somewhere and 'vagrant up' it:

    # -*- mode: ruby -*-
    # vi: set ft=ruby sw=2 ts=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

vagrant-desktop-images's People

Contributors

robertpark avatar shauvik avatar snowch avatar zyga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vagrant-desktop-images's Issues

precise image prompts for update to trusty

While testing precise I found that it shows the annoying prompt just after booting and logging in.

A quick dconf inspection lead me to this:

vagrant@vagrant-ubuntu-precise-32:~$ dconf dump / > before
vagrant@vagrant-ubuntu-precise-32:~$ dconf dump / > after
vagrant@vagrant-ubuntu-precise-32:~$ diff -u before after 
--- before  2015-07-13 18:03:44.078263034 +0000
+++ after   2015-07-13 18:03:51.582509307 +0000
@@ -1,4 +1,5 @@
 [apps/update-manager]
+check-new-release-ignore='trusty'
 remind-reload=false

 [com/canonical/unity-2d]

super user pass

Hi there

I have the vm running :) thanks for that
I was wondering is there any special super user password I should know? I went to the Ubuntu software center and when asked to authenticate it fails when I use vagrant (I was able to log after I updated the machine to a newer version of the distro)

capture

(Note: I haven't used linux in a while so this could just be me not know how to do something, sorry if that is the case :) )

No desktop

Hi there,

I was able to create the box and do a vagrant up, however I am stuck in the shell.
No desktop is being started, or did I misunderstand this repo?

No rule to make target `precise'. Stop.

NY-ETeottiMBP:vagrant-desktop-images eteotti$ make precise
make: *** No rule to make target `precise'.  Stop.
NY-ETeottiMBP:vagrant-desktop-images eteotti$ make saucy
make: *** No rule to make target `saucy'.  Stop.

Remove timeout line..

With Vagrant 1.3.5, I had to remove the timeout line in the Vagrant file due to make raring ending with:
"SSH:

  • The following settings shouldn't exist: timeout"

Default to 64 bit images

Ubuntu defaulted to 64 bit desktop images as of 13.10 (and 12.04 at the release of 13.10) and we don't make it easy to get 64 bit images of server installs.

I think it makes sense for our tools to default to 64 bit installs...

Puppet provisioning hangs

Puppet provisioner hangs at screen_saver settings for ever

Notice: Compiled catalog for vagrant-ubuntu-trusty-64 in environment production in 0.25 seconds
Notice: /Stage[main]/Base/File[apt sources.list]/content: content changed '{md5}11530579b25f7d0718cb4baa0f45f457'
Notice: /Stage[main]/Grub/File[grub configuration]/content: content changed '{md5}24684ce5e87dbef5958a2f62b91396d
Notice: /Stage[main]/Base/Exec[apt-get update]/returns: executed successfully
Notice: /Stage[main]/Base/Exec[apt-get dist-upgrade]/returns: executed successfully
Notice: /Stage[main]/Grub/Exec[update-grub]/returns: executed successfully
Notice: /Stage[main]/Screensaver_settings/Package[dconf-tools]/ensure: ensure changed 'purged' to 'present'

It doesn't go beyond the above point.

vagrant version 1.5.4
virtualbox 4.3.10
Windows 7
I'm trying to build the trusty-desktop-amd64.box.

Any help troubleshooting/resolving this will be greatly appreciated, and thanks a lot for putting together this project. Exactly what I need at this momment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.