LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-26-2009, 01:54 AM   #1
@d4M
LQ Newbie
 
Registered: Sep 2008
Location: Indonesia
Distribution: LFS
Posts: 27

Rep: Reputation: 15
Smile login and startx automatically.....


Hello...

How can i make my LFS after booting, login automatically as root without enter username and password and then start the X window system automatically to....??

Regards..
 
Old 02-26-2009, 02:13 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
See here for a minimal yet effective way of auto-starting X for the user you choose, and auto-restarting it in case of crash:
http://yves.gablin.club.fr/gablin.ph...nfig_autologin

Yves.
 
Old 02-26-2009, 03:02 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Drop the root part. Even running X as root is bad, and you want to always run that way normally. There is no reason to do that.
 
Old 02-26-2009, 03:52 AM   #4
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
jschiwal is right. In general, there are *very* few reasons to log in as root on a regular basis (hint: sudo is your friend) and fewer still to actually start an X session as root.

That having been said, to have X start automatically when you boot and present you with a graphical logon prompt, follow the instructions in the BLFS chapter on configuring X Window System Components, under the section "Setting up XDM." This of course assumes that you've already properly followed the preceding instructions in BLFS to install a functional Xorg.

As for making the system log in a user automatically, XDM - last time I checked - doesn't have this capability. You'd have to use another display manager, such as KDM or GDM, for that. Installation instructions for both of those are in the BLFS book; see their man pages for information on their configuration files, which should include help on how to enable automatic logins.
 
Old 02-26-2009, 02:36 PM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
The solution I wrote is NOT run as root (although it can be). Besides, it doesn't need a display manager (not even XDM).

Yves.
 
  


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
startx automatically free_andrew Slackware 17 11-10-2014 09:40 AM
startx automatically LQ496873 Linux - Newbie 5 03-13-2006 10:44 PM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 11:16 AM
Execute an application automatically after startx gilan Debian 6 03-24-2005 10:34 PM
startx -- -dpi 100 .. automatically? doublefailure Linux - General 5 03-17-2003 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:49 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