Same result when
Code: Select all
$ startx
Code: Select all
$ xinit
Does apply same requirement for Buster ?
Code: Select all
$ startx
Code: Select all
$ xinit
Yes, that's what I saw in my buster system.MakeTopSite wrote:Should not it run under user account, when gdm3 is used ?
Yes. I think it will also work with elogind & libpam-elogind though, or at least it does in Devuan beowulf.MakeTopSite wrote:It needs logind and libpam-systemd according to Stretch manual. https://www.debian.org/releases/stretch ... uires-root
Does apply same requirement for Buster ?
Code: Select all
cat /proc/1/comm
ls -l /sbin/init
Code: Select all
lspci -k | grep -iA2 '3d\|vga\|display'
top, htop says Xorg runs as root.Head_on_a_Stick wrote:Yes, that's what I saw in my buster system.MakeTopSite wrote:Should not it run under user account, when gdm3 is used ?
How are you determining the ownership of X?
Yes. I think it will also work with elogind & libpam-elogind though, or at least it does in Devuan beowulf.MakeTopSite wrote:It needs logind and libpam-systemd according to Stretch manual. https://www.debian.org/releases/stretch ... uires-root
Does apply same requirement for Buster ?
What are you using for PID1?It also needs KMS support for your video card so what are you running?Code: Select all
cat /proc/1/comm ls -l /sbin/init
Code: Select all
lspci -k | grep -iA2 '3d\|vga\|display'
Code: Select all
cat /proc/1/comm
systemd
ls -l /sbin/init
lrwxrwxrwx 1 root root 20 Jan 29 15:16 /sbin/init -> /lib/systemd/systemd
lspci -k | grep -iA2 '3d\|vga\|display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Micro-Star International Co., Ltd. [MSI] 3rd Gen Core processor Graphics Controller
Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] GK107M [GeForce GTX 660M]
Kernel driver in use: nouveau
How about ps?MakeTopSite wrote:top, htop says Xorg runs as root.
But atop says Xorg runs as user.
Code: Select all
ps aux | awk '/X/&&!/awk/'
Check the X.Org log to confirm that the Intel card is being used. The location of the most recent log file will also show if X is running under your normal user because in that case it will be found under ~/.local/share/xorg/ rather than /var/log/.MakeTopSite wrote:Code: Select all
lspci -k | grep -iA2 '3d\|vga\|display' 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) Subsystem: Micro-Star International Co., Ltd. [MSI] 3rd Gen Core processor Graphics Controller Kernel driver in use: i915 -- 01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GTX 660M] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] GK107M [GeForce GTX 660M] Kernel driver in use: nouveau
Code: Select all
ps aux | awk '/X/&&!/awk/'
root 1389 0.9 0.9 241344 75036 tty2 Sl+ 08:40 0:04 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
most recent log file is at /var/log/Head_on_a_Stick wrote: Check the X.Org log to confirm that the Intel card is being used. The location of the most recent log file will also show if X is running under your normal user because in that case it will be found under ~/.local/share/xorg/ rather than /var/log/.
Code: Select all
loginctl user-status --no-p
apt policy
I'm sorry I don't knowHead_on_a_Stick wrote:So the question now is how did you break your system
Code: Select all
loginctl user-status --no-p
u (1000)
Since: Thu 2021-03-18 18:42:13 CET; 2min 5s ago
State: active
Sessions: *2
Linger: no
Unit: user-1000.slice
|-session-2.scope
| |-1332 gdm-session-worker [pam/gdm-password]
| |-1366 /usr/lib/gdm3/gdm-x-session --run-script icewm-session
| |-1368 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
| |-1377 icewm-session
| |-1424 /usr/bin/ssh-agent icewm-session
| |-1425 icewmbg
| |-1426 icewm --notify
| |-1430 lxterminal
| |-1442 bash
| |-1451 su -
| |-1455 -bash
| |-1480 /sbin/mount.ntfs /dev/sda1 /media/u/sda1 -o rw,windows_names
| `-2191 loginctl user-status --no-p
`-user@1000.service
|-at-spi-dbus-bus.service
| |-1432 /usr/lib/at-spi2-core/at-spi-bus-launcher
| |-1437 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
| `-1439 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
|-dbus.service
| `-1375 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
`-init.scope
|-1342 /lib/systemd/systemd --user
`-1348 (sd-pam)
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:09 localhost /usr/lib/gdm3/gdm-x-session[1366]: ! SyncTeX Error : No file?
Mar 18 18:43:11 localhost /usr/lib/gdm3/gdm-x-session[1366]: gvim 'a.txt'
Mar 18 18:43:14 localhost gvim[2145]: Failed to load module "atk-bridge"
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »
Mar 18 18:43:14 localhost gvim[2145]: Unable to locate theme engine in module_path : « xfce »
Code: Select all
apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://repo.skype.com/deb stable/main amd64 Packages
release o=. stable,a=stable,n=stable,l=. stable,c=main,b=amd64
origin repo.skype.com
500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
origin dl.google.com
500 http://ftp.at.debian.org/debian buster/non-free i386 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=i386
origin ftp.at.debian.org
500 http://ftp.at.debian.org/debian buster/non-free amd64 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64
origin ftp.at.debian.org
500 http://ftp.at.debian.org/debian buster/contrib i386 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=i386
origin ftp.at.debian.org
500 http://ftp.at.debian.org/debian buster/contrib amd64 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64
origin ftp.at.debian.org
500 http://ftp.at.debian.org/debian buster/main i386 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
origin ftp.at.debian.org
500 http://ftp.at.debian.org/debian buster/main amd64 Packages
release v=10.8,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
origin ftp.at.debian.org
100 http://ftp.debian.org/debian buster-backports/main i386 Packages
release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=i386
origin ftp.debian.org
100 http://ftp.debian.org/debian buster-backports/main amd64 Packages
release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=amd64
origin ftp.debian.org
500 http://ftp.debian.org/debian buster-updates/main i386 Packages
release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
origin ftp.debian.org
500 http://ftp.debian.org/debian buster-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=amd64
origin ftp.debian.org
500 http://security.debian.org buster/updates/main i386 Packages
release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
origin security.debian.org
500 http://security.debian.org buster/updates/main amd64 Packages
release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
origin security.debian.org
Pinned packages:
Code: Select all
aptitude search '~S ~i !~ODebian'
No I can't.Head_on_a_Stick wrote:Can you revert to the backup you made before adding them? Did rootless X ever work for you? Are there any log files under ~/.local/share/xorg/?
Code: Select all
aptitude search '~S ~i !~ODebian'
i burn - command-line tool for writing optical media
i cclive - lightweight command line video extraction tool
i A cpp-4.8 - GNU C preprocessor
i A cpp-4.9 - GNU C preprocessor
i A cpp-6 - GNU C preprocessor
i ecryptfs-utils - ecryptfs cryptographic filesystem (utilities)
i A gcc-4.8 - GNU C compiler
i gcc-4.8-base - GCC, the GNU Compiler Collection (base package)
i A gcc-4.9 - GNU C compiler
i gcc-4.9-base - GCC, the GNU Compiler Collection (base package)
i A gcc-4.9-base:i386 - GCC, the GNU Compiler Collection (base package)
i A gcc-4.9-multilib - GNU C compiler (multilib files)
i A gcc-6 - GNU C compiler
i A gcc-6-base - GCC, the GNU Compiler Collection (base package)
i A gcc-6-base:i386 - GCC, the GNU Compiler Collection (base package)
i A gcc-6-multilib - GNU C compiler (multilib support)
i A gksu - graphical front-end to su and sudo
i icedove - mail/news client with RSS and integrated spam filter support
i leafpad - GTK+ based simple text editor
i A lib32asan1 - AddressSanitizer -- a fast memory error detector (32bit)
i A lib32asan3 - AddressSanitizer -- a fast memory error detector (32bit)
i A lib32gcc-4.9-dev - GCC support library (32 bit development files)
i A lib32gcc-6-dev - GCC support library (32 bit development files)
i libapt-inst1.5 - deb package format runtime library
i libapt-pkg4.12 - package management runtime library
i A libasan0 - AddressSanitizer -- a fast memory error detector
i A libasan1 - AddressSanitizer -- a fast memory error detector
i A libasan3 - AddressSanitizer -- a fast memory error detector
i A libavcodec57 - FFmpeg library with de/encoders for audio/video codecs - runtime files
i A libavutil55 - FFmpeg library with functions for simplifying programming - runtime file
i A libbonobo2-0 - Bonobo CORBA interfaces library
i A libbonobo2-common - Bonobo CORBA interfaces library -- support files
i libbonoboui2-common - Bonobo UI library - common files
i A libboost-date-time1.62.0 - set of date-time libraries based on generic programming concepts
i A libboost-filesystem1.62.0 - filesystem operations (portable paths, iteration over directories, etc)
i libboost-iostreams1.55.0 - Boost.Iostreams Library
i A libboost-iostreams1.62.0 - Boost.Iostreams Library
i A libboost-program-options1.62.0 - program options library for C++
i A libboost-regex1.55.0 - regular expression library for C++
i A libboost-system1.62.0 - Operating system (e.g. diagnostics support) library
i A libcloog-isl4 - Chunky Loop Generator (runtime library)
i libcryptsetup4 - disk encryption support - shared library
i libdns-export100 - Exported DNS Shared Library
i A libecryptfs1 - ecryptfs cryptographic filesystem (library)
i A libgcc-4.8-dev - GCC support library (development files)
i A libgcc-4.9-dev - GCC support library (development files)
i A libgcc-6-dev - GCC support library (development files)
i libgdbm3 - GNU dbm database routines (runtime version)
i A libgksu2-0 - library providing su and sudo functionality
i libgnome-2-0 - The GNOME library - runtime files
i A libgnome-keyring-common - GNOME keyring services library - data files
i A libgnome-keyring0 - GNOME keyring services library
i libgnome2-0 - The GNOME library - transition package
i libgnome2-bin - The GNOME library - binary files
i libgnome2-common - The GNOME library - common files
i libgnomevfs2-0 - GNOME Virtual File System (runtime libraries)
i libgnomevfs2-common - GNOME Virtual File System (common files)
i libgnomevfs2-extra - GNOME Virtual File System (extra modules)
i A libgtop-2.0-10 - gtop system monitoring library (shared)
i A libhunspell-1.3-0 - spell checker and morphological analyzer (shared library)
i libicu52 - International Components for Unicode
i A libicu57 - International Components for Unicode
i libirs-export91 - Exported IRS Shared Library
i libisc-export95 - Exported ISC Shared Library
i libisccfg-export90 - Exported ISC CFG Shared Library
i A libisl10 - manipulating sets and relations of integer points bounded by linear cons
i A libisl15 - manipulating sets and relations of integer points bounded by linear cons
i A libjavascriptcoregtk-1.0-0 - JavaScript engine library from WebKitGTK+
i libjson-c2 - JSON manipulation library - shared library
i liblogging-stdlog0 - easy to use and lightweight logging library
i liblognorm1 - Log normalizing library
i A libmpfr4 - multiple precision floating-point computation
i A liborbit-2-0 - high-performance CORBA implementation - common libraries
i libpng12-0 - PNG library - runtime
i libprocps3 - library for accessing process information from /proc
i libpsl0 - Library for Public Suffix List (shared libraries)
i libreadline6 - GNU readline and history libraries, run-time libraries
i A libsndio6.1 - Small audio and MIDI framework from OpenBSD, runtime libraries
i libssl1.0.0 - Secure Sockets Layer toolkit - shared libraries
i A libswresample2 - FFmpeg library for audio resampling, rematrixing etc. - runtime files
i A libva-drm1 - Video Acceleration (VA) API for Linux -- DRM runtime
i A libva-x11-1 - Video Acceleration (VA) API for Linux -- X11 runtime
i A libva1 - Video Acceleration (VA) API for Linux -- runtime
i A libvpx4 - VP8 and VP9 video codec (shared library)
i libwebkitgtk-1.0-0 - Web content engine library for GTK+
i A libwebpmux2 - Lossy compression of digital photographic images.
i A libx264-148 - x264 video coding library
i A libx265-95 - H.265/HEVC video stream encoder (shared library)
i A libx32asan1 - AddressSanitizer -- a fast memory error detector (x32)
i A libx32asan3 - AddressSanitizer -- a fast memory error detector (x32)
i A libx32gcc-4.9-dev - GCC support library (x32 development files)
i A libx32gcc-6-dev - GCC support library (x32 development files)
i libxtables10 - netfilter xtables library
i licq - multi-protocol instant messaging client (base files)
i A licq-plugin-icq - ICQ/AIM plug-in for Licq
i A licq-plugin-qt4 - graphical user interface plug-in for Licq using Qt4
i A licq-plugin-qt4-common - common data files for the Qt4 and KDE4 Licq plugins
i linux-compiler-gcc-4.8-x86 - Compiler for Linux on x86 (meta-package)
i linux-headers-4.19.0-9-amd64 - Header files for Linux 4.19.0-9-amd64
i A linux-headers-4.19.0-9-common - Common header files for Linux 4.19.0-9
i A lynx-cur - Text-mode WWW Browser (transitional package)
i A perl-modules-5.24 - Core Perl modules
i python-reportbug - Python modules for interacting with bug tracking systems
i python-support - automated rebuilding support for Python modules
i uzbl - Lightweight Webkit browser following the UNIX philosophy
Nevermind, thank you for your time.Head_on_a_Stick wrote:Well you've broken it then but I can't see an obvious culprit in that package list
Is please any chance that Debian 10 ---> Debian 11 upgrade will fix it ?Head_on_a_Stick wrote:So the question now is how did you break your system
It did not fix it.MakeTopSite wrote: ↑2021-05-12 06:44Is please any chance that Debian 10 ---> Debian 11 upgrade will fix it ?Head_on_a_Stick wrote:So the question now is how did you break your system
Code: Select all
aptitude search '~S ~i !~ODebian'
Code: Select all
apt policy libapt-pkg4.12
aptitude why libapt-pkg4.12
I'm sorry I don't remember what has caused that. I've tried install sysvinit some time ago.bw123 wrote: ↑2021-10-10 14:21 Your pkg list from command shows two different versions of some pkgs, currently installed , and those versions are not even in debian repo anymore. Maybe you've borked a past upgrade, or somehow mixed debian versions or another linux distribution?Upgrading a broken system rarely solves anything, it can cause more problems the longer it's allowed to continue.Code: Select all
aptitude search '~S ~i !~ODebian'
I'd take a look at commands like this on files in the list:You could possibly use aptitude to pull them out one at a time like grey hairs but back up important data first.Code: Select all
apt policy libapt-pkg4.12 aptitude why libapt-pkg4.12
good luck
Code: Select all
aptitude search '~S ~i !~ODebian'
i e17 - transitional e17 package
i e2fslibs - transitional package
i A gcc-8-base - GCC, the GNU Compiler Collection (base package)
i A gcc-8-base:i386 - GCC, the GNU Compiler Collection (base package)
i iceweasel - Web browser based on Firefox - Transitional package
i iceweasel-l10n-fr - French language package for Iceweasel - Transitional package
i libcomerr2 - transitional package
i libffi6 - Foreign Function Interface library runtime
i libgcc1 - GCC support library
i A libgcc1:i386 - GCC support library
i A linux-image-4.19.0-18-amd64 - Linux 4.19 for 64-bit PCs (signed)
i multiarch-support - Transitional package to ensure multiarch compatibility
i A phantomjs - minimalistic headless WebKit-based browser with JavaScript API
i A ttf-dejavu-core - transitional dummy package
i A vdpau-va-driver - VDPAU-based backend for VA API
Code: Select all
$ apt policy libapt-pkg4.12
libapt-pkg4.12:
Installed: (none)
Candidate: (none)
Version table:
$ aptitude why libapt-pkg4.12
Not currently installed
No dependencies require to install libapt-pkg4.12
Code: Select all
$ startx xterm
$ ls -l /usr/bin/X*
$ ps ax | grep Xorg
$ top -bn1 | grep X
Yes htop shows Xorg running as root.bw123 wrote: ↑2021-10-10 19:09 That looks better since the upgrade. Are you stlll showing Xorg running as root?
You can check running X without gdm by ctrl-alt-F2 and login as regular user
Code: Select all
$ startx xterm $ ls -l /usr/bin/X* $ ps ax | grep Xorg $ top -bn1 | grep X
Code: Select all
$ ls -l /usr/bin/X*
lrwxrwxrwx 1 root root 4 13 April 18:07 /usr/bin/X -> Xorg
lrwxrwxrwx 1 root root 1 1 April 2014 /usr/bin/X11 -> .
-rwxr-xr-x 1 root root 2424968 13 April 18:07 /usr/bin/Xephyr
-rwxr-xr-x 1 root root 274 13 April 18:07 /usr/bin/Xorg
-rwxr-xr-x 1 root root 2321928 13 April 18:07 /usr/bin/Xwayland
Code: Select all
$ ps ax | grep Xorg
9039 tty3 Sl 0:01 /usr/lib/xorg/Xorg -nolisten tcp :0 vt3 -keeptty -auth /tmp/serverauth.pQqB7qNoGc
9147 pts/3 S+ 0:00 grep Xorg
Code: Select all
$ top -bn1 | grep X
9039 root 20 0 145660 43608 22172 S 0,0 0,5 0:01.55 Xorg
none of the auth files should be owned by root.i A vdpau-va-driver - VDPAU-based backend for VA API
Code: Select all
$ ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*
bw123 wrote: ↑2021-10-11 12:22 weird problem,
This one isn't in bullseye, should have been removed by full-upgrade? try aptitude why on it?none of the auth files should be owned by root.i A vdpau-va-driver - VDPAU-based backend for VA APICode: Select all
$ ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*
Code: Select all
aptitude why vdpau-va-driver
i mpv Depends libva2 (>= 2.2.0)
i A libva2 Recommends va-driver-all | va-driver
i A vdpau-va-driver Provides va-driver
Code: Select all
ls -l ~/.Xauth* /tmp/xauth* /tmp/serverauth*
ls: cannot access '/tmp/xauth*': No such file or directory
ls: cannot access '/tmp/serverauth*': No such file or directory
-rw------- 1 maketopsite maketopsite 103 Oct 11 07:43 /home/maketopsite/.Xauthority