You are not logged in.
Hello, right now I'm starting in runlevel 5 autologin using /bin/login to go directly to the graphical desktop. My Xorg server is running in VT7 and I'm wondering if it could be changed to run in VT1, because when I restart or shutdown I'm dropped to the first VT while the shutdown text is being displayed in VT7.
Offline
Have a look at /etc/inittab, I think this is what you're looking for.
Offline
https://wiki.archlinux.org/index.php/Start_X_at_Boot
Try changing 'exec xinit -- /usr/bin/X -nolisten tcp vt7' to 'exec xinit -- /usr/bin/X -nolisten tcp vt1'.
Offline
Thank you for your answers the_isz and karol. I've looked into the inittab file, if it's there where it can be changed I have no clue on how.
I've just tried what karol suggests, even though the X11 server is running in the first VT it's not using the .xinitrc file or something as the session doesn't seem to be registered in ConsoleKit (e.g. I can't reboot the computer as a normal user).
Right now I'm starting the X server this way:
# Start X if running in runlevel 5:
if [[ -z $DISPLAY && $(tty) = /dev/tty1 && `runlevel | cut -c3` = 5 ]]; then
startx &> /dev/null
fi
So that any login from a different TTY or other runlevel other than 5 would produce a terminal login.
In my xinitrc file the exec line looks like this:
exec ck-launch-session dbus-launch gnome-session
Offline
In //etc/iniitab, you might try commenting out the line
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
I've not tried this -- there may be repercussions. Let us know
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
You can use your .xinitrc like this
xinit /home/karol/.xinitrc -- /usr/bin/X -nolisten tcp vt1
Offline