2021-05-12 18:02:27 +08:00
|
|
|
# Docker 安装 ROS Indigo 过程记录
|
|
|
|
|
|
|
|
```bash
|
2021-05-12 18:05:51 +08:00
|
|
|
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
|
2021-05-12 18:02:27 +08:00
|
|
|
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"
|
|
|
|
```
|