LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-09-2012, 07:09 AM   #1
szzed
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
Auto login to icewm


Hi All!
I have a PC with minimal openSuSE installation, with X11, xdm as display, and icewm as window manager.
How can I achieve auto login in that configuration?
I don't insist using xdm, but using icewm. I know that, xdm is a login manager, and I should ignore using it, because I don't want anybody to login, but how can I do that in that configuration. How can I skip starting xdm (or at least the login part), but start the x, and after that start icewm with a specified user? I don't want to install other display managers (kdm, gdm, ...)
Thanks for replies!
 
Old 05-09-2012, 07:25 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
xdm doesn't support autologin so you have to change the root .xinitrc (/root/.xinitrc) and use
su username -c "/usr/bin/icewm"
 
Old 05-09-2012, 08:03 AM   #3
szzed
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for suggestion, Slackyman!
I've tried it, but the login screen still comes up.
I did not have /root/.xinitrc, so I created one, with the content you wrote.
Any other idea?
 
Old 05-09-2012, 08:08 AM   #4
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Ok, then remove the /root/.xinitrc and modify /usr/lib/X11/xinit/xinitrc file:
Code:
# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
     su username -c "ck-launch-session /usr/bin/icewm"
else
    su username -c "/usr/bin/icewm"
fi
Anyway, I don't like this approach and auto-login too!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I bypass auto login and force login screen temporarily? TuxSurfer Linux - General 2 06-26-2008 03:46 PM
Auto-login (KDE) - will not auto-login without monitor attached Mithrilhall Linux - General 2 03-04-2008 10:16 AM
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
How to Configure Icewm as auto login GUI in Fedora 5 robertk7 Linux - General 4 05-10-2007 06:51 AM
auto maximized applications in icewm matix Linux - Newbie 0 05-16-2003 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration