[SOLVED ]startx [xServer] command line from console

Discussion in 'Desktop / X' started by Andy_Crowd, Sep 12, 2013.

  1. Andy_Crowd

    Andy_Crowd New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi!

    I am using "sudo bash" to avid write sudo all the time.


    I had fun to make full reinstall (with config files) of X11 and all X Servers that I had... BlackBox, FluxBox, Cinnamon. And I installed GDM for login screen where I can chose which client I want start.

    1st problem is that I have .Xauthority time out sometimes when I start from console. I had to rebuild that "X cookie" to be able start X session. But is become empty and I do not know how to fix work good. I know that I must use ."xauth" to do it but I do not know how.

    2nd is that I can use startx in cosole with out loading any X Server and I getting a yellow console in the top left corner where I can write what I want to start for example: fluxbox , and then it starts but yellow window still left and I cannot start any more terminal window there, it closed automaticaly. With Crtl+Alt+F2 I can shutdown it and go back to console. Other way it to write t.e. "startx fluxbox" then it start fluxbox but the yellow winow still left. To use normal them again I have to restart GDM login GUI screen and login as normal. It is not working even if I using "startx blackbox & disown", then it shows only pid of session, and I can use kill 'pid' to stop it.

    !!!!!! How can I use the startx same way as a GUI loging with mutiple xServers without any problems? !!!!!!
  2. flunwyc

    flunwyc Member

    Messages:
    99
    Likes Received:
    60
    Trophy Points:
    18
    You fail to understand the underlying concepts and to differentiate a window manager from the xserver.

    You should not be doing "sudo bash". Use su for this.

    If you want to start different window managers you need a display manager. Or you can write a script which cycles between different .xinitrc files. Do some reading.

    If you're actually doing startx as root - don't do it. The xserver should never be run as root and is not designed to be run as root.
  3. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    889
    Likes Received:
    288
    Trophy Points:
    63
  4. Andy_Crowd

    Andy_Crowd New Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi!
    I wrote a little wrong in my first post about what I mean but I found solution for my problem.
    e.g.
    Code:
    ## Start IceWM
    startx /usr/bin/icewm-session
    ## Start OpenBox
    startx /usr/bin/openbox-session
    ## Start LXDE
    startx /usr/bin/startlxde
    

Share This Page