You are not logged in.

#201 2010-08-18 14:44:53

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: The Console Display Manager

You could wait for it to become available again... shouldn't be long.... or you could use the git version (I recommend the git version anyway)


.:[My Blog] || [My GitHub]:.

Offline

#202 2010-08-18 15:05:03

tlamer
Member
From: Bratislava, Slovakia.
Registered: 2010-02-04
Posts: 42

Re: The Console Display Manager

Ghost1227 wrote:

You could wait for it to become available again... shouldn't be long.... or you could use the git version (I recommend the git version anyway)

thanks ill use the git version then...

Last edited by tlamer (2010-08-18 15:05:38)


:wq

Offline

#203 2010-08-18 15:23:39

Dannny
Member
From: New Jersey
Registered: 2009-12-28
Posts: 20

Re: The Console Display Manager

I really want to get this working! I'm sick of how slow slim is
I login, and cdm is shown. The shutdown and console options work perfectly, no problem, but whenever I try to start an openbox session, it immediately takes me back to the login screen
Any suggestions?

EDIT: Could it possibly be because I use fgetty rather than getty?

Last edited by Dannny (2010-08-18 15:57:58)


Please put your pants back on, man, I feel weird having to ask twice.

Offline

#204 2010-08-18 19:51:33

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: The Console Display Manager

Dannny wrote:

EDIT: Could it possibly be because I use fgetty rather than getty?

It's possible... I never tested with fgetty. Can you pastebin your configs?


.:[My Blog] || [My GitHub]:.

Offline

#205 2010-08-18 21:00:15

Dannny
Member
From: New Jersey
Registered: 2009-12-28
Posts: 20

Re: The Console Display Manager

/etc/cdmrc: http://pastebin.org/585429
~/.xinitrc: http://pastebin.org/585456

EDIT: I changed my ~/.xinitrc to load $1 rather than straight openbox-session, and I put a 'set -x' before the startx in /usr/bin/cdm. Ran cdm, selected openbox, and got the command it used to startx.

nohup ck-launch-session bash --login -c 'startx /home/danny/.xinitrc openbox-session -- :0 -nolisten tcp -dpi 96 vt7'

The command works fine on it's own, so it must be something about the way cdm handles it that's creating my problem.

Last edited by Dannny (2010-08-19 16:06:54)


Please put your pants back on, man, I feel weird having to ask twice.

Offline

#206 2010-08-27 02:47:11

livibetter
Member
From: Taipei
Registered: 2008-05-14
Posts: 95
Website

Re: The Console Display Manager

I just installed CDM two days ago, I found conky telling me 0 users had logged in. I didn't pay attention at first, I thought must be something wrong with conky, but just minutes ago, I ran

$ w
 10:35:46 up  6:31,  0 users,  load average: 0.20, 0.16, 0.16
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
$ who
$

Is this normal? (When I used XDM to login fluxbox, those commands showed me something)

