1. 預設帳號密碼 ubuntu/ubuntu
2. 和 Raspbian 一樣要設定 /boot/config.txt 才能從 UART 登入
$ sudo vim /boot/config.txt
---
dtoverlay=pi3-miniuart-bt
core_freq=250
enable_uart=1
---
3. WiFi 設定
$ sudo apt-get install wireless-tools
$ sudo apt-get install wpasupplicant
$ sudo vim /etc/network/interfaces
---
auto wlan0
iface wlan0 inet dhcp
wpa-essid WIRELESSSSID
wpa-psk WIRELESSPASSWORD
---
$ reboot
以上是固定 SSID 作法
如果要像 Raspbian 使用 wpa_supplicant 管理的話, 要這樣做
$ sudo vim /etc/network/interfaces
---
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
---
而 /etc/wpa_supplicant/wpa_supplicant.conf 就像原本 Raspbian 設定的一樣了
---
country=GB
network={
ssid="MyWifiNetwork"
psk="myP4ssw0rd"
}
---
如果要用 x11vnc 的話, 也稍微麻煩一些
$ sudo vim /lib/systemd/system/x11vnc.service
---
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
---
$ sudo chmod +x /lib/systemd/system/x11vnc.service
$ sudo systemctl daemon-reload
$ sudo systemctl enable x11vnc.service
$ sudo systemctl start x11vnc.service
如果要改成不要輸入密碼, 修改 /etc/sudoers
$ sudo vim /etc/sudoer
---
-%sudo ALL=(ALL:ALL) ALL
---
reference:
* How to use onboard wifi on Raspberry Pi 3 with Ubuntu Server 16.04?
* Ubuntu 16.04 – Configure your system to have x11vnc running at startup
沒有留言:
張貼留言