Download system and write disk
64-bit Raspi images 64-bit Full Raspi images
Enable SSH
create empty file named ssh
under the disk named boot
Connecting wifi for the 1st time
create wpa_supplicant.conf
under disk named boot
, write followings:
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<wifi name>"
psk="<wifi passwd>"
key_mgmt=WPA-PSK
}
then, plug the SD card to pi and start the pi. You should be able to connect to Pi using SSH.
init name: pi
, init passwd: raspberry
Change Password and enable root
change passwd:
sudo passwd pi
sudo passwd root
enable root login:
sudo passwd --unlock root
Open VNC to enable Remote desktop
sudo raspi-config
Interfacing Options →→ VNC →→ YES
reboot after installation.
Debug: VNC: cannot show the desktop
changing resolution for VNC to a resolution of ratio 16:9 is needed(e.p. 1280x720)
sudo raspi-config
Display Options →→ VNC resolution
select a preferred resolution and reboot after alteration.
Change Apt package source
Enable remote root login
sudo nano /etc/ssh/sshd_config
change #PermitRootLogin prohibit-password
to PermitRootLogin yes
Software Installation
Install miniconda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py37_4.9.2-Linux-aarch64.sh
sudo chmod +x Miniconda3-py37_4.9.2-Linux-aarch64.sh
sh Miniconda3-py37_4.9.2-Linux-aarch64.sh
After installation, add miniconda’s installation path to .bashrc:
sudo gedit ~/.bashrc
write this into .bashrc:
export PATH=$PATH:/home/pi/miniconda3/bin
,path should be modified accordingly.
Install VScode
sudo apt install code