View previous topic :: View next topic |
Author |
Message |
eXt n00b
Joined: 09 Oct 2005 Posts: 66 Location: Sweden
|
Posted: Tue Mar 11, 2008 8:05 pm Post subject: Lightweight displaymanager with autologin |
|
|
Hi, is there any lightweight displaymanager that supports autologin? I know gdm can do this. What I want to do is to have X and fluxbox autostart and just launch an application. |
|
Back to top |
|
|
Darius4all Tux's lil' helper
Joined: 16 Jun 2003 Posts: 128 Location: France
|
|
Back to top |
|
|
eXt n00b
Joined: 09 Oct 2005 Posts: 66 Location: Sweden
|
Posted: Tue Mar 11, 2008 8:30 pm Post subject: |
|
|
No, I don't want to login at all. The computer should start X and launch my application without any interaction at all. The computer usually won't have a keyboard or mouse. It's supposed to run a kind of slideshow.
EDIT: Preferably X should restart if it crashes. |
|
Back to top |
|
|
Darius4all Tux's lil' helper
Joined: 16 Jun 2003 Posts: 128 Location: France
|
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Tue Mar 11, 2008 9:54 pm Post subject: |
|
|
unfortunately slim can't autologin but wouldn't something like this in /etc/conf.d/local.start work?
Code: | USER="myuser"
export LANG="en_US.UTF-8"
while [ 1 ]; do
su -c 'startx' $USER &> /home/$USER/.xsession-errors &
done |
|
|
Back to top |
|
|
eXt n00b
Joined: 09 Oct 2005 Posts: 66 Location: Sweden
|
Posted: Tue Mar 11, 2008 10:00 pm Post subject: |
|
|
pussi wrote: | unfortunately slim can't autologin but wouldn't something like this in /etc/conf.d/local.start work?
Code: | USER="myuser"
export LANG="en_US.UTF-8"
while [ 1 ]; do
su -c 'startx' $USER &> /home/$USER/.xsession-errors &
done |
|
Wouldn't that keep running startx all the time? |
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Tue Mar 11, 2008 10:06 pm Post subject: |
|
|
Code: | USER="myuser"
export LANG="en_US.UTF-8"
while [ 1 ]; do
su -c 'startx' $USER &> /home/$USER/.xsession-errors &
done |
couldn't you use daemontools to start (or restart) startx as required? |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Tue Mar 11, 2008 10:12 pm Post subject: |
|
|
eXt wrote: | Wouldn't that keep running startx all the time? |
oops, you're right. didn't really think that all the way through :oops:
but if you remove the while loop that should run startx automatically
there's probably some trick to make it restart X if it crashes too |
|
Back to top |
|
|
djpenguin Guru
Joined: 02 Sep 2004 Posts: 386
|
Posted: Tue Mar 11, 2008 10:21 pm Post subject: |
|
|
On my HTPC, I use mingetty to autlogin with the following lin in /etc/inittab:
Code: | c1:3:respawn:/sbin/mingetty --autologin media tty1 |
media is the name of the user that I'm logging in, adjust accordingly.
After that, just put "startx" on the last line of the autologin user's .bash_profile, and the machine will log the user in to X and then start X every time the machine is booted. As far as the auto-restarting X thing goes, it sounds like a properly-configured gdm install should do the trick. _________________ Don't put your system specs in your sig. Nobody cares. |
|
Back to top |
|
|
eXt n00b
Joined: 09 Oct 2005 Posts: 66 Location: Sweden
|
Posted: Tue Mar 11, 2008 10:38 pm Post subject: |
|
|
pussi wrote: | oops, you're right. didn't really think that all the way through
but if you remove the while loop that should run startx automatically
there's probably some trick to make it restart X if it crashes too |
I've tried this approach and it seems to work good and I've put "killall X" in local.stop too.
djpenguin wrote: | As far as the auto-restarting X thing goes, it sounds like a properly-configured gdm install should do the trick. |
I think gdm is a bit to heavy to install as it pulls quite a lot of packages with it, otherwise I already considered it since I know it does everything I need.
The problem with both these approaches would be that X wouldn't restart if it crashed. I think this is needed because the computer should be running all the time, preferably without any interaction at all. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Wed Mar 12, 2008 2:24 am Post subject: |
|
|
Have a look here how I solved the problem ...
HTH
swimmer |
|
Back to top |
|
|
|