2.1 KiB
2.1 KiB
Docker 安装 ROS Indigo 过程记录
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 文件中:
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"