Start X at Boot (Magyar)
Jump to navigation
Jump to search
~/.bash_profile
A login manager-ek helyettesítésére kitűnő alternatíva az, hogy a következőt a ~/.bash_profile
végére fűzöd (ha a ~/.bash_profile
nincs jelen a rendszereden, innen bemásolhatod magadnak: /etc/skel/.bash_profile
):
~/.bash_profile
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then . startx logout fi
vagy (ez némi ellenőrzést is futtat):
~/.bash_profile
if [[ -z "$DISPLAY" ]] && [[ ! -a "/tmp/.X11-unix/X0" ]] && [[ "`whoami`" != "root" ]]; then . startx logout fi
vagy:
~/.bash_profile
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then exec xinit -- /usr/bin/X -nolisten tcp logout fi
Ezzel a módszerrel, az X automatikusan indul, amikor a parancshéjba lépsz. Továbbá kiléphetsz belőle, ha az X-et a Ctrl+Alt+Backspace
billentyűkombinációval állítod meg. Ha pedig a mingetty technique[broken link: invalid section]módszert használod belépésre, vedd ki a fenti beállításokból a "logout" parancsot.