LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-05-2004, 09:12 PM   #1
Filious
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
Unhappy Vncviewer


I have 3 boxes, 2 running Fedora 1 and the 3rd running Fedora 2. I am having trouble using vncviewer to and from any of these boxes. All these boxes are on the same network with no firewalls running ( they can all ping each other ), I run vncserver on one box with ip 172.20.100.100 and from another I type vncviewer 172.20.100.100:1 and I get "vncviewer: unable to open display "" " I am logged in as root but I have tried this with other accounts and I get the same result. Can someone Help????

Last edited by Filious; 06-05-2004 at 09:13 PM.
 
Old 06-05-2004, 09:43 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
You're pointing at the wrong port. Try 172.20.100.100:5901 instead of 172.20.100.100:1.

Let me know if that doesn't work.

Peace,
JImBass
 
Old 06-05-2004, 09:47 PM   #3
Filious
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Same result :-(
 
Old 06-05-2004, 09:49 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
It would seem to me that the vncserver you setup isn't running or isn't listening on display :1 with that error message. Have you checked to ensure it is running and have you tried by hostname or tried without specifying the hostname/IP so it prompts you for it?

And the port is default, the :1 is the display on the server. I would try by just running:

vncviewer

At the terminal and let it prompt for the hostname/IP and then try putting in 172.20.100.100:1 to connect, after you've double checked to make sure the server is running.on display 1.

Cheers.
 
Old 06-05-2004, 09:56 PM   #5
Filious
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
I have just tried "vncviewer" and it didn't prompt for anything, although I got the same old "vncviewer: unable to open display "" ".
 
Old 06-05-2004, 10:06 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
I always run vnc vierwer with the command:
[jim@jimb jim]$ vncviewer &

If that gives you an error before asking for a hostname or IP address, then vncviewer isn't isnstalled correctly.

Everything TrickyKid said was true as well. You may want to try ps -ef|grep vnc* and see what vnc services are running.

Peace,
JimBass
 
Old 06-05-2004, 10:18 PM   #7
Filious
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
I tried ps -ef |grep vnc* and I got "root 2207 1925 0 01:16 tty1 00:00:00 grep vnc*" I'm to new to this to know what that means. If vnc is not installed properly how can I fix it?

I'm assuming you can run vncviewer at runlevel 3!!!
 
Old 06-05-2004, 10:22 PM   #8
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
vncviewer needs X to run, it won't work in the console.
 
Old 06-05-2004, 10:25 PM   #9
Filious
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
ooops!!!!!!
you learn something every day!!!!! 5 or 6 in my case!!!! Sorry guys, thanks for the responses though!!!
 
Old 06-05-2004, 10:31 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
That output means that no vnc service is running on that machine. I'm sorry that I failed to specify that for you - run that command on the box that you think vncserver is running on, 172.20.100.100. If you get just that result back, then vnc isn't running. Even when installed during the Fedora install, VNC has been very balky about starting itself. I use runlevel 3 as well, and to get vnc to start anytime I start the system, I had to run the chkconfig command as root, add the vncserver service, then specify it to start in runlevels 3, 4, and 5.

If VNC isn't installed correctly, I would uninstall it and reinstall. To uninstall, use the command:
rpm -qa|grep vnc*

and then when it lists the installed packages, do:
rpm -e [package name]

You can get the rpms to install vnc from realvnc.com

Also, one of the first things you should check is the log files from vnc. They will tell you if there is a problem that is stopping the service. If you're missing a dependency or library that vnc needs, then uninstalling and reinstalling won't work. Find your vnc log, and see what it says. Also, if you have numbers higher than 1 at the end of your log files (mine are in /home/jim/.vnc/, but I installed from rpms. My log files are named jimb.2303L:1 and jimb.2303l:2. If you have 2, 3, or any higher number at the end, that should be the last digit of your vncviewer call. If you haven't rebooted your system, or restarted vncserver, and the highest number at the end of the logfile's name is 3, then you should do vncviewer 172.20.100.100:5903.

Peace,
JimBass

*****I hadn't even considered that you weren't running X. I boot into runlevel 3, then startx. If you just need a way into the console, ssh is much much easier to get going.

Last edited by JimBass; 06-05-2004 at 10:33 PM.
 
Old 07-25-2010, 02:52 AM   #11
jiterz1
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
Probably, I should have included those links in my post, but Iím glad you posted them. I have tried these VNC implementations myself, they work very well and they certainly have advantages over the original VNC. I wrote this small article because VNC is what comes with the Fedora installation media, so this is the new userís first acquaintance with remote computing.

Norman Rasmussen:
Your VNC Session Manager sounds very nice! Iíll give it a try in the next days.

Bogdan Mustiata:
Right! I too believe that the NX technology is the future in remote computing. Less consumed bandwidth, native encryption support etc.
 
Old 01-31-2013, 10:19 AM   #12
Gener@l
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Rep: Reputation: Disabled
Quote:
I tried ps -ef |grep vnc* and I got "root 2207 1925 0 01:16 tty1 00:00:00 grep vnc*" I'm to new to this to know what that means.
This is old, so you probably don't need to know the answer to this, but the result you received was showing you the only process it found with vnc* was your grep command you just ran. This indicated that you did not have the vncserver running. If it were running you would have returned your grep line above and something starting with the following in the last column of your result.

Quote:
Xvnc :1 blah blah blah
 
Old 01-31-2013, 12:24 PM   #13
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
In order to access remote system using VNCviewer, you first need to setup VNC server on anyone of those machines. Did you..?

After setting it up, you will need to create VNC ports (or also called display) for users who are on other different machines and wish to access GUI display of that VNC server. Then only those user's will be able to connect to remote VNC server.

Simply using hostname or IP followed by 1 or any random number in VNCviewer won't help you.

To generate a VNC port, use vncserver command.
 
  


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
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 03:58 AM
vncviewer ankit_mcgill Linux - Newbie 3 11-11-2005 06:46 PM
java vncviewer?? snip128 Linux - General 1 09-03-2005 03:54 AM
vncviewer jmarsh Solaris / OpenSolaris 1 04-27-2004 04:28 PM
VncViewer - No Icons!! alwayslearning Linux - Software 2 03-23-2003 05:49 AM


All times are GMT -5. The time now is 07:30 AM.

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