Code Monkey home page Code Monkey logo

docker-ubuntu-openbox-vnc's Introduction

ubuntu-openbox-vnc

Features

  • VNC server
  • SSH

Pull from dockerhub

$ docker pull paopaorobot/ubuntu-openbox-vnc

Build yourself

$ git clone https://github.com/PaoPaoRobot/docker-ubuntu-openbox-vnc.git
$ docker build --rm -t paopaorobot/ubuntu-openbox-vnc docker-ubuntu-openbox-vnc

Run

Use it headless

$ docker run -it paopaorobot/ubuntu-openbox-vnc

Now you can use the command line

Use it with ssh

$ docker run -it -p [port]:22 paopaorobot/ubuntu-openbox-vnc

You will see the random password in terminal. You can use it to login ssh by

$ ssh -o 'UserKnownHostsFile=/dev/null' root@localhost -p [port]

If you want to set password by yourself, you can run

$ docker run -it -p [port]:22 -e SSHPW=[YOUR_PW] paopaorobot/ubuntu-openbox-vnc

You need to set the port, e.g. 2222.

Use it with vnc

$ docker run -i -t -p 5900:5900 paopaorobot/ubuntu-openbox-vnc

if you want to set resolution

$ docker run -i -t -p 5900:5900 -e RESOLUTION=1920x1080 paopaorobot/ubuntu-openbox-vnc

Then open vnc viewer and input <YOUR IP>:5900, and you can use the desktop by vnc. If you run the image on your own pc, you can only input :5900 in vnc viewer.

Use random port

If you don't want to set port by yourself, you can use random port with -P param. e.g.

$ docker run -it -P paopaorobot/ubuntu-openbox-vnc

Now, you need docker port to find out the ports

$ docker port [container_id] [port]

When [port] is 22, you get the port for ssh. When [port] is 5900, you get the port for vnc viewer.

Trobleshooting

You can find logs under /var/log/ in container.

docker-ubuntu-openbox-vnc's People

Contributors

optsolution avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.