Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I've got SSH access, and I have Xming installed, along with Xming fonts. I've configured putty to forward x11 and told it to place the desktop at localhost:0, according to the instructions here.

However, after I log in, and 'startx', I get ... Nothing. Or rather, it runs a bunch of messages which appear to say everything's working, but I get a cursor in my console window which acts like it's in a wait state. And that's it.

What am I missing? Do I need to open something to see the desktop?

I want to forward my desktop to my work PC, so that I can play with RasPi at lunch, without physically plugging in the hardware. Please help.

EDIT:

Screenshot of what happens with Xming running, and I SSH in, and 'startx'.

SSH with Xming response

EDIT 2:

The answer below is saying 'startx' is unnecessary, because it starts the RasPi x server, and I am using the Xming server on windows. In that case, how to I get to the desktop/GUI on Xming from windows. Because, even with Xming running, and SSH enabled, I don't get anything but a normal console prompt. Maybe I'm doing it wrong. What I want is my full, normal RasPi GUI running in a window on my remote windows PC. I do not want to use VNC. I am forwarding over the internet. How do I get there?

share|improve this question
2  
Have you read through the answers to this question raspberrypi.stackexchange.com/questions/1329/…? –  Steve Robillard Aug 5 '12 at 3:49
1  
@SteveRobillard: Yes. That's where I found the link to the instructable I was following above. I've also done my own googling, but as best as I can tell, I'm following the directions, and nothing appears to happen. I'm asking if there is another step I might be missing? Like do I need to open a browser and go to localhost:0, or something else that might be considered too obvious to need mentioning? I'll post screenshots of what happens when I startx via SSH using Putty shortly. –  zenbike Aug 5 '12 at 4:49
1  
I also wanted to run graphical session from my Raspberry to my Windows Computer. And when i've seen your message saying that startx means start X server, i understood that i needed to start a X program... So let's start the the ... x-session-manager ! that way, you have the graphical session on your distant computer. thanks, you gave my the way ! –  user1297 Aug 27 '12 at 19:08
add comment

2 Answers

up vote 14 down vote accepted

If you start Xming on your Windows computer, then you already have an X server running. You don't have to start the X server of your Raspberry Pi using startx. Your X applications will run on the Raspberry Pi but the application will draw onto Xming X server.

The documentation you linked, states that you have to start X server on Windows, and it does not mention that you have to start X server on Linux. In the last sentence of the documentation

You should now be able to run X applications from the host on your local desktop

"X applications" refers not to X server ( which should be started by startx ) but applications like xclock, xeyes, ...

One special X application is lxsession which will start the standard session manager of LXDE ( at least on my Raspbian ). Starting this application on the console will give you the "full GUI" you are looking for.

lxsession

Personally I don't find it useful to start lxsession, starting the X applications on the console is much easier for me.

share|improve this answer
1  
Ok. This I can understand, I think. You're saying startx is unnecessary, because it starts the RasPi x server, and I am using the Xming server on windows. In that case, how to I get to the desktop/GUI on Xming from windows. Because, even with Xming running, and SSH enabled, I don't get anything but a normal console prompt. You're saying that I would only run the actual application in xming, not the full GUI. Maybe I'm doing it wrong. What I want is my full, normal RasPi GUI running in a window on my remote windows PC. I do not want to use VNC. I am forwarding over the internet. –  zenbike Aug 5 '12 at 6:55
    
Updated the answer. –  asalamon74 Aug 5 '12 at 7:48
    
Thanks. I'll test from work today. –  zenbike Aug 6 '12 at 3:08
1  
…And thats the reason your guide recommend running single apps over ssh at a time... –  XAleXOwnZX Aug 28 '12 at 7:09
1  
@asalamon74 Thanks! Wow! this is just kickass. I don't have to deal with with the keyboard and the mouse connected to the usb with an insanely short wire. I used to sit infront of the tv with the above setup. NOW? I just ssh and run the gui like a boss!! –  Dheeraj Bhaskar Mar 10 '13 at 21:42
show 1 more comment

The page below has detailed steps about xming, xshell, putty, tightvnc to display linux gui on windows desktop (x11 forwarding when behind firewall). Very helpful. http://www.doxer.org/learn-linux/use-xming-xshell-putty-tightvnc-to-display-linux-gui-on-windows-desktop-x11-forwarding-when-behind-firewall/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.