LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LocalHost Login Prompt CentOS! What do i do! (https://www.linuxquestions.org/questions/linux-software-2/localhost-login-prompt-centos-what-do-i-do-4175592925/)

frobuddy2 11-04-2016 07:25 PM

LocalHost Login Prompt CentOS! What do i do!
 
So i was just installing CentOS 7 then i came to this thing about LocalHost after installing. I logged in to see what was next. Then it was just a DOS prompt. I tried to put "xstart" but it said it wasnt found as a command. I waited about a hour to download CentOS and now it dosent work! Help me plz. Tried "startx" 2

BW-userx 11-04-2016 08:07 PM

install xinit
create a hidden file call it
Code:

.xinitrc
in it place this
Code:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

exec name of DE/WM you want to start

then startx

it should work provided you install xorg files you need to have a GUI environment.

frobuddy2 11-04-2016 09:02 PM

So lemme try it and see. Ohhhhhh it glitched out somehow. weird. ill have to reinstall. then ill try again

Doug G 11-04-2016 09:21 PM

If you did a minimal CentOS 7 installation, that won't install any desktop gui.

If you did a CentOS 7 install that included a desktop, possibly your systemd is set to use a non-graphical mode, equivalent of runlevel 3. If so, as root from a terminal, issue
Code:

systemctl isolate graphical.target
and your graphical desktop should start. There is a different systemctl command to set the default target.

frobuddy2 11-05-2016 08:52 AM

K im sure it will work

frobuddy2 11-05-2016 08:53 AM

Which install lets me use that code?

frobuddy2 11-05-2016 08:53 AM

To get me a GUI

frobuddy2 11-05-2016 09:05 AM

Quote:

Originally Posted by Doug G (Post 5627135)
If you did a minimal CentOS 7 installation, that won't install any desktop gui.

If you did a CentOS 7 install that included a desktop, possibly your systemd is set to use a non-graphical mode, equivalent of runlevel 3. If so, as root from a terminal, issue
Code:

systemctl isolate graphical.target
and your graphical desktop should start. There is a different systemctl command to set the default target.

I did minimal install but since i have to reinstall it i got the workstation one! wait. does it work with the code?

Doug G 11-05-2016 04:32 PM

The workstation edition includes gnome3 desktop. The centos website has information about what's included with different editions.

michaelk 11-05-2016 04:58 PM

The CentOS ISOs that you can download are DVD, Minimal, Net install, Everything, LiveGnome and LiveKDE.

The DVD allows you to select what components you want to install, The Live versions will install the same components as what you see. Minimal will just install the basic components needed to get a running system. The net install will allow you to select components but they are downloaded from the internet versus installing from local media. Everything is all possible packages from the entire repository and is 7GB

I would pick the DVD ISO. The easiest would be to reinstall but the DVD ISO is 4GB versus minimal 603MB.

https://wiki.centos.org/Download

If you select a desktop package the installer will configure it to start at boot up.


All times are GMT -5. The time now is 05:57 PM.