Multi-users on multi TTY behavior ?

Forum Forums New users New Users and General Questions Multi-users on multi TTY behavior ?

  • This topic has 8 replies, 4 voices, and was last updated Jan 13-6:47 pm by Anonymous.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21028
    Member
    oops

      Hello all,
      Does a way already exist into antiX to have/open multi-users on multi TTY (ex:sudo chvt 7, chvt 8, chvt 9,… or via “mx-switchuser” like into MX, Ctrl+Alt F7/F8,etc) ?

      #21036
      Anonymous
        Helpful
        Up
        0
        ::

        chvt, via “Ctrl+Alt F7/F8,etc”?
        Yes.

        switchuser, multiple Xsessions… already?
        no.

        mx-switchuser utilizes LightDM and “dm-tool switchuser” (vs SLiM)

        #21042
        Member
        oops
          Helpful
          Up
          0
          ::

          Thank you for this confirmation Skidoo.
          Maybe a work around then (via startx or so) within Slim ?

          # inxi -Sxxx
          System:    Host: antix1 Kernel: 4.9.170-antix.1-486-smp i686 bits: 32 compiler: gcc v: 6.3.0 
                     Desktop: IceWM 1.4.2 info: icewmtray dm: SLiM 1.3.4 
                     Distro: antiX-17.4.1_386-full Helen Keller 28 March 2019 
                     base: Debian GNU/Linux 9 (stretch)
          #21044
          Anonymous
            Helpful
            Up
            0
            ::

            within Slim

            unsure what specific functionality you’re missing, and wanting.
            Workaround? Can’t force a blue peg into a red hole… so perhaps you should, instead, investigate some of the SLiM alternatives.

            lxdm
            sddm
            gdm
            mdm
            lightdm
            kdm
            entrance (enlightenment dm)

            #21047
            Member
            oops
              Helpful
              Up
              0
              ::

              … I only want to be able to switch to 2 or 3 user sessions via Ctrl+Alt F7/F8.F9 … so with SLiM 1.3.4 it is impossible yet.
              Thank you for your proposed alternatives above.

              #21054
              Forum Admin
              Dave
                Helpful
                Up
                0
                ::

                I have not done so in a while so my memory is fuzzy. At the least this may give some ideas for poking around.
                From my memory having multiple x sessions in different vt (7(default)+8+9) could be done in a couple of different ways.

                One way was to have several sessions opened as different users during init. I think this was done with getty and inittab… and having a session started as a specified user then immediately running startx. (which would at them moment be startx /usr/local/bin/desktop-session)

                Another way was to have a script that made one call per X session, but passed different vt options to the X server. IIRC the commands went something like (with addition of desktop-session)
                startx /usr/local/bin/desktop-session rox-icewm :1 -vt7
                startx /usr/local/bin/desktop-session space-fluxbox :2 -vt8
                startx /usr/local/bin/desktop-session jwm :3 -vt9
                This script was run manually after logging into a text session. It also used the same user account which I seem to remember some programs having a fit about multiple instances running.

                There is also something in my memory about mucking with /etc/init.d/slim, and adding a second start / stop line. In between the second and first line was a mv/cp (or was it rm / ln ?)command to move the /etc/slim.conf around between multiple versions. Each version of the slim.conf had a different xserver_arguments line specifying a different vt. I cannot recall if this ever worked or not but the idea was to have slim started on 3 different spaces (Control + Alt + 7/8/9).

                This was quite a while ago before I added multiple graphics cards and running with an actual multiseat sytem.
                https://antixlinux.com/forum-archive/making-a-multiuser-multiseat-antix-t2729.html

                Oh wow; posted in 2010! Has it really been that long?!? No wonder my memory is a little fuzzy about this LOL

                Edit:
                I seem to recall user BitJam also runs X in multiple vt sessions for testing. Perhaps he will chime in about it.

                • This reply was modified 4 years ago by Dave.

                Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

                #21089
                Member
                oops
                  Helpful
                  Up
                  0
                  ::

                  Thank you Dave for these accurate information, I will do some tests and try to keep Slim (only 9MB – slim)(at least= 9MB+5MB- lightdm),

                  
                  echo "------------------------------------" && mem=0 && while read -r rss comm ; do mbs=$((rss/1024)); mem=$((mbs + mem)); echo $mbs"MB - $comm"; done <<< "$(ps -u $USER -wo rss=,comm= --sort -rss)" && echo "------------------------------------" && echo $mem"MB: Memory used by user '$USER'"
                  ------------------------------------
                  26MB - Xorg
                  9MB - slim
                  6MB - cupsd
                  5MB - console-kit-dae
                  5MB - polkitd
                  4MB - bash
                  3MB - haveged
                  ...
                  
                  FOR MX18 ( at least= 9MB+5MB- lightdm:
                  echo "------------------------------------" && mem=0 && while read -r rss comm ; do mbs=$((rss/1024)); mem=$((mbs + mem)); echo $mbs"MB - $comm"; done <<< "$(ps -u $USER -wo rss=,comm= --sort -rss)" && echo "------------------------------------" && echo $mem"MB: Memory used by user '$USER'"
                  ------------------------------------
                  32MB - Xorg
                  13MB - smbd
                  12MB - NetworkManager
                  10MB - ModemManager
                  9MB - cups-browsed
                  9MB - udisksd
                  9MB - polkitd
                  9MB - lightdm
                  7MB - lpqd
                  7MB - cupsd
                  7MB - upowerd
                  6MB - bash
                  5MB - lightdm
                  5MB - accounts-daemon
                  5MB - nmbd
                  5MB - smbd-notifyd
                  4MB - su
                  4MB - wpa_supplicant
                  4MB - bluetoothd
                  4MB - cleanupd
                  4MB - haveged
                  3MB - systemd-logind
                  3MB - rsyslogd
                  3MB - dhclient
                  3MB - ps
                  2MB - systemd-udevd
                  2MB - cgmanager
                  2MB - cron
                  1MB - rpcbind
                  1MB - getty
                  1MB - init
                  ...
                  

                  … Or maybe just as a workaround, to show at the login slim prompt, the list of the available users.

                  cat /etc/passwd | grep “:/bin/bash” | sort | cut -d: -f1
                  User1
                  User2
                  User3

                  PS: Slim is interesting into antiX, because only few process are actives :

                  
                  inxi -Sxxx
                  System:    Host: antix1 Kernel: 5.0.0 i686 bits: 32 compiler: gcc v: 6.3.0 Desktop: IceWM 1.4.2 
                             info: icewmtray dm: SLiM 1.3.4 Distro: antiX-17.4.1_386-full Helen Keller 28 March 2019 
                             base: Debian GNU/Linux 9 (stretch) 
                  
                  pgrep -ox slim | xargs pstree -p
                  slim(2349)─┬─Xorg(2357)───{InputThread}(2428)
                             └─desktop-session(2655)───icewm-session(2703)─┬─icewm(2708)───nemo(4539)─┬─{dconf worker}(+
                                                                           │                          ├─{gdbus}(4542)
                                                                           │                          ├─{gmain}(4541)
                                                                           │                          └─{pool}(5068)
                                                                           ├─icewmbg(2707)
                                                                           └─icewmtray(2718)

                  … Compared to Lightdm

                  pgrep -ox lightdm | xargs pstree -p
                  lightdm(2825)─┬─Xorg(2915)───{InputThread}(3034)
                                ├─lightdm(3269)─┬─sh(4643)─┬─ssh-agent(4717)
                                │               │          └─xfce4-session(4727)───xfce4-session(4728)─┬─applet.py(4805)───{gmain}(4+
                                │               │                                                      ├─clipit(4784)─┬─{gdbus}(4842+
                                │               │                                                      │              └─{gmain}(4832+
                                │               ├─{gdbus}(4627)
                                │               └─{gmain}(4626)
                                ├─{gdbus}(2852)
                                └─{gmain}(2838)
                  • This reply was modified 4 years ago by oops.
                  • This reply was modified 4 years ago by oops.
                  • This reply was modified 4 years ago by oops.
                  #75176
                  Member
                  zegra
                    Helpful
                    Up
                    0
                    ::

                    I like the solution in MX Linux in the whisker menu “dm-tool switch-to-greeter”.

                    If I want to run a second session in antix 21 under Ctrl+Alt+F8, I run the following command in roxterm:
                    nohup sudo xinit /usr/bin/roxterm -e “sudo -u anyuser /usr/local/bin/desktop-session zzz-icewm” — :1
                    The roxterm windows must always remain open.
                    Does anyone have a better solution?

                    #75185
                    Anonymous
                      Helpful
                      Up
                      0
                      ::

                      another possibility (not necessarily “better”): xserver-xephyr

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • You must be logged in to reply to this topic.