Editing Documentation/Maemo PC Connectivity Tutorial/Remote Access

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 +
 +
= Remote Access =
 +
 +
= Remote desktop =
 +
Maemo PC Connectivity provides tools to access the desktop of a remote machine from a local machine over the network. That is, you can have the desktop GUI of your Maemo device displayed on your host PC and vice-versa. For that, you need to install Maemo PC Connectivity on the Maemo device and Host PC Connectivity on the host PC (Linux, Windows and Mac OS X). This chapter describes how to use these remote desktop tools. For simplicity, it is assumed that you already have a USB network working between the Maemo device and the host PC.
Maemo PC Connectivity provides tools to access the desktop of a remote machine from a local machine over the network. That is, you can have the desktop GUI of your Maemo device displayed on your host PC and vice-versa. For that, you need to install Maemo PC Connectivity on the Maemo device and Host PC Connectivity on the host PC (Linux, Windows and Mac OS X). This chapter describes how to use these remote desktop tools. For simplicity, it is assumed that you already have a USB network working between the Maemo device and the host PC.
Line 14: Line 19:
* Click on the '''Advanced''' button.
* Click on the '''Advanced''' button.
* Select the '''Tool Manager''' tab.
* Select the '''Tool Manager''' tab.
-
* Now you can enable and disable the X11VNC server, change the UDP port and set the loop mode, figure [[#figure-pc_connectivity_mpc_maemo_nm_x11vnc|5.3]].
+
* Now you can enable and disable the X11VNC server, change the UDP port and set the loop mode, figure [[#fig:pc_connectivity_mpc_maemo_nm_x11vnc|5.3]].
* Click on the '''Apply''' button.
* Click on the '''Apply''' button.
-
<div id="figure-pc_connectivity_mpc_maemo_nm_x11vnc">
+
 
-
[[Image:mpc_maemo_nm_x11vnc.png|frame|center|alt=Screenshot of X11VNC|Figure 5.3: PC Connectivity Manager - X11VNC tool]]
+
 
-
</div>
+
{| summary="PC Connectivity Manager - X11VNC tool"
 +
|+ align="BOTTOM" |'''Figure 5.3:''' PC Connectivity Manager - X11VNC tool
 +
|-
 +
|
 +
[[Image:mpc_maemo_nm_x11vnc.png|Image mpc_maemo_nm_x11vnc]]
 +
|}
 +
 
 +
 
As the X11VNC server is not launched automatically when you turn the Maemo device on, you need to start it manually. You can use the PC Connectivity Manager wizard or start X11VNC as any third-party application from the installed application list.
As the X11VNC server is not launched automatically when you turn the Maemo device on, you need to start it manually. You can use the PC Connectivity Manager wizard or start X11VNC as any third-party application from the installed application list.
Line 39: Line 51:
You can access your Maemo device through the TightVNC Viewer application by giving the Maemo device IP address.
You can access your Maemo device through the TightVNC Viewer application by giving the Maemo device IP address.
-
* Run '''Start - Programs - TightVNC - TigthtVNC Viewer''', figure [[#figure-pc_connectivity_mpc_win_vnc_ip|5.4]].
+
* Run '''Start - Programs - TightVNC - TigthtVNC Viewer''', figure [[#fig:pc_connectivity_mpc_win_vnc_ip|5.4]].
* Type the IP address of your Maemo device and press the '''Connect''' button.
* Type the IP address of your Maemo device and press the '''Connect''' button.
-
<div id="figure-pc_connectivity_mpc_win_vnc_ip">
 
-
[[Image:mpc_win_vnc_ip.png|frame|center|alt=Screenshot of TightVNC connection dialog|Figure 5.4: TightVNC connection dialog]]
 
-
</div>
 
-
Now you should see the desktop of your Maemo device on the host PC screen, figure [[#figure-pc_connectivity_mpc_win_vnc_desktop|5.5]].
 
-
<div id="figure-pc_connectivity_mpc_win_vnc_desktop">
+
{| summary="TightVNC connection dialog"
-
[[Image:mpc_win_vnc_desktop.png|frame|center|alt-Screenshot of TightVNC remote desktop|Figure 5.5: TightVNC remote desktop on Windows]]
+
|+ align="BOTTOM" |'''Figure 5.4:''' TightVNC connection dialog
-
</div>
+
|-
 +
|
 +
[[Image:mpc_win_vnc_ip.png|Image mpc_win_vnc_ip]]
 +
|}
 +
 
 +
 
 +
 
 +
Now you should see the desktop of your Maemo device on the host PC screen, figure [[#fig:pc_connectivity_mpc_win_vnc_desktop|5.5]].
 +
 
 +
 
 +
 
 +
{| summary="TightVNC remote desktop on Windows"
 +
|+ align="BOTTOM" |'''Figure 5.5:''' TightVNC remote desktop on Windows
 +
|-
 +
|
 +
[[Image:mpc_win_vnc_desktop.png|Image mpc_win_vnc_desktop]]
 +
|}
 +
 
 +
 
=== Configuring X11VNC for Mac OS X ===
=== Configuring X11VNC for Mac OS X ===
Line 68: Line 94:
  $ java VncViewer HOST 192.168.2.15 PORT 5900
  $ java VncViewer HOST 192.168.2.15 PORT 5900
-
Now, you should see the desktop of your Maemo device on the host PC screen, figure [[#figure-pc_connectivity_mpc_mac_vnc_desktop|5.6]].
+
Now, you should see the desktop of your Maemo device on the host PC screen, figure [[#fig:pc_connectivity_mpc_mac_vnc_desktop|5.6]].
 +
 
 +
 
 +
 
 +
{| summary="TightVNC remote desktop on Mac OS X"
 +
|+ align="BOTTOM" |'''Figure 5.6:''' TightVNC remote desktop on Mac OS X
 +
|-
 +
|
 +
[[Image:mpc_mac_vnc_desktop.png|Image mpc_mac_vnc_desktop]]
 +
|}
 +
 
-
<div id="figure-pc_connectivity_mpc_mac_vnc_desktop">
 
-
[[Image:mpc_mac_vnc_desktop.png|frame|center|alt=Screenshot of TightVNC on Mac OS X|Figure 5.6: TightVNC remote desktop on Mac OS X]]
 
-
</div>
 
=== Troubleshooting X11VNC ===
=== Troubleshooting X11VNC ===
Line 78: Line 111:
The current X11VNC server (0.9.3-maemo4) available for Maemo Diablo devices may crash if a key is pressed on the host PC keyboard and there is no mapping for that key on the Maemo device. A workaround is to manually add missing key mappings as described below.
The current X11VNC server (0.9.3-maemo4) available for Maemo Diablo devices may crash if a key is pressed on the host PC keyboard and there is no mapping for that key on the Maemo device. A workaround is to manually add missing key mappings as described below.
-
You should install the <code>xev</code> application to the host PC to trace the key codes, which crash the Maemo device.
+
You should install the <span><font face="monospace">xev</font></span> application to the host PC to trace the key codes, which crash the Maemo device.
-
Here is how to install <code>xev</code> to the Linux host PC.
+
Here is how to install <span><font face="monospace">xev</font></span> to the Linux host PC.
  $ sudo apt-get install x11-utils
  $ sudo apt-get install x11-utils
-
Execute the <code>xev</code> application on the host PC.
+
Execute the <span><font face="monospace">xev</font></span> application on the host PC.
  $ xev
  $ xev
-
Type the key on the host PC that crashes the Maemo device. You get something like this on <code>xev</code> output.
+
Type the key on the host PC that crashes the Maemo device. You get something like this on <span><font face="monospace">xev</font></span> output.
-
<pre>
+
KeyPress event, serial 31, synthetic NO, window 0x2000001,
-
KeyPress event, serial 31, synthetic NO, window 0x2000001,
+
root 0x3f, subw 0x0, time 2488134890, (-257,171), root:(294,445),
-
root 0x3f, subw 0x0, time 2488134890, (-257,171), root:(294,445),
+
state 0x10, keycode 48 (keysym 0xfe51, dead_acute), same_screen YES,
-
state 0x10, keycode 48 (keysym 0xfe51, dead_acute), same_screen YES,
+
XLookupString gives 2 bytes: (c2 b4) "'"
-
XLookupString gives 2 bytes: (c2 b4) "'"
+
XmbLookupString gives 0 bytes:
-
XmbLookupString gives 0 bytes:
+
XFilterEvent returns: True
-
XFilterEvent returns: True
+
-
</pre>
+
-
Get the key code name. In this example, it is <code>>dead_acute</code>. On the Maemo Diablo device, map this key to '''None''' in the <code>/usr/share/applications/hildon/x11vnc.desktop</code> file. Add the key mapping for '''dead_acute-None''' as described below.
+
Get the key code name. In this example, it is <span><font face="monospace">dead_acute</font></span>. On the Maemo Diablo device, map this key to '''None''' in the <span><font face="monospace">/usr/share/applications/hildon/x11vnc.desktop</font></span> file. Add the key mapping for '''dead_acute-None''' as described below.
-
  Exec=/usr/bin/x11vnc -display :0 -nowf -noxdamage -noscr -remap dead_acute-None,<key_name_1>-None,<key_name_N>-None
+
  Exec=/usr/bin/x11vnc -display :0 -nowf -noxdamage -noscr -remap dead_acute-None,&lt;key_name_1&gt;-None,&lt;key_name_N&gt;-None
On your Maemo Diablo device, restart X11VNC server and check if the problem got fixed.
On your Maemo Diablo device, restart X11VNC server and check if the problem got fixed.
Line 116: Line 147:
* Click '''Start''', point to '''Settings''', click '''Control Panel''', and then double-click the '''System''' icon.
* Click '''Start''', point to '''Settings''', click '''Control Panel''', and then double-click the '''System''' icon.
-
* On the '''Remote''' tab, select the '''Allow users to connect remotely to this computer''' check-box, figure [[#figure-pc_connectivity_mpc_win_rdesktop|5.7]].
+
* On the '''Remote''' tab, select the '''Allow users to connect remotely to this computer''' check-box, figure [[#fig:pc_connectivity_mpc_win_rdesktop|5.7]].
* Ensure that you have the proper permissions to connect to your host PC remotely. For that, click the '''Select Remote Users...''' button to give access to your user account.
* Ensure that you have the proper permissions to connect to your host PC remotely. For that, click the '''Select Remote Users...''' button to give access to your user account.
* Click the '''OK''' button.
* Click the '''OK''' button.
* Leave your host PC running and connected to the network with Internet access.
* Leave your host PC running and connected to the network with Internet access.
-
<div id="figure-pc_connectivity_mpc_win_rdesktop">
+
 
-
[[Image:mpc_win_rdesktop.png|frame|center|alt=Screenshot of Windows Remote Access configration|Figure 5.7: Windows Remote Access configuration]]
+
 
-
</div>
+
{| summary="Windows Remote Access configuration"
 +
|+ align="BOTTOM" |'''Figure 5.7:''' Windows Remote Access configuration
 +
|-
 +
|
 +
[[Image:mpc_win_rdesktop.png|Image mpc_win_rdesktop]]
 +
|}
 +
 
 +
 
If you are running Windows XP Service Pack 2 and you enable Remote Desktop, Windows Firewall is automatically configured to allow Remote Desktop connections to your host PC. However, Remote Desktop does not work if you have Windows Firewall configured to allow no exceptions. To allow exceptions in Windows Firewall, open '''Security Center''' from the '''Control Panel''', click '''Windows Firewall''' and clear the check-box next to '''Don't allow exceptions'''.
If you are running Windows XP Service Pack 2 and you enable Remote Desktop, Windows Firewall is automatically configured to allow Remote Desktop connections to your host PC. However, Remote Desktop does not work if you have Windows Firewall configured to allow no exceptions. To allow exceptions in Windows Firewall, open '''Security Center''' from the '''Control Panel''', click '''Windows Firewall''' and clear the check-box next to '''Don't allow exceptions'''.
Line 133: Line 171:
Open '''Utilities - X Terminal''' and execute Rdesktop application.
Open '''Utilities - X Terminal''' and execute Rdesktop application.
-
<pre>
+
$ rdesktop-cli -u &lt;windows_user&gt; -p &lt;windows_password&gt; &lt;windows_ip_address&gt;
-
$ rdesktop-cli -u <windows_user> -p <windows_password> <windows_ip_address>
+
-
</pre>
+
You must pass your user name and password to access the given Windows host PC.
You must pass your user name and password to access the given Windows host PC.
Line 149: Line 185:
On Linux and Mac OS X host PCs:
On Linux and Mac OS X host PCs:
-
<pre>
+
$ Xephyr :3 -ac -dpi 96 -screen 800x480x16 -host-cursor &amp;
-
$ Xephyr :3 -ac -dpi 96 -screen 800x480x16 -host-cursor &
+
$ ssh -l &lt;maemo_device_user&gt; -R 6002:&lt;host_pc_ip&gt;:6003 &lt;maemo_device_ip&gt;
-
$ ssh -l <maemo_device_user> -R 6002:<host_pc_ip>:6003 <maemo_device_ip>
+
$ export DISPLAY=:2
-
$ export DISPLAY=:2
+
$ /usr/lib/sapwood/sapwood-server &amp;
-
$ /usr/lib/sapwood/sapwood-server &
+
$ &lt;run_application&gt;
-
$ <run_application>
+
-
</pre>
+
You should follow these steps to display the GUI of your Linux host PC on your Maemo device. These instructions work only with Linux host PCs.
You should follow these steps to display the GUI of your Linux host PC on your Maemo device. These instructions work only with Linux host PCs.
Line 161: Line 195:
On a Maemo device:
On a Maemo device:
-
<pre>
+
$ ssh -l &lt;host_pc_user&gt; -R 6000:&lt;maemo_device_ip&gt;:6000 -X &lt;host_pc_ip&gt;
-
$ ssh -l <host_pc_user> -R 6000:<maemo_device_ip>:6000 -X <host_pc_ip>
+
$ &lt;run_application&gt;
-
$ <run_application>
+
-
</pre>
+
-
 
+
-
[[Category:Documentation]]
+

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)