NotePublic/Software/System/ROS/Indigo/Docker_安装_ROS_Indigo_过程记录.md

31 lines
2.1 KiB
Markdown
Raw Normal View History

# Docker 安装 ROS Indigo 过程记录
```bash
docker run -it --name=<container name> --privileged -p 5901:5801 -v <host dir>:<container dir> -v /dev/bus/usb:/dev/bus/usb ros:indigo /bin/bash
apt-get update
apt-get install vim xinit lightdm xubuntu-desktop xubuntu-default-settings xubuntu-artwork xubuntu-icon-theme
dpkg-reconfigure lightdm
touch profile
vim profile
```
然后占体以下内容到 profile 文件中:
```base
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vidr='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
```