Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
hi all I am running my system with DSL. I ahve chanegd the default run level with 5. I changed it to 2 to enter into CLI. After restarting the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Location
    India
    Posts
    78

    Help in Damn Small Linux.......

    hi all
    I am running my system with DSL. I ahve chanegd the default run level with 5. I changed it to 2 to enter into CLI. After restarting the system, still system enters into GUI. I am not able to save the changes.
    Can anyone help?

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    How did you change the run level? You must edit these files as root, or they won't save.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    As pointed out by MikeTbob, you need to su to root first:

    Code:
    su
    
    nano /etc/inittab
    Also, you might try changing it to runlevel one.

    Let us know if it doesn't work.
    Last edited by oz; 02-13-2008 at 01:18 AM. Reason: command correction
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    I think you should be able to add the desired runlevel to the boot parameters for the kernel. Add 2 to boot to runlevel 2 etc in your /boot/grub/menu.lst file, which you need to edit as root user.

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    The default runlevel is set into /etc/inittab (someone suggest fstab above, fstab has NOTHING to do with runlevels, it is about mount points and filesystems).

    In inittab you'll find something like this:

    Code:
    # Default runlevel.
    id:3:initdefault:
    Change it to whatever you like.

    You can also use the Jonathan183's advise: just add a single '2' to the kernel line in your grub.conf or menu.lst file. The settings in the kernel line takes precedence. That basically means that you can clone the whole section in your grub.conf, change the tittle and put a different runlevel for each entry. That way, you can use grub at bootup to decide if you are going to boot on command line or you preffer to login on a graphical environment for this session.

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    Quote Originally Posted by i92guboj View Post
    The default runlevel is set into /etc/inittab (someone suggest fstab above, fstab has NOTHING to do with runlevels, it is about mount points and filesystems).
    Oops... thanks for catching that for me! That's what I get for being in too big a hurry again.

    Try it this way, East:

    Code:
    su
    
    nano /etc/inittab
    I'd still try runlevel 1, if 2 nor 3 works the way you want.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  7. #7
    Just Joined!
    Join Date
    Jan 2008
    Location
    India
    Posts
    78
    In DSL,how to know the number of user already created and where is all the informations are maintained?

  8. #8
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by East View Post
    In DSL,how to know the number of user already created and where is all the informations are maintained?
    In /etc/passwd, just like in any other distro. Each line on that files is a different user.

    You can read this:

    Code:
    man 5 passwd
    To understand the structure of the file (really simple). Everything is there, only the passwords are moved into /etc/shadow.

  9. #9
    Just Joined!
    Join Date
    Apr 2008
    Posts
    11

    run level

    1. is dsl always run on root when runlevel change to text mode ?
    2. what kind runlevel dsl run on text mode ?
    3. when change to runlevel text mode, how to make startx always run such run level 5 ?

  10. #10
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    You should find this link and this link useful.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...