Chciałbym aby po zalogowaniu do systemu nie trzeba było za każdym razem wpisywać polecenia:
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/pts/0 ]; then
startx
fi
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/pts/0 ]; then
startx
fi
Kod: Zaznacz cały
grep initdefault /etc/inittab
Kod: Zaznacz cały
id:[B]X[/B]:initdefault:
Kod: Zaznacz cały
S04gdm3
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
grep initdefault /etc/inittab
Kod: Zaznacz cały
K01acpi-support K01cups S17acpi-fakekey S18wicd
K01anacron K01exim4 S17cron S19rc.local
K01apmd K03rsyslog S17dbus S19rmnologin
K01atd README S17loadcpufreq S19stop-bootlogd
K01avahi-daemon S14rpcbind S17rsync
K01bluetooth S15nfs-common S17sudo
K01bootlogs S17acpid S18cpufrequtils
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
startx
An alternative to a login manager is to add the following to the bottom of your ~/.bash_profile (if ~/.bash_profile does not yet exist, you can copy a skeleton version from /etc/skel/.bash_profile):or with additional checking (if tty1 (ctrl-alt-F1) shows an error message):Kod: Zaznacz cały
File: ~/.bash_profile if [[ -z $DISPLAY && $(tty) = /dev/tty1 ]]; then exec startx # Could use xinit instead of startx #exec xinit -- /usr/bin/X -nolisten tcp vt7 fi
The user will be logged out when X is killed. In order to avoid this, remove the exec part from the script.Kod: Zaznacz cały
File: ~/.bash_profile if [[ -z $DISPLAY && ! -a /tmp/.X11-unix/X0 && $(id -u) != 0 ]]; then exec startx fi
Kod: Zaznacz cały
~/.bash_profile
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
startx
Kod: Zaznacz cały
~/.xinitrc