1. 安装的镜像
Raspberry Pi 2, FAT ROS INDIGO image 1GB compressed, 16GB uncompressed.
ubuntu arm 14.04.02
(if you don’t have a 16GB sd card available you can follow this amazing tutorial about resizing images in linux, i will provide already resized images in the future, i’ll promise)
user: ubuntu
password: ubuntu
http://www.mauriliodicicco.com/raspberry-pi2-ros-images/
2. 镜像文件大小调整
http://softwarebakery.com/shrinking-images-on-linux
3. 系统配置
3.1 联网设置。
ifconfig -a # 查看网卡驱动安装的情况
sudo dhclient -r
sudo dhclient eth0
ifconfig 查看ip
uname -a 查看系统信息
sudo vi /etc/default/keyboard 将其中的XKBLAYOUT的值设置为"us" ,新开终端
ctrl+alt+F2 setupcon
sudo udevadm trigger --subsystem-match=input --action=change
4 安装桌面
安装Gnome经典桌面
在终端(terminal)执行以下命令即可:
sudo apt-get update
sudo apt-get install gnome-session-fallback
启动桌面
xstart
-------------
fsck - check and repair a Linux filesystem
卡机情况下强行关机,重启异常,进不了开机界面,报错为:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
并且将tf卡拿到pc上无法读取系统文件。。
参考:https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=47286 ==》 修复文件系统 ==》 正常了
sudo fdisk -l
fsck /dev/sdb
sudo fsck /dev/sdb
sudo fsck /dev/sdb2
yyyyyyy yyyy ==同意。