Author Topic: Old person on Linux....?  (Read 5619 times)

0 Members and 1 Guest are viewing this topic.

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: Old person on Linux....?
« Reply #15 on: July 13, 2006, 05:05:57 pm »
You don't have to change the default runlevel, just add xdm/kdm/gdm to the list of daemons in rc.conf

At least, that is true for Arch, I could be wrong for Slackware

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Old person on Linux....?
« Reply #16 on: July 13, 2006, 05:27:21 pm »
Well, changing the runlevel is the proper way of doing it.  Yeah, I can load xdm or whatever on startup, but that's more of a kludge. 

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: Old person on Linux....?
« Reply #17 on: July 13, 2006, 05:45:23 pm »
Why is it more proper?

When I learn how to do things in linux, its usually from Arch's wiki or from googleing an error message, maybe you could enlightenme on the 'proper' way to do things (and why of course!)

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: Old person on Linux....?
« Reply #18 on: July 13, 2006, 05:47:37 pm »
Because you're editing the config so that it loads in the way X wants it to be loaded, instead of running it as a root-level daemon!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Old person on Linux....?
« Reply #19 on: July 13, 2006, 10:17:51 pm »
Why is it more proper?

When I learn how to do things in linux, its usually from Arch's wiki or from googleing an error message, maybe you could enlightenme on the 'proper' way to do things (and why of course!)

Well, there are certain ways that are intended to do things.  I only know Slackware's conventions well, so I can't say anything about Arch.  But the best way to do it is the way that's built into the OS. 

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Old person on Linux....?
« Reply #20 on: July 13, 2006, 10:22:35 pm »
You don't have to change the default runlevel, just add xdm/kdm/gdm to the list of daemons in rc.conf

At least, that is true for Arch, I could be wrong for Slackware

Apparently Arch doesn't go by standards (it would seem to me anyway) according to this:

SysVinit (which will be referred to as “init” from now on) works using a run-levels scheme. There are seven (numbered 0 to 6) run-levels (actually, there are more run-levels, but they are for special cases and are generally not used. See init(8) for more details), and each one of those corresponds to the actions the computer is supposed to perform when it starts up. The default run-level is 3. Here are the descriptions of the different run-levels as they are implemented:

0: halt the computer
1: single-user mode
2: multi-user mode without networking
3: multi-user mode with networking
4: reserved for customization, otherwise does the same as 3
5: same as 4, it is usually used for GUI login (like X's  xdm or KDE's  kdm)
6: reboot the computer

The command used to change run-levels is init [runlevel], where [runlevel] is the target run-level. For example, to reboot the computer, a user could issue the init 6 command, which is an alias for the reboot command. Likewise, init 0 is an alias for the halt command.

So, as you can tell, you should probably change the runlevel to 5, which would occur after going into 3 iirc. This is how the runtime scripts are supposed to work, anyway. Why start it as a daemon?

EDIT -- I'm currently building a LFS system so I happened to have read that. :P
« Last Edit: July 13, 2006, 10:24:15 pm by Newby »
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Old person on Linux....?
« Reply #21 on: July 13, 2006, 10:42:46 pm »
Incidentally, Slackware and BSD use a SysV-style startup, but I don't think all Linuxes (Linuces?) do

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: Old person on Linux....?
« Reply #22 on: July 14, 2006, 10:15:35 am »
You don't have to change the default runlevel, just add xdm/kdm/gdm to the list of daemons in rc.conf

At least, that is true for Arch, I could be wrong for Slackware

Apparently Arch doesn't go by standards (it would seem to me anyway) according to this:

SysVinit (which will be referred to as “init” from now on) works using a run-levels scheme. There are seven (numbered 0 to 6) run-levels (actually, there are more run-levels, but they are for special cases and are generally not used. See init(8) for more details), and each one of those corresponds to the actions the computer is supposed to perform when it starts up. The default run-level is 3. Here are the descriptions of the different run-levels as they are implemented:

0: halt the computer
1: single-user mode
2: multi-user mode without networking
3: multi-user mode with networking
4: reserved for customization, otherwise does the same as 3
5: same as 4, it is usually used for GUI login (like X's  xdm or KDE's  kdm)
6: reboot the computer

The command used to change run-levels is init [runlevel], where [runlevel] is the target run-level. For example, to reboot the computer, a user could issue the init 6 command, which is an alias for the reboot command. Likewise, init 0 is an alias for the halt command.

So, as you can tell, you should probably change the runlevel to 5, which would occur after going into 3 iirc. This is how the runtime scripts are supposed to work, anyway. Why start it as a daemon?

EDIT -- I'm currently building a LFS system so I happened to have read that. :P

What scripts might not be running?  Arch doesn't have seperate rc.d script directories for different runtime levels.

How are they not going by standards if 4 & 5 are reseved for customization?  Seems to me that means they can do what they want with those 2 runtime levels and still be within the standards scheme.

@iago: Arch branched from Slack, so I imagine many of the basics of Slack are the same for Arch

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Old person on Linux....?
« Reply #23 on: July 14, 2006, 12:32:33 pm »
Uhh, it is not a seperate directory. It's simply a file in /etc/rc.d iirc.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT.