Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[startx + systemd] : Impossible d'avoir une session active
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
y351
Apprentice
Apprentice


Joined: 21 May 2017
Posts: 195

PostPosted: Sun May 21, 2017 3:05 pm    Post subject: [startx + systemd] : Impossible d'avoir une session active Reply with quote

Bonjour,

Je rencontre, actuellement, un petit problème avec startx.
Dans mon .xsession, j'ai
Quote:

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec /usr/bin/enlightenment_start 2> ~/.xsession-errors


Voici trois façons de lancer ma wm :

1) startx

E se lance normalement. Tout est fonctionnel : création de répertoire /var/run/$uid, une session est créée et est active.
Le problème, c'est que ce n'est pas sécurisé : j'ai une session sur tty ouverte.
De toute façon, ce n'est pas ma façon de procéder ; c'est pour pour me mettre dans un context qui marche.

2)
Code:
startx & 2> /dev/null ; exit


E se lance mais :
- la wm marche
- pas de son
- je ne peux pas éteindre la machine en espace utilisateur...
- message d'erreur avec dbus
- etc...

Code:
journalctl -u systemd-logind :

Quote:

systemd-logind : New session 6 of use yesi.
systemd-logind : Removed session 6.


Ce répertoire n'est pas créé : /var/run/$uid
Code:

loginctl list-sessions

Quote:

SESSION UID USER SEAT TTY

0 sessions listed.


Code:
loginctl list-seats

Quote:

SEAT
seat0

1 seats listed.

Code:
 
loginctl session-status

Quote:

n/a - 0


Code:
systemctl --user

Quote:

Failed to connect to bus: Connexion refused


Version
Quote:
sys-apps/systemd-233-r1
acl cryptsetup gcrypt kmod lz4 pam policykit seccomp ssl -apparmor -audit -build -curl -doc -elfutils -gnuefi -http -idn -importd -lzma -nat -qrcode -selinux -sysv-utils -test -vanilla -xkb ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")


Code:
cat /etc/pam.d/systemd-user

Quote:

# This file is part of systemd.
#
# Used by systemd --user instances.

account include system-auth
session include system-auth
session optional pam_keyinit.so force revoke
session optional pam_systemd.so


3) je démarre E avec un gestionnaire de wm : cdm
J'ai ajouté : pam_systemd.so

Code:
cat /etc/pam.d/cdm

Quote:
# File autogenerated by pamd_mimic in pam eclass


auth include system-local-login
account include system-local-login
session include system-local-login
#session optional pam_systemd.so
session required pam_systemd.so


En résumé le cas 1) : ça marche mais ce n'est pas ce que je veux.
Le cas 2) et 3) j'obtiens les mêmes symtômes : et c'est ce que je voudrais faire marcher.

Voiici mes questions :
a) comment faire marcher les cas 2) et 3) avec création de /var/run/$uid, de sessions, de seat ?
b) qu'est-ce qui fait qu'il crée le répertoire /var/run/$uid dans certain cas et pas dans d'autre ?

Merci d'avance pour vos retours.



Quote:

Portage 2.3.5 (python 2.7.12-final-0, default/linux/amd64/13.0/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-7200U_CPU_@_2.50GHz-with-gentoo-2.3
KiB Mem: 8036624 total, 906708 free
KiB Swap: 8388604 total, 8388592 free
Timestamp of repository gentoo: Sun, 21 May 2017 10:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
ccache version 3.2.4 [enabled]
app-shells/bash: 4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.1-r1::gentoo
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache: 3.2.4::gentoo
dev-util/cmake: 3.7.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.3::gentoo
sys-apps/openrc: 0.26.2::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.15-r2::gentoo
sys-devel/binutils: 2.26.1::gentoo
sys-devel/gcc: 5.4.0-r3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.23-r3::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

enlightenment
location: /var/lib/layman/enlightenment
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fforce-addr -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/rancid/.cloginrc"
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 /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.0 --keep-going=y --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="X acl amd64 berkdb bindist bzip2 cli cracklib crypt cryptsetup cxx dri ffmpeg fortran gdbm gnutls iconv ipv6 jpg logrotate mmx modplug modules multilib ncurses nls nptl openmp pam pcre perl png pulseaudio python readline seccomp secure_delete session sse sse2 ssl systemd tcpd udev unicode wavpack webrsync-gpg xattr xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="alpha arm i386 mips mips64 mips64el mipsel ppc ppc64 s390x sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha arm armeb i386 mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sys-apps/systemd-233-r1::gentoo was built with the following:
USE="acl cryptsetup gcrypt kmod lz4 pam policykit seccomp ssl (-apparmor) -audit -build -curl -doc -elfutils -gnuefi -http -idn -importd -lzma -nat -qrcode (-selinux) -sysv-utils -test -vanilla -xkb" ABI_X86="64 -32 -x32"

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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