代码语言:txt复制
ubuntu@192.168.2.107's password: 代码语言:txt复制You are required to change your password immediately (administrator enforced)代码语言:txt复制Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1028-raspi aarch64)代码语言:txt复制 * Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage代码语言:txt复制 System information as of Sun Mar 7 20:19:00 UTC 2021代码语言:txt复制 System load: 0.79 Temperature: 49.7 C代码语言:txt复制 Usage of /: 6.2% of 28.96GB Processes: 141代码语言:txt复制 Memory usage: 7% Users logged in: 0代码语言:txt复制 Swap usage: 0% IPv4 address for eth0: 192.168.2.107代码语言:txt复制0 updates can be installed immediately.代码语言:txt复制0 of these updates are security updates.代码语言:txt复制The list of available updates is more than a week old.代码语言:txt复制To check for new updates run: sudo apt update代码语言:txt复制The programs included with the Ubuntu system are free software;代码语言:txt复制the exact distribution terms for each program are described in the代码语言:txt复制individual files in /usr/share/doc/*/copyright.代码语言:txt复制Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by代码语言:txt复制applicable law.代码语言:txt复制WARNING: Your password has expired.代码语言:txt复制You must change your password now and login again!代码语言:txt复制Changing password for ubuntu.代码语言:txt复制Current password: 代码语言:txt复制New password: 代码语言:txt复制Retype new password: - 9.重新使用
ssh ubuntu@你的树莓派ip和你的新密码进行登录。得到如下界面
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1028-raspi aarch64)代码语言:txt复制 * Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage代码语言:txt复制 System information as of Sun Mar 7 20:20:42 UTC 2021代码语言:txt复制 System load: 0.69 Temperature: 51.1 C代码语言:txt复制 Usage of /: 6.4% of 28.96GB Processes: 140代码语言:txt复制 Memory usage: 7% Users logged in: 0代码语言:txt复制 Swap usage: 0% IPv4 address for eth0: 192.168.2.107代码语言:txt复制0 updates can be installed immediately.代码语言:txt复制0 of these updates are security updates.代码语言:txt复制The list of available updates is more than a week old.代码语言:txt复制To check for new updates run: sudo apt update代码语言:txt复制Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings代码语言:txt复制Last login: Sun Mar 7 20:19:04 2021 from 192.168.2.195代码语言:txt复制To run a command as administrator (user "root"), use "sudo <command>".代码语言:txt复制See "man sudo_root" for details.- 10.安装完成,完美!
- 11.安装桌面
#更新代码语言:txt复制apt update代码语言:txt复制#安装桌面环境代码语言:txt复制sudo apt install xfce4 xfce4-goodies代码语言:txt复制#安装vncserver代码语言:txt复制apt install tightvncserver代码语言:txt复制#启动vncserver代码语言:txt复制vncserver代码语言:txt复制#关闭vncserver :1窗口代码语言:txt复制vncserver -kill :1代码语言:txt复制#备份原来的配置文件代码语言:txt复制cp ~/.vnc/xstartup ~/.vnc/xstartup.bak代码语言:txt复制#编辑新的配置文件代码语言:txt复制vim ~/.vnc/xstartup将xstartup文件更改为如下
代码语言:txt复制#!/bin/bash代码语言:txt复制xrdb $HOME/.Xresources代码语言:txt复制startxfce4 &重新启动vncserver


