Presencevnc

(Step 1 (setting up))
(mention project home page)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
-
=== Step 1 (setting up) ===
+
This is a HOWTO for setting up SSH tunneling between PresenceVNC and x11vnc server. For more general usage instructions, see the [http://presencevnc.garage.maemo.org/ PresenceVNC Home Page].
-
Install an SSH-server and x11vnc on your home computer and an SSH-client on your n900. If you have a router you need to port forward port 22. Normaly you can login on the router using your browser. Just write the adress "192.168.1.1" in the adress field. You also need to allow port 22 on your firewall (i used Firestarter for that).
+
== Step 1 (setting up) ==
-
<br />
+
-
<br />
+
-
==== Setting upp SSH: ====
+
Install an SSH-server and x11vnc on your home computer and an SSH-client on your [[Nokia N900|N900]]. If you have a router you need to port forward port 22. Normaly you can login on the router using your browser. Just write the adress "192.168.1.1" in the address field. You also need to allow port 22 on your firewall (I used Firestarter for that).
 +
 
 +
=== Setting up SSH ===
To make a SSH connection you first need to make an ssh-key. So on your home computer write:
To make a SSH connection you first need to make an ssh-key. So on your home computer write:
  ssh-keygen -t dsa
  ssh-keygen -t dsa
-
Put the files in "/home/<user>/.ssh/". Change "<user>" to the one on your home computer. One will be named "id_dsa" and the other "id_dsa.pub". You will probably have to make the folder "/home/user/.ssh/" on your n900.
+
Put the files in "<code>/home/<user>/.ssh/</code>". Change "<code><user></code>" to the one on your home computer. One will be named "<code>id_dsa</code>" and the other "id_dsa.pub". You will probably have to make the folder "<code>/home/user/.ssh/</code>" on your N900.
  mkdir /home/user/.ssh/  
  mkdir /home/user/.ssh/  
-
Then just move id_dsa.pub there (i used Dropn900).
+
Then just move <code>id_dsa.pub</code> there (I used Dropn900).
-
You could test your connection from your n900 with
+
You could test your connection from your N900 with
  ssh user@ip-number
  ssh user@ip-number
 +
* On my Ubuntu machine I installed OpenSSH-server and x11vnc. Opened the port 22 on my firewall and router.
 +
* On my N900 I installed OpenSSH-client and Presencevnc
-
* On my Ubuntu machine i installed OpenSSH-server and x11vnc. Opened the port 22 on my firewall and router.
+
== Step 2 (logging in) ==
-
* On my n900 i installed OpenSSH-client and Presencevnc
+
-
<br />
+
-
<br />
+
-
=== Step 2 (logging in) ===
+
Open the X-terminal on your N900 and write:
-
Open the X-terminal on you n900 and write:
+
  ssh -C -L 5900:localhost:5900 user@ip-number
  ssh -C -L 5900:localhost:5900 user@ip-number
-
Write you home computers password when it is asking. It is not necessary to use "-C" but i recommend it. It will compress the stream and make it go smother on a 3g connection. The "user" is the user and "ip-number" the ip-number of your home computer. You could use a dynamic ip-number provider.. like http://www.no-ip.com.
+
Write your home computers password when it is asking. It is not necessary to use "-C" but I recommend it. It will compress the stream and make it go smoother on a 3G connection. The "user" is the user and "ip-number" the ip-number of your home computer. You could use a dynamic ip-number provider.. like http://www.no-ip.com.
-
Now you have connected your home computers port 5900 to the n900 port 5900. This is also known as "tunneling". And are currently logged in on your home computer.
+
Now you have connected your home computers port 5900 to the N900 port 5900. This is also known as "tunneling". And are currently logged in on your home computer.
Now you need to start the vnc-server:
Now you need to start the vnc-server:
  x11vnc -ncache 10 -display :0
  x11vnc -ncache 10 -display :0
-
<br />
 
-
<br />
 
-
=== Step 3 ===
+
== Step 3 ==
-
Now when you have finished the above it is not much left.. Open Presencevnc on your n900 and write:
+
 
 +
Now when you have finished the above it is not much left.. Open Presencevnc on your N900 and write:
  localhost:0
  localhost:0
-
Done! You can now se and use your home computer ;)
+
Done! You can now see and use your home computer ;)
 +
 
 +
[[Category:Fremantle]]
 +
[[Category:Connectivity]]

Latest revision as of 20:48, 2 March 2011

This is a HOWTO for setting up SSH tunneling between PresenceVNC and x11vnc server. For more general usage instructions, see the PresenceVNC Home Page.

Contents

[edit] Step 1 (setting up)

Install an SSH-server and x11vnc on your home computer and an SSH-client on your N900. If you have a router you need to port forward port 22. Normaly you can login on the router using your browser. Just write the adress "192.168.1.1" in the address field. You also need to allow port 22 on your firewall (I used Firestarter for that).

[edit] Setting up SSH

To make a SSH connection you first need to make an ssh-key. So on your home computer write:

ssh-keygen -t dsa

Put the files in "/home/<user>/.ssh/". Change "<user>" to the one on your home computer. One will be named "id_dsa" and the other "id_dsa.pub". You will probably have to make the folder "/home/user/.ssh/" on your N900.

mkdir /home/user/.ssh/ 

Then just move id_dsa.pub there (I used Dropn900).

You could test your connection from your N900 with

ssh user@ip-number
  • On my Ubuntu machine I installed OpenSSH-server and x11vnc. Opened the port 22 on my firewall and router.
  • On my N900 I installed OpenSSH-client and Presencevnc

[edit] Step 2 (logging in)

Open the X-terminal on your N900 and write:

ssh -C -L 5900:localhost:5900 user@ip-number

Write your home computers password when it is asking. It is not necessary to use "-C" but I recommend it. It will compress the stream and make it go smoother on a 3G connection. The "user" is the user and "ip-number" the ip-number of your home computer. You could use a dynamic ip-number provider.. like http://www.no-ip.com.

Now you have connected your home computers port 5900 to the N900 port 5900. This is also known as "tunneling". And are currently logged in on your home computer.

Now you need to start the vnc-server:

x11vnc -ncache 10 -display :0

[edit] Step 3

Now when you have finished the above it is not much left.. Open Presencevnc on your N900 and write:

localhost:0

Done! You can now see and use your home computer ;)