重装ubuntu16.04之后的基础操作(界面美观+安装浏览器+更新软件源+安装ROS)

1.界面美观

1.安装 Numix 主题和图标

sudo apt-get install unity-tweak-tool
sudo add-apt-repository ppa:numix/ppa
sudo apt-get update

2.安装Unity Tweak Tool工具(已安装就直接看第3点)

sudo apt-get install numix-gtk-theme numix-icon-theme-circle

3.使用Numix主题和图标
在Unity Tweak Tool工具里 点击主题后,将主题设为Numix 图标,设为Numix-circle,

2.安装chrome谷歌浏览器

sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub  | sudo apt-key add -

sudo apt-get update

sudo apt-get install google-chrome-stable

/usr/bin/google-chrome-stable

为chrome安装Flash播放器插件

“系统设置”–>“软件和更新”–>“其它软件”
勾选“Canonical合作伙伴”
点击“关闭”
终端输入:

sudo apt install adobe-flashplugin

3.更新软件源

先打开System Settings系统设置里面的 Software & Updates

在Ubuntu Software选项卡,修改Download from 这个选项,修改为Other…

选择ustc,中科大的这个软件源

输入密码关闭就好。

4.安装ROS

4.1设置Ubuntu的sources.list

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

4.2设置key

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

4.3更新package

sudo apt-get update

4.4安装ROS kinetic完整版

sudo apt-get install ros-kinetic-desktop-full

4.5安装完可以查看可用的package:

apt-cache search ros-kinetic

4.6操作

sudo apt-get install ca-cacert

4.7初始化rosdep,在使用ROS之前必须要初始化rosdep

sudo rosdep init
rosdep update

4.8安装building package的依赖

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

4.9测试ROS安装成功

1) 打开Termial,输入以下命令,初始化ROS环境:

roscore

2)打开新的Termial,输入以下命令,弹出一个小乌龟窗口:

rosrun turtlesim turtlesim_node

3)打开新的Termial,输入以下命令,可以在Termial中通过方向键控制小乌龟的移动:

rosrun turtlesim turtle_teleop_key

4)打开新的Termial,输入以下命令,弹出新的窗口查看ROS节点信息:

rosrun rqt_graph rqt_graph

猜你喜欢

转载自blog.csdn.net/Pancheng1/article/details/81112482