前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >树莓派安装UbuntuServer

树莓派安装UbuntuServer

原创
作者头像
派大星在吗
发布2021-12-06 13:52:13
5960
发布2021-12-06 13:52:13
举报
文章被收录于专栏:我的技术专刊
代码语言: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

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档