/ubuntu-ros-base

A base container with vnc, xfce window manager, chromium, ros and ssh daemon.

Primary LanguageShell

ubuntu-ros-base

This docker environment is composed of:

  • ubuntu 18.04
  • tiger vnc server
  • xfce desktop
  • ros melodic package
  • openssh

It is based on

and also refers to

Build

  1. $ git clone git@github.com:WeiyanCai/ubuntu-ros-base.git

  2. $ cd ubuntu-ros-base && docker build -t weiyancai/ubuntu-ros-base:latest .

  3. Install the VNC Viewer.

Run

  1. $ 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

  2. Open vnc viewer client, type the server address: localhos:5901, key in the password: vncpassword.

Work with CLion

  1. Clear cached SSH keys $ ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[localhost]:2222"

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