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