配置
sudo raspi-config
更新源及设置代理
更新源
默认树莓派的更新源使用的是英国的源,速度奇慢;改成国内树莓派的更新源方法,看下边:
备份源列表文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
在这里找到适合国内的更新源,我一般使用的是中科大的源
编辑源列表
sudo nano /etc/apt/sources.list
删除原先的内容
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian wheezy main contrib non-free rpi
修改成以下内容
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main contrib non-free rpi
Ctrl + X确认并保存
系统更新(看速度是否上来了)
sudo apt-get update
sudo apt-get upgrade
代理设置
有时候上网需要设定代理,方法看这边:
到下面的路径
cd /etc/apt/apt.conf.d
新建一个名为10proxy的文件
sudo nano 10proxy
编辑其中内容
sudo nano /etc/apt/apt.conf.d/10proxy
如果不需要认证,以下格式即可
Acquire::http::Proxy "http://web-proxy.corp.xx.com:8080";
如果需要认证,按照以下格式
Acquire::http::Proxy "http://username:password@yourproxyaddress:proxyport/";
Ctrl + X确认并保存,然后查看树莓派是否可以在代理下上网
配置中文输入法
sudo apt-get install ttf-wqy-zenhei
sudo apt-get install scim-pinyin
sudo raspi-config
然后选择change_locale,在Default locale for the system environment:中选择zh_CN.UTF-8,配置完成之后,输入命令
sudo reboot
配置静态WLAN IP
配置蓝牙
命令汇总
[bluetooth]# help
Available commands:
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices List available devices
paired-devices List paired devices
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
scan <on/off> Scan for devices
info <dev> Device information
pair <dev> Pair with device
trust <dev> Trust device
untrust <dev> Untrust device
block <dev> Block device
unblock <dev> Unblock device
remove <dev> Remove device
connect <dev> Connect device
disconnect <dev> Disconnect device
version Display version
quit Quit program