树莓派安装UbuntuServer

2021-12-06 13:52:13 浏览数 (1)

代码语言: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和你的新密码进行登录。得到如下界面
代码语言: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: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复制
#更新
代码语言: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

0 人点赞