feat: fixed resolution
This commit is contained in:
parent
d3c2654e53
commit
a70016bee5
|
|
@ -38,6 +38,15 @@ docker run -it --rm -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=mypassword dorowu/ub
|
||||||
A prompt will ask password either in the browser or vnc viewer.
|
A prompt will ask password either in the browser or vnc viewer.
|
||||||
|
|
||||||
|
|
||||||
|
Screen Resolution
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Resolution of virtual desktop adapts browser window size when first connecting the server. You may choose a fixed resolution by passing `RESOLUTION` environment variable, for example
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm -p 6080:80 -e RESOLUTION=1920x1080 dorowu/ubuntu-desktop-lxde-vnc
|
||||||
|
```
|
||||||
|
|
||||||
Troubleshooting and FAQ
|
Troubleshooting and FAQ
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ if [ -n "$VNC_PASSWORD" ]; then
|
||||||
export VNC_PASSWORD=
|
export VNC_PASSWORD=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /usr/lib/web && ./run.py > /var/log/web.log 2>&1 &
|
if [ -n "$RESOLUTION" ]; then
|
||||||
|
sed -i "s/1024x768/$RESOLUTION/" /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd /usr/lib/web && ./run.py 2>&1 &
|
||||||
nginx -c /etc/nginx/nginx.conf
|
nginx -c /etc/nginx/nginx.conf
|
||||||
exec /bin/tini -- /usr/bin/supervisord -n
|
exec /bin/tini -- /usr/bin/supervisord -n
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ app = Flask(
|
||||||
CONFIG = os.environ.get('CONFIG') or 'config.Development'
|
CONFIG = os.environ.get('CONFIG') or 'config.Development'
|
||||||
app.config.from_object('config.Default')
|
app.config.from_object('config.Default')
|
||||||
app.config.from_object(CONFIG)
|
app.config.from_object(CONFIG)
|
||||||
|
FIRST = 'RESOLUTION' not in os.environ
|
||||||
|
|
||||||
|
|
||||||
# logging
|
# logging
|
||||||
import logging
|
import logging
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue