LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2003, 01:23 AM   #1
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Rep: Reputation: 30
VNC Problem


hi
I installed vnc server on linux and nvcviwer on windows. but when I connect to the vnc server, all i can see is the xterm window on the desktop, the rest of the desktop is now displayed, not even medu, not wallpaper.
why is that??
 
Old 09-13-2003, 06:39 AM   #2
danywu
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Rep: Reputation: 0
Check out the file "xstartup" in your .vnc directory. If you started vncserver as a particular user the .vnc directory will be located in that user's home dir.

It contains the programs run at the start of vncserver.
 
Old 09-13-2003, 06:56 AM   #3
a_geek
LQ Newbie
 
Registered: Sep 2003
Location: India
Posts: 2

Rep: Reputation: 0
Cnfiguring NFS Client

do anybody know how to mount the NFS file system on the client
who do not have root previlages on the client machine ?
 
Old 09-13-2003, 02:32 PM   #4
Amir
LQ Newbie
 
Registered: May 2003
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
You have to define the resolution before starting the vncserver on linux. I've noticed that even though the default resolution for vncserver is 1024x768, you still have to define it or else it won't work. For example, if you have 1024x768 resolution on your linux box, you enter:

vncserver -geometry 1024x768 :1

make sure you kill any vncservers you started already. If you don't know how many you've started type:

vncserver -kill all

I think thats the command, or you can kill them all individually like:

vncserver -kill :1
vncserver -kill :2 ...etc.

when you use vncviewer in windows, enter the ip address of the linux box, then the vnc session you started like if you started "vncserver -geometry 1024x768 :1", then type this in the vnc viewer:

xxx.xxx.xxx.xxx:1

the x's are the ip address of your linux box. Hoped that helped.
 
Old 09-14-2003, 05:48 AM   #5
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
thanks Amir,
I started vncserver with -geometry 1024x768 :1
vnc started with no problem.
but when i run the vncviewer on windows with xxx.xxx.xxx.xxx:1 it still hows me with blank background with only a terminal window. it looks like i am on the different session, coz what i run on the terminal window is not displayed on the actually desktop.
sounds like a SSH not vnc........ but this is what i experienced.
what could went wrong?
 
Old 09-14-2003, 11:38 AM   #6
blop
Member
 
Registered: Sep 2003
Distribution: testing Mandrake and Suse + ?
Posts: 57

Rep: Reputation: 15
This helped me too!!!

Just needed to set geomety and put the :1 on the end of the ip....

Many thanks!!

oh hang on....................that works locally, but how do i get it to work over the web?

Port forwarding is in place on the router.
 
Old 09-14-2003, 12:10 PM   #7
Amir
LQ Newbie
 
Registered: May 2003
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
Quote:
Originally posted by blop
This helped me too!!!

Just needed to set geomety and put the :1 on the end of the ip....

Many thanks!!

oh hang on....................that works locally, but how do i get it to work over the web?

Port forwarding is in place on the router.
hmm, thats something i need to figure out too. one thing i do know is that vnc is extremely slow over the net. So to optimize it you should set the depth to 8 (i donno if it goes any lower) and use tightvnc "best compression".

Even over my wireless (11mbps) network its a little slow.
 
Old 09-14-2003, 12:13 PM   #8
Amir
LQ Newbie
 
Registered: May 2003
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
Quote:
Originally posted by taoweijia
thanks Amir,
I started vncserver with -geometry 1024x768 :1
vnc started with no problem.
but when i run the vncviewer on windows with xxx.xxx.xxx.xxx:1 it still hows me with blank background with only a terminal window. it looks like i am on the different session, coz what i run on the terminal window is not displayed on the actually desktop.
sounds like a SSH not vnc........ but this is what i experienced.
what could went wrong?
Sorry dude, but i have no idea. What GUI are you using? Are you using vnc through ssh?
 
Old 09-14-2003, 07:05 PM   #9
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
i am running VNC server on RH8 with Gnome desktop. win2k Server with VNC viewer.
not sure if SSH caused problem with VNC running at the same time, will check it out.
 
Old 09-15-2003, 07:11 AM   #10
blop
Member
 
Registered: Sep 2003
Distribution: testing Mandrake and Suse + ?
Posts: 57

Rep: Reputation: 15
Does anyone know how i can get vnc working over the web?
 
Old 09-15-2003, 07:19 AM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
taoweijia,
The window manager you are seeing is twm, which vnc uses by default. If you want to use your regular X environment, get into your xstartup file in the .vnc directory, find the line that starts twm, comment it out and add the startup command for your favorite X environment.

Blop,
Do a search here for SSH and VNC and you'll find loads of threads on running VNC over the internet. But be sure to run VNC through an SSH tunnel because VNC does absolutely no encryption. Unless, of course, you enjoy being hacked .
 
Old 11-28-2003, 08:41 AM   #12
alvaroprudente
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
answer concerning grey screen while connecting to vnc

Saw an old post in a forum concerning vnc...

I found the answer:

http://home.cc.umanitoba.ca/~psgendb/vnc/vnc.html

so if you use X-terminal, you need to edit $home/.vnc/xstartup to look like this:


#!/bin/sh
Xsession &

This will tell VNC to run Xsession, which will give you a complete CDE desktop. All other lines in this file should either be deleted or commented out by inserting a '#' character at the first position on each line.

If you're using the GNOME desktop, your xstartup might be

#!/bin/sh
gnome-session &

If you're using the KDE desktop, your xstartup might be

#!/bin/sh
startkde &

Regards and have fun

Alvaro
 
Old 11-28-2003, 12:34 PM   #13
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
My experience is that Gnome causes VNCviewer to freeze frequently. It is also pretty slow... could be a number of things, like large desktop images but it is NOT machine-performance related as I have a fast connection and a decent machine serving VNCServer.

Once I switch to TWM, VNC is likety-split fast. No problems, no freezes, no crashes.

This may be why you only get a terminal window... when you fire up VNC with twm as your manager, then all that shows up by default is VNCConfig and one xterm window.

Cheers.
J.
 
Old 12-01-2003, 07:19 PM   #14
ew8home
LQ Newbie
 
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0
Hi!

Quote:
Originally posted by Amir

1024x768, you still have to define it or else it won't work. For example, if you have 1024x768 resolution on your linux box, you enter:
This helped me to get the vncserver working for the first time...

But how do I set the as the default? I'm starting vncserver at bootup, and it seems to forget theses settings. Is tere any way to tell vncserver to use this setting everytime my linux box boots up?

Bye,
Eddy
 
Old 12-03-2003, 02:01 PM   #15
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
You configure the default by editting /usr/bin/vncserver and changing the line
$geometry = "1024x768" ;

Line. I think it is the first or second line of the vncserver script so it should be easy to find.
 
  


Reply



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
VNC problem zirtik Linux - Software 6 03-04-2015 05:05 PM
problem with vnc jnev Ubuntu 3 11-23-2005 07:38 PM
VNC problem apolon10 Linux - Networking 5 04-19-2005 02:00 AM
VNC Problem Wolf-67 Linux - Newbie 1 10-01-2004 06:19 PM
VNC problem.. please help jibranilyas Fedora 7 09-24-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration