树莓派(Raspberry Pi)Ubuntu mate WIFI配置与禁用休眠

当使用桌面端连接WiFi时,会生成以下配置文件:

I have at least found where NetworkManager stores its configuration files in /etc/NetworkManager/system-connections

[Link]

命令行配置自动连接WiFi

I use a similar method as on Raspbian. I put the following to /etc/network/interfaces (I think this is the part you are missing):

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

And then I put the details to the /ect/wpa_supplicant/wpa_supplicant.conf:

network={
ssid="WIFI-SSID"
psk="password"
}

It works for me with Raspberry Pi 3 Model B and Ubuntu Mate 16.04.

[Link]

第一步中的 “wlan0” 要根据具体的名称改变,使用命令ifconfig即可查看。

以上方法也适用于树莓派2代(Raspberry Pi 2 Model B)。

禁用休眠

/etc/profile.d/ 目录下新建 screen.sh 文件,将以下两行写入文件并增加可执行权限 sudo chmod +x screen.sh

xset dpms 0 0 0
xset s off