Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get into the xfce4 more easily?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Fri Feb 14, 2025 1:56 am    Post subject: How to get into the xfce4 more easily? Reply with quote

Each time I had to enter the following commands to successfully enter xfce4.Does anyone know an easier way?
Code:
sudo chown cien /dev/tty0
sudo chown cien /dev/tty2
startxfce4

Here is some information.
Code:
cien@gentoo ~ $ groups
wheel audio dialout video docker input users cien

Code:
USE = "-wayland -kde -gnome X pulseaudio "

Thank you for your help.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1895
Location: Germany

PostPosted: Fri Feb 14, 2025 6:50 am    Post subject: Reply with quote

There is a good wiki about the usage of xfce4 https://wiki.gentoo.org/wiki/Xfce. Maybe it can help to clear some things up.

Also check the launching part.

Please provide the error you get as you only use startxfce4.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Sun Feb 16, 2025 12:00 pm    Post subject: Reply with quote

Banana wrote:
There is a good wiki about the usage of xfce4 https://wiki.gentoo.org/wiki/Xfce. Maybe it can help to clear some things up.

Also check the launching part.

Please provide the error you get as you only use startxfce4.


Hi, here are the errors I get when I only use startxfce4.
Code:
[   102.062]
X.Org X Server 1.21.1.15
X Protocol Version 11, Revision 0
[   102.065] Current Operating System: Linux gentoo 6.6.67-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Dec 19 22:09:00 -00 2024 x86_64
[   102.065] Kernel command line: BOOT_IMAGE=/boot/kernel-6.6.67-gentoo-dist root=UUID=ee196787-0c9f-43e4-a3fd-bb874f43eccf ro
[   102.068] 
[   102.069] Current version of pixman: 0.44.2
[   102.070]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   102.070] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   102.074] (==) Log file: "/home/cien/.local/share/xorg/Xorg.0.log", Time: Sun Feb 16 19:54:18 2025
[   102.075] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   102.075] (==) No Layout section.  Using the first Screen section.
[   102.075] (==) No screen section available. Using defaults.
[   102.075] (**) |-->Screen "Default Screen Section" (0)
[   102.075] (**) |   |-->Monitor "<default monitor>"
[   102.075] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   102.075] (**) Allowing byte-swapped clients
[   102.075] (==) Automatically adding devices
[   102.075] (==) Automatically enabling devices
[   102.075] (==) Automatically adding GPU devices
[   102.075] (==) Automatically binding GPU devices
[   102.075] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   102.075] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   102.075]    Entry deleted from font path.
[   102.075] (==) FontPath set to:
   
[   102.075] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   102.075] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   102.075] (II) Module ABI versions:
[   102.075]    X.Org ANSI C Emulation: 0.4
[   102.075]    X.Org Video Driver: 25.2
[   102.075]    X.Org XInput driver : 24.4
[   102.075]    X.Org Server Extension : 10.0
[   102.076] (--) using VT number 2

[   102.076] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   102.077] (II) xfree86: Adding drm device (/dev/dri/card0)
[   102.077] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[   102.092] (--) PCI:*(0@0:2:0) 8086:0102:103c:17a0 rev 9, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   102.092] (II) LoadModule: "glx"
[   102.092] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   102.094] (II) Module glx: vendor="X.Org Foundation"
[   102.094]    compiled for 1.21.1.15, module version = 1.0.0
[   102.094]    ABI class: X.Org Server Extension, version 10.0
[   102.094] (==) Matched intel as autoconfigured driver 0
[   102.094] (==) Matched modesetting as autoconfigured driver 1
[   102.094] (==) Matched fbdev as autoconfigured driver 2
[   102.094] (==) Matched vesa as autoconfigured driver 3
[   102.094] (==) Assigned the driver to the xf86ConfigLayout
[   102.094] (II) LoadModule: "intel"
[   102.094] (WW) Warning, couldn't open module intel
[   102.094] (EE) Failed to load module "intel" (module does not exist, 0)
[   102.094] (II) LoadModule: "modesetting"
[   102.094] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   102.114] (II) Module modesetting: vendor="X.Org Foundation"
[   102.114]    compiled for 1.21.1.15, module version = 1.21.1
[   102.114]    Module class: X.Org Video Driver
[   102.114]    ABI class: X.Org Video Driver, version 25.2
[   102.114] (II) LoadModule: "fbdev"
[   102.114] (WW) Warning, couldn't open module fbdev
[   102.114] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   102.114] (II) LoadModule: "vesa"
[   102.114] (WW) Warning, couldn't open module vesa
[   102.114] (EE) Failed to load module "vesa" (module does not exist, 0)
[   102.114] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   102.114] (EE)
Fatal server error:
[   102.115] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
[   102.116] (EE)
[   102.116] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[   102.121] (EE) Please also check the log file at "/home/cien/.local/share/xorg/Xorg.0.log" for additional information.
[   102.122] (EE)
[   102.123] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[   102.123] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[   102.123] (EE) Server terminated with error (1). Closing log file.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1895
Location: Germany

PostPosted: Mon Feb 17, 2025 7:17 am    Post subject: Reply with quote

Thx.

I would first try to fix those EE messages. Have a look at this post, it sounds very similar
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1973
Location: 127.0.0.1

PostPosted: Mon Feb 17, 2025 8:49 am    Post subject: Reply with quote

Please also post the output of :
Code:

# emerge --info x11-base/xorg-server media-libs/mesa

Code:

# lspci
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Mon Feb 17, 2025 1:00 pm    Post subject: Reply with quote

cien wrote:
Code:
[   102.070] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   102.074] (==) Log file: "/home/cien/.local/share/xorg/Xorg.0.log", Time: Sun Feb 16 19:54:18 2025
...
[   102.076] (--) using VT number 2
[   102.076] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
...
Fatal server error:
[   102.115] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

This is the typical error caused by not passing a suitable vt option to Xorg (usually with the value of XDG_VTNR set by elogind or systemd) when it runs without privileges. Normal cause being a setup that doesn't use Gentoo's provided xserverrc file.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Mon Feb 17, 2025 3:19 pm    Post subject: Reply with quote

netfab wrote:
Please also post the output of :
Code:

# emerge --info x11-base/xorg-server media-libs/mesa

Code:

# lspci


Code:
cien@gentoo ~ $ emerge --info x11-base/xorg-server media-libs/mesa
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r8, 6.6.67-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.67-gentoo-dist-x86_64-Intel-R-_Pentium-R-_CPU_G630_@_2.70GHz-with-glibc2.40
KiB Mem:     3880268 total,    201156 free
KiB Swap:    8388604 total,   7280000 free
Timestamp of repository gentoo: Tue, 04 Feb 2025 10:18:43 +0000
Head commit of repository gentoo: f2a23b7c7d7d1e147f37e7d2f57a2c2105cda6bd

Timestamp of repository gentoo-zh: Tue, 04 Feb 2025 08:48:51 +0000
Head commit of repository gentoo-zh: 8937f5b9bdf1e821bef3414012d04e5900007752

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
ccache version 4.10.2 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust-bin:         1.82.0-r101::gentoo, 1.83.0::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.10::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://mirrors.bfsu.edu.cn/git/gentoo-portage.git
    priority: -1000
    volatile: False

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo
    volatile: False

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://mirrors.tuna.tsinghua.edu.cn/gentoo/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo  https://mirrors.aliyun.com/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

x11-base/xorg-server-21.1.15::gentoo was built with the following:
USE="suid systemd udev xorg -debug (-elogind) -minimal (-selinux) -test -unwind -xcsecurity -xephyr -xnest -xvfb" ABI_X86="(64)"


media-libs/mesa-24.2.8::gentoo was built with the following:
USE="X llvm (opengl) proprietary-codecs vulkan zstd -d3d9 -debug -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan-overlay -wayland -xa" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_SLOT="18 -15 -16 -17" VIDEO_CARDS="intel -d3d12 (-freedreno) -lavapipe (-lima) -nouveau -nvk (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware -zink"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"

cien@gentoo ~ $

Code:
cien@gentoo ~ $ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
03:00.0 PCI bridge: Integrated Technology Express, Inc. IT8893E PCIe to PCI Bridge (rev 30)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 06)
cien@gentoo ~ $
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Mon Feb 17, 2025 3:25 pm    Post subject: Reply with quote

GDH-gentoo wrote:
cien wrote:
Code:
[   102.070] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   102.074] (==) Log file: "/home/cien/.local/share/xorg/Xorg.0.log", Time: Sun Feb 16 19:54:18 2025
...
[   102.076] (--) using VT number 2
[   102.076] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
...
Fatal server error:
[   102.115] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)

This is the typical error caused by not passing a suitable vt option to Xorg (usually with the value of XDG_VTNR set by elogind or systemd) when it runs without privileges. Normal cause being a setup that doesn't use Gentoo's provided xserverrc file.


Thank you for your reply. I still don't quite understand. May I ask what I should do now?
The following is my xserverrc file.
Code:
cien@gentoo /etc/X11/xinit $ cat xserverrc
#!/bin/sh
if [ -z "$XDG_VTNR" ]; then
  exec /usr/bin/X -nolisten tcp -keeptty "$@"
else
  exec /usr/bin/X -nolisten tcp -keeptty "$@" "vt$XDG_VTNR"
fi
cien@gentoo /etc/X11/xinit $


Last edited by cien on Mon Feb 17, 2025 3:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Mon Feb 17, 2025 3:36 pm    Post subject: Reply with quote

Banana wrote:
Thx.

I would first try to fix those EE messages. Have a look at this post, it sounds very similar

Ok, thank you for your help.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Mon Feb 17, 2025 4:12 pm    Post subject: Reply with quote

cien wrote:
May I ask what I should do now?
The following is my xserverrc file.
...

You don't also have a .xserverrc file in your home directory, right? It's OK if you don't.

Post the outputs of:

Code:
$ echo $XDG_VTNR
$ emerge --pretend --verbose xfce-base/xfce4-session
$ find /etc/X11

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Tue Feb 18, 2025 2:23 am    Post subject: Reply with quote

GDH-gentoo wrote:
cien wrote:
May I ask what I should do now?
The following is my xserverrc file.
...

You don't also have a .xserverrc file in your home directory, right? It's OK if you don't.

Post the outputs of:

Code:
$ echo $XDG_VTNR
$ emerge --pretend --verbose xfce-base/xfce4-session
$ find /etc/X11


Thank you, I through my method, enter the xfce.
Code:
sudo chown cien /dev/tty0
sudo chown cien /dev/tty2
startxfce4


Then enter your commands.
Code:
cien@gentoo ~ $ echo $XDG_VTNR



Code:
cien@gentoo ~ $ emerge --pretend --verbose xfce-base/xfce4-session

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 41.91 s (backtrack: 0/20).

[ebuild   R    ] xfce-base/xfce4-session-4.20.0::gentoo  USE="X nls policykit xscreensaver -wayland" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.



Code:
cien@gentoo ~ $ find /etc/X11
/etc/X11
/etc/X11/xinit
/etc/X11/xinit/xinitrc
/etc/X11/xinit/xinitrc.d
/etc/X11/xinit/xinitrc.d/00-xhost
/etc/X11/xinit/xinitrc.d/50-systemd-user.sh
/etc/X11/xinit/xinitrc.d/80-dbus
/etc/X11/xinit/xserverrc
/etc/X11/xsm
/etc/X11/xsm/system.xsm
/etc/X11/xdm
/etc/X11/xdm/Xaccess
/etc/X11/xdm/xdm-config
/etc/X11/xdm/Xservers
/etc/X11/xdm/Xresources
/etc/X11/Sessions
/etc/X11/Sessions/Xfce
/etc/X11/Sessions/Xfce4
/etc/X11/Sessions/Xsession
/etc/X11/chooser.sh
cien@gentoo ~ $

Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Tue Feb 18, 2025 11:33 am    Post subject: Reply with quote

cien wrote:
Thank you, I through my method, enter the xfce.
Code:
sudo chown cien /dev/tty0
sudo chown cien /dev/tty2
startxfce4


Then enter your commands.
Code:
cien@gentoo ~ $ echo $XDG_VTNR


Where exactly are you typing the startxfce4 and the two chown commands? I suppose it's virtual terminal 1 (/dev/tty1)? If yes, type the echo $XDG_VTNR command before entering Xfce, i. e. while you are still at the virtual terminal, and post the result.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Tue Feb 18, 2025 11:45 am    Post subject: Reply with quote

GDH-gentoo wrote:
cien wrote:
Thank you, I through my method, enter the xfce.
Code:
sudo chown cien /dev/tty0
sudo chown cien /dev/tty2
startxfce4


Then enter your commands.
Code:
cien@gentoo ~ $ echo $XDG_VTNR


Where exactly are you typing the startxfce4 and the two chown commands? I suppose it's virtual terminal 1 (/dev/tty1)? If yes, type the echo $XDG_VTNR command before entering Xfce, i. e. while you are still at the virtual terminal, and post the result.


When I log into gentoo, the screen shows tty1.

Quote:
If yes, type the echo $XDG_VTNR command before entering Xfce, i. e.

When I type this command, the output is also empty.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Tue Feb 18, 2025 12:46 pm    Post subject: Reply with quote

cien wrote:
Quote:
If yes, type the echo $XDG_VTNR command before entering Xfce, i. e.

When I type this command, the output is also empty.

So there is something unusual in your environment. What is the output of loginctl?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Tue Feb 18, 2025 12:49 pm    Post subject: Reply with quote

GDH-gentoo wrote:
cien wrote:
Quote:
If yes, type the echo $XDG_VTNR command before entering Xfce, i. e.

When I type this command, the output is also empty.

So there is something unusual in your environment. What is the output of loginctl?

Thank you.
Code:
cien@gentoo ~ $ loginctl
SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE
No sessions.
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Tue Feb 18, 2025 1:06 pm    Post subject: Reply with quote

cien wrote:
Code:
cien@gentoo ~ $ loginctl
SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE
No sessions.

Well, that explains it. There is something wrong with systemd-logind here. We are entering systemd territory, which is unfamiliar for me.

What's the output of:
Code:
$ systemctl --no-pager
$ systemd-cgls --no-pager

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
cien
n00b
n00b


Joined: 05 Dec 2024
Posts: 32

PostPosted: Tue Feb 18, 2025 1:16 pm    Post subject: Reply with quote

GDH-gentoo wrote:
cien wrote:
Code:
cien@gentoo ~ $ loginctl
SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE
No sessions.

Well, that explains it. There is something wrong with systemd-logind here. We are entering systemd territory, which is unfamiliar for me.

What's the output of:
Code:
$ systemctl --no-pager
$ systemd-cgls --no-pager

Code:
cien@gentoo ~ $ systemctl --no-pager
  UNIT                       LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.a… loaded active waiting   Arbitrary Executable File…
  sys-devices-pci0000:00-00… loaded active plugged   /sys/devices/pci0000:00/0…
  sys-devices-pci0000:00-00… loaded active plugged   RTL8111/8168/8211/8411 PC…
  sys-devices-pci0000:00-00… loaded active plugged   WDC_WD3200AAJS-08L7A0 1
  sys-devices-pci0000:00-00… loaded active plugged   WDC_WD3200AAJS-08L7A0 2
  sys-devices-pci0000:00-00… loaded active plugged   WDC_WD3200AAJS-08L7A0 3
  sys-devices-pci0000:00-00… loaded active plugged   WDC_WD3200AAJS-08L7A0
  sys-devices-platform-seri… loaded active plugged   /sys/devices/platform/ser…
  sys-devices-platform-seri… loaded active plugged   /sys/devices/platform/ser…
  sys-devices-platform-seri… loaded active plugged   /sys/devices/platform/ser…
  sys-devices-pnp0-00:05-tt… loaded active plugged   /sys/devices/pnp0/00:05/t…
  sys-devices-virtual-misc-… loaded active plugged   /sys/devices/virtual/misc…
  sys-devices-virtual-net-d… loaded active plugged   /sys/devices/virtual/net/…
  sys-module-configfs.device loaded active plugged   /sys/module/configfs
  sys-module-fuse.device     loaded active plugged   /sys/module/fuse
  sys-subsystem-net-devices… loaded active plugged   /sys/subsystem/net/device…
  sys-subsystem-net-devices… loaded active plugged   RTL8111/8168/8211/8411 PC…
  -.mount                    loaded active mounted   Root Mount
  dev-hugepages.mount        loaded active mounted   Huge Pages File System
  dev-mqueue.mount           loaded active mounted   POSIX Message Queue File …
  efi.mount                  loaded active mounted   /efi
  run-credentials-getty\x40… loaded active mounted   /run/credentials/getty@tt…
  run-credentials-systemd\x… loaded active mounted   /run/credentials/systemd-…
  run-credentials-systemd\x… loaded active mounted   /run/credentials/systemd-…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  run-credentials-systemd\x… loaded active mounted   run-credentials-systemd\x…
  sys-fs-fuse-connections.m… loaded active mounted   FUSE Control File System
  sys-kernel-config.mount    loaded active mounted   Kernel Configuration File…
  sys-kernel-debug.mount     loaded active mounted   Kernel Debug File System
  sys-kernel-tracing.mount   loaded active mounted   Kernel Trace File System
  tmp.mount                  loaded active mounted   Temporary Directory /tmp
  systemd-ask-password-cons… loaded active waiting   Dispatch Password Request…
  systemd-ask-password-wall… loaded active waiting   Forward Password Requests…
  init.scope                 loaded active running   System and Service Manager
  alsa-restore.service       loaded active exited    Save/Restore Sound Card S…
  containerd.service         loaded active running   containerd container runt…
  dbus.service               loaded active running   D-Bus System Message Bus
  dhcpcd.service             loaded active running   Lightweight DHCP client d…
  docker.service             loaded active running   Docker Application Contai…
  dracut-shutdown.service    loaded active exited    Restore /run/initramfs on…
  getty@tty1.service         loaded active running   Getty on tty1
  kmod-static-nodes.service  loaded active exited    Create List of Static Dev…
  sshd.service               loaded active running   OpenSSH server daemon
  systemd-firstboot.service  loaded active exited    First Boot Wizard
  systemd-fsck-root.service  loaded active exited    File System Check on Root…
  systemd-fsck@dev-disk-by\… loaded active exited    File System Check on /dev…
  systemd-journal-flush.ser… loaded active exited    Flush Journal to Persiste…
  systemd-journald.service   loaded active running   Journal Service
  systemd-logind.service     loaded active running   User Login Management
  systemd-network-generator… loaded active exited    Generate network units fr…
  systemd-networkd-persiste… loaded active exited    Enable Persistent Storage…
