LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-12-2007, 09:19 PM   #1
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Rep: Reputation: 15
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
 
Old 04-13-2007, 01:07 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
Have you set which display to use on the linux box? i.e. 5901, 5902 etc
 
Old 04-13-2007, 07:32 AM   #3
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Original Poster
Rep: Reputation: 15
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
 
Old 04-13-2007, 07:50 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
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

Last edited by {BBI}Nexus{BBI}; 04-13-2007 at 07:53 PM.
 
Old 04-14-2007, 09:12 AM   #5
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Original Poster
Rep: Reputation: 15
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?
 
Old 04-14-2007, 10:53 AM   #6
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
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)

Last edited by {BBI}Nexus{BBI}; 04-14-2007 at 10:59 AM.
 
Old 04-14-2007, 02:10 PM   #7
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Original Poster
Rep: Reputation: 15
that did it GREAT thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.DWF viewer or CAD viewer redline1022 Linux - Software 3 04-27-2011 04:38 PM
Realvnc viewer enterprise error in Ubuntu... scho Linux - Software 1 10-05-2006 05:12 PM
how do i change default video viewer in any browser blastradius Ubuntu 3 06-02-2006 10:19 AM
Announcing RTFM the ManPage Browser and Viewer gnashley Slackware 2 05-19-2006 10:35 AM
RealVNC Viewer Sando Linux - Networking 1 03-01-2005 07:25 AM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration