LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   realvnc viewer works in browser but not w/ Viewer (https://www.linuxquestions.org/questions/linux-software-2/realvnc-viewer-works-in-browser-but-not-w-viewer-545613/)

gtjr92 04-12-2007 09:19 PM

realvnc viewer works in browser but not w/ Viewer
 
I am trying to use vnc server on my yellowdog linux ps3.
I started vncserver on the linux ps3 box disabled the firewall, (I have a hardware firewall)
then tried to remote to it with the vncviewer from an XP pc and the viewer acts like it is connecting then the connection dialog goes away but in my task manager it shows the vnc software still running.

However if I try to remote the the ps3 through the browser via realvnc it works fine.

I have tried 2 different pc's to remote from and I get the same exact problem.

Any ideas?
Thanks

{BBI}Nexus{BBI} 04-13-2007 01:07 AM

Have you set which display to use on the linux box? i.e. 5901, 5902 etc

gtjr92 04-13-2007 07:32 AM

Quote:

Have you set which display to use on the linux box? i.e. 5901, 5902 etc
Yes When i connect from the browser i put the ipaddress and the port like IP:5802
and i works when i do it from vncviewer it just closes

{BBI}Nexus{BBI} 04-13-2007 07:50 PM

Quote:

Originally Posted by gtjr92
Yes When i connect from the browser i put the ipaddress and the port like IP:5802
and i works when i do it from vncviewer it just closes

When using the viewer you don't use 5802 the last number is the display that's being used, so you should put: either the hostname or host ip:2 example: 192.168.1.1:2

gtjr92 04-14-2007 09:12 AM

Ok that worked thanks, however it is not exactly what I was expecting.
I was thinking that when I remoted to the box that the viewer on my would look as if I was logged in directly to the computer. 768
Instead I get a low resolution and I don't see the menu just the Terminal and a colored background.
I set the vncserver like this vncserver -geometry 1024x768 -depth 32 :1
If i type in firefox that works I can browse the web and it looks pretty good, I guess My real question is how can I get the Linux menu to display in my viewer?
The only menu I can get is one that had options Like TWM ShowIconMGr Iconify etc.
How can I display the Linux Menu to look the same way it does when I log in directly to the pc?

{BBI}Nexus{BBI} 04-14-2007 10:53 AM

Quote:

Originally Posted by gtjr92
Ok that worked thanks, however it is not exactly what I was expecting.
I was thinking that when I remoted to the box that the viewer on my would look as if I was logged in directly to the computer. 768
Instead I get a low resolution and I don't see the menu just the Terminal and a colored background.
I set the vncserver like this vncserver -geometry 1024x768 -depth 32 :1
If i type in firefox that works I can browse the web and it looks pretty good, I guess My real question is how can I get the Linux menu to display in my viewer?
The only menu I can get is one that had options Like TWM ShowIconMGr Iconify etc.
How can I display the Linux Menu to look the same way it does when I log in directly to the pc?

You need to edit your xstartup script in the /home/username/.vnc directory, just jump to the relevant section below.

Hopefully this post will help others with vnc viewer problems

On VNC Server machine with vnc-server installed:

1)Type vncserver -geometry 800x600 (or whatever resolution you prefer)

2) There will be a session number displayed .This will create a .vnc directory in your home directory. (/home/yourself/.vnc)

3) Type cd /home/yourself/.vnc (or type .vnc in your filemanagers address bar)

4)Type ls -alc (You should see a script called xstartup) <- you don't need to do this if you use your filemanager.

5)Type vi xstartup or use whatever text editor you prefer <-if you used your filemanager, just click the file and open it with a text editor e.g. kwrite.

** This is where we will setup your vnc session to use your window manager of choice **

Find the section where it says twm & and replace it with your choice.

e.g.

startkde & (used for the KDE window manager)

exec gnome-session & (used for the Gnome window manager)

startxfce4 & (used for the XFCE4 window manager)

6)Now type vncserver -kill:x (x=session or display number)

This stops the VNC Server so that the xstartup script we just edited can be re-read when we restart the server.

7)Type vncserver (to start the session back up)

8)Type ps ax | grep vnc (check if your session is up and running)

gtjr92 04-14-2007 02:10 PM

that did it GREAT thank you!


All times are GMT -5. The time now is 08:36 AM.