Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th September 2012, 01:18 AM
clariceoshea Offline
Registered User
 
Join Date: Jun 2010
Posts: 214
linuxfirefox
xwindows on this computer running on a distant computer

I know about telnet x.x.x.x that gives a command line as if seated at a distant computer
Reply With Quote
  #2  
Old 27th September 2012, 09:14 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: xwindows on this computer running on a distant computer

You can use ssh to run apps
Code:
ssh -X user@x.x.x.x
or

Code:
ssh -Y user@x.x.x.x
Reply With Quote
  #3  
Old 27th September 2012, 09:15 PM
clariceoshea Offline
Registered User
 
Join Date: Jun 2010
Posts: 214
linuxfirefox
Re: xwindows on this computer running on a distant computer

I want xwindows not a command line. telnet gives me that
Reply With Quote
  #4  
Old 27th September 2012, 09:23 PM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: xwindows on this computer running on a distant computer

Quote:
Originally Posted by clariceoshea View Post
I want xwindows not a command line. telnet gives me that
You have just shown your ignorance.
Reply With Quote
  #5  
Old 27th September 2012, 09:29 PM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,627
linuxfedorafirefox
Re: xwindows on this computer running on a distant computer

Quote:
Originally Posted by clariceoshea View Post
I want xwindows not a command line. telnet gives me that
Did you mean remote desktop connection? Why not use something like rdesktop?
Reply With Quote
  #6  
Old 27th September 2012, 10:22 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: xwindows on this computer running on a distant computer

The "ssh -X" and "ssh -Y" options above *DO* allow remote X11 apps to use your current desktop Xserver.
That may or may not be what you want.
--
Rdesktop(and I don't use it) claims to support Windows RDP protocol, so it's irrelevant to X11.
--
vnc (various implementations) was a useful way to create a local win for a remote desktop, but seems to have fallen into disuse. It doesn't transport X at all.
--
There are several packages that create another Xserver inside a local desktop window. Then you can just arrange for remote Xclients (apps) to use that window and perhaps start a new session on the remote system. Xnest is one xserver-in-a-window - and it still exists, but it's pretty broken. The newer replacement is Xephyr. Xspice is another but it's primarily aimed at virtualization.
--


Here is a 'sshnest' script I use.
getdisp finds an unused X DISPLAY name (like :1 ,:2 ...)

So the script creates an Xephyr window and then connects it via ssh -Y (assumes no passwd) to the far system, and then starts a brand new session there. It assumes startxfce4, startkde or /usr/bin/gnome-session exists and work (last definition applies) , but I haven''t used gnome-session in quite a while.


cat sshnest
Code:
#!/bin/bash

# NOTES:
# - on client(Xserver) system
#  yum install xorg-x11-server-Xnest xorg-x11-server-Xephyr
# - on server
#  yum install kdebase-workspac
# -
# Xnest $DISP & DISPLAY=$DISP ssh -Y $USER$HOST -f /usr/bin/startkde
# startx -- /usr/bin/Xnest -name "$HOSTNAME Default" $DISP
# startx /usr/bin/startkde      -- /usr/bin/Xnest -name "$HOSTNAME XFCE" $DISP
# startx /usr/bin/xfce4-session -- /usr/bin/Xnest -name "$HOSTNAME KDE" $DISP

SCREENMODE="800x600"
SCREENMODE="1024x768"

STARTSESSION=/usr/bin/gnome-session
STARTSESSION=/usr/bin/startkde
STARTSESSION=/usr/bin/startxfce4

usage()
{
    echo "Usage: $0 user@host" >&2
    exit 2
}

# find first free local display number & name
getdisp()
{
    DISP=""
    for((n=0;;n++))
    do
        [ ! -e /tmp/.X${n}-lock  -o  ! -d /proc/$(egrep -o [0-9]+ /tmp/.X${n}-lock 2>/dev/null) ] && break
    done
    DISP=":$n"
}

# ---------------------------------------------

# get user@host arg
[ $# -ne 1 ] && usage 
USERHOST=$1

getdisp
Xephyr  -screen $SCREENMODE -title "$USERHOST $DISP" $DISP 2>/dev/null & \
DISPLAY=$DISP ssh -Y $USERHOST -f $STARTSESSION 2>/dev/null

sshnest stevea@hypoxylon
gets me the image shown
Attached Thumbnails
Click image for larger version

Name:	XephyrSession.jpg
Views:	20
Size:	203.9 KB
ID:	23820  
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 27th September 2012 at 10:41 PM.
Reply With Quote
  #7  
Old 27th September 2012, 10:35 PM
clariceoshea Offline
Registered User
 
Join Date: Jun 2010
Posts: 214
linuxfirefox
Re: xwindows on this computer running on a distant computer

no! I don't want to connect to MS .

here is the answer thank you very much

http://csci.csusb.edu/dick/samples/r...ows%20Computer
Reply With Quote
  #8  
Old 27th September 2012, 10:38 PM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,627
linuxfedorafirefox
Re: xwindows on this computer running on a distant computer

There are different ways to gain access to GUI of a remote system. What I mentioned is one, what stevea mentioned is another. I guess what one uses is a matter of preference

Glad you found a solution you like. Cheers!
Reply With Quote
  #9  
Old 28th September 2012, 05:47 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfirefox
Re: xwindows on this computer running on a distant computer

Quote:
Originally Posted by clariceoshea View Post
no! I don't want to connect to MS .

here is the answer thank you very much

http://csci.csusb.edu/dick/samples/r...ows%20Computer
Maybe you'd better TRY that solution.

That approach will not work on Fedora nor most modern Linux w/o a lot more configuration work b/c by default the xserver is LOCAL only and will not accept a NETWORK TCP connection, even if the firewall is down. This is a security matter.

Yes the command 'xterm -e ssh ...' will create a new local xterm with an ssh connection to the farsys, BUT no matter what you do with the xterm you cannot start 'xeyes' (in the example) and have it display locally.

You'd should re-read what yellowman wrote.
start a terminal (anyway you like) and in it run "ssh -Y me@farsys"
THEN, without any further configuration you will be able to run 'xeyes' in that terminal and it will appear locally.

This only works b/c the "ssh -Y" creates a definition for "DISPLAY" on the far system and any Xclient started there will go though the ssh connection and the near-side ssh will split off that traffic and send it through a local socket (not a network socket) to your Xserver (screen).
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 28th September 2012 at 05:51 AM.
Reply With Quote
Reply

Tags
distant, running, xwindows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My computer fans are running like crazy even when I am doing nothing. uncholowapo Hardware & Laptops 13 4th October 2008 03:47 PM
will fedora 9 work if i intalled it my computer but put the drive in another computer tootal2 Installation and Live Media 3 14th September 2008 03:07 PM
How to configure NetWork between a Linux computer and Windows Computer ? ZaraCattle Using Fedora 4 1st March 2007 01:16 PM
computer slows down when an application is running perkinsonline Using Fedora 3 15th September 2005 02:28 AM
Computer running hot with Linux 92b16vx Programming & Packaging 17 20th August 2005 02:47 PM


Current GMT-time: 12:31 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat