Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lightweight displaymanager with autologin
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eXt
n00b
n00b


Joined: 09 Oct 2005
Posts: 66
Location: Sweden

PostPosted: Tue Mar 11, 2008 8:05 pm    Post subject: Lightweight displaymanager with autologin Reply with quote

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
View user's profile Send private message
Darius4all
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2003
Posts: 128
Location: France

PostPosted: Tue Mar 11, 2008 8:27 pm    Post subject: Reply with quote

startx ? :p

just install fluxbox , edit your startup script of fluxbox to launch the app you wish and you're fully ready to go :p
By doing this, with no login manager set to automatically start, you'll be on a shell where you just log in and type startx.
_________________
Athlon64 3700+ | GeForce 6800GS | 2Go RAM | 2*300Go/Raid 0 | Shuttle SN26P
Core2 Duo T7500 | GeForce 8700M GT | 2Go RAM | 200Go 7200rpm | Clevo M570RU
Back to top
View user's profile Send private message
eXt
n00b
n00b


Joined: 09 Oct 2005
Posts: 66
Location: Sweden

PostPosted: Tue Mar 11, 2008 8:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Darius4all
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jun 2003
Posts: 128
Location: France

PostPosted: Tue Mar 11, 2008 8:49 pm    Post subject: Reply with quote

ok sorry for the misunderstanding.
I'm not aware of anything that would start all the way alone without any login. I'm at work right now so I can't really search. I'll check as soon as I'm home.
Try looking for Slim login manager over the net. It's quite lightweight, though a lot more than GDM, maybe it can handle what you need.
_________________
Athlon64 3700+ | GeForce 6800GS | 2Go RAM | 2*300Go/Raid 0 | Shuttle SN26P
Core2 Duo T7500 | GeForce 8700M GT | 2Go RAM | 200Go 7200rpm | Clevo M570RU
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Tue Mar 11, 2008 9:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
eXt
n00b
n00b


Joined: 09 Oct 2005
Posts: 66
Location: Sweden

PostPosted: Tue Mar 11, 2008 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Tue Mar 11, 2008 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Tue Mar 11, 2008 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
djpenguin
Guru
Guru


Joined: 02 Sep 2004
Posts: 386

PostPosted: Tue Mar 11, 2008 10:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
eXt
n00b
n00b


Joined: 09 Oct 2005
Posts: 66
Location: Sweden

PostPosted: Tue Mar 11, 2008 10:38 pm    Post subject: Reply with quote

pussi wrote:
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


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
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Wed Mar 12, 2008 2:24 am    Post subject: Reply with quote

Have a look here how I solved the problem ...

HTH
swimmer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum