After assembled Raspberry Pi, the default is bare metal, you can not start to use. Play Raspberry Pi general use of the Linux operating system, Ubuntu installation process for the Raspberry Pi system initialization and environment of the record.
Raspberry Pi assembled as shown below:
1). Make a boot image
First of all, (from Ubuntu's official website https://www.ubuntu.com/download/iot/raspberry-pi-2-3 ) Download Ubuntu Server mirroring;
After that, use Win32 Disk Imager software will be written to the mirror to Raspberry Pi SD card, the shots are as follows:
Click Write to write to the SD card image waiting to complete, insert the SD card interface to start raspberry pie raspberry pie;
2) sent through the network cable is connected raspberry
After the Raspberry Pi started, in the absence of the display, we can through the network cable into the PC and Raspberry Pi respectively connected Raspberry Pi, the specific practices are as follows:
1. the Control Panel - "Network and Internet -" Network and Sharing Center, select the current Internet connection in the PC, the access to the shared network connection Raspberry Pi in the properties, as shown below:
2. Set the IP, the mask information in the network interface properties in Raspberry Pi, as shown below:
3. Open a CMD terminal, an input arp -a command can be seen as the assigned IP Raspberry Pi, marked lower part of FIG:
After that, you can use XShell, Putty and other terminal connected to a Raspberry Pi (default username / password system is ubuntu).
3) as a raspberry pie to install and configure Remote Desktop Connection
1. First install the Ubuntu server desktop:
# apt-get update
# apt install xrdp # apt install xfce4 # apt install xubuntu-desktop
2. Configure xfce4
# echo "xfce4-session">~/.xsession
3. Restart xrdp
# service xrdp restart
4. 安装和配置vnc4server
# apt install vnc4server
# vncserver
...设置密码
# 下面这一步不设置可能看不到界面
# sed -i 's$x-window-manager$xfce4-session$' ~/.vnc/xstartup
# vncserver
New 'ubuntu:1 (root)' desktop is ubuntu:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ubuntu:1.log
最后,从https://www.realvnc.com/en/connect/download/viewer/下载VNC Viewer连接树莓派,如下:
参考: https://blog.csdn.net/weixin_41803874/article/details/81042115