Presencevnc
(→PresenceVNC) |
(→Setting upp SSH:) |
||
Line 2: | Line 2: | ||
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). | 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). | ||
- | + | = Setting upp 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 |
Revision as of 08:26, 6 October 2010
Contents |
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 adress field. You also need to allow port 22 on your firewall (i used Firestarter for that).
Setting upp 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
Step 2 (logging in)
Open the X-terminal on you n900 and write:
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.
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
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 se and use your home computer ;)