LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Closed Thread
 
Search this Thread
Old 08-22-2009, 09:15 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Is it possible to run two Desktops at the same time?


Hello

I would like to have both Gnome and Xfce Desktops running at the same time. This would allow running the proven production environment (Gnome) while setting up and experimenting with Xfce.

Is it possible to run both at the same time?

Linux provides multiple virtual terminals accessed via Ctrl+Alt+F[1-7] with the graphical session on number 7. Perhaps X and gdm (or whatever) can be configured to run a graphical session on number 6 as well as number 7.

Best

Charles
 
Old 08-22-2009, 09:18 AM   #2
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
Yes, possible. But don't know how
 
0 members found this post helpful.
Old 08-22-2009, 09:21 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Just run:
Code:
startx -- :1
 
Old 08-22-2009, 09:28 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There are multi-seat setups where one desktop is used for 4 or 5 seats.

If you mean that you want to press [CTRL]-[ALT]-F8 to switch to another desktop, you can select "switch user" from the desktop. You could also run from a vt: "xinit -- :1.0" to bring up another X screen with (the default) xterm running. From there you can start a window manager or desktop environment. Pressing [CTRL]-[ALT]-[F7] brings you back to your original desktop environment. If you have a dual-head video card, you could use "xinit -- :0.1" instead. However, for an independent display and different desktop, you would need 2 keyboards & mice as well. This would be a two seat setup.
 
Old 08-22-2009, 09:32 AM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You might find these links interesting, *if* this describes the situation you want.

http://blog.chris.tylers.info/index....11R6.97.0.html

http://linuxgazette.net/124/smith.html

Sasha
 
Old 08-22-2009, 11:00 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Original Poster
Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Wow! Thanks all So many responses and so quickly! Thanks jschiwal for the detailed suggestions.

Multi-seat is very interesting but not what I'm looking for right now -- which is hot-key switching to another Desktop (I need to learn to ask clear questions!).

First choice was "Switch User". It gave a graphical login screen and ps -ef showed
Code:
root     17261 17257  1 20:38 tty8     00:00:00 /usr/bin/X :20 -br -audit 0 -auth /var/lib/gdm/:20.Xauth -nolisten tcp vt8
I selected an Xfce session and entered username-and-password. On pressing Enter, the graphical screen disappeared and tty7 re-appeared. ps did not show anything on tty8. Log files last updated were Xorg.20.log acpid Xorg.0.log syslog daemon.log. Most relevant (?) messages not from the X logs but duplicated in the others:
Code:
Aug 22 20:40:41 CW8 gdm[7591]: DEBUG: Got XPID == 0 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: ConsoleKit: Unlocking session for c on :0 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: ConsoleKit: session /org/freedesktop/ConsoleKit/Session2 has DISPLAY :0 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: ConsoleKit: Unlocking session /org/freedesktop/ConsoleKit/Session2 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: Attempting to parse key string: debug/Enable=false 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: Sending MIGRATE == <secret> for slave 17257 
Aug 22 20:40:42 CW8 gdm[7591]: DEBUG: Attempting to parse key string: debug/Enable=false 
Aug 22 20:40:42 CW8 gdm[7591]: DEBUG: Handling message: 'MIGRATE 17257 :0' 
Aug 22 20:40:42 CW8 gdm[7591]: DEBUG: Got MIGRATE :0 
Aug 22 20:40:42 CW8 gdm[17257]: DEBUG: gdm_slave_quick_exit: Will kill everything from the display
Second choice was logging on at tty6 and running
Code:
xinit -- :1.0 &
ps -ef showed
Code:
root     17877 17876  1 20:53 tty8     00:00:00 X :1.0
tty8 showed an X screen with xterm. Running startxfce4 from the xterm started Xfce Desktop. Yay!

That's "good enough" for present purposes except that the cursor is permanently "busy" -- that's the whirly thing. Any ideas?

It would be nice to streamline the process and make it more robust, especially "nohup" didn't work so closing the xterm or logging out on tty6 both kill the Xfce Desktop. Starting Xfce directly on display :1.0 rather than xterm and thence startxfce4 would be nice ...

Thanks again,

Charles

Last edited by catkin; 08-22-2009 at 11:01 AM. Reason: Typo
 
Old 08-23-2009, 10:56 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I use SuSE which supports installing and using different desktops. If I select "switch user" from the log out popup, I can start another desktop on vt/8. Pressing [CTRL]-[ALT]-F7 brings me back to the first desktop. I've also used the second method, ssh'ing into my desktop and starting xfce4 (lighter weight for an ssh session).

You can also have a desktop session running in a window. It used to be called Xnest, but I don't remember the details now. If you are behind a nat router and are the only user on your network, you can enable xdmcp. Enabling it in your desktop manager config file ( e.g. kdmrc) and opening port 277 will allow you to log into any computer on your network (that has it enabled as well) and use it as if it were local. This is similar to ssh -X without the overhead ( and the security ).
 
Old 08-24-2009, 01:51 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Original Poster
Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks again jschiwal

The need is all on the local machine so no need for the networked solutions. "Switch User" ought to work and would be tidiest but it's not important enough to troubleshoot; I only want to do this while migrating between Desktops.

Best

Charles
 
Old 08-24-2009, 09:02 AM   #9
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
http://ubuntuforums.org/showthread.php?t=240543

There is another way to run 2 different desktops/WMs I do that a lot, it makes gimp more manageable.
 
Old 08-24-2009, 10:08 AM   #10
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
hi

I am a pussy cat so rather than set up another X...I do all my testing in virtualbox
 
