User Tools

Site Tools


linux:x11:login

This is an old revision of the document!


X11 login ohne Display Manager

X11 autostart mit login an tty1

~/.bash_profile

if shopt -q login_shell; then
    [[ -f ~/.bashrc ]] && source ~/.bashrc
    [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && exec startx
else
    exit 1 # Somehow this is a non-bash or non-login shell.
fi

X11 autostart mit login an vt8

~/.bash_profile

if [[ ! ${DISPLAY} && ${XDG_VTNR} == 1 ]]; then
  exec startx
fi

startx

cp /etc/X11/xinit/xinitrc .xinitrc

vi .xinitrc
#!/bin/sh

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession

exec x-window-manager &
linux/x11/login.1697710616.txt.gz · Last modified: 2023/10/19 10:16 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki