maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   VNC Server or a like? (https://talk.maemo.org/showthread.php?t=48113)

lynxus 2010-03-23 16:00

VNC Server or a like?
 
Hi,
Ive been googling and searching here but all i can find is info relating to the 810 ?

Is there a VNC server for the N900 ? So i can view the screen of the N900 remotely?



Thanks
G

Rob1n 2010-03-23 16:07

Re: VNC Server or a like?
 
Quote:

Originally Posted by lynxus (Post 578930)
Hi,
Ive been googling and searching here but all i can find is info relating to the 810 ?

Is there a VNC server for the N900 ? So i can view the screen of the N900 remotely?

There's x11vnc in extras-devel

lynxus 2010-03-23 16:20

Re: VNC Server or a like?
 
TY, works perfectly :)

atikin 2010-03-24 10:13

Re: VNC Server or a like?
 
Mine does not work. When launching x11vnc it just starts and quits (I guess, because it gives no message just the desktop reappears). When trying to reach the n900 from my mac with Remote Desktop application it is said that n900 is vnc capable but no luck to connect...
What can be wrong here? In the meantime all other PC connectivity parts seem to work good

cddiede 2010-03-24 10:18

Re: VNC Server or a like?
 
Quote:

Originally Posted by atikin (Post 580011)
Mine does not work. When launching x11vnc it just starts and quits (I guess, because it gives no message just the desktop reappears). When trying to reach the n900 from my mac with Remote Desktop application it is said that n900 is vnc capable but no luck to connect...
What can be wrong here? In the meantime all other PC connectivity parts seem to work good

You should really start this from the command line. The GUI launcher is just awful.

Try this command as a normal user in the terminal:

nohup x11vnc -forever&

After this you should be able to close the terminal and the vnc server will keep running. To verify that the server is up, just open a new terminal session and type this:

ps -ef | grep vnc

And then you'll see your x11vnc session, if not, that means it exited or crashed, so you can just re-start it with the first command.

An event.d script will start it automatically when you start the phone, I can post the event.d script I use for VNC if you're interested.

The only problem I've found is that the vnc server likes to exit/crash when you change network connections or go offline.

atikin 2010-03-25 17:17

Re: VNC Server or a like?
 
Quote:

Originally Posted by cddiede (Post 580018)
You should really start this from the command line. The GUI launcher is just awful...

Thank you very much!

The command output seemed fine to me:)
Now it is turn of Apple Remote Desktop which still doesn't connect, just turns the wheel and finally denies to observe (or control) my N900. This should be an ARD issue.
Strange is that it sees N900's Ethernet ID (which is MAC address I guess) as 00:00:00:00:00:00 which is not the case :) )

bblue 2010-03-25 19:27

Re: VNC Server or a like?
 
Quote:

Originally Posted by cddiede (Post 580018)

An event.d script will start it automatically when you start the phone, I can post the event.d script I use for VNC if you're interested.

please post your event.d script, thanks

cddiede 2010-03-26 18:29

Re: VNC Server or a like?
 
Quote:

Originally Posted by bblue (Post 582314)
please post your event.d script, thanks

As root, create a file called vnc_start (it can be named anything, actually) and have it contain this:



start on started hildon-desktop

console output

script
/usr/bin/nohup /usr/bin/x11vnc -forever&
end script




Then save it with at least 755 permission on your N900's /etc/event.d/ directory.

When you reboot, the x11vnc will start up upon hildon-desktop startup.

Beware, the vnc server will exit/crash everytime the N900's IP address changes (when you change network connections), and when you go off line.

SubCore 2010-03-26 19:02

Re: VNC Server or a like?
 
having a vnc server running -forever without any security is very risky IMO.

at the very least you should protect it with a simple password:
run
Code:

x11vnc -storepasswd
as root once, this will prompt you for a password and save the file as /root/.vnc/passwd

to use this passwd file, change the command in your event.d:
Code:

/usr/bin/nohup /usr/bin/x11vnc -forever -usepw &

rotoflex 2012-01-27 16:12

Re: VNC Server or a like?
 
Has anyone been able to see a cursor when using Ubuntu's VNC client?

UltraVNC on an Windows box shows a dot where the cursor would be on the N900 screen, but apparently the version of Vinagre on Ubuntu only shows the cursor on the server's screen - which is no cursor on a touch screen device.

rotoflex 2012-01-28 09:48

Re: VNC Server or a like?
 
Solution: do not use the default Ubuntu VNC/Remote Desktiop client Vinagre. Install & use xtightvncviewer.

miroslav_s 2012-01-28 11:30

Re: VNC Server or a like?
 
Working great. But I was wondering one thing. How to turn OFF x11vnc? I mean after some time for example I want to turn off x11vnc what do I type in X terminal?
Best regards and thanks
M

michaaa62 2012-01-28 12:04

Re: VNC Server or a like?
 
Close the connection from the PC and x11vnc will shut down on the N900.

don_falcone 2012-01-28 12:38

Re: VNC Server or a like?
 
I think "we" should really get behind X forwarding, or rdesktop / Xming and get rid of VNC. Seriously, VNC maybe as cross-platform solution has it's nice, but on NATIVE Linux to Linux!? I can access X displays under Windows with Xming and similar servers!

rotoflex 2012-01-28 15:41

Re: VNC Server or a like?
 
Quote:

Originally Posted by michaaa62 (Post 1156936)
Close the connection from the PC and x11vnc will shut down on the N900.

I thought that was a bug the first couple of times I used it, but then realized how clever it was to be one-use-only. If you want to reconnect via VNC again, you must start X11VNC again. Since X11VNC doesn't ask for a password, this is a sort of brute force security feature as well as power conservation feature.

While fooling around with VNC viewer clients for Ubuntu, I found that Remmina starts out OK, then the remote cursor disappears. xtightvncviewer is the only one so far that has consistent performance.

I also would like to see X-forwarding fixed. It would open a lot of possibilities for use of the N900 driving in-car information systems, etc.

fffffred 2012-02-08 00:36

Re: VNC Server or a like?
 
Quote:

Originally Posted by rotoflex (Post 1156595)
Has anyone been able to see a cursor when using Ubuntu's VNC client?

UltraVNC on an Windows box shows a dot where the cursor would be on the N900 screen, but apparently the version of Vinagre on Ubuntu only shows the cursor on the server's screen - which is no cursor on a touch screen device.

Get the server to show a cursor... ie

Code:

x11vnc -cursor X
See: http://talk.maemo.org/showthread.php?t=44105&page=2

fffffred 2012-02-08 01:45

Re: VNC Server or a like?
 
Further to this, if you want to run the icon from the apps menu without having to use XTerminal, you can edit line 6 of:

/usr/share/applications/hildon/x11vnc.desktop

to read

Code:

Exec=/usr/bin/x11vnc -cursor X
You will require root. I used Vi editor to edit the x11vnc.desktop file.


All times are GMT. The time now is 10:37.

vBulletin® Version 3.8.8