# Raspberry Pi ###### tags: `IOT` # Install OS into microSD ## Step1: install pi tool > https://www.raspberrypi.com/software/ ![](https://i.imgur.com/h76lltt.png) ## Step2: Format microSD > ![](https://i.imgur.com/mb3Q2MC.png) ## Step3: Install pi OS > ![](https://i.imgur.com/4yYTKYo.png) ## Step4: Enable ssh connect > ![](https://i.imgur.com/9CTXWTe.png) ## Step5: SSH connect using terminal connect pi password: 12345678 > ![](https://i.imgur.com/4UYnsKK.png) --- # Using VNC connect pi ## Step1: install VNC tool on Raspberry PI (預設是已安裝) ![](https://hackmd.io/_uploads/r15ZbUu8h.png) ## Step2: enable VNC connect ![](https://hackmd.io/_uploads/rkPBf8_Lh.png) ![](https://hackmd.io/_uploads/rJBhMUd83.png) ![](https://hackmd.io/_uploads/BJjozUuUn.png) ### Can set VNC config from Raspberry Pi screen ![](https://hackmd.io/_uploads/H13XXIdL2.png) ## Step2: Install VNC real > https://www.realvnc.com/en/connect/download/viewer/ > ![](https://i.imgur.com/YvmHSNB.png) --- > ![](https://i.imgur.com/P0XTabq.png) --- > ![](https://i.imgur.com/BPBGRfF.png) # TTL connect ### Step:1 plug in plug > ![](https://i.imgur.com/oW93Xky.png) ### Step2: Install TTL driver on windows > http://www.oneping.com.tw/fileDownload.htm > ![](https://i.imgur.com/tct0dHS.png) --- ### Step3: Excute launch file and install > ![](https://i.imgur.com/CnTlQwv.png) --- ### Step4: Install IDE for TTL connect https://mobaxterm.mobatek.net/download.html ![](https://i.imgur.com/73n2lpK.png) ### Step5: Turn off bluetooth > ![](https://i.imgur.com/vBtVofm.jpg) --- > ![](https://i.imgur.com/MhEWXSx.png) --- > ![](https://i.imgur.com/qhdLqKD.png) --- > ![](https://i.imgur.com/EsnvUN6.png) --- > ![](https://i.imgur.com/NGVDJ0x.png) --- ### Raspberry restart excute python file ``` cd /home/pi cd .config mkdir autostart # whole file in this path will excute when server reboot cd autostart vi tightvnc.desktop ``` ``` [Desktop Entry] Type=Application Name=TightVNC Exec=python3 /home/pi/python_file.py StartupNotify=false ``` ![](https://hackmd.io/_uploads/B1Gvqtd83.png)