LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   localhost (https://www.linuxquestions.org/questions/linux-software-2/localhost-941758/)

Huamin 04-25-2012 09:55 PM

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

evo2 04-25-2012 10:00 PM

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"?

Huamin 04-29-2012 08:39 PM

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

catkin 04-29-2012 10:39 PM

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?

Huamin 04-29-2012 11:00 PM

Thanks. It brings me to the Kernel with the prompt of localhost login. Then I can login as "root" user.

catkin 04-29-2012 11:18 PM

What are the actual words on the screen leading up to the login prompt?

Huamin 04-29-2012 11:29 PM

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.

catkin 04-30-2012 01:22 AM

A camera

Huamin 04-30-2012 02:18 AM

No other way? Thanks

flamelord 04-30-2012 02:27 AM

run the VM in windowed mode, hit print screen, open paint (in windows) paste the copied print screen, and save it.

repo 04-30-2012 02:28 AM

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

Huamin 04-30-2012 02:38 AM

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.

repo 04-30-2012 02:47 AM

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

Huamin 04-30-2012 03:10 AM

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]#

repo 04-30-2012 03:14 AM

Quote:

[root@localhost etc]# dir innit*.*
My bad, it's inittab
Code:

dir init*
Kind regards


All times are GMT -5. The time now is 03:00 AM.