blfs编译gnome桌面 gdm启动 Beyond Linux From Scratch

5 篇文章 0 订阅
4 篇文章 0 订阅

一、编译Linux From Scratch

此步骤是基础,默认大家可以正常编译,参考链接
https://www.linuxfromscratch.org/lfs/

二、编译X Window System Environment

  • Xorg-Server-1.20.13
    https://www.x.org/pub/individual/xserver/xorg-server-1.20.13.tar.xz
  • 先设置bash环境
    The following instructions assume that the shell startup files have been set up as described in The Bash Shell Startup Files.
    https://www.linuxfromscratch.org/blfs/view/stable-systemd/postlfs/profile.html
  • 后设置Xorg Build环境
    Setting up the Xorg Build Environment
export XORG_PREFIX="<PREFIX>"
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
    --localstatedir=/var --disable-static"
    
cat > /etc/profile.d/xorg.sh << EOF
XORG_PREFIX="$XORG_PREFIX"
XORG_CONFIG="--prefix=\$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var --disable-static"
export XORG_PREFIX XORG_CONFIG
EOF
chmod 644 /etc/profile.d/xorg.sh

source /etc/profile.d/xorg.sh

sed "s@/usr/X11R6@$XORG_PREFIX@g" -i /etc/man_db.conf

ln -svf $XORG_PREFIX/share/X11 /usr/share/X11

三、GNOME

  • gnome-shell-40.4
    https://download.gnome.org/sources/gnome-shell/40/gnome-shell-40.4.tar.xz

Required
evolution-data-server-3.40.4, Gjs-1.68.3, gnome-autoar-0.4.0, gnome-control-center-40.0, GTK-4.4.0, Mutter-40.4, sassc-3.6.2, startup-notification-0.12, and Systemd-249

Recommended
asciidoc-9.1.0, desktop-file-utils-0.26, gnome-bluetooth-3.34.5, gst-plugins-base-1.18.4, and NetworkManager-1.32.10
Runtime Dependencies
adwaita-icon-theme-40.1.1, DConf-0.40.0, GDM-40.1, gnome-backgrounds-40.1, gnome-menus-3.36.0, and telepathy-mission-control-5.16.6

四、设置xinitrc

Xorg sessions

  • For the GNOME on Xorg session, add to the ~/.xinitrc file
export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
exec gnome-session gnome-shell
  • For the GNOME Classic session, add to the ~/.xinitrc file
export XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME
export GNOME_SHELL_SESSION_MODE=classic
exec gnome-session gnome-shell

使用startx启动桌面

startx

可以启动后,继续测试gdm启动

五、gdm启动

/gdm/custom.conf

  • Debug Options
[debug]
Enable=false
  • Use Xorg backend
    To use the Xorg backend by default, uncomment the following line in /etc/gdm/custom.conf:
#WaylandEnable=false

Note:
Important
You should now reinstall the Shadow-4.9 and Systemd-249 packages.

测试镜像:
链接:https://pan.baidu.com/s/1FdkqdsalqgPXzR8l72Ioiw
提取码:cipb
用户:root/password
gdm登录: youlv/password

参考链接:
https://wiki.archlinux.org/title/GNOME
https://www.cnblogs.com/black/p/5171729.html
https://wayland.freedesktop.org/architecture.html
https://feater.top/xwayland/xwayland-learning-indexes
https://help.gnome.org/admin/gdm/3.26/preface.html.zh_CN
http://www.slackbook.org/html/x-window-system-xinitrc.html
https://help.gnome.org/admin/gdm/stable/configuration.html.en
https://www.linuxfromscratch.org/blfs/view/6.3/gnome/config.html
https://www.linuxfromscratch.org/blfs/view/stable-systemd/postlfs/linux-pam.html
https://www.systutorials.com/docs/linux/man/1-gnome-session/#:~:text=The%20gnome-session%20program%20starts%20up%20the%20GNOME%20desktop,gdm%2C%20xdm%2C%20or%20from%20your%20X%20startup%20scripts%29.
https://www.cnblogs.com/cnland/archive/2013/01/18/2866214.html
https://www.cnblogs.com/nightnine/p/14696471.html

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值