Giter VIP home page Giter VIP logo

docker-ubuntu-mate-novnc's Introduction

Docker-Ubuntu-MATE-noVNC

Dockfile for Ubuntu with MATE desktop and noVNC.

This Image/Dockerfile aims to create a container for Ubuntu 18.04 with MATE Desktop and using TightVNCServer, noVNC, Ngrok(Optional) which allow user use browser to log in into this container.

How to use?

You can build this Dockerfile yourself:

sudo docker build -t corruptedbuffer/ubuntu-novnc .

Or, just pull my image:

docker pull corruptedbuffer/ubuntu-novnc

The default usage of this image is:

docker run -itd -p 80:6080 corruptedbuffer/ubuntu-novnc

Wait for a few second, you can access http://localhost/vnc.html and see this screen:

alt text

Password

In default, the password will create randomly, to find the password, please using the following command:

sudo docker exec $CONTAINER_ID cat /home/ubuntu/password.txt

And you can use this password to log in into this container.

After log in, you can see this screen:

alt text

Arguments

This image contains 3 input argument:

  1. Password

    You can set your own user password as you like:

    sudo docker run -itd -p 80:6080 -e PASSWORD=$YOUR_PASSWORD corruptedbuffer/ubuntu-novnc
    

    Now, you can user your own password to log in.

  2. Sudo

    In default, the user ubuntu will not be the sudoer, but if you need, you can use this command:

    sudo docker run -itd -p 80:6080 -e SUDO=yes corruptedbuffer/ubuntu-novnc
    

    This command will grant the sudo to user ubuntu.

    And use SUDO=YES, SUDO=Yes, SUDO=Y, SUDO=y are also supported.

    To check the sudo is work , when you open MATE Terminal it should show following message:

    To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    

    alt text

    Caution!! allow your user as sudoer may cause security issues, use it carefully.

  3. Ngrok

    Ngrok can be used to deploy localhost to the internet.

    If you need to use this image across the internet, Ngrok is what you need.

    To enable Ngrok, use following command:

    sudo docker run -itd -p 80:6080 -e NGROK=yes corruptedbuffer/ubuntu-novnc
    

    And find the link address:

    sudo docker exec $CONTAINER_ID cat /home/ubuntu/ngrok/Ngrok_URL.txt
    

    NGROK=YES, NGROK=Yes, NGROK=Y, NGROK=y are also supported.

    Caution!! this may also cause security issues, use it carefully.

Screen size

The default setting of screen siz is 1600x900.

You can change screen by using following command, this will change screen size to 1024x768:

sudo docker exec $CONTAINER_ID sed -i "s|-geometry 1600x900|-geometry 1024x768|g" /etc/supervisor/conf.d/supervisor.conf
sudo docker restart $CONTAINER_ID

docker-ubuntu-mate-novnc's People

Contributors

chenjr0719 avatar corruptedbuffer avatar

Watchers

 avatar

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.