LinuxQuestions.org
Help answer threads with 0 replies.
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 10-25-2005, 01:11 AM   #16
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52

Quote:
# Default runlevel. The runlevels used by Mandrakelinux are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
zak317 posted this from /etc/inittab. It explains what each run level is - 3 is everything running except X windows, 5 is to run X-Windows on startup as well. Your run level 3 shouldn't be starting X up. Also don't fiddle with the files and symlinks in the /etc/rc.* directories - use either chkconfig from the command line as root or Fedora's Services config GUI (in System Tools in the menu or run system-config-services).
 
Old 10-25-2005, 03:29 AM   #17
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by randyding
From the descriptions so far, it seems your run-level 3 is working correctly.
If it boots up and stops at run-level 3 with a black console screen and login promp... that's correct for run-level 3.
If there's another problem with run-level 3 I don't recall what it was after re-reading the previous posts. Please explain what you think was wrong one more time for us.
My problem is that I have use the tool " system-config-services" to configure the three run level 3, 4 and 5 to start the same services. So I think these three run level must be the same so, why only five work, 3 and 4 doesn't

Last edited by TruongAn; 10-25-2005 at 03:33 AM.
 
Old 10-25-2005, 04:09 AM   #18
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
My problem is that I have use the tool " system-config-services" to configure the three run level 3, 4 and 5 to start the same services
]

No that's not what I meant I'm saying that your system is setup correctly already - the X windows services (xfs, dm etc.) should only start up in runlevel 5. What I meant was that in future you should use chkconfig or system-config-services to enable or disable services that you don't want to startup. When you enable or disable services using one of these programs they make sure to enable/disable things in the correct runlevels. In other words you should not
a) Edit the stuff in the rc.* files directly unless you really know what you are doing
b) Try and make runlevels the same - this is not how the system is supposed to work and you will likely end up with an unbootable or buggy/unstable system if you fiddle with this stuff.

Have you changed the default runlevel to 5 in /etc/inittab (as zak317 said) and rebooted? If you've done this and it hasn't worked then its most likely a problem with X windows. Try running system-config-display again or post back here for help getting it working.
 
Old 10-25-2005, 08:25 AM   #19
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Original Poster
Rep: Reputation: 33
Thanks for all of your help guys. My system is working now.
BUT I want to ask for these issues:



Quote:
Originally posted by tkedwards
]

No that's not what I meant I'm saying that your system is setup correctly already - the X windows services (xfs, dm etc.) should only start up in runlevel 5. What I meant was that in future you should use chkconfig or system-config-services to enable or disable services that you don't want to startup. When you enable or disable services using one of these programs they make sure to enable/disable things in the correct runlevels. In other words you should not
a) Edit the stuff in the rc.* files directly unless you really know what you are doing
b) Try and make runlevels the same - this is not how the system is supposed to work and you will likely end up with an unbootable or buggy/unstable system if you fiddle with this stuff.
I have tried to use the system-config-services to make run level 3 start X windows automatically like run level 5.
I have check enables all of the services, which is enabled in run level 5, to start in run level 3 . So, Why run level 3 didn't work?
Because run level 4 is unused so, I want to turn run level 4 into the same as run level as a reserved so that if run level 5 is broken I can use run level 4 instead but run level 4 is not work too,Why?

Last edited by TruongAn; 10-25-2005 at 08:29 AM.
 
Old 10-25-2005, 06:28 PM   #20
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
No that's what I mean - DO NOT try and make runlevel 3 the same as 5. This is wrong. Runlevel 3 is the mode you put the system in when you don't want X windows, runlevel 5 is the mode you put the system in when you do want X windows. Its simple as that - it doesn't require you to fiddle around with the runlevels. The system-config-services thing is for enabling/disabling services and it will automatically determine what runlevels to enable/disable them in - usually 2,3,4 and 5.

You might want to read up a bit on how the SysV Init stuff works:
http://www.redhat.com/docs/manuals/l...down-sysv.html
 
Old 10-26-2005, 10:03 AM   #21
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by tkedwards
No that's what I mean - DO NOT try and make runlevel 3 the same as 5. This is wrong. Runlevel 3 is the mode you put the system in when you don't want X windows, runlevel 5 is the mode you put the system in when you do want X windows. Its simple as that - it doesn't require you to fiddle around with the runlevels. The system-config-services thing is for enabling/disabling services and it will automatically determine what runlevels to enable/disable them in - usually 2,3,4 and 5.

You might want to read up a bit on how the SysV Init stuff works:
http://www.redhat.com/docs/manuals/l...down-sysv.html
So, I should not try to make run level the same as 5. But run level 2 and 4 is empty. But, how can I make run level 2 and 4 the same as 5 so if I destroy run level 5, I can use the run level 2 and 4 instead
 
Old 10-26-2005, 06:27 PM   #22
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
You don't need to change anything with the runlevels. There is no way that you will 'break' runlevel 5 if you enable/disable services with chkconfig or system-config-services. One of the reasons these programs were written is so you don't have to edit the symlinks and files in the rc.* directories, which could lead to errors. Trying to make one of the other runlevels the same as 5 is pointless and could easily lead to errors if you do something wrong.
 
Old 10-26-2005, 06:50 PM   #23
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
You can have only one run level at a time. The runlevel determines how the computer boots
I think you might be looking for both the gui (graphical user interface) and a virtual console (which I think you are calling runlevel 3). To access those, stay at runlevel 5 and press alt+ctrl+f1, the other function keys ie, alt+ctrl+f1-6 should work also. Your gui is on alt+ctrl+f7
the best of both worlds!! Happy computing, Kurt

Last edited by kurtdriver; 10-26-2005 at 06:54 PM.
 
  


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
run program automatically at specific time simon_qwl Programming 2 03-20-2005 10:58 AM
How to start a program at bootup time? shilpig Linux - Software 6 09-28-2004 01:45 PM
Start a program at boot time cppkid Programming 3 08-31-2004 09:33 AM
i want to run a script or program at boot time!! FreakboY Linux - Newbie 9 10-12-2003 08:03 AM
call other program at run time Xiangbuilder Programming 4 10-01-2003 09:53 AM

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

All times are GMT -5. The time now is 12:18 PM.

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