This docker environment is composed of:
- ubuntu 18.04
- tiger vnc server
- xfce desktop
- ros melodic package
- openssh
It is based on
- osrf/docker_images for ros_melodic
- consol/ubuntu-xfce-vnc for ubuntu-1604-vnc-desktop
- JetBrains/clion-remote for clion-remote
and also refers to
-
$ git clone git@github.com:WeiyanCai/ubuntu-ros-base.git
-
$ cd ubuntu-ros-base && docker build -t weiyancai/ubuntu-ros-base:latest .
-
Install the VNC Viewer.
-
$ docker run -it -p 5901:5901 -p 6901:6901 -p 127.0.0.1:2222:22 --name ubuntu-ros-base weiyancai/ubuntu-ros-base:latest bash
-
Open vnc viewer client, type the server address:
localhos:5901
, key in the password:vncpassword
.
-
Clear cached SSH keys
$ ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[localhost]:2222"
-
Setup CLion following the steps in full remote mode.
Fill in the SSH credential we set-up in the Dockerfile,
Host
:localhost
Port
:2222
User Name
:default
Password
:password