Kezdőlap › Fórumok › Hálózati problémák › Távolról X-szerver, SSH
- This topic has 56 hozzászólás, 9 résztvevő, and was last updated 15 years, 12 months telt el by
uzsolt.
-
SzerzőBejegyzés
-
2009-06-29-15:35 #2190123
Hm, úgy tűnik, nem fog menni, mivel a távoli gépen telepített ssh démonja nem engedi az ilyen x11-es továbbításokat 🙁
2009-06-29-15:35 #2190124Hm, úgy tűnik, nem fog menni, mivel a távoli gépen telepített ssh démonja nem engedi az ilyen x11-es továbbításokat 🙁
2009-06-29-15:53 #2190125Telnet and XIf you would want to use telnet to display graphical applications running on a remote machine, you first need to give the remote machine access to your display (to your X server!) using the xhost command, by typing a command similar to the one below in a terminal window on your local machine:
davy:~> xhost +remote.machine.com
After that, connect to the remote host and tell it to display graphics on the local machine by setting the environment variable DISPLAY:
[davy@remote ~] export DISPLAY=”local.host.com:0.0″
After completing this step, any application started in this terminal window will be displayed on your local desktop, using remote resources for computing, but your local graphical resources (your X server) for displaying the application.
This procedure assumes that you have some sort of X server (XFree86, X.org, Exceed, Cygwin) already set up on the machine where you want to display images. The architecture and operating system of the client machine are not important as long as they allow you to run an X server on it.
Mind that displaying a terminal window from the remote machine is also considered to be a display of an image.
Ez lett volna az én verzióm, a telnet helyett természetesen ssh. Ha a routerod nem tudod beállítani azt javaslom hogy a művelet erejéig iktasd ki.
2009-06-29-15:53 #2190126Telnet and XIf you would want to use telnet to display graphical applications running on a remote machine, you first need to give the remote machine access to your display (to your X server!) using the xhost command, by typing a command similar to the one below in a terminal window on your local machine:
davy:~> xhost +remote.machine.com
After that, connect to the remote host and tell it to display graphics on the local machine by setting the environment variable DISPLAY:
[davy@remote ~] export DISPLAY=”local.host.com:0.0″
After completing this step, any application started in this terminal window will be displayed on your local desktop, using remote resources for computing, but your local graphical resources (your X server) for displaying the application.
This procedure assumes that you have some sort of X server (XFree86, X.org, Exceed, Cygwin) already set up on the machine where you want to display images. The architecture and operating system of the client machine are not important as long as they allow you to run an X server on it.
Mind that displaying a terminal window from the remote machine is also considered to be a display of an image.
Ez lett volna az én verzióm, a telnet helyett természetesen ssh. Ha a routerod nem tudod beállítani azt javaslom hogy a művelet erejéig iktasd ki.
2009-06-29-16:46 #2190127Ezt idáig értem (úgy gondolom), de nem engedélyezett az X11forwarding, amely eddigi olvasmányaim alapján szükséges ehhez.
2009-06-29-16:46 #2190128Ezt idáig értem (úgy gondolom), de nem engedélyezett az X11forwarding, amely eddigi olvasmányaim alapján szükséges ehhez.
2009-06-29-17:40 #2190129uzsolt wrote:Ezt idáig értem (úgy gondolom), de nem engedélyezett az X11forwarding, amely eddigi olvasmányaim alapján szükséges ehhez.Ehhez nem is kell ssh x11forwarding, most próbáltam ki itten a helyi hálómon, miért ne működne nagyban is? Jó, alapból nem megy mert ki kell venni a gépeden az /etc/X11/xinit/xserverrc * fájlból a „nolisten tcp” kapcsolót az „X” mögül. Utána újraindítod az grafikus felületed, xhost +, ssh a távoli gépre, export DISPLAY=”WANIPcímed:0.0″, majd mondjuk xterm és láss „csodát”! 🙂
*lehet hogy nem ott van az xserverrc fájl hanem mondjuk a saját könyvtáradban van saját, de a lényeg hogy az X a nolisten tcp nélkül fusson
2009-06-29-17:40 #2190130uzsolt wrote:Ezt idáig értem (úgy gondolom), de nem engedélyezett az X11forwarding, amely eddigi olvasmányaim alapján szükséges ehhez.Ehhez nem is kell ssh x11forwarding, most próbáltam ki itten a helyi hálómon, miért ne működne nagyban is? Jó, alapból nem megy mert ki kell venni a gépeden az /etc/X11/xinit/xserverrc * fájlból a „nolisten tcp” kapcsolót az „X” mögül. Utána újraindítod az grafikus felületed, xhost +, ssh a távoli gépre, export DISPLAY=”WANIPcímed:0.0″, majd mondjuk xterm és láss „csodát”! 🙂
*lehet hogy nem ott van az xserverrc fájl hanem mondjuk a saját könyvtáradban van saját, de a lényeg hogy az X a nolisten tcp nélkül fusson
2009-06-29-17:44 #2190131Probaltad a teamviewer -t. Nem eppen egy ssh, de mukodik.
http://www.teamviewer.com/index.aspxBar kellhozza wine.
2009-06-29-17:44 #2190132Probaltad a teamviewer -t. Nem eppen egy ssh, de mukodik.
http://www.teamviewer.com/index.aspxBar kellhozza wine.
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz