Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
树莓派最小桌面系统

树莓派最小桌面系统

第1部分 – 建立基础

在这一部分,我们将专注于准备Raspbian Lite。

1、下载最新的Raspbian Lite图像。(https://www.raspberrypi.org/downloads/raspbian/
2、使用Win32DiskImager把Raspbian Lite刷SD中.
3、将SD / microSD卡插入Pi。
4、将Pi连接到Internet。以太网是最快的方式。否则我们必须使用Wi-Fi,则必须在Pi完成引导后。由于我们的WI-FI是隐藏的,所以需要修改:/etc/wpa_supplicant/wpa_supplicant.conf

#sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

在文件中加入以下:

4.1也可以使用树莓派来配置WI-FI

    4.1.1运行:

          #sudo raspi-config 

          1. 选择 Network Options

          2. WI-FI(选择后输入SSID密码就可以了)

5、连接电视/显示器和键盘(此时鼠标是可选的)打开Pi,Pi应该成功启动并出现登录提示。
6、登录Raspbian。用户名是pi,密码是raspberry

第2部分 – 更新系统到最新

    1、安装更新,如果提示确认请输入Y.

      #sudo apt-get update   

      #sudo apt-get upgrade

      #sudo apt-get dist-upgrade

   2、运行完成后需要做一个清理。

      #sudo apt-get clean

第3部分 – 设定本地化

  1、首先们需安装中文的字体,不然会乱码    

sudo apt-get install ttf-wqy-zenhei ttf-wqy-microhei 安装文泉驿字体,若有中文字体则省略 
  2 、使用配置本地地址: sudo raspi-config 
  3、选择第四项 locallisation Options 
  4、I1 change locale 
  5、zh_cn.UTF8 和UTF-8 zh_GBK 空格键选择后 tab键确认 
  6、再次选择zh_cn.UTF-8 
  7、重启 sudo reboot

第4部分 – 开始安装桌面。

    下一部分重点介绍如何在Raspbian Lite上安装GUI。为了拥有GUI,我们需要以下4件事

     1.显示服务器
     2.桌面环境
     3.窗口管理器
     4.登录管理器

1、打开你的Pi并登录。我们将安装Xorg。要执行此操作,请键入:

   sudo apt-get install –no-install-recommends xserver-xorg

 然后按Enter键。将要安装许多依赖软件包,但必须安装这些软件包才能使GUI正常工作。安装中如果需要确认请输入Y。

如果只安装xserver-xorg,则无法从命令行启动Xorg Display Server。我们还需要安装xinit:

   sudo apt-get install –no-install-recommends xinit

2、Raspberry Pi Desktop(RPD)GUI 选择你想要安装的桌面。

    这里我选择的是LXDE GUI 它运行占用资源少。

    sudo apt-get install lxde-core lxappearance

    安装中如果需要确认请输入Y。

3、登录管理器安装:

     sudo apt-get install lightdm  

安装完成后我们就可以使用桌面系统了。

     startx

运行完成以上命令就可以看到你自己安装的桌面了。

4、Pi用户自动登录:

   sudo raspi-config

  1. 选择Boot Options
  2. Desktop / CLT
  3. Desktop Autologin Desktop GUI 桌面环境
  4. finish
  5. reboot

以上我们就完成了最小桌面系统。

#参考官方主页:

https://www.raspberrypi.org/forums/viewtopic.php?t=133691

下面我们来安装一些必要的软件。

1.安装Wi-FI 管理软件。     

sudo apt-get install network-manager-gnome

运行就可以看到图标了。

nm-applet

2.安装一个文本编辑器。

sudo apt-get install mousepad

3.安装Chromium.

sudo apt-get install chromium-browser

好了你现在可以上网了。

发布于 分类 Linux