LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to auto-login the GUI Desktop (https://www.linuxquestions.org/questions/linux-server-73/how-to-auto-login-the-gui-desktop-947570/)

rebornor 05-30-2012 07:58 AM

How to auto-login the GUI Desktop
 
Hi, I met a problem that how to login automaticly when use the RHEL ?
Thanks.

chrism01 05-30-2012 07:39 PM

Please explain exactly what your problem is and why you think you need to do this? What are you trying to accomplish overall?

rebornor 05-31-2012 08:13 AM

Quote:

Originally Posted by chrism01 (Post 4691610)
Please explain exactly what your problem is and why you think you need to do this? What are you trying to accomplish overall?

-Actually I wanna do a demo under linux.It has below function step by step.
1.Login into the GUI auto(root password 666666)
2.record some info to log.--ok
3.after 1 min reboot.

I tried to use the crontab to realize most funtion,but not enter the GUI desktop.
So could you help realize the 1&3 function. Shell or c Demo is ok.

Thanks in advance.

thehouseofho 06-01-2012 02:57 PM

Quote:

Originally Posted by rebornor (Post 4691999)
-Actually I wanna do a demo under linux.It has below function step by step.
1.Login into the GUI auto(root password 666666)
2.record some info to log.--ok
3.after 1 min reboot.

I tried to use the crontab to realize most funtion,but not enter the GUI desktop.
So could you help realize the 1&3 function. Shell or c Demo is ok.

Thanks in advance.

In order to accomplish step 1, you can use the GUI.

System>Administration>Login Screen
Select the Security tab
Check the "Enable Automatic Login" box and select the user from the drop-down

You can configure a login script to run "shutdown -r +1" which will reboot the server after one minute.

I'm not sure why you would want to do that though because you're basically creating a reboot loop. The server reboots, automatically logs in, reboots after 1 minute, automatically logs in, etc.

In fact, I would not recommend doing this at all.

rebornor 06-01-2012 07:47 PM

Quote:

Originally Posted by thehouseofho (Post 4693296)
In order to accomplish step 1, you can use the GUI.

System>Administration>Login Screen
Select the Security tab
Check the "Enable Automatic Login" box and select the user from the drop-down

You can configure a login script to run "shutdown -r +1" which will reboot the server after one minute.

I'm not sure why you would want to do that though because you're basically creating a reboot loop. The server reboots, automatically logs in, reboots after 1 minute, automatically logs in, etc.

In fact, I would not recommend doing this at all.

Good way.Thank you thehouseofho.:)
Because I wanna do a linux demo which can test memory total capacity by hundreds times, not system management.


All times are GMT -5. The time now is 02:10 PM.