You are not logged in.

#1 2013-10-09 02:22:45

KiwiLinux
Member
Registered: 2013-10-08
Posts: 26

Change login manager but still boot to same DE

Ok, here is the story.
I have installed gnome and lxde.  I made the gnome GDM screen my default login screen, so it boots straight to that.
I also have x window manager installed which was originally started using startx, but with the GDM screen I no longer do that.

What I would like to do is have arch boot to the arch default login screen, just the text based screen.  However, I would still like to be able to successfully boot into the exact same LXDE environment.  I looked on the wiki but couldn't seem to find anything I could understand. 

For example:  I boot to the arch default screen, login, then type some other command which loads up lxde.

Any info on how to change it would be much appreciated.

Offline

#2 2013-10-09 02:32:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Change login manager but still boot to same DE

Disable GDM (systemctl disable gdm), then edit ~/.xinit to start whatever WM you want when you do startx.

Offline

#3 2013-10-09 02:40:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Change login manager but still boot to same DE

KiwiLinux wrote:

What I would like to do is have arch boot to the arch default login screen, just the text based screen.  However, I would still like to be able to successfully boot into the exact same LXDE environment.

That seems inconsistent.   I think you want to boot to the text login and then start LXDE.

What I do is to maintain a custom .xinitrc file in my home directory.:

ewaller$@$odin ~ 1002 %cat .xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

#xset b off
setxkbmap -option ctrl:nocaps
autocutsel -fork &
autocutsel -selection PRIMARY -fork &

case $WM in
openbox)
	exec  openbox-session
	;;
gnome)
	exec gnome-session
	;;
e17)
     enlightenment_start
    ;;
dwm)
     exec dwm
    ;;
vb)
    VirtualBox -startvm "Windows XP" -fullscreen
    ;;
xfce4)
    exec startxfce4
    ;;
i3)
    exec i3
    ;;
*)
    exec openbox-session
    ;;
esac

ewaller$@$odin ~ 1003 %

Then, it is easy to pick which environment to start by setting the environmental variable WM to the name of the environment in the case statement.  for example, if I wanted i3, I would enter:

WM=i3 startx

This week, I am partial to openbox.  If I were to just say startx without setting WM, then it will default to openbox.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2013-10-09 02:42:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Change login manager but still boot to same DE

Scimmia wrote:

Disable GDM (systemctl disable gdm), ....

I forgot that part wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB