当前位置:首页 > 技术 > LINUX > 正文内容

alpine安装图形界面Xfce 【转】

Watrt10个月前 (11-11)LINUX7930

alpine安装图形界面Xfce,这个官方文档很细:https://wiki.alpinelinux.org/wiki/Xfce_Setup#Prerequisites

我只是做个记录,做个笔记好日后观看。

VirtualBox_alpine_11_11_2025_09_42_18.png

setup-xorg-base

这是图形界面的基础

setup-xorg-base

AI写代码

安装Xfce相关

apk add xfce4 xfce4-terminal xfce4-screensaver lightdm-gtk-greeter

配置

启动dbus(桌面总线)服务:

# rc-service dbus start

使dbus在启动时启动:

# rc-update add dbus

启动Xfce

使用显示管理器(图形登录)

如果软件包lightdm-gtk-greeter已安装在上面,则lightdm显示管理器可能会启动以新用户图形登录。

rc-service lightdm start

一旦确认它确实有效,就可以在引导过程中启用lightdm来启动:

rc-update add lightdm

命令行启动

apk add xinit
xint /usr/bin/startxfce4

至此图形化界面就可以正常出来了。

中文

首选配置中文语言环境,请参考:

《alpine linux配置中文语言环境》

https://blog.csdn.net/lxyoucan/article/details/117165981

编辑~/.xprofile文件

增加如下内容:

export LANG=zh_CN.UTF-8

中文字体安装

在没有安装中文字体的情况下会乱码,所以要安装一下。

apk add font-noto-cjk

刷新字体缓存

复制完字体运行

fc-cache -vf

这样中文字体就不乱码了。


中文输入法

fcitx5


打赏 支付宝打赏 微信打赏

相关文章

制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘

0. 前言近几天买了一块荔枝派0开发板,以及官方配的480×272的屏幕。让我记录一下入坑与采坑过程。1. u-boot的编译git clone https://github.com/Lichee-Pi/u-boot -b v3s-current cd u-boot make ARCH=arm LicheePi_Zero_480x272LCD_defconfig make ARCH=arm CROSS...

Linux系统信息查看命令大全

Linux系统信息查看命令大全

最近看了一些Linux命令行的文章,在系统信息查看方面学到不少命令。想起以前写过的一篇其实Linux这样用更简单,发现这些系统信息查看命令也可以总结出一篇小小的东西来了。另外这里还有非常多的命令,可以作为参考。系统# uname -a               # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue   # 查看操作系统版本# cat /proc/cpuinfo  ...

buildroot编译中的问题

buildroot编译中的问题

在编译中遇到flex 报错。一直过不了。后来发现安装flex bison两个包后解决sudo apt-get install flex bison...

debootstrap报"Release signed by unknown key"错误的解决方法

debootstrap报"Release signed by unknown key"错误的解决方法

1、下载最新的ASC文件:wget https://ftp-master.debian.org/keys/release-11.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-11.gpg注意这里的11对应debian的版本号。我这里是debian11 (bullseye)2、debootstrap指定asc文件sudo&...

老是提示:newer kernel available 解决方法

老是提示:newer kernel available 解决方法

这个是由于没有正确的安装内核造成的。可以直接关掉提示 sudo apt purge needrestart...

Configure & Build

Configure & Build

Configure and build Linux kernel for Surface RTEditing kernel build configurationFirst run the command make ARCH=arm tegra_defconfigThis will create a standard kernel config for tegra SoC's.Open the file .config in the kernel source directory wit...

f1c100s编译启动所需的uboot,kernel,rootfs

f1c100s编译启动所需的uboot,kernel,rootfs

 https://github.com/Icenowy/linux.git 有f1c100s-480272lcd-test和f1c100s分支, 然后自己手动修复一个 USB 问题,驱动就比较全了https://github.com/Lichee-Pi/linux.git 有nano-4.14-exp和nano-5.2-flash分支,用哪个合适个人画了块没有连接任何其他模块的F1C100S开发板,没有链接任何外设,本文是编译所有启动所需的三大件。(只要编...

荔枝派Nano的linux5.2版本主线下载及编译(支持USB设备与主机模式)

荔枝派Nano的linux5.2版本主线下载及编译(支持USB设备与主机模式)

安装必须的库:sudo apt-get install gcc make cmake rsync wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev python3-distutils android-tools-mkbo...