Skip to content

Commit

Permalink
Merge pull request #2 from icedfiend/master
Browse files Browse the repository at this point in the history
Add option to change screen resolution using an environment variable
  • Loading branch information
ponsfrilus committed Feb 16, 2017
2 parents 82a8476 + 9728d1e commit be87ff2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV TZ=Europe/Zurich
ENV SCREEN_RESOLUTION 1024x768
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Add the octave repo
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ The Octave GUI have to be accessed through a browser in a noVNC windows.
* `firefox http://localhost:8083`
* octave is launched, just run some script e.g. my_sombrero.m

Adding the parameter `-e SCREEN_RESOLUTION=<width>x<height>` the screen size displayed is adjusted to the one in the environment variable. By default it is 1024x768.

### Manual Build

* `docker build -t epflsti/octave-x11-novnc-docker:latest .`
Expand Down
2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nodaemon=true

[program:X11]
command=/usr/bin/Xvfb :0 -screen 0 1024x768x24
command=/usr/bin/Xvfb :0 -screen 0 %(ENV_SCREEN_RESOLUTION)sx24
autorestart=true

[program:x11vnc]
Expand Down

0 comments on commit be87ff2

Please sign in to comment.