Find the answer to your Linux question:
Results 1 to 5 of 5
Are these two the same thing or is startx more complicated? The only reason i say this, is when i installed a new graphics card in a computer running linux, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292

    startx vs init 5


    Are these two the same thing or is startx more complicated? The only reason i say this, is when i installed a new graphics card in a computer running linux, causing x not to start, i typed startx, and it reconfigured the graphics setting automatically, so that x could start. would init 5 do the same thing or does it just give an error?

  2. #2
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    init 5 would start a graphical greeter like GDM/KDM/XDM/Entrance. startx will run whatever in ~/.xinitrc

    If X wont start because of wrong settings, init 5 won't help much more than startx.

  3. #3
    Linux Engineer d38dm8nw81k1ng's Avatar
    Join Date
    Mar 2005
    Location
    Newcastle
    Posts
    793
    i'd recommend init 5 because it starts (x/g/k)dm which you can login from. in gentoo i just run gdm. since i always login to the terminal as root (to run gdm) it's become a habit and startx would just give me a root X session (bad).
    Here's why Linux is easier than Windows:
    Package Managers! Apt-Get and Portage (among others) allow users to install programs MUCH easier than Windows can.
    Hardware Drivers. In SuSE, ALL the hardware is detected and installed automatically! How is this harder than Windows' constant disc changing and rebooting?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User Tommaso's Avatar
    Join Date
    Oct 2005
    Posts
    292
    Thanks guys, now tell me if i understand correctly:
    I am assuming that (x/g/k) mean X windows, Gnome, and KDE? So init 5 starts them all, while startx starts whatever is in ~/.xinitrc (I am also assuming that you can define what is in there).

    So i am afraid i still don't see why init 5 is better? It would seem to me that startx is actually more customixable than init5, and so if GNOME and KDE were down, or if you only wanted to start X (not GNOME or KDE), you would probably rather do startx after you configured ~/.xinitrc, right?

  6. #5
    Linux Enthusiast Weedman's Avatar
    Join Date
    May 2005
    Location
    Tasmania, Australia
    Posts
    640
    Quote Originally Posted by Tommaso
    Thanks guys, now tell me if i understand correctly:
    I am assuming that (x/g/k) mean X windows, Gnome, and KDE? So init 5 starts them all, while startx starts whatever is in ~/.xinitrc (I am also assuming that you can define what is in there).

    So i am afraid i still don't see why init 5 is better? It would seem to me that startx is actually more customixable than init5, and so if GNOME and KDE were down, or if you only wanted to start X (not GNOME or KDE), you would probably rather do startx after you configured ~/.xinitrc, right?
    yep. if you just wanna go into a gnome/kde/other windows manager session and youre already logged in and have the ~/.xinitrc file configured for that, then it would be quicker.
    "Time has more than one meaning, and is more than one dimension" - /.unknown
    --Registered Linux user #396583--

Posting Permissions

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