LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem when I start the OS (https://www.linuxquestions.org/questions/linux-software-2/problem-when-i-start-the-os-4175548292/)

Huamin 07-18-2015 02:51 AM

Problem when I start the OS
 
Hi
I don't know how I can change the interface to prompt for different user account, when I start the OS below. Can you please help, as Oracle Linux is also Red hat,

https://dl.dropboxusercontent.com/u/40211031/tt241.png

and it now does only prompt with the above, after I have started the OS.

sycamorex 07-18-2015 03:51 AM

I'm not sure what you mean by that. It does not default to any specific user account. You specify which user account you want to log in to (eg. root, or any other that exists on that system).

Do you mean that it used to default to a graphical logic interface and now it stops at a command line login?

Huamin 07-18-2015 04:14 AM

Yes, I expect to have the way to have the graphic user interface, when I've started the OS. Thanks a lot.

sycamorex 07-18-2015 04:21 AM

Assuming your X Windows system is installed and works correctly, try changing the default runlevel
https://access.redhat.com/documentat...oting-GUI.html

Is this machine really running as a server or do you use it for your everyday tasks?

berndbausch 07-18-2015 05:49 AM

Quote:

Originally Posted by Huamin (Post 5393053)
Yes, I expect to have the way to have the graphic user interface, when I've started the OS. Thanks a lot.

Two more possibilities.

Likely: You don't have desktop software installed. If it were Red Hat or Centos, you would automatically get a graphics screen login prompt after installation of desktop software.
How to install desktop software depends on the Red Hat and Centos version. Don't know for Oracle Linux.

Unlikely but easy to check: Perhaps the GUI is actually running. Try hitting ALT-F1 (the Alt key and the F1 key at the same time). This brings you to the first virtual terminal, where the GUI is normally displayed.
Then the question is why you are not shown the graphics screen when the system boots. I can't say.

Questions:
  • Has it ever worked?
  • How was this system installed?

frankbell 07-18-2015 09:08 PM

What happens when you enter this command?

Code:

startx

Huamin 07-19-2015 11:34 PM

Sorry, can you please advise to this?

https://dl.dropboxusercontent.com/u/40211031/tt243.png

astrogeek 07-19-2015 11:44 PM

You can't use gedit without a running Xserver.

The errors would indicate that there is no X server nor X applications, including gedit, installed.

As asked earlier, has this machine ever had a working X server and graphical login?

To edit the inittab if you want to try to change runlevel anyway, try with a non-graphic editor, like this...

Code:

vi /etc/inittab

OR

vim /etc/inittab

OR

nano /etc/inittab


Huamin 07-20-2015 01:07 AM

Many thanks. which level to adjust to, within file "/etc/inittab"?

sycamorex 07-20-2015 02:13 AM

Quote:

Originally Posted by Huamin (Post 5393696)
Many thanks. which level to adjust to, within file "/etc/inittab"?

Set it to 5.

Huamin 07-20-2015 02:27 AM

Sorry, what to adjust below?
https://dl.dropboxusercontent.com/u/40211031/tt235.png

fatmac 07-20-2015 02:57 AM

According to your picture, you need to type graphical where it has <target.name>.

Huamin 07-20-2015 03:51 AM

It is the same, while I have this
https://dl.dropboxusercontent.com/u/40211031/tt237.png

now.

berndbausch 07-20-2015 05:19 AM

Quote:

Originally Posted by Huamin (Post 5393727)
It is the same, while I have this
https://dl.dropboxusercontent.com/u/40211031/tt237.png

now.

Leave the inittab. At your shell prompt, type ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target. This makes the GUI the default boot target - that is, you will boot into GUI mode.

From the other facts you have posted, it's very likely you don't have GUI software installed and will again end up with a command prompt. Still, it's worth the while to set the target to graphical.

berndbausch 07-20-2015 05:22 AM

And a piece of advice. If you want to manage a server OS like Oracle Linux, you need a minimum of education. You could, for example, read the documentation. I don't know what Oracle provides, but Red Hat has very decent guides at access.redhat.com. Start with the deployment guide; it tells you how to configure systemd.


All times are GMT -5. The time now is 05:43 AM.