树莓派初次配置

配置

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

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

sundaygeek

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值