Back in the day before systemd, I use to be able to login into konsole directly after booting into runlevel 3 and starting X/konsole. I want to create this same environment on my new clean installation of opensuse leap. I don’t think this is impossible but my knowledge of systemd is fairly green up to this point Thanks for your help!
hmtech_suse
Hi and welcome to the Forum
You mean the VT (aka tty/init 3/runlevel 3), in systemd you need to set the default via;
systemctl set-default multi-user.target
If you want back to a GUI, set the default to graphical.target.
malcolmlewis thx,
I do know how to get to multi-user.target but from there there is no documentation that I can find to get over to a basic X and whatever you want to run on top. I have read about rc-local.service but I don’t understand the process?
hmtech_suse
Hi
So to switch to the different runlevels from a tty;
Switch to runlevel 3
systemctl isolate multi-user.target
Switch to runlevel 5
systemctl isolate graphical.target
Then you need to select the default window manager in the login dropdown of the login manager eg gdm, kdm etc.
Do you want the user to auto login?
What DE (Desktop Environment) are you wanting to use?
Ok, so my login manager is KDM. But I don’t use a DE i want to start X then start konsole…No window manager/no DE simple and slim if I want to start a web browser or file browser everything is done via konsole.
hmtech_suse
Hi
Hmmm, have a read here, https://wiki.gentoo.org/wiki/X_without_Display_Manager looks like you need to create a systemd service.
See how the above goes, if still having issues I can setup a test system to play with.
Thanks for the reference malcolmlewis!
So I think that this snippet of code in .bash_profile will startx for me automagically then I assume under .bash_profile I can also run konsole or even a window manager if I so choose. I have never used the XDG_VTNR but it is definitely something interesting. I have used initd for a very long time. Thanks for your patience!
**if** ! **${**DISPLAY**}**&&**${**XDG_VTNR**}**==8]];**then** exec startx **fi**