(I don't know if it's about my config, I attach it anyway:

$ cat /etc/cdmrc | egrep -v '#|^$'
theme=default
countfrom=1
wmbinlist=(startfluxbox)
wmdisplist=(Fluxbox)
allowconsole=yes
consolefirst=no
allowshutdown=yes
shutdowncommand='sudo shutdown -h now'
rebootcommand='sudo shutdown -r now'
allowsuspend=no
suspendcommand='sudo pm-suspend'
display=0
xtty=7
locktty=no
loginshell=no
consolekit=no
usexinit=yes
serverargs="-nolisten tcp -dpi 96"

Last edited by livibetter (2010-08-27 02:47:50)

Offline

#207 2010-09-05 10:12:15

Psycho_zs
Member
Registered: 2010-05-24
Posts: 18

Re: The Console Display Manager

Great work!
Simplest and fastest login

Ghost1227, haven't you considered a more qingy-like approach: launching X on current vt or maybe even somehow moving cdm startup from bash profile to inittab?

I've tried to launch X on current vt by setting xtty=$((`fgconsole` - 1)), but it resulted in broken policykit (no shutdown, cpu scalling privileges inside session) and something is spamming lots of eights into agetty login prompt after end of session or vt switch, like "88888888888888=888888888888;888888888888888888..."

I'm also joining question in previous post. My session is also invisible to `who`, regardless of whether login shell option is set or not.


Also: my minimalistic two-color theme:

 screen_color = (BLUE,BLACK,ON)
shadow_color = (BLACK,BLACK,ON)
dialog_color = (BLACK,BLACK,OFF)
title_color = (BLUE,WHITE,ON)
border_color = (BLACK,BLACK,OFF)
button_active_color = (WHITE,BLACK,ON)
button_inactive_color = (BLUE,BLACK,ON)
button_key_active_color = (WHITE,BLACK,ON)
button_key_inactive_color = (BLUE,BLACK,ON)
button_label_active_color = (WHITE,BLACK,ON)
button_label_inactive_color = (BLUE,BLACK,ON)
menubox_color = (BLUE,BLACK,ON)
menubox_border_color = (BLUE,BLACK,ON)
item_color = (BLUE,BLACK,ON)
item_selected_color = (WHITE,BLACK,ON)
tag_color = (BLUE,BLACK,ON)
tag_selected_color = (WHITE,BLACK,ON)
tag_key_color = (BLUE,BLACK,ON)
tag_key_selected_color = (WHITE,BLACK,ON)
uarrow_color = (BLUE,BLACK,ON)
darrow_color = (BLUE,BLACK,ON)
form_active_text_color = (BLACK,BLUE,ON)

Offline

#208 2010-10-20 15:14:56

S_Paul
Member
Registered: 2010-10-20
Posts: 1

Re: The Console Display Manager

Hi all, seems i solve problem like this:

Dannny wrote:

... The shutdown and console options work perfectly, no problem, but whenever I try to start an openbox session, it immediately takes me back to the login screen
Any suggestions?
EDIT: Could it possibly be because I use fgetty rather than getty?

The Xserver must be runs from _ALL_ users, i use Debian and do this with configure-debian tool, how do it in archlinux i don't know, but this work for me.
Hope it helps you.
Paul.

Offline

#209 2010-12-11 08:46:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The Console Display Manager

Thanks Ghost - this is great.

I have been experimenting with different colorschemes, does anyone know how to include other colours, eg., grey?
I have tried GREY and "\e]P83d3d3d" - to no effect.

Screenie
5251075268_0998d11b41_m.jpg


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#210 2010-12-21 20:03:22

Kpunkt
Member
Registered: 2009-06-08
Posts: 144

Re: The Console Display Manager

Weird, cdm simply doesn't show up automatically if my default login shell (which you can set by using chsh) is set to fish..
If I login and execute cdm, everything works. If I set my default shell to bash, cdm starts automatically.

Any ideas/workarounds? Is this a {fish, bash, cdm}-bug?

Offline

#211 2011-01-29 07:22:33

Oblitus
Member
Registered: 2008-01-08
Posts: 18

Re: The Console Display Manager

I don't know what kpunkt is talking about...but I have a similar problem. Here's my thread https://bbs.archlinux.org/viewtopic.php?id=112588.

Last edited by Oblitus (2011-01-30 10:07:10)

Offline

#212 2011-02-08 22:42:37

tommyturbine
Member
Registered: 2009-11-02
Posts: 16

Re: The Console Display Manager

Great piece of software - I just hacked it around a bit to start fbterm and tmux for me as well as X desktops. Here's the diff

147,154d146
<     # Check if tmux access is allowed
<     if $(checkyesno allowtmux); then
<         if ! $(checkyesno allowshutdown); then
<             let halt=99
<         fi
<         menu="0 TMUX ${menu} "
<     fi    
< 
194,196c186
<     if [[ ${wm} -eq 0 ]]; then
<         prettyconsole /home/tom/yellow.png
<     elif [[ ${wm} -eq ${console} ]]; then
---
>     if [[ ${wm} -eq ${console} ]]; then

And then all that's needed is a line which says

allowtmux=yes

Incidentally, the prettyconsole script that's called there is from KMandla's blog originally

#!/bin/bash
echo -ne "\e[?251"

fbv -ciuker $1 << EOF
q
EOF

shift
export FBTERM_BACKGROUND_IMAGE=1
exec fbterm tmux

Hope that's useful to someone smile

Offline

#213 2011-02-17 02:54:18

kludge
Member
Registered: 2008-08-03
Posts: 294

Re: The Console Display Manager

seems like your bug tracker is down, so here's a bug report.  after installing CDM (within a running X session), i switched to a tty, logged out, and logged back in.  now,  *nothing* happens.  so switched to another tty where i was already logged in and ran htop.  the tree view shows me that cdm has invoked 'xdpyinfo -display :0.0'... and is simply sitting there.  when i kill xdpyinfo, cdm proceeds to present me with the session menu, and everything works from there as expected.  this is a very repeatable process.

*so*, for fun, i switched to a tty and rand 'xdpyinfo -display :0.0'... and *nothing*.  it doesn't exit with an error status, it simply sits there.  this is not what i'd expect from xdpyinfo; i'd assumed it would simply throw an error because X wasn't running and exit.  from cdm, it seems like you did, too:

# If X is already running and locktty=yes, activate it,
# otherwise, increment.
if $(checkyesno locktty); then
        # Verify display exists
        if [[ -n "${display//[0-9]/}" ]]; then
                display=0
        fi
        # Activate existing X session
        if xdpyinfo -display :${display}.0 &> /dev/null; then
                let tty=display+xtty
                chvt ${tty}
                exit 0
        fi
else
        # Get the first empty display
        display=0
        while [[ ${display} -lt 7 ]]; do
                if dpyinfo=$(xdpyinfo -display :${display}.0 2>&1 1>/dev/null); 
then
                        let display=display+1
                else
                        break
                fi
        done
fi

what i don't see in there is an check to see if X is indeed running.  it looks to me like your relying on xdpyinfo to throw an error if it doesn't find the display you're asking about, but (at least here) it just sits, doing not much of anything.

is this my problem or yours?  if it's yours what about throwing an "if [[ -z $DISPLAY ]]; elif ... ; fi" around the whole block?

if it's my problem, what the heck is going on?


[23:00:16]    dr_kludge | i want to invent an olfactory human-computer interface, integrate it into the web standards, then produce my own forked browser.
[23:00:32]    dr_kludge | can you guess what i'd call it?
[23:01:16]    dr_kludge | nosilla.
[23:01:32]    dr_kludge | i really should be going to bed.  i'm giggling madly about that.

Offline

#214 2011-03-02 12:06:02

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,927
Website

Re: The Console Display Manager

I think the -dpi 96 in serverargs is unnecessary. The DE's are much better in figuring out the dpi, even my compiz standalone session does it well. Leaving the dpi in serverargs messed up my font sizes in 1440x900.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#215 2011-03-12 07:09:03

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: The Console Display Manager

If anyone still has trouble launching two X sessions by different users for some reason because of the magic cookie error from xdpyinfo, you might want to add this snippet after line 130 (the get first empty display loop):

        elif [[ $dpyinfo = Invalid\ MIT* ]]; then
            # Display is in use by another user
            let display=display+1

Since the magic cookie error indicates that it's trying to access something that doesn't belong to the user, it might be a good idea to increment the tty based on that output.

Last edited by ShadowKyogre (2011-03-12 07:09:30)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#216 2011-05-22 10:47:07

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: The Console Display Manager

Hello Ghost1227, thank for this wonderfully easy login manager, I really enjoy its kind of way doing things.

However, I have a small little issue: i’m using zsh, which entails a ~/.zlogin (which is only read when zsh is invoked with the »-l« parameter, i.e. as a login shell) and a ~/.zshrc, which is sourced by every instance of zsh.

However, the loginshell=yes option doesn’t seem to invoke zsh as a real login shell, since .zlogin (which only defines my path) is NOT read.

For the time being, I’ve included the path definition in .zshrc and as thus, it works again now, but this is not how it is thought to be, since the path definition only needs to be read one time and then get exported.

Are there any hints on how to solve this?

Best,

Jakob

my cdmrc: http://cxg.de/_11490b.htm

Last edited by jakob (2011-05-22 11:08:13)

Offline

#217 2011-06-21 02:37:50

flaque
Member
From: Rosario, Argentina
Registered: 2011-04-15
Posts: 22

Re: The Console Display Manager

Thanks a lot for CDM, it's really great!

Though I have issues with it not working properly with consolekit, I solved them all by using xinitrc instead of direct executing of the sessions smile

Right now I use CDM to choose between Gnome, Gnome-Fallback, Xfce, LXDE and Openbox sessions in my laptop big_smile

Thanks again!

Cheers from Argentina

Offline

#218 2011-06-23 14:11:55

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: The Console Display Manager

I just realized that when using CDM, my .bash_profile does not get sourced. Any workaround for this (other than putting everything in .bashrc)?

Offline

#219 2011-07-14 20:54:17

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: The Console Display Manager

well folks...got this wrong:

~ $ yaourt -S cdm 0.5.3-1
Password: 
error: target not found: 0.5.3-1
~ $ yaourt -S cdm 

==> Downloading cdm PKGBUILD from AUR...
x PKGBUILD

Comment by: ShadowKyogre on Wed, 03 Nov 2010 00:18:10 +0000
xorg-utils should be added as a dependency since xdpyinfo is in that package.    

Comment by: Ghost1227 on Sun, 02 Jan 2011 23:45:29 +0000
Added in -git version. will add in stable shortly.    

Comment by: dolby on Thu, 10 Mar 2011 16:12:07 +0000
xorg-utils is a transitional package. if cdm depends on xdpyinfo add a dependency to xorg-xdpyinfo directly.    

Comment by: InconnuConnu on Thu, 10 Mar 2011 16:56:45 +0000
There's an error with the md5sum check : need to replace f920e0947deee15dd5532a1e3bffdc86 by 9a7b00559cfc72f761ad172819c61c7f .    

Comment by: Maxr on Tue, 31 May 2011 06:35:59 +0000
md5 sum is still wrong.    

Comment by: trishika on Mon, 13 Jun 2011 18:56:40 +0000
change md5 pls !    

First Submitted: Mon, 09 Nov 2009 13:35:28 +0000    
cdm 0.5.3-1 
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> cdm dependencies:
 - dialog (already installed)


==> Continue building cdm ? [Y/n]
==> -----------------------------
==> 
==> Building and installing package
==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
==> Making package: cdm 0.5.3-1 (Thu Jul 14 14:47:52 CST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading cdm-0.5.3.tar.gz...
--2011-07-14 14:47:52--  [url]http://cdm.ghost1227.com/repo/cdm-0.5.3.tar.gz[/url]
Resolving cdm.ghost1227.com... 173.255.205.67
Connecting to cdm.ghost1227.com|173.255.205.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13751 (13K) [application/x-gzip]
Saving to: “cdm-0.5.3.tar.gz.part”

100%[======================================>] 13,751      61.1K/s   in 0.2s    

2011-07-14 14:47:53 (61.1 KB/s) - “cdm-0.5.3.tar.gz.part” saved [13751/13751]

==> Validating source files with md5sums...
    cdm-0.5.3.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build cdm.
==> Restart building cdm ? [y/N]
==> ----------------------------
==> 
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> cdm dependencies:
 - dialog (already installed)


==> Continue building cdm ? [Y/n]
==> -----------------------------
==> 
==> Building and installing package
==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
==> Making package: cdm 0.5.3-1 (Thu Jul 14 14:48:15 CST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found cdm-0.5.3.tar.gz
==> Validating source files with md5sums...
    cdm-0.5.3.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build cdm.
==> Restart building cdm ? [y/N]
==> ----------------------------
==> 
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> cdm dependencies:
 - dialog (already installed)


==> Continue building cdm ? [Y/n]
==> -----------------------------
==> 
==> Building and installing package
==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
==> Making package: cdm 0.5.3-1 (Thu Jul 14 14:49:15 CST 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found cdm-0.5.3.tar.gz
==> Validating source files with md5sums...
    cdm-0.5.3.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build cdm.
==> Restart building cdm ? [y/N]
==> ----------------------------
==> 
==> WARNING: Following packages have not been installed:
    cdm

Last edited by 1archgamenon2 (2011-07-14 20:59:32)

Offline

#220 2011-07-14 21:05:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The Console Display Manager

That package is flagged out of date. Use cdm-git.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#221 2011-07-14 21:12:04

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: The Console Display Manager

jasonwryan wrote:

That package is flagged out of date. Use cdm-git.

Thx buddie!

btw cdm has autologin or yet?

Offline

#222 2011-07-15 01:43:44

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: The Console Display Manager


Follow me on twitter: https://twitter.com/johnbina

Offline

#223 2011-07-17 13:49:44

1archgamenon2
Banned
Registered: 2011-07-12
Posts: 201

Re: The Console Display Manager

well...had an error[something about time -really don't remember-] and now is deleted from my system!

Last edited by 1archgamenon2 (2011-07-17 13:50:53)

Offline

#224 2011-07-17 14:08:05

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: The Console Display Manager

1archgamenon2 wrote:

well...had an error[something about time -really don't remember-] and now is deleted from my system!

What are you actually trying to say? When you are not certain that you can or want to communicate something that is helpful or informative for other users, please refrain from posting altogether. When you need help, post output or logs of what you have done, what the desired result was and what actually happened. It is counterproductive when people have to guess what you are doing on your system.


ᶘ ᵒᴥᵒᶅ

Offline

#225 2011-09-06 03:17:33

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: The Console Display Manager

Ghost 1227:

Does CDM allow running as root exclusively?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB