树莓派的一些操作指令

更换国内源
vi /etc/apt/sources.list
#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main contrib non-free rpi

sudo apt-get update


sudo apt-get install vim


超频:
sudo apt-get install raspberrypi* raspi-config
sudo raspi-config
选择 overclock,选择对应的频率



在树莓派上安装Tight VNC 包
sudo apt-get install tightvncserver

启动VNC服务器,命令如下
vncserver :1

远程计算机上访问
下载 VNC Viewer,地址:http://www.tightvnc.com/download.php

输入树莓派的IP地址,后面加上 :1 字样


查看当前CPU频率
sudo cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq

查看当前CPU温度
vcgencmd measure_temp