因为一开始用的是lite镜像,现在想玩一玩桌面顺便接上家里不用的电视喵~(
- 安装桌面GUI及其管理服务
依次安装Xorg、xinit,加-y参数安装过程自动确认,需要下载和安装的时间比较长,建议泡个茶喝个咖啡什么滴。
sudo apt-get install --no-install-recommends xserver-xorg -y
sudo apt-get install --no-install-recommends xinit -y
安装桌面GUI类型,按个人爱好选其一:
Raspberry Pi Desktop (RPD) GUI
sudo apt-get install raspberrypi-ui-mods -y
LXDE GUI
sudo apt-get install lxde-core lxappearance -y
XFCE GUI
sudo apt-get install xfce4 xfce4-terminal -y
安装登陆管理器
sudo apt-get install lightdm
设置自动进入桌面
sudo raspi-config
到了这里不同的版本界面会可能有很大的区别,我大概用表格给你们看看我的。(截图太吃空间就不用了喵~)
提前说一下,这里你只需要找到意思是
Select boot into desktop or to command line
的就行,因为我参考别人的文章他的raspi-config界面和我完全不一样(Raspberry Pi Software Configuration Tool (raspi-config) 1 System Options Configure System Options system settings 2 Display Options Configure display settings 3 Interface ptions Configure connections to peripherals 4 Performance Options Configure performance settings 5 Localisation Options Configure language and regional settings 6 Advanced Options Configure advanced settings 8 Update Update this tool to the latest version - 上面选 1 System Options
Raspberry Pi Software Configuration Tool (raspi-config) S1 Wireless LAN Enter SSID and passphrase S2 Audio Select audio out through HDMI or 3.5mm jack S3 Password Change password for themiku’user S4 Hostname Set name for this computer ona network S5 Boot / Auto Login Select boot into desktop or to command line S6 Splash Screen Choose graphical splashscreenortext boot S7 Power LED Set behaviour of power LED S8 Browser Choose default web browser S9 Logging Set storage location for logs - 上面选 S5 Boot / Auto Login
Raspberry Pi Software Configuration Tool (raspi-config) B1 Console Text console, requiring user to login B2 Console Autologin Text console, automatically logged in as ‘miku’ user B3 Desktop Desktop GUI requiring user to login B4 Desktop Autologin Desktop GUI, automatically logged in as ‘miku’ user - 上面我选了 B4 Desktop Autologin 当然你也可以选B3。
选择后重启即可。