Old 08-10-2010, 04:45 AM   #11
86bender
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Hi! I have recently found new soft for making 8 work station by using 1 PC. Does any body check this out.It is available here http://friendlyseats.com/en Can you recommend another soft like this (cheaper or free)))
 
Old 08-10-2010, 05:17 AM   #12
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Check out this page: http://en.wikipedia.org/wiki/Multise...ware_evolution

There's some interesting reading there, and on some links connected from that page, such as "Userful" multi-seat. The link's at the bottom of the page in the 'External Links' section.

Unfortunately, it doesn't look like any of the multi-seat solutions are free of $$$ to get a working version for more than 2 seats.
 
Old 08-10-2010, 06:16 AM   #13
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Do you want Windows multi-seat or Linux multi-seat?

You don't need a commercial product for Linux multi-seat. Linux is inherently a multi user OS. You can easily run separate desktops on separate monitors. I don't think there is any significant extra complication to having them logged in as different users. There is only a little extra complication to having them use separate keyboards and mouses.

There have been a few threads here at LQ discussing the details. IIRC, one inconvenience is that Linux isn't consistent on boot up in assigning identities to multiple USB input devices. So on reboot the association of input devices to monitors might be scrambled and need to be manually sorted out.

Eight seats is a bit questionable. Simple reasonably priced extra hardware would let you connect eight pairs of USB input devices to one PC. But eight monitors is beyond what you could connect to an ordinary PC with ordinary extra video cards (typically two monitors per card).
 
Old 08-10-2010, 11:42 AM   #14
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, OpenSuse, Debian, Fedora, Mageia, Ubuntu, RedHat, BSD, Gentoo, Puppy
Posts: 178
Blog Entries: 2

Rep: Reputation: 2
Hi, I wanted to express that I didn't find anyone giving catkin a good solution.

Well, I can do what catkin asked with kdm. I first start a new session with kdm(as root or init 4), then lock this session and start another new session. Up to six sessions can be accessed with C^ + M^ (F7 - F12).

gdm can start new sessions as well but I don't how (I could never do it).

I'm a slacker so this conf is easy but I'm not so sure with other Flavours doing it well , especially Ubuntu and other `easy` linux desktop as their console is started at 80x15. Its preferable to use X in vesa mode (to start with at first) not the accelerated video driver, its more stable and the switch won't produce glitchers.
 
Old 08-11-2010, 05:39 AM   #15
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
The graphical login managers should provide a way to launch multiple desktops and select which kind of desktop (session) you want to run on the current login.

I don't use graphical login managers, so can't comment on the methodology. I just use custom scripts to launch whatever desktop I want at a given moment. The behaviour of the startx script is controlled usually via the ~/.xinitrc file, so you can just modify it to start whatever desktop you want. But doing that each time you use "startx -- :<display:number>" is not the most convenient way. So, what I do is the following.

I have a ~/bin/ directory which is in my path, so I copy /usr/bin/startx there, then I modify it as follows:

Code:
--- /usr/bin/startx     2010-08-03 01:53:07.143999999 +0200
+++ bin/startx.sh       2010-08-11 12:34:23.638999994 +0200
@@ -14,8 +14,26 @@
 unset DBUS_SESSION_BUS_ADDRESS
 unset SESSION_MANAGER
 
+if [ "$(basename $0)" == "startx.sh" ]; then
+       echo "Usage instructions:"
+       echo
+       echo "This script is not meant to be run directly. To use this"
+       echo "script, create a symlink to it, with a given <name>, then"
+       echo "create an xinitrc file with the same exact name under"
+       echo "$HOME/.config/xinitrc/"
+       echo
+       echo "That file will be used at the initrc file for that symlink"
+       echo "which allows you to launch as many different wm's as you"
+       echo "want by just creating a symlink and an xinitrc for each"
+       echo "one, then just launch the wanted wm using your link."
+       echo
+       echo "This is just a modification of the vanilla startx script"
+       echo "that Gentoo ships."
+       echo
+       exit 0
+fi
 
-userclientrc=$HOME/.xinitrc
+userclientrc=$HOME/.config/xinitrc/$(basename $0)
 sysclientrc=/etc/X11/xinit/xinitrc
The script should be self-explanative. The basic thing is, you put the modified startx in some path that's in the directory, it can be called anything, I name it ~/bin/startx.sh, then I just cd into ~/bin and make a symlink to that file, for example:

Code:
cd ~/bin
ln -s startx.sh openbox_
Now

Code:
cd ~
mkdir -p .config/xinitrc/
Now, you just create an xinitrc file for openbox by putting this inside ~/.config/xinitrc/openbox_

Code:
exec openbox
You can easily create custom xinitrc files to start many wm's without any problem, then you just call:

Code:
openbox_ -- :0.1
Or whatever. You only need to create a symlink and an xinitrc file for each wm or desktop you want to run, and that's it. This is very flexible, as I can as well have another script with custom commands/programs I want to run on all the desktops I use, and then just use "source" to "include" then into whatever xinitrc file I want.
 
  


Closed Thread

Tags
desktop, gdm, terminal, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What countrys time is LQ run on? cheeseandpenguins LQ Suggestions & Feedback 6 05-22-2007 08:25 PM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 08:15 PM
LXer: Giant Retailer Chooses SUSE Linux Enterprise Platform To Run Desktops LXer Syndicated Linux News 0 08-21-2006 08:33 PM
Bad:monitoring performance parameters in 1000+ linux desktops &time synchronising shrikeiaf Linux - General 1 05-03-2005 12:03 PM
Redhat 8.0 switching desktops(Want to run E!) michaeldm Linux - Software 4 10-11-2002 12:06 PM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration