LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-25-2009, 09:42 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
How to configure toggling between local and remote X sessions?


I've googled a bit on this, but so far have not found anything related to what I'm trying to accomplish....

I have 2 linux machines on my network. The first is Ubuntu 9.04 and the second is running Slackware 64_current. I have the Slack machine configured to listen for XDMCP requests and I frequently use Ubuntu's login screen (gdm) to run a remote X session.

What I would like to do is have the ability to toggle between both a local Ubuntu session and a remote Slack session similar to toggling between virtual terminals (ctrl+alt+f4, and back with ctrl+alt+f7 for instance). I've tried this by
Code:
root@DELL:/home/USERt# X -query HOSTNAME
which responds with
Code:
Fatal server error:
Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.
Is there something that I can edit, or a command I can use to allow two simultaneous X sessions, with one being local and the other being remote?

Last edited by damgar; 12-26-2009 at 11:57 AM.
 
Old 12-26-2009, 02:48 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sure you can.

SUGGESTION:
Google for "LTSP howto" (Linux Terminal Server Project)
... or ...
"xvncserver howto" (so that VNC clients will get a GDM or KDM desktop login)

I'm not sure which (if either) of these suggestions match your particular scenario ...

... but I *am* pretty certain that you'll get most (all?) the pieces you need in order to put together your own "best case" solution.

Good luck .. PSM
 
1 members found this post helpful.
Old 12-26-2009, 07:52 PM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Thanks for the reply. The suggested links were good reading, and got me thinking about my googling. I never found EXACTLY what I was looking for,but that got me here: http://lists.x.org/archives/xorg-dev...st/001608.html which led me to the following command:
Code:
X :1 -query REMOTEHOST
which takes me directly to the kdmchooser for my slackbox! So it's as easy as accessing tty1 or tty7 to switch between my UBUNTU with gnome or my SLACKWARE with KDE! (I'll apologize for the exclamations but IT'S JUST SO COOL!)

The only drawback to this method is that when I toggle back to the local machine I lose my connection to the remote machine, so I'll have to work on that.
 
Old 12-26-2009, 08:06 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Update

I was being pessimistic in thinking I was losing my session. What I didn't realize (although I read it in the links you posted, THANKS AGAIN) was that x uses tty7 and above so even though I execute my commands in say tty1 once I start the new X session I will be toggling to a different tty above 7 (my machine seems to like tty9).

This puts a whole new spin on the "which distro and kde vs. gnome" discussions......why choose when you can have them all!

Or at least as many as you have virtual terminals.
 
  


Reply

Tags
local, multiple, remote, sessions, toggle


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
How to configure ssh local / remote forwarding at parmanent label. linuxjamil Linux - Server 1 02-21-2008 06:26 AM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 07:20 AM
remote X sessions binary_0011 Linux - Newbie 5 05-26-2006 04:43 AM
Remote sessions narkelo Linux - Software 2 04-03-2004 10:33 PM
Remote X sessions problem Claus Linux - Networking 0 10-22-2003 07:17 PM


All times are GMT -5. The time now is 09:41 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