Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X11 forwarding from Gentoo to Putty on windows
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
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Thu Sep 18, 2014 11:07 am    Post subject: X11 forwarding from Gentoo to Putty on windows Reply with quote

Never done this before, so be a bit patient please. I want to connect a windows pc to my Gentoo laptop and get an X11 application running in a window on windows.

First I installed Xming and PuTTy on the windows pc and followed the guide on http://www.geo.mtu.edu/geoschem/docs/putty_install.html

Next I logged in as root in the Gentoo:
- added sshd to rc default
- started sshd: it generated the keys
- made a user "remote" and gave it a password
- changed /etc/ssh/ssh_config with "ForwardX11 yes"
- changed /etc/sshd_config with "X11Forwarding yes"
- restarted sshd

For starters I gave both pc's a fixed IP and connected them with a cable. Neither pc was connected to anything else. They can ping each other (good start)

Next I started Xming then PuTTy and got the login prompt in the terminal. Login worked but the first time I got a message that there was no /home/remote. Created that one and this message went away when I loged in again.

But if I want to run an X11 application it doesn't work. Also "echo $DISPLAY" gives a blank line. And if I go to Xming it says there are no clients.

I obviously missing something simpel.

Another strange thing is that in the terminal I cannot even create a .txt file in the home directory of the user "remote". I tought that a user had r/w control over its ~/.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42596
Location: 56N 3W

PostPosted: Thu Sep 18, 2014 7:59 pm    Post subject: Reply with quote

Spanik,

Spanik wrote:
I cannot even create a .txt file in the home directory of the user "remote".


What are the permissions and owership on /home/remote?
Code:
drwxr-xr-x 243 roy     users        57344 Sep 18 19:21 roy
is the sort of thing you should have.

With no accoss to ~/ you won't get any files created there al all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Fri Sep 19, 2014 7:47 am    Post subject: Reply with quote

Right! This is new stuff to me. I did created the directory while logged in as root so it is owned by root. Changed it and added the user to a couple of groups. Should be a step forward.

Now the X11 forwarding.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 548
Location: uk

PostPosted: Fri Sep 19, 2014 8:52 am    Post subject: Reply with quote

There are alternatives, you may want to look at

Xpra

or

X2Go

Both have the advantage of being able to suspend and resume sessions(at another pc if necessary), along with handling low bandwidth well
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Fri Sep 19, 2014 1:07 pm    Post subject: Reply with quote

baaann wrote:
There are alternatives, you may want to look at

Xpra

or

X2Go

Both have the advantage of being able to suspend and resume sessions(at another pc if necessary), along with handling low bandwidth well


I'm a huge fan of Moba-Xterm: http://mobaxterm.mobatek.net/

Where bandwidth and latency matter, you might want to consider running tigervnc server on your Gentoo machine and connecting to your desktop using tigervnc for Windows. Tigervnc performs fantastically for remote GUI access. For security, I would launch an SSH tunnel via PuTTy to your vnc server, then connect tigervnc on Windows to localhost:<the local port your chose>. If you want to go this route, let me know and I'll try to help you get it up and running.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5588
Location: Removed by Neddy

PostPosted: Fri Sep 19, 2014 6:56 pm    Post subject: Reply with quote

RazielFMX wrote:
baaann wrote:
There are alternatives, you may want to look at

Xpra

or

X2Go

Both have the advantage of being able to suspend and resume sessions(at another pc if necessary), along with handling low bandwidth well


I'm a huge fan of Moba-Xterm: http://mobaxterm.mobatek.net/

Where bandwidth and latency matter, you might want to consider running tigervnc server on your Gentoo machine and connecting to your desktop using tigervnc for Windows. Tigervnc performs fantastically for remote GUI access. For security, I would launch an SSH tunnel via PuTTy to your vnc server, then connect tigervnc on Windows to localhost:<the local port your chose>. If you want to go this route, let me know and I'll try to help you get it up and running.
++ moba-xterm is great
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Mon Sep 22, 2014 7:10 am    Post subject: Reply with quote

I'll check out the alternatives. Moba-Xterm looks indeed useful and it looks as if it doesn't need anything installed remote side. That's a good thing. Can also do xdmcp, that's also handy to have around. Going to satrt with that. Thanks for the ideas.

EDIT: tried Moba-Xterm and it worked first time! Good stuff.
_________________
Expert in non-working solutions
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