LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-30-2012, 07:58 AM   #1
rebornor
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
How to auto-login the GUI Desktop


Hi, I met a problem that how to login automaticly when use the RHEL ?
Thanks.
 
Old 05-30-2012, 07:39 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,237

Rep: Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711
Please explain exactly what your problem is and why you think you need to do this? What are you trying to accomplish overall?
 
Old 05-31-2012, 08:13 AM   #3
rebornor
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by chrism01 View Post
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.
 
Old 06-01-2012, 02:57 PM   #4
thehouseofho
LQ Newbie
 
Registered: Jun 2012
Distribution: Mostly Debian
Posts: 28

Rep: Reputation: Disabled
Quote:
Originally Posted by rebornor View Post
-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.
 
Old 06-01-2012, 07:47 PM   #5
rebornor
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by thehouseofho View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Remote Desktop Auto Login Problem gezginrocker Linux - Newbie 3 02-28-2012 01:58 PM
Auto start bash script after login to desktop scripterJACK Linux - Newbie 1 03-26-2010 05:21 PM
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
gdm desktop auto login vampire Janus Linux - Software 1 10-26-2004 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:48 AM.

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