Announcement

Collapse
No announcement yet.

Posibility of having multiple X sessions?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Posibility of having multiple X sessions?

    Hi, I just installed Kubuntu 18.04 on my laptop, and I was wondering if it's possible to have multiple X sessions at once.

    For example, I can open as many TTY as I want (only from F2 to F6, actually, F1 seems to be default X session) but, when I type 'startx' or 'startx -- :1' on one of those terminals, the session seems to open fine, but the first one gets corrupted, session is closed and error messages appears all over the screen.

    Is there a safe way of doing this? Or is it just a bad idea?

    In the case there IS a safe way, since I also installed the 'ubuntu-desktop' package, can I choose to open a KDE or GNOME session via command?

    Thanks in advance!

    #2
    I have used this in the past, seems to work still

    Code:
    export DISPLAY=:2
    startx -- :2
    The first line is important as you are already using the display marked as " :1"
    My first session logs out when I log in to the second session, and vice versa.

    It should work with multiple desktops, if you use the correct command. startx starts the default desktop, startplasma-x11 would start a plasma session (it could still be startkde in 18.04, not sure on that, though). Gnome will have a similar command gnome-shell or gnome-session, but I oddly can't quickly find the current correct answer, lol. I do not know if you will be logged out of your first session or not, however. It shouldn't, I'd guess, as you are not using SSDM (the login manager) to handle things when you start a session manually. There also may be some file edits that may need to be done, but I have not delved too deeply into the topic.

    Comment


      #3
      I looked into this last week, see this post.

      I didn't do anything other than use "switch user", and log in as another user. I was surprised to get a different X session; $DISPLAY was ":1". ctrl-alt-f2 instead of starting a tty switches to the other session.
      Regards, John Little

      Comment


        #4
        Originally posted by claydoh View Post
        My first session logs out when I log in to the second session, and vice versa.
        So, can't I have two X sessions with the same user at once? Like non-X sessions? Because I can open as many TTYs as I want with the same user at the same time, can't I do the same with X?

        Thanks.

        Comment


          #5
          Originally posted by eXtremeDevil View Post
          So, can't I have two X sessions with the same user at once? Like non-X sessions? Because I can open as many TTYs as I want with the same user at the same time, can't I do the same with X?

          Thanks.
          cli sessions, you can have as many as you want. I would think that multiple X sessions with the same user should be doable, but my very brief test, it logged me out of my first Plasma session when i logged in to the second Plasma session. It could be that the display manager may be doing this. It is SDDM in Kubuntu, but there are others. If you installed Ubuntu-desktop on top of Kubuntu, you may be using Gnome's display manager, GDM.

          You also should be able to use the "switch user" option in the "Leave" menu, and then log i n, selecting the Gnome desktop session on the lower right of the login screen (if you are using SDDM)

          Luckily, you won't break anything by trying things out, either using the commands, or the user switching

          Comment


            #6
            Sorry for the looooooooooooong delay, but I finally tested it without any problems. My doubt was I the system is able to have multiple X sessions with the same user, but all my doubts are resolved now and things are working perfectly.

            Thanks to all for the support.

            Comment

            Working...
            X