首页 > 编程知识 正文

linux命令行启动程序,uefishell命令行启动grub

时间:2023-05-04 08:13:19 阅读:225258 作者:1085

startx 命令

I don’t use xdm, gdm or kdm… I prefer my Linux booting to init 3. I like logging in to the command-prompt and starting X manually with startx. In my Fedora Linux box, I always get to gnome even both gnome and KDE are installed. Actually the startx script is already written for most of the modern desktop environment. What we need to do is open the “trigger”.

我不使用xdm , gdm或kdm …我更喜欢Linux引导而不是init 3 。 我喜欢登录到命令提示符并使用startx手动启动X。 在我的Fedora Linux机器中,即使同时安装了gnome和KDE,我也总是会遇到gnome 。 实际上, startx脚本已经为大多数现代桌面环境编写。 我们需要做的是打开“触发器”。

The startx script in Fedora will read /etc/sysconfig/desktop for the “DESKTOP” variable (through /etc/X11/xinit/Xclients) and starts the desktop environment depending on it. While the default value for “DESKTOP” is set to “GNOME”, we will get to gnome if we don’t set the variable. When we want to startx to KDE we just need to add one line to /etc/sysconfig/desktop:

Fedora中的startx脚本将通过/ etc / X11 / xinit / Xclients读取/ etc / sysconfig / desktop中的“ DESKTOP”变量,并启动桌面环境。 虽然“ DESKTOP”的默认值设置为“ GNOME” ,但如果不设置变量,我们将进入gnome状态。 当我们想从startx到KDE时,我们只需要向/ etc / sysconfig / desktop添加一行:

DESKTOP="KDE"

If there is already one line that defines “DESKTOP”, just change the value of it.

如果已经有一行定义“ DESKTOP” ,则只需更改其值即可。

Then we will start KDE when we run startx from console.

然后,当我们从控制台运行startx时,将启动 KDE。

Free additional gift

免费赠送额外礼物

The “DISPLAYMANAGER” in the /etc/sysconfig/desktop file is used to specify the default display manager. To make KDM the default display, just add this line:

/ etc / sysconfig / desktop文件中的“ DISPLAYMANAGER”用于指定默认的显示管理器。 要将KDM设置为默认显示,只需添加以下行:

DISPLAYMANAGER="KDE"

翻译自: https://www.systutorials.com/starting-kde-from-command-line-by-startx/

startx 命令

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。