-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
mapping startx screen back to my pc laptop
I need to know how to do this mapping. I have a laptop with an extended screen to a side monitor. I would like to put a startx window and a putty window side by side on this extra screen. This is how i plan to run windows xp and Rpi wheezy concurrently without additional monitors, keyboards and mice.
Re: mapping startx screen back to my pc laptop
By "startx window" I guess you mean you want to have the RasPi's desktop in that window? If that's the case you may want to run a vnc server on the Pi or use X forwarding.
Re: mapping startx screen back to my pc laptop
I use MobaXTerm. Pretty nice piece of software.
Just start a SSH session , login , type
and there you go.
You seem to already have two Monitors ! (Laptop and external) Did you
try Synergy ?
ghans
Just start a SSH session , login , type
Code: Select all
lxsession&
You seem to already have two Monitors ! (Laptop and external) Did you
try Synergy ?
ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Re: mapping startx screen back to my pc laptop
Wow -- MobaXTerm is great! Already using it now. 

-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
I tried the tightvncserver route to no avail. ps showed the startx window started but the display did not switch to a window on my laptop.
I did a export DISPLAY=10.0.0.6:0
and then a
/usr/bin/tightvncserver &
( I also setup the vnc tight viewer, tried an Xming route, a Putty config adjustment ..... and others but we ain't there yet)
P.S. I have to fix this soon, since I'm using my wife's tv for a monitor until I get this fixed. ( So this could turn into another "Dateline" TV episode.....)
I did a export DISPLAY=10.0.0.6:0
and then a
/usr/bin/tightvncserver &
( I also setup the vnc tight viewer, tried an Xming route, a Putty config adjustment ..... and others but we ain't there yet)
P.S. I have to fix this soon, since I'm using my wife's tv for a monitor until I get this fixed. ( So this could turn into another "Dateline" TV episode.....)
Re: mapping startx screen back to my pc laptop
Here's an easy way to access the terminal and/or desktop using MobaXterm on Windows (which ghans mentioned above -- thanks @ ghans
):
0. You need to know the IP address of your Raspberry Pi. It's possible to determine the IP address without having a display connected to your Pi, but since you've mentioned you have a monitor this should do it. Enter this command at the terminal prompt on the Pi:
(if you really don't like typing, just ip a will work)
Assuming you're not using wireless on the Pi, you want the address listed under eth0 right after inet. It will look something like this:
inet 192.168.1.12/24
In this case, the ip address is: 192.168.1.12
This will vary depending on your router and how your network is set up.
This is all you need to do on the Raspberry Pi -- there's no need to install anything else or change anything. I double-checked this on a fresh image of Raspbian dated 2012-09-18.
1. Download MobaXterm personal/home edition from:
http://mobaxterm.mobatek.net/download-home-edition.html
2. Extract the MobaXterm_Personal_6.0.exe file from the zip archive. I would recommend saving it to it's own folder because it creates a MobaXterm.ini file in the same folder as the exe file. You can save it to your Desktop, a flash drive, or wherever you want. The MobaXterm.ini file stores your settings.
3. Launch MobaXterm by double-clicking the MobaXterm_Personal_6.0 icon (there's no install process -- it runs straight from the exe).
4. In the MobaXterm window, click on Sessions -> New session.
5. In the Session settings window, it will say "Choose a session type..." Click on SSH.
On the SSH settings tab that shows after you click on SSH, enter the IP address for your Raspberry Pi from Step 0 above. Click OK.
5a. On Windows 7, you'll most likely have a window pop up and say:
"Windows Firewall has blocked some features of this program"
Name: Xwin
You'll need to click on Allow access (for private networks).
I haven't tested this on Windows XP so I'm not sure if you have to manually open a port.
6. You should be back at the main MobaXterm window with a new tab showing the IP address of your Pi and [SSH]. Enter your username and password to login. The default on Raspbian is username pi, password raspberry
If all went well you should be at a command prompt: pi@raspberrypi ~$
7. To bring up the desktop, enter this command at the prompt:
That should be it. Note that by default this is multi-window, so whenever you launch a new program it runs in a new window. See the MobaXterm documentation for more info:
http://mobaxterm.mobatek.net/support/documentation.html

0. You need to know the IP address of your Raspberry Pi. It's possible to determine the IP address without having a display connected to your Pi, but since you've mentioned you have a monitor this should do it. Enter this command at the terminal prompt on the Pi:
Code: Select all
ip address show
Assuming you're not using wireless on the Pi, you want the address listed under eth0 right after inet. It will look something like this:
inet 192.168.1.12/24
In this case, the ip address is: 192.168.1.12
This will vary depending on your router and how your network is set up.
This is all you need to do on the Raspberry Pi -- there's no need to install anything else or change anything. I double-checked this on a fresh image of Raspbian dated 2012-09-18.
1. Download MobaXterm personal/home edition from:
http://mobaxterm.mobatek.net/download-home-edition.html
2. Extract the MobaXterm_Personal_6.0.exe file from the zip archive. I would recommend saving it to it's own folder because it creates a MobaXterm.ini file in the same folder as the exe file. You can save it to your Desktop, a flash drive, or wherever you want. The MobaXterm.ini file stores your settings.
3. Launch MobaXterm by double-clicking the MobaXterm_Personal_6.0 icon (there's no install process -- it runs straight from the exe).
4. In the MobaXterm window, click on Sessions -> New session.
5. In the Session settings window, it will say "Choose a session type..." Click on SSH.
On the SSH settings tab that shows after you click on SSH, enter the IP address for your Raspberry Pi from Step 0 above. Click OK.
5a. On Windows 7, you'll most likely have a window pop up and say:
"Windows Firewall has blocked some features of this program"
Name: Xwin
You'll need to click on Allow access (for private networks).
I haven't tested this on Windows XP so I'm not sure if you have to manually open a port.
6. You should be back at the main MobaXterm window with a new tab showing the IP address of your Pi and [SSH]. Enter your username and password to login. The default on Raspbian is username pi, password raspberry
If all went well you should be at a command prompt: pi@raspberrypi ~$
7. To bring up the desktop, enter this command at the prompt:
Code: Select all
lxsession&
http://mobaxterm.mobatek.net/support/documentation.html
Re: mapping startx screen back to my pc laptop
Just checked on using MobaXterm with Windows XP Pro (SP3) -- a window does pop up giving you the option to unblock XWin (mentioned in Step 5a above):
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
I got this:
Login: pi
X11 forwarding request failed on channel 0
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Type 'startx' to launch a graphical session
Last login: Sat Oct 20 15:29:44 2012 from 10.0.0.2
pi@raspberrypi ~ $ ps -al
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 R 1000 27249 27086 0 80 0 - 1014 - pts/1 00:00:00 ps
pi@raspberrypi ~ $
not sure why it failed.
Login: pi
X11 forwarding request failed on channel 0
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Type 'startx' to launch a graphical session
Last login: Sat Oct 20 15:29:44 2012 from 10.0.0.2
pi@raspberrypi ~ $ ps -al
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 R 1000 27249 27086 0 80 0 - 1014 - pts/1 00:00:00 ps
pi@raspberrypi ~ $
not sure why it failed.
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
I plugged in a monitor to the raspberry Pi card. The startx sessions were going back to the Rpi monitor and NOT going to my laptop ! X11 forwarding is on. the lxsession was not recognized.
When I used to do this many years ago under a program on my PC called mockingbird at one point I had to provide a PC IP:0.0 so the linux box knew how to map to the PC display. Is this no longer required?
When I used to do this many years ago under a program on my PC called mockingbird at one point I had to provide a PC IP:0.0 so the linux box knew how to map to the PC display. Is this no longer required?
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
BTW excellent instructions BILLB !!
Everything worked as you said except for a window showing up on my laptop with startx in it.
Everything worked as you said except for a window showing up on my laptop with startx in it.
Re: mapping startx screen back to my pc laptop
Hmm... I've tried it on several machines so far (two running Win7 and one XP Pro) and haven't seen that.
From the documentation:
EDIT: Ah, I see if I enter startx& on the terminal (from MobaXterm) the X session shows up on the monitor connected to the pi. If I enter lxsession& it brings up the desktop in a new window on my Windows machine. Still kinda new to this program so I'm not exactly sure what's going on. Where's ghans?
EDIT 2: Maybe it's because we're running different versions of Raspbian? I'm using the one dated 09-18-12. On login, mine shows:
From the documentation:
I tried this initially on my regular Raspbian install and then on a fresh, unmodified install (except for having done the first boot to raspi-config). Didn't have to configure or enable anything at all on the Pi.MobaXterm includes an X server so that it can display X11-based graphical programs.
By default, an X server is started at MobaXterm startup. Your DISPLAY environment variable is automatically set and it is written in your terminal startup message. When you use a remote computing client to connect to a Unix computer, you can export your DISPLAY to your local Windows desktop thanks to MobaXterm. When you use a SSH connection, if the remote server supports X11-Forwarding, your DISPLAY is automatically set and it will be sent through the SSH connection to your Windows desktop.
EDIT: Ah, I see if I enter startx& on the terminal (from MobaXterm) the X session shows up on the monitor connected to the pi. If I enter lxsession& it brings up the desktop in a new window on my Windows machine. Still kinda new to this program so I'm not exactly sure what's going on. Where's ghans?

EDIT 2: Maybe it's because we're running different versions of Raspbian? I'm using the one dated 09-18-12. On login, mine shows:
Code: Select all
Login: pi
pi@192.168.1.12's password:
Linux raspberrypi 3.2.27+ #160 PREEMPT Mon Sep 17 23:18:42 BST 2012 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Oct 22 20:56:07 2012 from 192.168.1.18
pi@raspberrypi ~ $
Re: mapping startx screen back to my pc laptop
What happens when you run leafpad or other X application like idle from the terminal in the MobaXterm window?
Mine launches leafpad (or whatever application) in a new window on my Windows machine.
Code: Select all
leafpad&
Re: mapping startx screen back to my pc laptop
Your other option is to use xrdp. Which I think will give you what you want.
I wrote up the instructions here:
http://www.raspberrypiblog.com/2012/10/ ... -from.html
I wrote up the instructions here:
http://www.raspberrypiblog.com/2012/10/ ... -from.html
www.raspberrypiblog.com
Re: mapping startx screen back to my pc laptop
Been meaning to try that as well, though I like the fact that (normally) using ModaXterm doesn't require you to install anything or change anything on the Pi. I'm running the latest Raspbian, though ... something seems to be set up differently on swampie777's system.
ModaXterm has some other nice features, too, like the graphical sftp browser you can use to drap-n-drop files to and from the Pi.
Already read your instructions earlier today -- will give that method a try this evening.
EDIT: I don't believe Remote Desktop Connection comes with Windows XP Home -- not sure if the OP has Home or Pro.
ModaXterm has some other nice features, too, like the graphical sftp browser you can use to drap-n-drop files to and from the Pi.
Already read your instructions earlier today -- will give that method a try this evening.

EDIT: I don't believe Remote Desktop Connection comes with Windows XP Home -- not sure if the OP has Home or Pro.
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
After playing with Xming, tightVNC, WinSCP, Putty, and MobaVterm, the startx screen still goes out the video plug and refuses to reside on my laptop.
Upon looking at the fine print I see this "X11 fowarding request failed on channel 0" error message.
Has anyone else run into this error? ( X11 forwarding IS checked in MobaXterm........
Thanks !!
Upon looking at the fine print I see this "X11 fowarding request failed on channel 0" error message.
Has anyone else run into this error? ( X11 forwarding IS checked in MobaXterm........
Thanks !!
Re: mapping startx screen back to my pc laptop
Which distro and version are you running? This information might make it easier to know what's going on.
I saw you had posted this above:
Which is quite a bit older than mine (am running the latest Raspbian)... from the date I'm guessing you have the original Raspbian release. Must be something configured differently - I'm just not sure what! 
I saw you had posted this above:
Code: Select all
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l

Re: mapping startx screen back to my pc laptop
Just wanted to say I tried MobaXTerm after reading about it here and its absolutely brilliant. It is so much better and faster than what I was using e.g. SSH + TightVNC. Instructions are perfect, thanks 

Re: mapping startx screen back to my pc laptop
Great -- I've posted about MobaXterm in a new topic so the instructions aren't buried in this one.
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
Now i get a message in the MobaXterm window:
X11 forwarding request failed on channel 0
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
and I get a blank screen titled " MobaXterm/X:0.0" which has no prompts and can only be exited.
Have you experienced this?
X11 forwarding request failed on channel 0
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
and I get a blank screen titled " MobaXterm/X:0.0" which has no prompts and can only be exited.
Have you experienced this?
Re: mapping startx screen back to my pc laptop
I haven't, but I'm using a more recent version of Raspbian.
Before going any further in trying to fix this, is it possible for you to download and use the latest image of Raspbian?
http://www.raspberrypi.org/downloads
From what I understand, there have been quite a few improvements since the version released back in July and this "just works."
In Googling the "X11 forwarding request failed" message I see several different possibilities. I'd start with looking at /etc/ssh/sshd_config, making sure X11forwarding is enabled. Here's how to do that from the terminal on the Pi:
Make sure the following lines match and are not commented out (no # at the beginning of the line):
Reference link: https://gist.github.com/1324845
Before going any further in trying to fix this, is it possible for you to download and use the latest image of Raspbian?
http://www.raspberrypi.org/downloads
From what I understand, there have been quite a few improvements since the version released back in July and this "just works."
In Googling the "X11 forwarding request failed" message I see several different possibilities. I'd start with looking at /etc/ssh/sshd_config, making sure X11forwarding is enabled. Here's how to do that from the terminal on the Pi:
Code: Select all
sudo nano -w /etc/ssh/sshd_config
Code: Select all
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
Additionally, when I type startx on the ssh screen i get:
pi@raspberrypi ~ $ startx
X.Org X Server 1.12.1.902 (1.12.2 RC 2)
Release Date: 2012-05-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x3 bcm2708.serial=0x55790e09 smsc95xx.macaddr=B8:27:EB:79:0E:09 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Build Date: 27 May 2012 02:13:12PM
xorg-server 2:1.12.1.902-1 (Cyril Brulebois <kibi@debian.org>)
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Nov 11 07:12:15 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
with the startx output back on the Rpi video output. I have never gotten past this point.
pi@raspberrypi ~ $ startx
X.Org X Server 1.12.1.902 (1.12.2 RC 2)
Release Date: 2012-05-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l
Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x3 bcm2708.serial=0x55790e09 smsc95xx.macaddr=B8:27:EB:79:0E:09 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
Build Date: 27 May 2012 02:13:12PM
xorg-server 2:1.12.1.902-1 (Cyril Brulebois <kibi@debian.org>)
Current version of pixman: 0.26.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Nov 11 07:12:15 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
with the startx output back on the Rpi video output. I have never gotten past this point.
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
I got a little out of phase with your posts. I'm downloading the latest wheezy now..... Thanks.
BTW, the X11UseLocalhost yes was missing, but after a fix and a re-boot, there was no change.
BTW, the X11UseLocalhost yes was missing, but after a fix and a re-boot, there was no change.
-
- Posts: 13
- Joined: Sat Oct 20, 2012 12:41 am
Re: mapping startx screen back to my pc laptop
When you download a new image using Win32DiskImager, does it wipe out everything or just update the operating system?
Re: mapping startx screen back to my pc laptop
Yes, writing a new image to your card will wipe out everything on the card -- not just update.
Re: mapping startx screen back to my pc laptop
@swampie777
When I got the "X11 forwarding request failed" error I was stumped for a while too - nothing in the configuration would fix this and I could not get any X11 forwarding over ssh. I fixed it by doing a "sudo apt-get dist-upgrade". Initially after first booting the raspi I had done an update/upgrade cycle, which may have 'broken' the X11 forwarding - I didn't try ssh before I updated. Then tonight I noticed after doing another update/upgrade that several packages were not updated - turns out they need to be forced via a dist-upgrade or install (not sure of the difference, I'm new to the debian world). Suffice to say that now it works just fine.
Matt
When I got the "X11 forwarding request failed" error I was stumped for a while too - nothing in the configuration would fix this and I could not get any X11 forwarding over ssh. I fixed it by doing a "sudo apt-get dist-upgrade". Initially after first booting the raspi I had done an update/upgrade cycle, which may have 'broken' the X11 forwarding - I didn't try ssh before I updated. Then tonight I noticed after doing another update/upgrade that several packages were not updated - turns out they need to be forced via a dist-upgrade or install (not sure of the difference, I'm new to the debian world). Suffice to say that now it works just fine.
Matt