# Raspberry Pi Tutorial ## Install Raspberry Pi OS using Raspberry Pi Imager ### SD card formatter Download at [https://www.sdcard.org/downloads/formatter/](https://www.sdcard.org/downloads/formatter/). ### Raspberry Pi Imager Download at [https://www.raspberrypi.org/software/](https://www.raspberrypi.org/software/). #### click "==CHOOSE OS==" > choose "Raspberry Pi OS(32-bit)" #### Optional: preconfigure OS > press ==Ctrl== + ==Shift== + ==X== > choose "Set locale settings" #### Choose SD card > choose "CHOOSE STORAGE" #### Write and verify SD card > choose "WRITE" ref: [https://www.youtube.com/watch?v=ntaXWS8Lk34](https://www.youtube.com/watch?v=ntaXWS8Lk34) ## Start VNC and SSH ### Install full VNC ```cmd $ sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer ``` ### If appear "cannot currently show the desktop" in VNC ```cmd $ sudo raspi-config ``` > ==Advanced options== > ==Resolution== > ==Mode 82 1920x1080 60Hz 16:9== ref: [https://nodoubting.blogspot.com/2019/12/raspberry-pi-4-realvnc-cannot-currently.html](https://nodoubting.blogspot.com/2019/12/raspberry-pi-4-realvnc-cannot-currently.html) ## Perfences setting > ==menu== > ==Perfences== > ==Raspberry Pi Configuration== > ==Localisation== > Set Locale >> Language: zh (Chinese) >> Country: TW (Taiwan R.O.C.) >> Character Set: UTF-8 >> > Set Timezone >> Area: Asia >> Location: Taipei >> > Set WiFi Country >> Country: TW Taiwan ## Connect to WIFI ### Set up ```cmd $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf ``` ### Show IP address ```cmd $ ifconfig ``` ref: [http://wuhsiublog.blogspot.com/2017/01/raspberry-pi-3-wifiip.html](http://wuhsiublog.blogspot.com/2017/01/raspberry-pi-3-wifiip.html) ## Install Chinese environment ```cmd $ sudo apt-get install fonts-arphic-uming scim scim-chewing ``` ## User management ### Add new user ```cmd $ sudo adduser <user name> $ sudo su $ adduser <user name> sudo $ exit ``` ### Query user name ```cmd $ whoami ``` ### Switch user ```cmd $ sudo su - <user name> ``` ref: [http://wordpress.bestdaylong.com/blog/archives/16152](http://wordpress.bestdaylong.com/blog/archives/16152) [https://atceiling.blogspot.com/2020/02/raspberry-pi-58.html](https://atceiling.blogspot.com/2020/02/raspberry-pi-58.html) ## Install TeamViewer [https://www.teamviewer.com/en/solutions/remote-desktop/raspberry-pi/](https://www.teamviewer.com/en/solutions/remote-desktop/raspberry-pi/) ## Install OpenCV ref: [https://medium.com/linux-on-raspberry-pi4/raspberry-pi%E5%AE%89%E8%A3%9Dopencv-%E5%AE%89%E8%A3%9D%E7%AF%87-1e6e35051680](https://medium.com/linux-on-raspberry-pi4/raspberry-pi%E5%AE%89%E8%A3%9Dopencv-%E5%AE%89%E8%A3%9D%E7%AF%87-1e6e35051680)