Raspbian

rootのパスワード設定

sudo passwd root

 

Raspbian 设置固定IP

https://blog.csdn.net/leem1986/article/details/77933936

# vi /etc/dhcpcd.conf

#网线

interface eth0
static ip_address=192.168.1.15
nogateway
#static routers=192.168.1.1
#static domian_name_servers=114.114.114.114
#static domian_name_servers=114.114.115.115

#无线
#interface wlan0
#static ip_address=192.168.1.15
#static routers=192.168.1.1
#static domian_name_servers=114.114.114.114
#static domian_name_servers=114.114.115.115

最新的Raspbian默认是没开SSH服务吗?怎么让他开机自启

楼主已经验证了官方的解决方案,在内存卡根目录下建个名为“ssh”的文件,放入树莓派重启就会自启ssh了

 

配置树莓派3无线wifi连接

https://my.oschina.net/u/2306127/blog/392442

树莓派3命令行配置wifi无线连接和蓝牙连接

# 编辑wifi文件
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
# 在该文件最后添加下面的话
country=JP
network={
  ssid="WIFINAME"
  psk="password"
}
# 引号部分分别为wifi的名字和密码
# 保存文件后几秒钟应该就会自动连接到该wifi
# 查看是否连接成功
ifconfig wlan0
配置树莓派3蓝牙连接
pi@raspi3:~ $ sudo bluetoothctl
[NEW] Controller BB:27:EB:0D:9D:DD raspi3 [default]
[bluetooth]# list
Controller BB:27:EB:0D:9D:DD raspi3 [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller BB:27:EB:0D:9D:DD Discovering: yes
[NEW] Device E8:07:BF:3A:25:AA NDZ-03-GA
[CHG] Device E8:07:BF:3A:25:AA RSSI: -66
[bluetooth]# agent on
Agent registered
[CHG] Device E8:07:BF:3A:25:AA RSSI: -56
[bluetooth]# pair E8:07:BF:3A:25:AA
Attempting to pair with E8:07:BF:3A:25:AA
[CHG] Device E8:07:BF:3A:25:AA Connected: yes
[CHG] Device E8:07:BF:3A:25:AA UUIDs:
00001108-0000-1000-8000-00805f9b34ff
[CHG] Device E8:07:BF:3A:25:AA Paired: yes
Pairing successful
[CHG] Device E8:07:BF:3A:25:AA Connected: no
[bluetooth]# trust E8:07:BF:3A:25:AA
[CHG] Device E8:07:BF:3A:25:AA Trusted: yes
Changing E8:07:BF:3A:25:AA trust succeeded
[bluetooth]# connect E8:07:BF:3A:25:AA
这样就连上蓝牙设备了,如果是蓝牙音响的话还得装下支持软件:
sudo apt-get install pulseaudio pulseaudio-module-bluetooth
蓝牙键盘elecom自动链接
systemctl enable bluetooth
bluemanインストールと設定
sudo apt-get install blueman
sudo blueman-manager

 

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注