LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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: 59

Rep: Reputation: 10
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration