LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Startx via SSH questions. (https://www.linuxquestions.org/questions/linux-newbie-8/startx-via-ssh-questions-792751/)

memysabu 03-02-2010 08:25 PM

Startx via SSH questions.
 
Hey guys I have Slax installed on a server. Ive started applications like Konqueror from SSH on my windows PC before. I was using exceed as an Xserver. I installed Fedora 12 on my PC now want to go all Linux but I cant start applications remotely. It says "cannot connect to X server".

Ive tried disabling my firewall just to make sure it wasnt a port issue and still no go. How on Fedora 12 am I supposed to host an Xserver to launch apps remotely? Thanks for any advice ;)

acid_kewpie 03-03-2010 02:48 AM

OK, enable X Forwarding on SSH with a -Y and then all X launches should get implicitly pulled back through the SSH session. Of course you'll need (want...) to be running the ssh client as the same user as the SSH server owner on the local machine,

sunnydrake 03-03-2010 02:57 AM

you don't need to just use ssh +X to connect

memysabu 03-03-2010 09:49 AM

Quote:

Originally Posted by acid_kewpie (Post 3883636)
OK, enable X Forwarding on SSH with a -Y and then all X launches should get implicitly pulled back through the SSH session. Of course you'll need (want...) to be running the ssh client as the same user as the SSH server owner on the local machine,

Well I am running terminal as root and then ssh to root on the remote box. I was doing this on a windows machine before although it was intermittent. X11 forwarding is enabled on the remote machine. I dont understand -Y I did an ssh -Y 192.168.xxx.xxx to the machine still no luck.

Right now Im just trying to launch konqueror. I did a:

DISPLAY=192.168.1.xxx:0 (host machine)
export DISPLAY

to tell it where to put it. Doesnt work. As I said firewall is setup correctly. I have never done this using a local linux machine though its always been a windows system ssh to a linux. I figured the xserver support was built in.

acid_kewpie 03-03-2010 10:39 AM

OK, well if it is Konqueror that you're really trying to load, PLEASE don't do that as root. No need to at all. Certainly you don't want to be root on the local end, and that'll be the problem, as even though root is root, it doesn't have permissions by default to use the local X server running as a normal user. you coul drun "xhost +" on the x server to open access, but it shouldn't become your normal way of making it work.

If using SSH forwarding there is no need to export your display, as it is all tunnelled automagically through SSH, so your session environment should already have something like "DISPLAY=localhost:15" on it, which will cause the client to come back to the local machine, and connect exactly as if it were running locally from the perspective of the X server.

memysabu 03-03-2010 10:57 AM

Slax only supports a root login by default. I am not surfing the internet as root it is a test application to see if I can get it to work. I was launching guarddog over ssh as root on my windows machine before I changed to a linux machine. Btw Xhost + doesnt work. There is also no way for me to login to the remote machine as anything but root. Turning off access control didnt do it. Heck I cant even ssh 127.0.0.1 and launch a gnome session. This is extremely annoying I dont want an OS to think for me I can do that myself. Linux not looking so good today being all locked down. This is why I stopped using windows.

memysabu 03-03-2010 11:15 AM

I did add a user in Slax and dropped down to a normal user account on my local end. Exact same problem so it has nothing to do with account rights.

memysabu 03-03-2010 11:30 AM

WOW this is like the dumbest thing ever if Linux cant see itself lol! Both firewalls disabled. User accounts being used vs root. Both on local network. Xserver does not work period! This is a brand new Fedora 12 install and its the Fedora machine thats having the issue. When I had windows installed on the exact same machine it worked. This makes like no sense.

memysabu 03-03-2010 11:51 AM

I fixed it. Its ridiculous that its this hard to set up something so simple. I can only assume that people writing linux explanations(man pages) dont really want people to figure out how to use the system because it was not this friggen hard.

theNbomr 03-03-2010 12:09 PM

You should be able to do something like:
Code:

ssh -X mortal@the.remote.host
Doing so should set $DISPLAY as described by acid_kewpie, and your local X server should be none the wiser about whose traffic it is serving.

--- rod.

schneidz 03-03-2010 12:10 PM

^ um. what did you do to fix it. please share so that others can benefit from this thread.

acid_kewpie 03-03-2010 12:49 PM

I'm sure you were missing something very simple, when set up correctly, using -X or -Y with ssh, it'll work without any other configuration at all. Seeing as you were complaining about one machine not being able to "see" the other would show you don't understand the way ssh forwarding works, which is clearly an important stage here.

theNbomr 03-03-2010 01:10 PM

I see a lot of confusion arising out of the client/server relationship in the context of X. Most people naturally equate the server component with the remote host, which is the opposite of what is generally the case for users at an X-hosting workstation. I sense that some of this misunderstanding has crept into this thread.

--- rod.

memysabu 04-02-2010 09:22 AM

Was not -X that can be accomplished thru exporting the display. I was doing everything right the problem is Xservers for Windows do not function at all. Ive used Xceed and Xming with several distros of Linux and they do not work. Ive tried multiple machines, multiple networks they all run like trash or just dont work. I have a 100% Linux setup now and it all works perfectly I do a ssh -X soandso@whateveraddy now instead of using the export display command but either works. Anyhow I stopped posting because I thought I had it working, Xceed works more often than Xming. I was wrong so ended up just running Linux for everything and now everything works fine.

I stand by my statement the Man Pages were written by people who didnt want you to figure out Linux. When I want to know something I google it. People learn from examples not gibberish.

theNbomr 04-02-2010 02:52 PM

Interesting. I used Exceed for years, and only had problems with selected applications that wanted to use certain X visuals (whatever those are). Getting an X server that didn't crash with these particular applications (Lab Windows on Solaris, especially) was the biggest motivator I had for moving to Linux. That and KDE's & Gnome's multiple desktop capability.
Who said man pages were ever intended to be tutorial in nature?
--- rod.


All times are GMT -5. The time now is 12:21 PM.