Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Re X forwarding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Thu Jul 22, 2010 1:00 am    Post subject: Re X forwarding Reply with quote

Hi folks,

Re ssh X forwarding

How to set the display size avoiding taking up the whole screen.

e.g.
$ ssh -XC -c blowfish user@ip_address display:1 "gnome-panel"

Does it take up the complete screen?


B.R.
satimis
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Thu Jul 22, 2010 2:13 am    Post subject: Reply with quote

Could you clarify the question? X forwarding grants the remote program access to your local display. There is only one screen, and both local and remote programs have access to it. If the remote program is using too much screen real estate, that is a problem with the remote program, not with the X forward.
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Thu Jul 22, 2010 2:17 am    Post subject: Reply with quote

Hu wrote:
Could you clarify the question? X forwarding grants the remote program access to your local display. There is only one screen, and both local and remote programs have access to it. If the remote program is using too much screen real estate, that is a problem with the remote program, not with the X forward.


Hi,

The remote screen takes up the complete local screen. I need to display both (2) screens side-by-side, not switching between them. Thanks

B.R.
satimis
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Thu Jul 22, 2010 4:33 am    Post subject: Reply with quote

Do you have two monitors? If not, where will the second screen come from? If so, then you need to tell the remote program on which monitor it should appear. Your window manager may be able to coerce some uncooperative programs into doing the right thing. Success may also depend on how you drive the two monitors. If you used a single merged desktop, getting the correct behavior will be difficult.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Jul 22, 2010 7:35 am    Post subject: Reply with quote

You might want to look at Xnest.

Direct X-window stuff can be done by running
Xnest -ac :1.0 &
twm -display :1.0 &
to start an X-server, and then logging into the client with ssh -X
and setting the DISPLAY variable to <server address>:1.0. X applications
run on the client will then appear on the server. /etc/X11/xinit/xserverrc
may first need to be edited to remove the "-nolisten tcp" argument.

Works for me - Will
Back to top
View user's profile Send private message
satimis
Guru
Guru


Joined: 21 Oct 2003
Posts: 365

PostPosted: Thu Jul 22, 2010 7:59 am    Post subject: Reply with quote

cwr wrote:
You might want to look at Xnest.

Direct X-window stuff can be done by running
Xnest -ac :1.0 &
twm -display :1.0 &
to start an X-server, and then logging into the client with ssh -X
and setting the DISPLAY variable to <server address>:1.0. X applications
run on the client will then appear on the server. /etc/X11/xinit/xserverrc
may first need to be edited to remove the "-nolisten tcp" argument.

Works for me - Will


Hi,

Thanks for your advice.

I have no problem to forward remote desktop with VNC client and rdesktop respectively. I'm interested to learn how to make it with ssh.

B.R.
satimis
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23091

PostPosted: Fri Jul 23, 2010 2:55 am    Post subject: Reply with quote

X11 forwarding is not designed to forward a remote desktop. Forwarding an entire desktop wastes screen real estate, relative to forwarding the windows that you need. It also makes it more difficult for your local window manager to adequately interleave the local and remote windows. If you still want to forward an entire desktop, the solution proposed by cwr is a good one. You could also run a VNC server remotely, connect the X applications to it, and then use ssh port forwarding to forward a VNC connection over the secure tunnel.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Fri Jul 23, 2010 3:00 am    Post subject: Reply with quote

satimis wrote:


I have no problem to forward remote desktop with VNC client and rdesktop respectively. I'm interested to learn how to make it with ssh.

B.R.
satimis


use ssvnc package - it will make setting ssh tunnels for vnc easier
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum