Kein WM startet mit Benutzer/root, außer Xfce !

Spot

Spot

Waldgänger
Hallo !

Hab ein sehr ärgerliches Problem:

Wenn ich den PC starte wird ArchLinux ganz normal geladen.
Darauf dann der LoginManager Slim. Wenn ich mich da anmelde startet, normalerweise, ein WM den ich vorher in der ~/.xinitrc definiert habe (hier Fluxbox)

Doch neuerdings nicht mehr :(

Melde ich mich in Slim an, dann erscheint danach das Nvidia Logo und anstatt das der WM dann erscheint, sehe ich nur einen schwarzen Bildschirm mit dem Mauszeiger anstatt Fluxbox...

Auch KDE, Xfce kann ich als Benutzer nicht starten....

Das komische ist aber:

Wenn ich aus dem Runlevel 1 mit root xfce4 starte geht es !
Andere WM's kann ich aber auch nicht mit root starten....

Bewusst hatte ich die ~/.xinitrc geändert.

Hatte nur die Zeile "kdeinit &" hinzugefügt (aber wieder entfernt).
Nach dem nächsten regulären PC start gings dann nicht mehr.............

Nun meine Datein:

slim.conf

(ob ich bei der zeile "LoginCMD" %session am ende schreibe oder startfluxbox macht keinen unterschied.......)

Code:
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            sudo halt
reboot_cmd          sudo reboot
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
hidecursor         true

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session
default_user ich
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can overridden by the command line
# option "-d"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce4, e17
#icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      scrot ich /home/ich/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         %host

# shutdown / reboot messages
shutdown_msg       Aus die Maus...
reboot_msg         Auf ein Neues... 

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       archlinux

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

~/.xinitrc

Code:
exec startfluxbox &
xscreensaver &


Meine xinitrc Datei in /etc/X11/xinit:

Warum steht das fett markierte da ?

Code:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

[B]# start some nice programs
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login[/B]

€ Wenn ich mit root "init 1" eingebe und dann "startx" erscheint folgendes:

http://www.abload.de/image.php?img=startxu50.png

Was auch immer das sein mag........

Da kann ich aber z.b. auch einen anderen WM drin starten...auch xmms.......

http://www.abload.de/image.php?img=startx2c1t.png


Im Linuxforen.de hab ich das Thema auch mal reingestellt.
 
Zuletzt bearbeitet:

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Autostart von X mit google-chrome durch systemd

MacBook Pro hat Benutzer-Konten vergessen

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

JBidWatcher: Problem bei loading Auctions in Verbindung mit mySQL

Zurück
Oben