● systemd-networkd-wait-onl… loaded failed failed    Wait for Network to be Co…
  systemd-networkd.service   loaded active running   Network Configuration
  systemd-nsresourced.servi… loaded active running   Namespace Resource Manager
  systemd-random-seed.servi… loaded active exited    Load/Save OS Random Seed
  systemd-remount-fs.service loaded active exited    Remount Root and Kernel F…
  systemd-resolved.service   loaded active running   Network Name Resolution
  systemd-sysctl.service     loaded active exited    Apply Kernel Variables
  systemd-timesyncd.service  loaded active running   Network Time Synchronizat…
  systemd-tmpfiles-setup-de… loaded active exited    Create Static Device Node…
  systemd-tmpfiles-setup-de… loaded active exited    Create Static Device Node…
  systemd-tmpfiles-setup.se… loaded active exited    Create System Files and D…
  systemd-udev-load-credent… loaded active exited    Load udev Rules from Cred…
  systemd-udev-trigger.serv… loaded active exited    Coldplug All udev Devices
  systemd-udevd.service      loaded active running   Rule-based Manager for De…
  systemd-update-utmp.servi… loaded active exited    Record System Boot/Shutdo…
  systemd-user-sessions.ser… loaded active exited    Permit User Sessions
  systemd-userdbd.service    loaded active running   User Database Manager
  systemd-vconsole-setup.se… loaded active exited    Virtual Console Setup
  -.slice                    loaded active active    Root Slice
  system-getty.slice         loaded active active    Slice /system/getty
  system-modprobe.slice      loaded active active    Slice /system/modprobe
  system-systemd\x2dfsck.sl… loaded active active    Slice /system/systemd-fsck
  system.slice               loaded active active    System Slice
  user.slice                 loaded active active    User and Session Slice
  dbus.socket                loaded active running   D-Bus System Message Bus …
  docker.socket              loaded active running   Docker Socket for the API
  sshd-unix-local.socket     loaded active listening OpenSSH Server Socket (sy…
  systemd-coredump.socket    loaded active listening Process Core Dump Socket
  systemd-creds.socket       loaded active listening Credential Encryption/Dec…
  systemd-hostnamed.socket   loaded active listening Hostname Service Socket
  systemd-journald-audit.so… loaded active running   Journal Audit Socket
  systemd-journald-dev-log.… loaded active running   Journal Socket (/dev/log)
  systemd-journald.socket    loaded active running   Journal Sockets
  systemd-mountfsd.socket    loaded active listening DDI File System Mounter S…
  systemd-networkd.socket    loaded active running   Network Service Netlink S…
  systemd-nsresourced.socket loaded active running   Namespace Resource Manage…
  systemd-rfkill.socket      loaded active listening Load/Save RF Kill Switch …
  systemd-sysext.socket      loaded active listening System Extension Image Ma…
  systemd-udevd-control.soc… loaded active running   udev Control Socket
  systemd-udevd-kernel.sock… loaded active running   udev Kernel Socket
  systemd-userdbd.socket     loaded active running   User Database Manager Soc…
  dev-disk-by\x2duuid-27e20… loaded active active    /dev/disk/by-uuid/27e2064…
  basic.target               loaded active active    Basic System
  first-boot-complete.target loaded active active    First Boot Complete
  getty.target               loaded active active    Login Prompts
  graphical.target           loaded active active    Graphical Interface
  local-fs-pre.target        loaded active active    Preparation for Local Fil…
  local-fs.target            loaded active active    Local File Systems
  machines.target            loaded active active    Containers
  multi-user.target          loaded active active    Multi-User System
  network-online.target      loaded active active    Network is Online
  network-pre.target         loaded active active    Preparation for Network
  network.target             loaded active active    Network
  nss-lookup.target          loaded active active    Host and Network Name Loo…
  paths.target               loaded active active    Path Units
  remote-fs.target           loaded active active    Remote File Systems
  slices.target              loaded active active    Slice Units
  sockets.target             loaded active active    Socket Units
  sound.target               loaded active active    Sound Card
  swap.target                loaded active active    Swaps
  sysinit.target             loaded active active    System Initialization
  time-set.target            loaded active active    System Time Set
  timers.target              loaded active active    Timer Units
  systemd-tmpfiles-clean.ti… loaded active waiting   Daily Cleanup of Temporar…

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

122 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
cien@gentoo ~ $

Code:
cien@gentoo ~ $ systemd-cgls --no-pager
CGroup /:
-.slice
├─init.scope
│ └─1 /usr/lib/systemd/systemd --switched-root --system --deserialize=46
└─system.slice
  ├─containerd.service …
  │ └─490 /usr/bin/containerd
  ├─systemd-networkd.service
  │ └─358 /usr/lib/systemd/systemd-networkd
  ├─systemd-udevd.service …
  │ └─udev
  │   └─351 /usr/lib/systemd/systemd-udevd
  ├─docker.service …
  │ └─533 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.so…
  ├─systemd-journald.service
  │ └─301 /usr/lib/systemd/systemd-journald
  ├─systemd-nsresourced.service
  │ ├─336 /usr/lib/systemd/systemd-nsresourced
  │ ├─969 systemd-nsresourcework: waiting...
  │ ├─970 systemd-nsresourcework: waiting...
  │ ├─971 systemd-nsresourcework: waiting...
  │ ├─972 systemd-nsresourcework: waiting...
  │ └─973 systemd-nsresourcework: waiting...
  ├─sshd.service
  │ ├─488 sshd: /usr/sbin/sshd -D -e [listener] 0 of 10-100 startups
  │ ├─902 sshd-session: cien [priv]
  │ ├─907 sshd-session: cien [priv]
  │ ├─908 sshd-session: cien@pts/0
  │ ├─913 sshd-session: cien@notty
  │ ├─914 /usr/lib64/misc/sftp-server
  │ ├─915 -bash
  │ └─975 systemd-cgls --no-pager
  ├─systemd-userdbd.service
  │ ├─337 /usr/lib/systemd/systemd-userdbd
  │ ├─966 systemd-userwork: waiting...
  │ ├─967 systemd-userwork: waiting...
  │ └─968 systemd-userwork: waiting...
  ├─dhcpcd.service
  │ └─478 dhcpcd: [manager] [ip4] [ip6]
  ├─systemd-resolved.service
  │ └─446 /usr/lib/systemd/systemd-resolved
  ├─dbus.service
  │ └─459 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfil…
  ├─systemd-timesyncd.service
  │ └─447 /usr/lib/systemd/systemd-timesyncd
  ├─system-getty.slice
  │ └─getty@tty1.service
  │   ├─493 /bin/login -p --
  │   └─760 -bash
  └─systemd-logind.service
    └─462 /usr/lib/systemd/systemd-logind
cien@gentoo ~ $
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1822
Location: South America

PostPosted: Tue Feb 18, 2025 5:09 pm    Post subject: Reply with quote

cien wrote:
Code:
cien@gentoo ~ $ systemctl --no-pager
  UNIT                       LOAD   ACTIVE SUB       DESCRIPTION
...
  systemd-logind.service     loaded active running   User Login Management
...
Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of SUB.
        SUB    → The low-level unit activation state, values depend on unit type.

122 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Code:
cien@gentoo ~ $ systemd-cgls --no-pager
CGroup /:
-.slice
├─init.scope
│ └─1 /usr/lib/systemd/systemd --switched-root --system --deserialize=46
└─system.slice
...
  ├─system-getty.slice
  │ └─getty@tty1.service
  │   ├─493 /bin/login -p --
  │   └─760 -bash
  └─systemd-logind.service
    └─462 /usr/lib/systemd/systemd-logind

It's working, apparently, but something isn't right. Do you have error messages about PAM in systemd's journal?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum