maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Diablo: VNC Server / remote Desktop access (https://talk.maemo.org/showthread.php?t=23327)

benny1967 2008-09-02 12:28

Diablo: VNC Server / remote Desktop access
 
I remember having used VNC for recording screencasts with my old 770. Now, with N800 and Diablo, I see the VNCviewer the appl. manager, but no VNC server.

I'm aware of X11vnc, but I'm also a little scared of it because of the red pill stuff (which I promised never to use again). Is there any other stable, working, tested VNC-server that can easily be installed on Diablo? If not: I'm using a GNU/Linux system on my desktop, too, so maybe there are other means of getting the whole N800-desktop displayed there and interact with it via keyboard and mouse. (I never, for example, succeeded in plain X11 forwarding, which I think is due to Xomap limitations. But then again I could be wrong...)

(Note that I'm not looking for a way to run an application on my desktop and view/control it on the N800; I want it the other way round and I want the whole screen of the N800 to appear as a window on my desktop.)

Benson 2008-09-02 12:53

Re: Diablo: VNC Server / remote Desktop access
 
Then don't use red-pill; use dpkg -i.

X forwarding should work, but it'll be a hassle to get a full Hildon environment running in an 800x480 Xnest/Xephyr...

qwerty12 2008-09-02 13:10

Re: Diablo: VNC Server / remote Desktop access
 
Xomap is started using -nolisten tcp btw.

benny1967 2008-09-02 18:43

Re: Diablo: VNC Server / remote Desktop access
 
Thanks for your answers. So it seems there's currently no way to get this done without any hassle... :(

Who knows, new packages do appear in "extras" every now and then...... I'll have to wait.

qole 2008-09-03 02:35

Re: Diablo: VNC Server / remote Desktop access
 
Yeah, X-forwarding doesn't work in normal OS2008 environment.

I know that there's a VNC server somewhere, though... Brontide uses it to do screencasting recordings, doesn't he?

This guy says the VNC server does work, if you bite the bullet and install it.

qwerty12 2008-09-03 07:09

Re: Diablo: VNC Server / remote Desktop access
 
x11vnc works for me and xrdp, but I'm using a custom version compiled in the DIABLO_SDK. I'd share but there is some init script quirks I'd like to fix.

benny1967 2008-09-03 07:38

Re: Diablo: VNC Server / remote Desktop access
 
May I add once again that I think it's a shame the tablets never got plain, simple X-forwarding right. I'm not talking about "ssh -X", but about typing "export DISPLAY=10.0.0.143:0.0" right in the N800's terminal and the starting whatever application you want so it gets displayed at 10.0.0.143. If at least this would work... but no. :(

As for the rest:
quole, thanks for the link, I had it before and actually it was why I started this thread at all. It really bugs me to know that in principle there is x11vnc out there, but has to be installed using all these quirks. After years of software development for the Maemo platform, I no longer consider these packages "software". "Software" is what's in "extras", installs with one click and gets updated automatically once a new version is available. Period. (OK, maybe if I desperately need an application, I'd be willing to add another repository besides "extras", but only if it has gathered some reputation and there's a very good reason why the authors don't move to 'extras'. But plain *debs that even require red pill mode? No.) I don't support any lower standards by accepting them.

(Sorry, I'm in a terrible mood today... Not your fault.)

qwerty12 2008-09-03 07:44

Re: Diablo: VNC Server / remote Desktop access
 
http://qwerty12.maemobox.org/screeni...rding-test.png

Ok, got forwarding X application to work with some serious quirks (maybe Qole could help, I know he did brilliantly with kbrowser.).

1. Edit /etc/init.d/x-server and remove the "-nolisten tcp" from the args line. (Be careful, messing up this file can cause the tablet not to boot)
2. Reboot.
3. Ensure X11Forwarding is turned on in /etc/ssh/sshd_config.
4. Install xauth. http://qwerty12.maemobox.org/xauth_1.0.2-2_armel.deb
5. ssh -X root@urtablet'sip
6. Run a program.

Bugs:
Theming, menus is messed up.

Crap, heh, just realised you don't want this :D. I'll leave it here for those that do :)

How to forward as user:
ssh -X root@tabletip (this is so that the .Xauthority gets created)
cp /root/.Xauthority /home/user
su - user
chown user:users /home/user/.Xauthority
export DISPLAY=localhost:10.0
export XAUTHORITY=/home/user/.Xauthority

Here's xbase-clients for those that need it out of curiosity.
http://qwerty12.maemobox.org/xbase-c...s1-2_armel.deb

I removed stuff that would not compile (needed gl libs etc). I would not recommend installing this but instead using dpkg -x and moving binaries that you need and that do not already exist.

benny1967 2008-09-03 07:52

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qwerty12 (Post 220361)
Crap, heh, just realised you don't want this :D. I'll leave it here for those that do :)

:D

I herewith grant you the right to leave it here even though it wasn't what I wanted. ;)

After all: it's a start and contains new information. Who knows what I'll want once my mood changed back to normal....


EDIT: I remember someone saying that with this setup, you can press "F4" on the desktop to activate the application menu. Never tried it.

mikkov 2008-09-03 07:57

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by benny1967 (Post 220359)
As for the rest:
quole, thanks for the link, I had it before and actually it was why I started this thread at all. It really bugs me to know that in principle there is x11vnc out there, but has to be installed using all these quirks. After years of software development for the Maemo platform, I no longer consider these packages "software". "Software" is what's in "extras", installs with one click and gets updated automatically once a new version is available. Period.

Amen to that. "How do I install softwareX" threads are so ******ed.

qwerty12 2008-09-03 08:07

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by benny1967 (Post 220363)
EDIT: I remember someone saying that with this setup, you can press "F4" on the desktop to activate the application menu. Never tried it.

Yep, that worked, thanks. I've figured out how to run apps as user with the same quirks, I'll edit my post. I'll try and find a solution to your problem as well.

st5150 2008-09-03 08:28

Re: Diablo: VNC Server / remote Desktop access
 
This deb works fine for me in diablo http://mike.saunby.googlepages.com/x....3-1_armel.deb didn't need any red pill modes or dpkg. Works just like it did under chinook.

qwerty12 2008-09-03 09:11

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by benny1967 (Post 220359)
May I add once again that I think it's a shame the tablets never got plain, simple X-forwarding right. I'm not talking about "ssh -X", but about typing "export DISPLAY=10.0.0.143:0.0" right in the N800's terminal and the starting whatever application you want so it gets displayed at 10.0.0.143. If at least this would work... but no. :(

Figured it out! (Note, this is insecure, hence using ssh is a better idea but if you want to do it this way :))

Note, I did this on Ubuntu which uses gdm , I don't know what distro you use.

1. Go to System > Administration > Login Window (I use gdm)
2. Click the Security tab.
3. Untick "Deny TCP connections to Xserver" (either way, you need to make sure X is started without -nolisten tcp)
4. Close it and restart the X-Server.
5. Now, open a terminal on the computer and type this:
sudo xhost +<N800's ip>
6. On the tablet, do this at the terminal:
$ DISPLAY="<computer's ip>:0.0" <name of application>

This still has the same visual problems as the ssh method though :/

I'll set up XDMCP now *grin*.

benny1967 2008-09-03 09:58

Re: Diablo: VNC Server / remote Desktop access
 
Need to try this; bad thing is it might be Friday before I'm home again... :(

Quote:

Originally Posted by qwerty12 (Post 220376)
I'll set up XDMCP now *grin*.


That's basically what I'd expect from a GNU/Linux based device: start the tablet, get GDM or something like this, each person who uses the tablet can have its own user, ...

... and of course be able to login from my desktop's display manager via XDMCP.

I'm sure Nokia will be adding this to the next minor update to OS2008. Right? ;)

qwerty12 2008-09-03 10:46

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by benny1967 (Post 220391)
Need to try this; bad thing is it might be Friday before I'm home again... :(




That's basically what I'd expect from a GNU/Linux based device: start the tablet, get GDM or something like this, each person who uses the tablet can have its own user, ...

... and of course be able to login from my desktop's display manager via XDMCP.

I'm sure Nokia will be adding this to the next minor update to OS2008. Right? ;)

Heh, I ain't touching XDMCP again. Nokia didn't disable it in the X-Server but when I enable -broadcast, it suddenly wants keys. I tried my best to make them but it isn't happening.

Thankfully, I dump my rootfs using mtd-utils so a full restore isn't far away now ;).

qole 2008-09-03 16:55

Re: Diablo: VNC Server / remote Desktop access
 
Yikes! I'm sorry to hear you'll be doing a restore, qwerty12.

By the way, It is really straightforward to get vanilla Linux X-Forwarding via Debian chroot, of course. Just shut down the maemo sshd and start the Debian sshd, and then start the window manager of your choice over the network...

Here's XFCE4, running on my tablet, displaying on my Windows laptop via Cygwin-X. It's quite the Frankenstein monster of window decorations.

http://farm3.static.flickr.com/2303/...395e02.jpg?v=0

qwerty12 2008-09-03 17:01

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qole (Post 220488)
Yikes! I'm sorry to hear you'll be doing a restore, qwerty12.

Heh, thank you, but it's no problems :). I made the backup in advance as I was playing with upstart as a replacement for init. But this is a *proper* backup , the tablet's equivalent of norton ghost you could say :). It's the entire contents of my / put into one jffs2 file. All I did was copy the rootfs.jffs2 file from my MMC card to the computer and run flasher -f -r rootfs.jffs2 and the tablet was instantly restored to back to the state it was previously in; in about 5 minutes.

qole 2008-09-03 17:10

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qwerty12 (Post 220490)
It's the entire contents of my / put into one jffs2 file. All I did was copy the rootfs.jffs2 file from my MMC card to the computer and run flasher -f -r rootfs.jffs2 and the tablet was instantly restored to back to the state it was previously in; in about 5 minutes.

Wow, that's very cool. Please post instructions on making the rootfs.jffs2 file, if you haven't already. Start a new thread, I'm hijacking this one enough already.

qwerty12 2008-09-03 17:12

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qole (Post 220492)
Wow, that's very cool. Please post instructions on making the rootfs.jffs2 file, if you haven't already. Start a new thread, I'm hijacking this one enough already.

Fanoush documents it here: http://www.internettablettalk.com/fo...8&postcount=31

I didn't have an mmc boot so I enabled rd mode(to stop dsme from doing a reboot) and done it using a custom initfs with statically compiled mtd-utils + g_serial :)

I didn't run sumtool after making my rootfs.jffs2 file, don't think that is needed.

As soon as I set up an MMC boot, I'll put it on the wiki (crediting fanoush of course)

davidonlaptop 2009-03-31 06:29

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qwerty12 (Post 220361)
http://qwerty12.maemobox.org/screeni...rding-test.png

Ok, got forwarding X application to work with some serious quirks (maybe Qole could help, I know he did brilliantly with kbrowser.).

1. Edit /etc/init.d/x-server and remove the "-nolisten tcp" from the args line. (Be careful, messing up this file can cause the tablet not to boot)
2. Reboot.
3. Ensure X11Forwarding is turned on in /etc/ssh/sshd_config.
4. Install xauth. http://qwerty12.maemobox.org/xauth_1.0.2-2_armel.deb
5. ssh -X root@urtablet'sip
6. Run a program.

Bugs:
Theming, menus is messed up.

Crap, heh, just realised you don't want this :D. I'll leave it here for those that do :)

How to forward as user:
ssh -X root@tabletip (this is so that the .Xauthority gets created)
cp /root/.Xauthority /home/user
su - user
chown user:users /home/user/.Xauthority
export DISPLAY=localhost:10.0
export XAUTHORITY=/home/user/.Xauthority

Here's xbase-clients for those that need it out of curiosity.
http://qwerty12.maemobox.org/xbase-c...s1-2_armel.deb

I removed stuff that would not compile (needed gl libs etc). I would not recommend installing this but instead using dpkg -x and moving binaries that you need and that do not already exist.

I am getting an error while trying to install Xauth:


Code:

Nokia-N800-43-7:~# dpkg -i xauth_1.0.2-2_armel.deb
(Reading database ... 18597 files and directories currently installed.)
Preparing to replace xauth 1:1.0.2-2 (using xauth_1.0.2-2_armel.deb) ...
Unpacking replacement xauth ...
dpkg: dependency problems prevent configuration of xauth:
 xauth depends on libxmuu1; however:
  Package libxmuu1 is not installed.
dpkg: error processing xauth (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xauth

I extracted xbase-clients_7.1.ds1-2_armel.deb but there is no file named after libxmuu1.

Any idea?

Code:

Nokia-N800-43-7:~# uname -a
Linux Nokia-N800-43-7 2.6.21-omap1 #2 Tue Oct 14 11:25:25 EEST 2008 armv6l unknown


LABAUDIO 2009-04-04 21:35

Re: Diablo: VNC Server / remote Desktop access
 
Hey i have a vnc server on my PC and a vnc client on my tablet...

i also use pyRdesktop too.

My pc desktop is 1024 x 768.

When iam connected on my pc via rdesktop...i got a full 1024 x 768 screen on my tablet (no scroll bar)

But when i connect on vnc, i got only 800 x 600 resolution (whit scroll bar for see all 1024x768 desktop)

My question is very simple...

How i can get my full 1024 x 768 via Vnc whitout scrollbar?

TX to share if you have a tips

jus2much314 2009-04-04 22:02

Re: Diablo: VNC Server / remote Desktop access
 
I have wanted to know also how to get fullscreen without the scroll bar, I have an N810 with vnc viewer and Ultra VNC for vista

LABAUDIO 2009-04-05 14:24

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by LABAUDIO (Post 277489)
Hey i have a vnc server on my PC and a vnc client on my tablet...

i also use pyRdesktop too.

My pc desktop is 1024 x 768.

When iam connected on my pc via rdesktop...i got a full 1024 x 768 screen on my tablet (no scroll bar)

But when i connect on vnc, i got only 800 x 600 resolution (whit scroll bar for see all 1024x768 desktop)

My question is very simple...

How i can get my full 1024 x 768 via Vnc whitout scrollbar?

TX to share if you have a tips

I cant believe nobody have no solution for this issue:confused:

maacruz 2009-04-05 18:57

Re: Diablo: VNC Server / remote Desktop access
 
The vncviewer client available for maemo doesn't have a zoomed view, so no, there is no way, save using the kde client as far as I know (search the forum how to use kde on the tablets)

LABAUDIO 2009-04-05 20:02

Re: Diablo: VNC Server / remote Desktop access
 
So we definitely need a re-built of VNC for accept any resolution...
Iam sure is a little piece od code cause pyRdesktop make all resolution.
But rdesktop logoof your local account :(

damn

TrueJournals 2009-04-05 23:31

Re: Diablo: VNC Server / remote Desktop access
 
I believe you're confusing some things here...

When you login to rdesktop with pyrdesktop, it will log you out if you're logged in on your computer. It will then adjust the display resolution to fit the tablet's screen. Since the tablet's screen is 800x480, your desktop will be resized to this resolution and displayed on your tablet. If you want to change this resolution, you will have to run rdesktop manually from the command line, because pyrdesktop doesn't currently support this. Also note that rdesktop will NOT display scrollbars without help from something else.

When logging into VNC, your current display, whatever resolution, is shown on your tablet, with scrollbars. In this case, you said your display is 1024x768, so that will be shown on your tablet, with horizontal and vertical scrollbars because this resolution is bigger than the tablet's. The maemo VNC client does NOT scale this down to fit on your screen. AFAIK, there are no VNC viewers for the tablets that do scale the screen.

You might want to look into LogMeIn. They have a browser plugin for the tablet, and I know their desktop viewer will scale the resolution to fit on your current screen. Note: I have not tried this...

So, long story short: VNC mirrors your display, whatever resolution, and will display scrollbars. pyrdesktop resizes your display to fit on the tablet's screen. LogMeIn might be able to do this, but I haven't tried.

qole 2009-04-05 23:36

Re: Diablo: VNC Server / remote Desktop access
 
I have not responded because I don't know why anyone would want to scale the tablet's view of the remote desktop.

maacruz 2009-04-05 23:43

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by TrueJournals (Post 277744)
AFAIK, there are no VNC viewers for the tablets that do scale the screen.

There is kde3 and kde4 for the tablets, and kde vnc client can resize.

LABAUDIO 2009-04-06 00:49

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by TrueJournals (Post 277744)
I believe you're confusing some things here...

When you login to rdesktop with pyrdesktop, it will log you out if you're logged in on your computer. It will then adjust the display resolution to fit the tablet's screen. Since the tablet's screen is 800x480, your desktop will be resized to this resolution and displayed on your tablet. If you want to change this resolution, you will have to run rdesktop manually from the command line, because pyrdesktop doesn't currently support this. Also note that rdesktop will NOT display scrollbars without help from something else.

When logging into VNC, your current display, whatever resolution, is shown on your tablet, with scrollbars. In this case, you said your display is 1024x768, so that will be shown on your tablet, with horizontal and vertical scrollbars because this resolution is bigger than the tablet's. The maemo VNC client does NOT scale this down to fit on your screen. AFAIK, there are no VNC viewers for the tablets that do scale the screen.

You might want to look into LogMeIn. They have a browser plugin for the tablet, and I know their desktop viewer will scale the resolution to fit on your current screen. Note: I have not tried this...

So, long story short: VNC mirrors your display, whatever resolution, and will display scrollbars. pyrdesktop resizes your display to fit on the tablet's screen. LogMeIn might be able to do this, but I haven't tried.


TX you

online web stuff idea is not log me in lol
kde is big just for that option...
vnc have a 800x600 mirror for my 1024x768 desktop : damn scrolling need always!

pyrdesktop finaly resize my 1024x600 in 800x600 on my tablet but still look 800x600
(very nice but i wanna full ratio)
Plus he log you off in local (Its not Py but windowzing issue i know)

any others idea how to get 1024x768 mirror on 1024x768 desktop (without local logout)
server or client can resizing 1024x768 to fit in 800x600 but keeping complete ratio
for finaly ''realy'' control and see the same things at both in the same times

Iam shure something can take 1024x768 and keep ratio before goin on 800x600 tablet...

:rolleyes:

maacruz 2009-04-06 08:36

Re: Diablo: VNC Server / remote Desktop access
 
Quote:

Originally Posted by qole (Post 277746)
I have not responded because I don't know why anyone would want to scale the tablet's view of the remote desktop.

Because constantly scrolling right-left-up-down to reach the parts of the window out of sight can be quite incovenient.


All times are GMT. The time now is 11:48.

vBulletin® Version 3.8.8