SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-10-17 09:11:11

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 638

Another way to do without a login/display manager

First I think this is the first how to I have posted here so be gentle!
I wanted to get rid of login managers like GDM or lightdm
so I uninstalled them and put stuff in .xinitrc

strange but it seemed to get bypassed or not noticed and my default openbox would startup

so another way:
I installed nodm

sudo apt-get install nodm

after it's installed you edit two lines in the NoDM configuration file

sudo nano /etc/default/nodm

NODM_ENABLED=false
NODM_USER=root

The first line  change to:

NODM_ENABLED=true

The second line change to the username you want to be logged in with.
in my case
NODM_USER=dk

Lastly you need to tell your system what type of session to start when X is spawned.
So for instance If you want to use the herbstluft as your desktop,  in your ~/.xsession file I add the following line:

exec herbstluft --locked
dont put the --locked part for other window managers herbstluft just likes it like that


Troll = not a fanatic
slave of #!  and arch

Offline

Help fund CrunchBang, donate to the project!

#2 2013-10-17 14:33:38

uname
#! Junkie
Registered: 2013-03-15
Posts: 484

Re: Another way to do without a login/display manager

You do not need a display manager like "nodm". You can deinstall "nodm" and "lightdm" ... After reboot you only get a text console. If that works i can post the configuration for automatic login to console 1 and automatic "startx".

Offline

#3 2013-10-17 14:40:27

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 638

Re: Another way to do without a login/display manager

if you notice in my post i said
"I wanted to get rid of login managers like GDM or lightdm
so I uninstalled them and put stuff in .xinitrc
strange but it seemed to get bypassed or not noticed and my default openbox would startup"
What I meant was I tried doing without a window manager and just putting stuff in .xinitrc but even though I would put an entry to start say ratpoison - openbox would still start up!
thats why i resorted to this method and it works because typing starx didn't work for me.


Troll = not a fanatic
slave of #!  and arch

Offline

#4 2013-10-17 14:46:37

uname
#! Junkie
Registered: 2013-03-15
Posts: 484

Re: Another way to do without a login/display manager

I think there is a display manager installed. Find the display manager in /etc/pam.d or /etc/init.d
If not find "openbox" with

fgrep -R openbox /home/user

Last edited by uname (2013-10-17 14:49:26)

Offline

#5 2013-10-17 15:08:24

bigbenaugust
#! Junkie
From: the 919
Registered: 2009-03-04
Posts: 341

Re: Another way to do without a login/display manager

[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1

--Ben
Debian: II   Arch: II   openSUSE: I

Offline

#6 2013-10-22 17:38:46

Nebucatnetzer
#! CrunchBanger
Registered: 2013-05-26
Posts: 211
Website

Re: Another way to do without a login/display manager

I added this to the end of the .profile file in my home directory.
It executes startx after I logged in to tty1 and logs me out when it gets killed.

#start X at login
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
  exec startx
fi

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo