Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th June 2012, 08:39 AM
H2009 Offline
Registered User
 
Join Date: Jun 2011
Posts: 11
windows_7chrome
Problem with GUI starting automatically

Hi there,
I'm having a few problems with my GUI.
When I have my runlevel set 5, after a reboot the GUI seems to hang at the login screen - i.e. I'm just getting the spinning ball without it actually loading the login screen.

Because of this I set my runlevel to 3 to goto console directly, from here I'd login and just use startx which will get me to GUI as per normal without any issues.

But I need to try and resolve this issue as I want to autologin so I can RDC to the system.

Can someone help me resolve my GUI problem please.
Reply With Quote
  #2  
Old 7th June 2012, 08:50 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Problem with GUI starting automatically

How long have you waited?

Which version of Fedora and which Desktop Environment did you install?

The login screen is usually handled by gdm if you use Gnome, kdm if you use KDE or maybe even LXDM if you use LXDE.
Reply With Quote
  #3  
Old 7th June 2012, 12:40 PM
H2009 Offline
Registered User
 
Join Date: Jun 2011
Posts: 11
windows_7chrome
Re: Problem with GUI starting automatically

I've waited for over 14 hours before giving up with it.

I'm running:
Kernel Linux 2.6.35.14-106.fc14.x86_64
GNOME 2.32.0

If you need anything else please let me know - my knowledge of linux commands isn't that good if im honest.
Reply With Quote
  #4  
Old 7th June 2012, 01:18 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,605
linuxchrome
Re: Problem with GUI starting automatically

If i remember correctly, you might need to edit these files:
* /etc/sysconfig/desktop
* /etc/inittab
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #5  
Old 7th June 2012, 01:29 PM
H2009 Offline
Registered User
 
Join Date: Jun 2011
Posts: 11
macossafari
Re: Problem with GUI starting automatically

Hi
When you say edit those files. What part needs to be edited?
Reply With Quote
  #6  
Old 7th June 2012, 01:43 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,605
linuxchrome
Re: Problem with GUI starting automatically

Promlem is, i dont have any linux installed that uses the 'old' way.

Either way:
/etc/sysconfig/desktop (the file is OPTIONAL, as you use GDM and Gnome - write the output of $(which GDM/gnome), not the $(which XY))
Code:
DISPLAYMANAGER=$(which gdm)
PREFERRED=$(which gnome)
As the next files is larger, and i dont recall the lines of its content, please show the output of:
Code:
grep gnome /etc/inittab
grep gdm /etc/inittab
grep init /etc/inittab
grep runlevel /etc/inittab
grep screen /etc/inittab
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #7  
Old 7th June 2012, 04:07 PM
H2009 Offline
Registered User
 
Join Date: Jun 2011
Posts: 11
windows_7chrome
Re: Problem with GUI starting automatically

Hi
It seems i don't have the /etc/sysconfig/desktop

But here is the output of the other files which I knew how to get. Sorry if this isn't what you need.

gnome
no file/output

gdm
no file/output

runlevel
Code:
# rc - System V runlevel compatibility
#
# This task runs the old sysv-rc runlevel scripts.  It
# is usually started by the telinit compatibility wrapper.

start on runlevel [0123456]

stop on runlevel [!$RUNLEVEL]

task

export RUNLEVEL
console output
exec /etc/rc.d/rc $RUNLEVEL


# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.

start on startup

stop on runlevel

task

# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance).  Run /etc/rc.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
exec /etc/rc.d/rc.sysinit
post-stop script
	if [ "$UPSTART_EVENTS" = "startup" ]; then
		[ -f /etc/inittab ] && runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
		[ -z "$runlevel" ] && runlevel="3"
		for t in $(cat /proc/cmdline); do
			case $t in
				-s|single|S|s) runlevel="S" ;;
				[1-9])       runlevel="$t" ;;
			esac
		done
		exec telinit $runlevel
	fi
end script




# rcS-sulogin - "single-user" runlevel compatibility
#
# This task runs /bin/bash during "single-user" mode,
# then continues to the default runlevel.

start on runlevel S

stop on runlevel [!S]

console owner
script
	. /etc/sysconfig/init
	plymouth --hide-splash || true
	[ -z "$SINGLE" ] && SINGLE=/sbin/sushell
	exec $SINGLE
end script
post-stop script
	if [ "$RUNLEVEL" = "S" ]; then
		[ -f /etc/inittab ] && runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab)
		[ -z "$runlevel" ] && runlevel="3"
		exec telinit $runlevel
	fi
end script
screen
no file/output

Init
Code:
# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
# column to start "[  OK  ]" label in 
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[0;32m"
# terminal sequence to set color to a 'failure' color (currently: red)
SETCOLOR_FAILURE="echo -en \\033[0;31m"
# terminal sequence to set color to a 'warning' color (currently: yellow)
SETCOLOR_WARNING="echo -en \\033[0;33m"
# terminal sequence to reset to the default color.
SETCOLOR_NORMAL="echo -en \\033[0;39m"
# Set to 'yes' to allow probing for devices with swap signatures
AUTOSWAP=no
# What ttys should gettys be started on?
ACTIVE_CONSOLES=/dev/tty[1-6]
# Set to '/sbin/sulogin' to prompt for password on single-user mode
# Set to '/sbin/sushell' otherwise
SINGLE=/sbin/sushell



grep default /etc/inittab
# inittab is only used by upstart for the default runlevel.
#   0 - halt (Do NOT set initdefault to this)
#   6 - reboot (Do NOT set initdefault to this)
id:3:initdefault:
Reply With Quote
  #8  
Old 7th June 2012, 04:56 PM
sea's Avatar
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,605
linuxchrome
Re: Problem with GUI starting automatically

There it is.. the very last item!

Code:
sudo nano /etc/inittab
Search for the part:
Code:
# inittab is only used by upstart for the default runlevel.
#   0 - halt (Do NOT set initdefault to this)
#   6 - reboot (Do NOT set initdefault to this)
id:3:initdefault:
And replace the 3 (multiuser) with 5 (GUI).
Save the file CTRL+O and exit CTRL+X.
Reboot and you should 'land' in your DE / GUI
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #9  
Old 7th June 2012, 05:09 PM
H2009 Offline
Registered User
 
Join Date: Jun 2011
Posts: 11
windows_7chrome
Re: Problem with GUI starting automatically

Hi,
Yes that is correct. But if I do that, it will never load. I've manually changed that to level 3 to go right into command line to bypass the issue. From there I use startx
Reply With Quote
  #10  
Old 16th July 2012, 04:56 PM
minds57 Offline
Registered User
 
Join Date: Jul 2012
Location: Arkansas
Posts: 1
macoschrome
Re: Problem with GUI starting automatically

Is there any update here? I'm having the same problem. Setting my run level to 5 does not start the gui. On boot, the system hangs at the login prompt. I've found that I can switch to a different virtual terminal, login to a text prompt, and do startx. Then the gui starts just fine. Just like yours...

Have you investigated the video card driver as the culprit? It seems like the problem occurred right after I install the NVIDIA drivers. I tried changing my xorg.conf file to use the vesa generic driver, but the problem remains.
Reply With Quote
Reply

Tags
automatically, gui, problem, starting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Postfix not automatically starting pnelsonsr Using Fedora 1 13th December 2011 05:24 PM
Network not starting automatically mickwombat Using Fedora 2 8th November 2008 10:45 AM
x not starting automatically t0bias Using Fedora 3 1st February 2008 01:36 PM
X not starting automatically dryicerx Installation and Live Media 2 25th October 2007 11:38 PM
Automatically Starting KDE penguinboy08 Using Fedora 3 25th August 2007 09:40 AM


Current GMT-time: 18:49 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat