顯示具有 raspberry pi 標籤的文章。 顯示所有文章
顯示具有 raspberry pi 標籤的文章。 顯示所有文章

2020年3月10日 星期二

Raspberry Pi 3 Static IP, WIFI and Ethernet


sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="XXX"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
psk="XXXXX"
}

sudo nano /etc/network/interfaces
iface eth0 inet manual 
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

sudo nano /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.111/24
static routers=192.168.1.1
static domain_name+servers=8.8.8.8 
interface wlan0
static ip_address=192.168.1.222
static routers=192.168.1.1
static domain_name_servers=8.8.8.8

2019年7月16日 星期二

Raspberry pi 同時使用 藍牙及 UART

sudo raspi-config
Interface > Serial > No

sudo nano /boot/config.txt
新增底下三行
core_freq=250
dtoverlay=pi3-miniuart-bt
enable_uart=1

注意此時 uart 是使用系統時脈產生 baud rate,不能太快

2019年7月15日 星期一

RPI Hash-sum mismatch on apt-get

apt-get update 出現問題

嚐試使用低下方式解決…

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

2018年7月20日 星期五

備份 Raspberry Pi 時SD卡容量不相符的解決方式

備份回復 rpi image 的時候有時會遇到 sd card 雖號稱一樣 g 數,但實際大小卻不一樣,導致回復時出問題,此時可以用底下 scripts 解決,先把檔案變小就好解決… (linux 環境下)

Shrink your Raspberry Pi SD Card Image size

https://github.com/Drewsif/PiShrink

Very Nice !!


硬體從 rpi2 改到 rpi3
舊 SDCard 無法順利在 rpi3 開機的問題

apt-get install rpi-update
rpi-update

VirtualBox 空間減肥

sdelete64 -z c: VBoxManage  modifymedium  disk  "/Users/fellow/VirtualBox VMs/Win10/Win10.vdi"  --compact *.vdi 路徑可以在 VirtualBox 儲...