Skip to Content
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Sign in
  • Nederlands English (US) Español (AR)
  • Contact Us
  • Home
  • Blog
  • Jobs
  • Contact us
Cafayate.Net
  • 0
  • 0
    • Home
    • Blog
    • Jobs
    • Contact us
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Sign in
  • Contact Us

Multiple Desktop Environments with LXC

  • All Blogs
  • Tech Blog
  • Multiple Desktop Environments with LXC
  • March 5, 2021 by
    Administrator

    This repository contains a Debian source package which you can build and install on your host to make it piss simple to run multiple LXC instances with graphical desktop environments in parallel on a single host. Each LXC instance will occupy a separate virtual terminal (VT), so you can switch between them using Ctrl-Alt-Fn keys. Each instance also shares direct access to the graphics hardware and other privileges for performance and flexibility.

    This is no security measure, but a way to share an expensive resource like a laptop computer. Think of isolated work and private environments, or multiple users.

    Quick start on a Ubuntu 14.04 host

    git clone https://github.com/ustuehler/lxc-desktop && cd lxc-desktop
    sudo apt-get install ubuntu-dev-tools debhelper
    dpkg-buildpackage -uc -us
    sudo dpkg -i ../lxc-desktop_*_all.deb
    sudo apt-get -f install
    

    If you want to speed up the creation and updating of the host system and desktop containers using apt-cacher-ng(8), simply install the lxc-desktop-cache package.

    sudo dpkg -i ../lxc-desktop-cache_*_all.deb
    sudo apt-get -f install
    

    Now you’re ready to create the first desktop container:

    sudo lxc-create -n container -t ubuntu-desktop
    sudo lxc-start -n container -d
    

    Within a few seconds you should get a graphical Ubuntu Desktop login screen on the next available virtual terminal.

    Adding packages

    The template only installs the ubuntu-desktop package by default, a very, very minimal desktop environment. You may want to add additional packages when you create the container.

    sudo lxc-create -n container -t ubuntu-desktop -- \
      --packages=ubuntu-gnome-desktop,chromium-browser
    

    Run lxc-create -n container -t ubuntu-desktop -- --help for template usage instructions.

     

    https://github.com/ustuehler/lxc-desktop

    in Tech Blog
    Make Odoo run on port 80 with Nginx.

    Designed for companies

    We are a team of passionate people whose goal is to improve everyone's life through disruptive products. We build great products to solve your business problems. Our products are designed for small to medium size companies willing to optimize their performance.

    Get in touch

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Follow us
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)