Last active
January 23, 2020 16:04
-
-
Save n0mimono/76c66435eeb07107b03caa5852c8341b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://qiita.com/shippokun/items/9070fc58f69d8c063e44 | |
# list | |
diskutil list | |
# erase data | |
diskutil unMountDisk /dev/disk2 | |
#diskutil eraseDisk MS-DOS boot /dev/disk2 | |
# burn image | |
diskutil unMountDisk /dev/disk2 | |
#sudo dd if=/Users/YOUR_NAME/Downloads/2019-09-26-raspbian-buster-lite.img of=/dev/rdisk2 bs=1m | |
#sudo dd if=/Users/YOUR_NAME/Downloads/MPI3501-3.5inch-raspbian-buster-2019-09-26.img of=/dev/rdisk2 bs=1m | |
# enable ssh | |
# ref: https://raspida.com/headless-install2pi0w | |
touch /Volumes/boot/ssh | |
# enable wifi | |
# http://jorisvr.nl/wpapsk.html | |
echo 'country=JP | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="YOUR_WIFI_SSID" | |
psk=YOUR_WIFI_PASSWORD | |
}' > /Volumes/boot/wpa_supplicant.conf | |
ls /Volumes/boot/ | |
cat /Volumes/boot/wpa_supplicant.conf | |
# connect pi | |
# password: raspberry | |
arp -a | |
ssh pi@raspberrypi.local | |
#ssh pi@192.168.xxx.xxx | |
# packages | |
sudo apt-get update | |
sudo apt dist-upgrade -y | |
sudo apt-get install git vim | |
sudo apt-get install libevdev2 xserver-xorg-core | |
#sudo apt --fix-broken install | |
sudo apt-get autoremove -y | |
sudo apt-get autoclean | |
# for 3.5inch_RPi_Display | |
# http://www.lcdwiki.com/3.5inch_RPi_Display | |
sudo rm -rf LCD-show | |
git clone https://github.com/goodtft/LCD-show.git | |
chmod -R 755 LCD-show | |
cd LCD-show/ | |
sudo ./LCD35-show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment