You are not logged in.

#1 2010-02-14 09:22:02

moere
Member
Registered: 2010-02-14
Posts: 29

CDM with lxde - please explain it to a newbie

Hi there!

I trie to use CDM as login manager.
http://wiki.archlinux.org/index.php/CDM


But I am not sure how to do it the right way.

What I did:

I installed cdm via:

yaourt -Sy -aur cdm

as user. (Is this the right way? Since my user is member of the group wheel
and by typing in the password all commands are allowed this way should work fine right?
And I guess it did.)

Before I installed lxde and it is running.
My .xinitrc:

#!/bin/bash

exec ck-launch-session startlxde

By typing "startx" as user I get into lxde.


But now I want to use cdm.

What shall I do?

Edit the inittab so that I boot into runlevel 5
and then add a line at the bottom like so ??

x:5:respawn:/urs/bin/cdm -nodaemon

And how to configure the /etc/cdmrc ?
I have to tell it that I use lxde, right?
But how?


Please give me some (enough) hints on what to do
and how to do it the right way.


greets
moere


ps: I already voted for cdm ;), and I did it via "aurvote" thats the right way, right?

Last edited by moere (2010-02-14 14:07:12)

Offline

#2 2010-02-14 17:19:17

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: CDM with lxde - please explain it to a newbie

Hi,
first you don't need to add the line you added intp the inittab.

Now the configuration.
Just edit these variables like shown:

# List all WM binary names
wmbinlist=(startlxde)

# List all WM display names
wmdisplist=(LXDE)

The first variable 'wmbinlist' is a list of commands which start the program you want.
Means you should ad into it startlxde to start LXDE or openbox-session for openbox or startxfce for xfce.
You can also set multiple commands separated by a space like (startlxde openbox-session startxfce).

The second variable 'wmdisplist' is a list of names shown in the dialog of cdm for the commands given in 'wmbinlist'.
The number of entries have to be equal to the number of entries in 'wmbinlist' and the order is the same.
E.g.:
wmbinlist=(startlxde openbox-session)
wmdisplist=(Foo Bar)
This would cause you'll see in the dialog of cdm the choices 'Foo' and 'Bar' if you'll start 'Foo' cdm would start startlxde and if you choose 'Bar' it would start openbox.

Then you should set 'consolekit=yes' and maybe you'll need to set 'loginshell=yes' it depends on your keymap setup. If you have issues with your keyboard like some characters don't work then try setting this variable.

Offline

#3 2010-02-14 18:53:02

moere
Member
Registered: 2010-02-14
Posts: 29

Re: CDM with lxde - please explain it to a newbie

alright thanks alot Andrwe.

LXDE does start now.


Hm. Maybe I missunderstood a feature of cdm.

The way I thought it would work like:
1. turn on the notebook,
2.booting up right into the cdm menu
3.typing in user name and password (like you do in this gnome thingi)
4. and then lxde would start automatically

The way it seems to work like:
1. turn on the notebook,
2. booting up in telinit 3
3. typing in usr and passwd
4. selecting wheter to start lxde or go into console or shutdown/reboot

But having it the way it seems like to work.. what is it good for?
Instead of step 4. I can simply type 'startlxde' as a command, or a shortcut defined in the .bashrc.


Is it possible to use cdm the way I thought it would work like?
(Booting directly into the cdm interface and typing in usr and passwd and then having lxde to start directly).

Offline

#4 2010-02-14 20:24:11

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: CDM with lxde - please explain it to a newbie

moere wrote:

Is it possible to use cdm the way I thought it would work like?
(Booting directly into the cdm interface and typing in usr and passwd and then having lxde to start directly).

No this is not possible because per design cdm is a desktop manager and not a login manager.

And the advantage of cdm is that you can choose between several environments without starting X and typing in some commands also cdm supports multiple different instances of environment e.g. you can have running openbox, lxde, awesome and a console session on the same time without setting command parameters which where needed if you'll run start the session from commandline.
And an other feature which is needed for some users is the user specific handling of a login means you can set on environment to be default for user foo and an other for user bar.

Offline

#5 2011-09-27 10:23:00

cuh7b5
Member
Registered: 2011-09-19
Posts: 3

Re: CDM with lxde - please explain it to a newbie

Hi,
if you use CDM to start always the same window manager and if you do not need the cdm menu's reboot and console login features then you can edit the appropriate entries in your /etc/cdmrc like this:

wmbinlist=(startlxde)
wmdisplist=(LXDE)
allowconsole=no
allowshutdown=no

Now cdm will not show the menu (because it would be useless) but goes directly to your LXDE session after logging in, meaning that you save one step:

1. turn on the notebook,
2. booting up in telinit 3
3. typing in usr and passwd
4. and then lxde would start automatically


Thinkpad Edge 11

Offline

#6 2011-09-27 10:55:37

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: CDM with lxde - please explain it to a newbie

cuh7b5, this thread is almost two years old. Please do not necropost: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Do open another thread of your own. You may refer back to this one if needed.

Closing this thread.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB