LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2012, 09:55 PM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
localhost


Hi,
I run this in my Red hat
/sbin/int 3

But after this, it (I mean the OS) then leads me to the Kernel (2.6.32-200.13.1.el5uek.on an i686) for localhost. After I login as “root”, how can I switch back to the previous mode of the OS?

Many thanks
 
Old 04-25-2012, 10:00 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

not 100% sure what you are asking, but perhaps you are wanting to get back to the default runlevel (should be 5 on RHEL). You can do that with the following command as root:
Code:
/sbin/telinit 5
HTH,

Evo2.

PS. Did you make a typo with "/sbin/int"?
 
1 members found this post helpful.
Old 04-29-2012, 08:39 PM   #3
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Good day all,
Thanks. Yes, by 'telinit ..' I can switch back to the normal login of the OS (not Kernel).

Why does it go to the Kernel for localhost login when every time I start the OS?

There is no typo for '/sbin/init'. Thanks
 
Old 04-29-2012, 10:39 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Can you explain more about "it (I mean the OS) then leads me to the Kernel (2.6.32-200.13.1.el5uek.on an i686) for localhost"? What do you actually see on the screen?
 
Old 04-29-2012, 11:00 PM   #5
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. It brings me to the Kernel with the prompt of localhost login. Then I can login as "root" user.

Last edited by Huamin; 04-29-2012 at 11:10 PM.
 
Old 04-29-2012, 11:18 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What are the actual words on the screen leading up to the login prompt?
 
Old 04-29-2012, 11:29 PM   #7
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
I am running Red hat inside a VM that resides in Win 7 Professional. How can I capture the screenshot within the VM at that moment? Thanks.
 
Old 04-30-2012, 01:22 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
A camera
 
Old 04-30-2012, 02:18 AM   #9
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
No other way? Thanks
 
Old 04-30-2012, 02:27 AM   #10
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
run the VM in windowed mode, hit print screen, open paint (in windows) paste the copied print screen, and save it.
 
Old 04-30-2012, 02:28 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
If you want to boot in the GUI (graphical user interface) you need to alter
Code:
/etc/inittab
And change the runlevel
If you want to start the GUI after boot, login as root and type:
Code:
startx
Kind regards

Last edited by repo; 04-30-2012 at 03:14 AM. Reason: changed typo
 
Old 04-30-2012, 02:38 AM   #12
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks all.
Repo,
What should be altered for “/etc/innittab”?

Why do I get this?
[root@localhost ~]# startx
xauth: creating new authority file /root/.serverauth.4503


Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
 
Old 04-30-2012, 02:47 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Server is already active for display 0
You can't have two instances of the X server running at the same time.
You first have to stop the first one.
Do you have a login manager running, like kdm, gdm....?

Quote:
What should be altered for “/etc/innittab”?
change
Code:
id:3:initdefault:
to
id:5:initdefault:
reboot

Kind regards

Last edited by repo; 04-30-2012 at 02:54 AM.
 
1 members found this post helpful.
Old 04-30-2012, 03:10 AM   #14
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. Why do I get these?
[root@localhost ~]# cd /etc
[root@localhost etc]# dir innit*.*
dir: innit*.*: No such file or directory
[root@localhost etc]#
 
Old 04-30-2012, 03:14 AM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
[root@localhost etc]# dir innit*.*
My bad, it's inittab
Code:
dir init*
Kind regards
 
  


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
entry in /etc/hosts file for localhost localhost.localdomain sureshpanchanathan Linux - Newbie 6 02-09-2012 08:10 PM
apache : localhost/ works localhost/index.html does not PhilA Linux - Server 4 05-27-2007 07:32 PM
MySQL: Why are there two roots localhost, and localhost.localdomain? paulsiu Linux - Server 6 04-18-2007 09:43 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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