LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   login and startx automatically..... (https://www.linuxquestions.org/questions/linux-from-scratch-13/login-and-startx-automatically-707647/)

@d4M 02-26-2009 01:54 AM

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..

theYinYeti 02-26-2009 02:13 AM

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.

jschiwal 02-26-2009 03:02 AM

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.

Mystican 02-26-2009 03:52 AM

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.

theYinYeti 02-26-2009 02:36 PM

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.


All times are GMT -5. The time now is 05:52 AM.