Jump to content

log in desktop environment without display manager

I using Fedora 34 I  want to to delete the display manager so that i can put my username and password in terminal  to start my cinnamon desktop. How do i go about doing this?

Link to comment
Share on other sites

Link to post
Share on other sites

Without a display manager you can't login into a Desktop. You should be able to use systemctl(idk if this exists on Fedora) and prevent it from running on startup so you land into a Console (Terminal) If you then want to get into a desktop then simply type sudo gdm on terminal.

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, WickedThunder86 said:

Without a display manager you can't login into a Desktop. You should be able to use systemctl(idk if this exists on Fedora) and prevent it from running on startup so you land into a Console (Terminal) If you then want to get into a desktop then simply type sudo gdm on terminal.

I was thinking something like starx

 

Link to comment
Share on other sites

Link to post
Share on other sites

55 minutes ago, LBrocato said:

I was thinking something like starx

 

It should work but I am not sure.

Link to comment
Share on other sites

Link to post
Share on other sites

You can use your bash_profile to automatically start your desktop environment on login

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

On 7/30/2021 at 12:54 AM, LBrocato said:

I using Fedora 34 I  want to to delete the display manager so that i can put my username and password in terminal  to start my cinnamon desktop. How do i go about doing this?

The right way:

 

you need to disable the display manager (don't remove it)

 

systemctl disable displaymanagername.service

 

then install xinit

 

sudo dnf install xorg-x11-xinit

 

then using a text editor make a file in your users /home directory  called .xinitrc then add this line

exec cinnamon-session

 

then add this to your .bashrc
 

if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
	exec startx
fi

 

sources

https://wiki.archlinux.org/title/Xinit

https://src.fedoraproject.org/rpms/xorg-x11-xinit

https://wiki.archlinux.org/title/Cinnamon#Starting_Cinnamon_manually

https://wiki.archlinux.org/title/Display_manager

 

been doing this for years with window managers, all my autostarts are handled post bash login via .bashrc because .bash_profile is read and executed before user config is loaded meaning there's no garauntee of X server leaving a log behind if it crashes on launch.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×