Comments (6)
It's just a docker container.. I believe you should be able to add a non-priviledged user via the terminal and su into the user and/or launch the app with that user
from docker-ubuntu-desktop.
sure, but I thought it were possible to do with Dockerfile to get a vnc user session.
Tried it myself with no success so far
# add user
ENV user developer
ENV HOME /home/$user
RUN useradd -d $HOME -ms /bin/bash $user && \
echo "$user:$user" | chpasswd && adduser $user sudo
RUN mkdir $HOME/.vnc
ADD xstartup $HOME/.vnc/xstartup
ADD passwd $HOME/.vnc/passwd
RUN chmod 600 $HOME/.vnc/passwd
RUN chown -R $user $HOME
# start vnc server
USER $user
CMD /usr/bin/vncserver :1 -geometry 1280x800 -depth 24 && tail -f $HOME/.vnc/*:1.log
vscode_1 | xauth: file /home/developer/.Xauthority does not exist
vscode_1 |
vscode_1 | New 'X' desktop is dafe3263e851:1
vscode_1 |
vscode_1 | Starting applications specified in /home/developer/.vnc/xstartup
vscode_1 | Log file is /home/developer/.vnc/dafe3263e851:1.log
vscode_1 |
vscode_1 | 09/12/16 11:05:59 Copyright (C) 1999 AT&T Laboratories Cambridge
vscode_1 | 09/12/16 11:05:59 All Rights Reserved.
vscode_1 | 09/12/16 11:05:59 See http://www.tightvnc.com/ for information on TightVNC
vscode_1 | 09/12/16 11:05:59 Desktop name 'X' (dafe3263e851:1)
vscode_1 | 09/12/16 11:05:59 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
vscode_1 | 09/12/16 11:05:59 Listening for VNC connections on TCP port 5901
vscode_1 | Font directory '/usr/share/fonts/X11/Type1/' not found - ignoring
vscode_1 | Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
vscode_1 | Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
vscode_1 | sh: 1: /home/developer/.vnc/xstartup: not found
from docker-ubuntu-desktop.
Same issue here. Google Chrome and tor won't allow it to run in root mode. @vilinski Where you able to get this working?
from docker-ubuntu-desktop.
it must be something obvious, but no, still no luck for me
from docker-ubuntu-desktop.
@vilinski I decided to go with my own repository and build this: https://github.com/cesarandreslopez/docker-ubuntu-mate-desktop-nomachine
It might be helpful. It runs on none root, and uses nomachine which is way better performance for remote sessiones.
from docker-ubuntu-desktop.
@cesarandreslopez thanks for sharing! i will try it
from docker-ubuntu-desktop.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ubuntu-desktop.