Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
See in vnc my kde environment and not a new session[solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Fri Aug 07, 2009 10:24 am    Post subject: See in vnc my kde environment and not a new session[solved] Reply with quote

i fixed my vnc after a post here and i can login from putty and tightvnc in my home gentoo machine.the thing is that i want to see my desktop as it is.let me explain, the problem is that when I connect i open a new session, and when I close that session, all tasks running closes too.Is there a way to login to the session running in my server and keep it open when I close down tightvnc client, and then reconnect to that session on another time?is it possible to login and see exactly what i see in my pc(menus,taskbar etc)?
For now i just have fluxbox in my xstartup like that
Quote:

xrdb $HOME/ .Xrecourses
xsetroot -solid gray
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec fluxbox

and do my job but is there a way to make it right?

thanks in advance

EDIT:if i just add this line in my xstartup
Quote:

exec /etc/init.d/xdm restart

i get a gray screen as when we where first installing beryl if you remember.though maybe because of compiz running in my home server and killed it but the same thing happens

thanks


Last edited by zoe on Mon Aug 10, 2009 6:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Fri Aug 07, 2009 1:47 pm    Post subject: Reply with quote

x11vnc should allow you to connect to running sessions, alternatively you could use nxserver-freenx which itself uses x11vnc
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Sat Aug 08, 2009 10:22 am    Post subject: Reply with quote

Hello and thanks for the reply.The link you gave doesn't work,plz can yo explain how to configure x11vnc?i tried to emerge x11vnc and run

Quote:

x11vnc localhost:1 (as when i was executing vncviewer localhost:1)

but it doesn't work and gives me an error.
if i rn this command
Quote:

x11vnc -rfbauth ~/.vnc/passwd -display :1

i get this
Quote:

08/08/2009 13:29:46 passing arg to libvncserver: -rfbauth
08/08/2009 13:29:46 passing arg to libvncserver: /home/tux/.vnc/passwd
08/08/2009 13:29:46 x11vnc version: 0.9.6 lastmod: 2008-12-08
08/08/2009 13:29:46 Using X display :1
08/08/2009 13:29:46 rootwin: 0x25 reswin: 0xc00001 dpy: 0x8398000
08/08/2009 13:29:46
08/08/2009 13:29:46 ------------------ USEFUL INFORMATION ------------------
08/08/2009 13:29:46 Disabling XFIXES mode: display does not support it.
08/08/2009 13:29:46 Disabling X DAMAGE mode: display does not support it.
08/08/2009 13:29:46
08/08/2009 13:29:46 Wireframing: -wireframe mode is in effect for window moves.
08/08/2009 13:29:46 If this yields undesired behavior (poor response, painting
08/08/2009 13:29:46 errors, etc) it may be disabled:
08/08/2009 13:29:46 - use '-nowf' to disable wireframing completely.
08/08/2009 13:29:46 - use '-nowcr' to disable the Copy Rectangle after the
08/08/2009 13:29:46 moved window is released in the new position.
08/08/2009 13:29:46 Also see the -help entry for tuning parameters.
08/08/2009 13:29:46 You can press 3 Alt_L's (Left "Alt" key) in a row to
08/08/2009 13:29:46 repaint the screen, also see the -fixscreen option for
08/08/2009 13:29:46 periodic repaints.
08/08/2009 13:29:46 GrabServer control via XTEST.
Xlib: extension "RECORD" missing on display ":1.0".
08/08/2009 13:29:46
08/08/2009 13:29:46 The RECORD X extension was not found on the display.
08/08/2009 13:29:46 If your system has disabled it by default, you can
08/08/2009 13:29:46 enable it to get a nice x11vnc performance speedup
08/08/2009 13:29:46 for scrolling by putting this into the "Module" section
08/08/2009 13:29:46 of /etc/X11/xorg.conf or /etc/X11/XF86Config:
08/08/2009 13:29:46
08/08/2009 13:29:46 Section "Module"
08/08/2009 13:29:46 ...
08/08/2009 13:29:46 Load "record"
08/08/2009 13:29:46 ...
08/08/2009 13:29:46 EndSection
08/08/2009 13:29:46
08/08/2009 13:29:46 warning: XKEYBOARD extension not present.
08/08/2009 13:29:46 warning: disabling bell. XKEYBOARD ext. not present.
08/08/2009 13:29:46 X FBPM extension not supported.
Xlib: extension "DPMS" missing on display ":1.0".
08/08/2009 13:29:46 X display is not capable of DPMS.
08/08/2009 13:29:46 --------------------------------------------------------
08/08/2009 13:29:46
08/08/2009 13:29:46 Default visual ID: 0x22
08/08/2009 13:29:46 Read initial data from X display into framebuffer.
08/08/2009 13:29:46 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
08/08/2009 13:29:46
08/08/2009 13:29:46 X display :1.0 is 32bpp depth=24 true color
08/08/2009 13:29:46
08/08/2009 13:29:46 Autoprobing TCP port
08/08/2009 13:29:46 Autoprobing selected port 5900
08/08/2009 13:29:46 Xinerama: Library libXinerama is not available to determine
08/08/2009 13:29:46 Xinerama: the head geometries, consider using -blackout
08/08/2009 13:29:46 Xinerama: if the screen is non-rectangular.
08/08/2009 13:29:46 fb read rate: 203 MB/sec
08/08/2009 13:29:46 fast read: reset wait ms to: 10
08/08/2009 13:29:46 fast read: reset defer ms to: 10
08/08/2009 13:29:46 screen setup finished.
08/08/2009 13:29:46

The VNC desktop is: tux:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval. It should work with any VNC viewer. Try it by running:

x11vnc -ncache 10 ...

more info: http://www.karlrunge.com/x11vnc/#faq-client-caching

and stops there waiting for some reason.plz if you have time give more info

thanks again
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Sat Aug 08, 2009 1:08 pm    Post subject: Reply with quote

I use nxserver and have not had to set up x11vnc independently, but the link at the end of your output(http://www.karlrunge.com/x11vnc/#faq-client-caching) appears to give some good pointers
Back to top
View user's profile Send private message
tuber
Apprentice
Apprentice


Joined: 12 Nov 2004
Posts: 267

PostPosted: Sun Aug 09, 2009 3:36 am    Post subject: Reply with quote

If you build vnc with the server flag, you can add the following line to the Module section:
Code:
Load "vnc"
You can then connect.
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Mon Aug 10, 2009 5:24 am    Post subject: Reply with quote

hi,about the module that you proposed to add.i did it and thanks but i don't have a problem to connect,the problem is that when i connect i get a new seesion because i run fluxbox.i would like to know how to see my own session?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Aug 10, 2009 10:26 am    Post subject: Reply with quote

zoe wrote:
hi,about the module that you proposed to add.i did it and thanks but i don't have a problem to connect,the problem is that when i connect i get a new seesion because i run fluxbox.i would like to know how to see my own session?

If you connect to screen :0 (port 5900), you get your existing session. This is independent of what you actually run in session :0, doesn't matter if fluxbox or something else.
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Mon Aug 10, 2009 10:50 am    Post subject: Reply with quote

Let me make myself clear.i connect through screen :1(5901) and i only have a terminal to work with.i want to connect and see my taskbar,my windows and the apps allready running.but from the start i only get a terminal,i understand that it doesn't matter for fluxbox or icewm but i don't get what i want.should i do it with x11vnc as baaann proposed or i should just configure what i have??
i hope you understand what i'm talking about

thanks everyone
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Mon Aug 10, 2009 2:22 pm    Post subject: Reply with quote

The answer has been given several times. You need to stop freaking out.

On the remote machine, where your X desktop is running, you run x11vnc with no args. It will default to using the first X session, which would be your current desktop. It stops because it is waiting for you to connect on your local machine. On the local machine, you connect like usual with VNC, but make sure that you connect to :0, not :1 (unless your remote machine has the desktop on :1 or whatever). When you disconnect, x11vnc will exit, but your desktop will remain running. There is an option to make x11vnc continue to run (read the man page).
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Mon Aug 10, 2009 4:37 pm    Post subject: Reply with quote

I understand very well what you want zoe. And you've been given two choices on how to achieve it.

One is x11vnc. The other is net-misc/vnc. Which comes with a module you load via xorg.conf. Then you can connect to :0 (port 5900).
Back to top
View user's profile Send private message
zoe
Guru
Guru


Joined: 10 Jun 2007
Posts: 324
Location: Greece

PostPosted: Mon Aug 10, 2009 4:39 pm    Post subject: Reply with quote

sorry, i was just in a hurry when i was writing the post and wanted to be sure that because of my bad english,everyone could understand what the problem was,i wasn't freaked out,i use gentoo a lot of time to lose my patience so easilly :wink: .thanks for the time, i'll try to understand what to advise me to do and post back the results

thanks again

EDIT:thanks people,now i understand what you mean both of you,i'm so studpid it was in front of me all the time.but i was confused with screen :0 all i had to do is connect with <ipaddress>:0 instead of :1 in order to achive this

if anyone need more info plz post here,this is supposed to be solved

many thanks for time and patience again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum