Notices


Reply
Thread Tools
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#1
I've tried this command:
Code:
vncviewer -listen
And doesn't return any response and no error.

Does not allow vncviewer command line parameters?
 
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#2
Originally Posted by narcisgarcia View Post
I've tried this command:
Code:
vncviewer -listen
And doesn't return any response and no error.

Does not allow vncviewer command line parameters?
What do you want to do ? Send the N900 desktop to a PC ?

Then you can use x11vnc on the N900 and xtightvncviewer on a Linux Computer.
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#3
I want to give remote support with my N900, receiving other desktops when other people run:
Code:
x11vnc -connect myphone
 
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#4
Originally Posted by narcisgarcia View Post
I want to give remote support with my N900, receiving other desktops when other people run:
Code:
x11vnc -connect myphone
http://vncviewer.garage.maemo.org/
The VNC viewer provides a client that can connect to a VNC server running on a different system and display its desktop.
I haven't found the listen option on the N900 when I type:
vncviewer --help

Therefore, I think that vncviewer has no server mode.

But I don't see a difference which computer starts the connection (client/server role). It's only important that the computers can connect.
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#5
If you want to see the N900's screen on a computer:

x11vnc on the N900, vncviewer on the computer

If you want to see the computer's screen on the N900:

vncviewer or rdesktop on the N900, x11vnc or RDP on the Computer

If you want to see the N900's screen on the computer and the computers screen on the N900..

x11vnc and vncviewer on the N900.. x11vnc and vncviewer on the computer....

Which scenario are you trying to do?
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#6
I want to see any PC's screen on the N900, but also when computer is behind a firewall and not my N900.
This is the main utility of the reverse VNC (server behind any firewall).

Replacing N900 by a notebook, I actually run this in my notebook (which has a public IP or open firewall):
Code:
vncviewer -listen
And people who wants to receive remote support runs this in the PC:
Code:
x11vnc -connect [myaddress]
The x11vnc and vncviewer ported to Maemo/ARM are modified from the standard packages, and don't seem to support command line parameters.

Last edited by narcisgarcia; 2010-08-12 at 05:55. Reason: Complete
 
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#7
Originally Posted by narcisgarcia View Post
I want to see any PC's screen on the N900, but also when computer is behind a firewall and not my N900.
It seems that you have a problem with the firewall and not VNC.

You can define a firewall rule for that on your PC.

Another option is to tunnel VNC port 5900 through ssh.

That means the PC connects to your N900 via ssh:

Code:
ssh -R 5900:localhost:5900 user@n900
Then the PC starts x11vnc on port 5900.

On your N900 you connect vncviewer to 127.0.0.1 (port 5900).

If you want to read more, check:
http://magazine.redhat.com/2007/11/0...rt-forwarding/


By the way, it might not be a good idea, that your N900 does not have a firewall.
 

The Following User Says Thank You to TorstenT For This Useful Post:
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#8
(with open firewall I meant open port in the firewall)

Ok, the VNC connection with the SSH tunnel works for me (I still miss command line way to call vncviewer with destination)
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#9
Oops!
I cannot give my user&password to other people to stablish SSH tunnel! This would be a big security hole!
 
Posts: 45 | Thanked: 45 times | Joined on Jul 2010 @ Berlin
#10
Originally Posted by narcisgarcia View Post
Oops!
I cannot give my user&password to other people to stablish SSH tunnel! This would be a big security hole!
You've heard about user management, right ?

1. Add a new user on your N900 as root.

Code:
sudo gainroot
adduser friend
2. Change the login shell for your friend to false on your N900:

Code:
vi /etc/passwd
friend:xxxxxxxxxxxxx:1000:1000:,,,:/home/friend:/bin/false
3. Use the port forwarding with -N (don't log in) on the PC.

Code:
ssh -R 5900:localhost:5900 -N friend@n900
4. Change your friends password on your N900 when finished (if you think that your friend is no friend).

Code:
passwd friend
Additional use a firewall on your N900. Here is an example configuration where 192.168.1.1 is the remote computer connected over wlan0:

Code:
iptables -F INPUT
iptables -A INPUT -i wlan0 -p tcp --source 192.168.1.1 --dport 22 -j ACCEPT
iptables -A INPUT -i wlan0 -p tcp --syn -j DROP
iptables -A INPUT -i wlan0 -p tcp --source 192.168.1.1 -j ACCEPT

iptables -A INPUT -i wlan0 -p icmp -j ACCEPT
iptables -A INPUT -i wlan0 -p udp --source 192.168.1.1 -j ACCEPT

iptables -A INPUT -i usb0 -p all -j ACCEPT
iptables -A INPUT -i lo -p all -j ACCEPT

iptables -A INPUT -j DROP
Read the manual of iptables for more information.

Start the firewall automatically on the N900:

Code:
vi /etc/event.d/iptables
# iptables at start
start on startup
exec /path/to/iptablesConfig
 

The Following 2 Users Say Thank You to TorstenT For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 06:07.