LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 07-18-2018, 02:11 PM   #1
simosx
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 11
Thumbs up ShowLQ: Even easier guide to run GUI apps in LXD containers


I rewrote my blog post on running GUI apps in LXD containers and here is the newer version,
https://blog.simos.info/how-to-easil...buntu-desktop/

In the newer version, you just create a new LXD profile with the GUI settings (let's call it gui), and then you can launch such a GUI container with

Code:
lxc launch --profile default --profile gui ubuntu:18.04 myguicontainer
Then, you can connect to the container with

Code:
lxc exec myguicontainer -- sudo --user ubuntu --login
and finally run any GUI command, such as

Code:
xclock
If you need something else like Firefox or Chrome, install it and run it.
 
  


Reply

Tags
lxd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ShowLQ: How to have a desktop session in a LXD container simosx Linux - Containers 0 02-28-2018 12:44 PM
HOWTO: How to run graphics-accelerated GUI apps in LXD containers on your Ubuntu desktop simosx Linux - Containers 0 05-06-2017 12:48 PM
Trying out LXD containers on our desktop computer simosx Linux - Containers 1 03-13-2017 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration