LinuxQuestions.org
Help answer threads with 0 replies.
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 06-30-2017, 06:43 PM   #1
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 175

Rep: Reputation: 18
moving applications between X sessions (or vnc screens)


is anybody aware of a method to move an application from one X session to a different X session ?

more specifically, i work with several VNC screens on the same workstation which i access and display remotely. now, instead of opening n-times the same application (let's say emacs) in each VNC screen i would like to move the emacs application to the VNC screen 'of focus' = the VNC screen i work in at a given moment. as said, we speak here about the same workstation (a VPS) which runs numerous VNC screens (virtual X sessions), so it's the same machine (CPU) the emacs application runs on in my scenario.

i read about xpra, shifter, GuiEvite and other tricks - which one is generic enough to work also on a slackware box ?

when i don't need X i switch to tmux which is great as i can access the same tmux session as many times i want - which is kind of equivalent to what i want to achieve here in X : to see the content of a running application in any VNC screen i want without having to restart it.

any input appreciated !
 
Old 07-01-2017, 12:59 PM   #2
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 175

Original Poster
Rep: Reputation: 18
can anybody help here ? i couldn't get xpra installed on my slackware 14.2 box, so i decided to go with x2go where the installation this time worked fine using SlackBuilds scripts.

but now even the simplest "single application" using /usr/bin/xterm doesn't want to show up on my fvwm screen when testing x2go with host:localhost or with host:<local_IP>... it just pumps my CPU load up to the sky while the x2go client window remains grayed out till i kill all x2go processes. x2go doesn't seem to like known_hosts file and also doesn't recognize my passwordless ssh setup. needless to say that ssh and rsa keys are in place and work smoothly including passwordlessly. the x2go server appears to be running with a x2gocleansessions process on the same localhost.

what do i do here wrong ? any suggestions ?
 
Old 07-01-2017, 10:41 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
I don't think it's possible with X. But it might be in the near future, because the replacement for X is coming and it can do much more. I seem to remember reading about what you're trying to do, and it will be possible.
 
Old 07-02-2017, 12:16 PM   #4
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 175

Original Poster
Rep: Reputation: 18
wow, a replacement for X - huge news - thanks for your reply !

in any case, i gave up on getting xpra and x2go running on by slackware boxes as i found another solution for my problem :

the reason i was looking into such a xdummy solution as i didn't know how to rescale the page or virtual desktop size in fvwm inside a running VNC session. it turned out to be a simple button press à la "Restart fvwm". so, now i need only one single fvwm VNC screen which i can scale and adjust and re-use for any remote connection without losing running X applications - just as i do it with tmux on the terminal level.
 
Old 07-02-2017, 08:25 PM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,391
Blog Entries: 8

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Do you have to have several different VNC screens or could you do with multiple VNC views of a single much larger screen? Because if you do the latter, then you can simply drag the window across the larger screen.

I personally use x11vnc on the server side, which serves up the display on my graphics card (which has the advantage of 3d graphics hardware acceleration, for what it's worth, as well as clean integration with the local desktop). Then, I use a command like the following to serve up a portion of the screen canvas:

Code:
x11vnc -nowf -clip 1024x768+0+1024
So, if I set up a 2048x1536 screen on VGA (even if the attached monitor or null cable can't display it), I could serve up four separate 1024x768 VNC sessions with:
Code:
x11vnc -rfbport 5901 -nowf -clip 1024x768+0+0
x11vnc -rfbport 5902 -nowf -clip 1024x768+1024+0
x11vnc -rfbport 5903 -nowf -clip 1024x768+0+768
x11vnc -rfbport 5904 -nowf -clip 1024x768+1024+768
 
Old 07-03-2017, 07:28 AM   #6
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware since v1.00
Posts: 175

Original Poster
Rep: Reputation: 18
interesting thought, similar to what x0vncserver would do. i used x11vnc years ago but i wasn't aware of the -clip option.
in fact, i use for work a beautiful 4K Philips monitor, which would allow to load quite a few instances of such x11vnc 'clips' at once.
thank you for this suggestion !
 
  


Reply


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
Moving windows across two screens mixtr Slackware 9 01-20-2006 06:37 PM
Moving Windows between Screens Gort32 Linux - Software 3 01-07-2006 03:11 PM
VNC Sessions scouture Linux - Networking 2 04-07-2005 06:21 PM
Multiple X sessions via VNC ClassicV Linux - Software 1 06-17-2004 04:52 PM
VNC Server Sessions Sabeer Linux - Networking 1 05-21-2003 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration