从0到1一步一步玩转openEuler--04 openEuler UKUI 桌面环境的安装和使用

04 openEuler UKUI 桌面环境的安装和使用

04 openEuler UKUI 桌面环境的安装和使用4.1 UKUI简介4.2 UKUI安装方法4.2.1 更新软件源4.2.2 安装UKUI4.2.3 设置图形界面启动4.2.4 重启生效4.3 UKUI图形界面

本文介绍常用的 openEuler UKUI 桌面环境的安装和使用方法,它提供美观易用、安全可靠的图形化操作界面,给用户带来更好的体验。

4.1 UKUI简介

UKUI是麒麟软件团队历经多年打造的一款 Linux 桌面,主要基于 GTK 和 QT 开发。与其它 UI 界面相比,UKUI 更加注重易用性和敏捷度,各元件相依性小,可以不依赖其它套件而独自运行,给用户带来亲切和高效的使用体验。

UKUI支持x86_64和aarch64两种架构。

前提:下载openEuler ISO镜像并已安装系统。

4.2 UKUI安装方法

4.2.1 更新软件源

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n11" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"># dnf update</pre>

示例命令如下:

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n13" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">[root@scfuture-21 ~]# dnf update
Last metadata expiration check: 0:45:19 ago on 2022年12月03日 星期六 10时39分32秒.
Dependencies resolved.
=============================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================
Upgrading:
NetworkManager x86_64 1:1.32.12-12.oe2203 update 2.2 M
NetworkManager-config-server noarch 1:1.32.12-12.oe2203 update 12 k
NetworkManager-libnm x86_64 1:1.32.12-12.oe2203 update 1.6 M
acl x86_64 2.3.1-2.oe2203 update 51 k
atk x86_64 2.36.0-2.oe2203 update 262 k
atk-devel x86_64 2.36.0-2.oe2203 update 196 k
augeas x86_64 1.13.0-3.oe2203 update 376 k
authselect x86_64 1.2.4-6.oe2203 update 189 k
bash x86_64 5.1.8-6.oe2203 update 1.2 M
bc x86_64 1.07.1-11.oe2203 update 89 k
bind-libs x86_64 32:9.16.23-11.oe2203 update 1.2 M
bind-license noarch 32:9.16.23-11.oe2203 update 18 k
bind-utils x86_64 32:9.16.23-11.oe2203 update 178 k
bluez-libs x86_64 5.54-15.oe2203
Downloading Packages:
(1/260): duktape-2.6.0-1.oe2203.x86_64.rpm 680 kB/s | 143 kB 00:00
(2/260): elfutils-extra-0.185-13.oe2203.x86_64.rpm 389 kB/s | 227 kB 00:00
(3/260): grub2-tools-efi-2.06-15.oe2203.x86_64.rpm 755 kB/s | 463 kB 00:00
(4/260): NetworkManager-config-server-1.32.12-12.oe2203.noarch.rpm 241 kB/s | 12 kB 00:00
(5/260): NetworkManager-1.32.12-12.oe2203.x86_64.rpm 8.9 MB/s | 2.2 MB 00:00
(6/260): acl-2.3.1-2.oe2203.x86_64.rpm 1.0 MB/s | 51 kB 00:00
(7/260): atk-2.36.0-2.oe2203.x86_64.rpm 3.7 MB/s | 262 kB 00:00
(8/260): atk-devel-2.36.0-2.oe2203.x86_64.rpm 3.1 MB/s | 196 kB 00:00
(9/260): augeas-1.13.0-3.oe2203.x86_64.rpm 4.6 MB/s | 376 kB 00:00
(10/260): authselect-1.2.4-6.oe2203.x86_64.rpm 3.5 MB/s | 189 kB 00:00
(11/260): bash-5.1.8-6.oe2203.x86_64.rpm 12 MB/s | 1.2 MB 00:00
(12/260): NetworkManager-libnm-1.32.12-12.oe2203.x86_64.rpm 2.5 MB/s | 1.6 MB 00:00
(13/260): bc-1.07.1-11.oe2203.x86_64.rpm 1.2 MB/s | 89 kB 00:00
.
.
.
vim-minimal-2:9.0-1.oe2203.x86_64
wayland-1.19.91-4.oe2203.x86_64 wayland-devel-1.19.91-4.oe2203.x86_64 words-3.0-33.oe2203.noarch
xz-5.2.5-2.oe2203.x86_64
xz-devel-5.2.5-2.oe2203.x86_64 xz-libs-5.2.5-2.oe2203.x86_64
yajl-2.1.0-18.oe2203.x86_64
yum-4.10.0-7.oe2203.noarch
zlib-1.2.11-22.oe2203.x86_64
zlib-devel-1.2.11-22.oe2203.x86_64
Installed:
duktape-2.6.0-1.oe2203.x86_64 elfutils-extra-0.185-13.oe2203.x86_64 grub2-tools-efi-1:2.06-15.oe2203.x86_64
kernel-5.10.0-60.68.0.93.oe2203.x86_64

