Giter VIP home page Giter VIP logo

ubuntu-xrdp-docker's Introduction

Ubuntu 20.04 Focal Fossa Remote Desktop Server Docker in Docker

Multi User Remote Desktop Server with docker inside. Intended for group usage in a shared docker space. Based on https://hub.docker.com/r/danielguerra/ubuntu-xrdp/ Audio and Copy/Paste is working.

Usage

Start a shared docker with overlay2 storage

docker run --privileged --name shared-docker -d docker:stable-dind --storage-driver=overlay2

Start the remote desktop server

docker run -d --link shared-docker:docker --shm-size 1g --name uxrdp-dind --hostname docker-terminal -p 3389:3389 -p 2222:22 danielguerra/ubuntu-xrdp-docker

Connect to the remote desktop server with your RDP-client or with ssh so you can connect to RDP 127.0.0.1:3389

ssh -L 3389:127.0.0.1:3389 ubuntu@<docker-ip>

Sample user

There is a sample user with sudo rights

Username : ubuntu Password : ubuntu

You can change your password in the rdp session in a terminal

passwd

Docker Example

Docker and docker-compose have been added so all users can use the shared-docker. When you start a docker container with port options you can connect the hostname docker

First connect with you RDP-client.

Then in a in a terminal in the RDP

docker run -d danielguerra/sshd --name sshd -p 7777:22

After this ssh to your ssh server in a terminal in the RDP

ssh -p 7777 alpine@docker

*note the password is alpine

Or from your workstation

ssh -t -p 2222 ubuntu@<docker-ip> ssh -p 7777 alpine@docker

Add Users

Add a new user who is allowed to use docker

docker exec -ti uxrdp-dind adduser <newuser>
usermod -G docker <newuser>

ubuntu-xrdp-docker's People

Contributors

danielguerra69 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ubuntu-xrdp-docker's Issues

Cannot login to Docker Container after Commit

Hi Daniel

I have done quite a lot of work customising your Docker Image by adding some of my own applications and code.
However, one major issue at the moment is that when I commit the Container to a new Docker Image, after running the customised image (as a new container) using exactly the same commands as your container (but with a modified image name), when I try to connect using Xorg I get a blue screen and then an error message "Some Problem" and I am unable to connect.
This may be intentional, but is there any reason why after creating a new image by committing your image, I cannot connect to the new container?
The command I use to commit the container is:
docker commit uxrdp my/uxrdp:v0_1
The command I use to run the new container is:
docker run -d --name myuxrdp --hostname terminalserver --shm-size 1g -p 3390:3389 -p 2222:22 my/uxrdp:v0_1

Thank you!

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.