Complete!
[root@scfuture-21 ~]# </pre>

4.2.2 安装UKUI

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n15" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"># dnf install ukui -y</pre>

示例命令如下:

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n17" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">[root@scfuture-21 ~]# dnf install ukui
Last metadata expiration check: 0:59:17 ago on 2022年12月03日 星期六 10时39分32秒.
Dependencies resolved.
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
ukui noarch 2.0.2-14.oe1 EPOL 12 k
Installing dependencies:
GeoIP x86_64 1.6.12-6.oe2203 OS 106 k
GeoIP-GeoLite-data noarch 2018.06-4.oe2203 update 26 M
LibRaw x86_64 0.20.2-5.oe2203 everything 356 k
PackageKit-devel x86_64 1.1.12-10.oe2203 OS 103 k
SDL2 x86_64 2.0.12-4.oe2203 update 464 k
SDL2-devel x86_64 2.0.12-4.oe2203 update 266 k
accountsservice x86_64 0.6.55-1.oe2203 OS 113 k
adobe-mappings-cmap noarch 20190730-3.oe2203 OS 15 k
adobe-mappings-cmap-lang noarch 20190730-3.oe2203 OS 2.5 M
adobe-mappings-pdf noarch 20190401-2.oe2203
.
.
.
xorg-x11-drv-qxl-0.1.5-14.oe2203.x86_64 xorg-x11-drv-synaptics-legacy-1.9.1-3.oe2203.x86_64
xorg-x11-drv-v4l-0.3.0-1.oe2203.x86_64
xorg-x11-drv-vesa-2.5.0-1.oe2203.x86_64
xorg-x11-drv-vmware-13.3.0-2.oe2203.x86_64
xorg-x11-drv-wacom-0.40.0-1.oe2203.x86_64
xorg-x11-font-utils-1:7.5-43.oe2203.x86_64
xorg-x11-fonts-7.5-24.oe2203.noarch xorg-x11-server-1.20.11-4.oe2203.x86_64
xorg-x11-server-utils-7.7-29.oe2203.x86_64
xorg-x11-utils-7.5-31.oe2203.x86_64
xorg-x11-xauth-1:1.1-1.oe2203.x86_64
xorg-x11-xinit-1.4.1-1.oe2203.x86_64
xorg-x11-xkb-utils-7.7-30.oe2203.x86_64
xvidcore-1.3.7-1.oe2203.x86_64
yelp-tools-3.38.0-1.oe2203.noarch yelp-xsl-3.38.3-1.oe2203.noarch
zenity-3.41.0-1.oe2203.x86_64
zimg-2.9.3-2.oe2203.x86_64
zvbi-0.2.35-7.oe2203.x86_64

Complete!
[root@scfuture-21 ~]# </pre>

4.2.3 设置图形界面启动

在确认正常安装后,如果希望以图形界面的方式启动,请在命令行运行以下代码

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n20" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"># systemctl set-default graphical.target</pre>

示例命令如下:

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n22" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">[root@scfuture-21 ~]# systemctl set-default graphical.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target.
[root@scfuture-21 ~]# </pre>

4.2.4 重启生效

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n24" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"># reboot</pre>

示例命令如下:

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="bash" cid="n26" mdtype="fences" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">[root@scfuture-21 ~]# reboot
[root@scfuture-21 ~]#</pre>

4.3 UKUI图形界面

image-20221203115720129
image-20221203115835135
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 213,616评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 91,020评论 3 387
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 159,078评论 0 349
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,040评论 1 285
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,154评论 6 385
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,265评论 1 292
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,298评论 3 412
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,072评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,491评论 1 306
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,795评论 2 328
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,970评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,654评论 4 337
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,272评论 3 318
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,985评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,223评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,815评论 2 365
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,852评论 2 351

推荐阅读更多精彩内容