Solved

How do I install VNC on my Ubuntu 9.04 VPS Server

Posted on 2009-07-02
20
5,047 Views
Last Modified: 2013-11-30
3) I finish installing GNOME, I like to install VNC (remote desktop) now. I already have VNC viewer on my laptop. Now I only have to install VNC server on the Ubuntu server. I read somewhere that the command to do this is:
sudo apt-get install x11vnc vnc-java
Is this right? Then I have to do this:
       2. Set up a password for clients. Code: x11vnc -storepasswd
       3. Open up ports 5800 and 5900 on your firewall
       4. Run the terminal command: x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 and add it for auto-starting in future sessions
Are these the right steps for installing VNC on the server?

I'm a novice at Ubuntu Linux.

I have a problem when I enter the command
sudo apt-get install x11vnc vnc-java
This is what it gives me:
root@xx-xx-xxx-xx:~# sudo apt-get install x11vnc vnc-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vnc-java is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package vnc-java has no installation candidate

what is the problem?

0
Comment
Question by:HeavenWings
  • 12
  • 8
20 Comments
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766086
There are several solutions to this. You can find them all here:
https://help.ubuntu.com/community/VNC/Servers
0
 

Author Comment

by:HeavenWings
ID: 24766158
There are no information on the error I'm getting or how to install it on the page you posted.
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766190
The page I posted is the official Ubuntu documentation. I don't know why you are trying to install vnc.java, but it is not referred in the page I have pointed you. Follow one of the several official installations you may find on that page.
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766200
the defaulkt vnc server in ubuntu is Vino.
0
 

Author Comment

by:HeavenWings
ID: 24766257
I'm not trying to install java anymore. I made a mistake picking java to install.

I'm just need to install VNC on the server. The link doesn't contain install commands. I don't know have any desktop access since its a VPS server host.

I'm using the terminal window through puTTy.
0
 

Author Comment

by:HeavenWings
ID: 24766275
I have vnc viewer on my laptop but when I enter my host it says unable to connect to host: Connection refused (10061) and I have ports 5800 and 5900 open on my computer. So I don't think I have Vino on my server yet. Is there any way I can check if I do have it?
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766291
so, to install x11vnc, typ ein a terminal:

sudo apt-get install x11vnc

the follow instructions on the page I gave you and on the manual page:
http://linux.die.net/man/1/x11vnc
0
 

Author Comment

by:HeavenWings
ID: 24766327
When I run that command and install it, it gives me some errors when I'm installing it.

Get:1 http://archive.ubuntu.com jaunty/main libvncserver0 0.9.3.dfsg.1-1ubuntu2 [162kB]
Get:2 http://archive.ubuntu.com jaunty/universe x11vnc 0.9.3.dfsg.1-1ubuntu2 [771kB]
Fetched 933kB in 0s (5121kB/s)
Selecting previously deselected package libvncserver0.
(Reading database ... 102703 files and directories currently installed.)
Unpacking libvncserver0 (from .../libvncserver0_0.9.3.dfsg.1-1ubuntu2_i386.deb) ...
Selecting previously deselected package x11vnc.
Unpacking x11vnc (from .../x11vnc_0.9.3.dfsg.1-1ubuntu2_i386.deb) ...
Setting up fuse-utils (2.7.4-1.1ubuntu4) ...
creating fuse group...
udev active, skipping device node creation.
 * Reloading kernel event manager...                                            No /sbin/udevd found running; none killed.
                                                                         [fail]
invoke-rc.d: initscript udev, action "reload" failed.
dpkg: error processing fuse-utils (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-fuse:
 gvfs-fuse depends on fuse-utils; however:
  Package fuse-utils is not configured yet.
dpkg: error processing gvfs-fuse (--configure):
 dependency problems - leaving unconfigured
Setting up libvncserver0 (0.9.3.dfsg.1-1ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure.

Setting up x11vnc (0.9.3.dfsg.1-1ubuntu2) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 fuse-utils
 gvfs-fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)

What might be the problem? Or is there any problem?
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766352
have you ever upgraded your system?? I am doubting..

type this:

sudo apt-get update
sudo apt-get dist-upgrade
0
 

Author Comment

by:HeavenWings
ID: 24766374
After I update do I need to re-install GNOME?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766385
no! The upgrade silently brings in the latest packages versions
0
 

Author Comment

by:HeavenWings
ID: 24766417
I'm still getting errors after I updated it.

root@xx-xx-xxx-xx:~# sudo apt-get install x11vnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
x11vnc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up fuse-utils (2.7.4-1.1ubuntu4) ...
creating fuse group...
udev active, skipping device node creation.
 * Reloading kernel event manager...                                            No /sbin/udevd found running; none killed.
                                                                         [fail]
invoke-rc.d: initscript udev, action "reload" failed.
dpkg: error processing fuse-utils (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-fuse:
 gvfs-fuse depends on fuse-utils; however:
  Package fuse-utils is not configured yet.
dpkg: error processing gvfs-fuse (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 fuse-utils
 gvfs-fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)

0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766437
Have you made a dist-upgrade?

Did it finish without errors?
0
 

Author Comment

by:HeavenWings
ID: 24766478
I ran the update dist again and yes I missed the error by accident.

root@xx-xx-xxx-xx:~# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up fuse-utils (2.7.4-1.1ubuntu4) ...
creating fuse group...
udev active, skipping device node creation.
 * Reloading kernel event manager...                                            No /sbin/udevd found running; none killed.
                                                                         [fail]
invoke-rc.d: initscript udev, action "reload" failed.
dpkg: error processing fuse-utils (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-fuse:
 gvfs-fuse depends on fuse-utils; however:
  Package fuse-utils is not configured yet.
dpkg: error processing gvfs-fuse (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 fuse-utils
 gvfs-fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)
0
 
LVL 14

Accepted Solution

by:
fmarzocca earned 50 total points
ID: 24766568
try this:

sudo apt-get install -f
0
 

Author Comment

by:HeavenWings
ID: 24766587
Still getting error.

root@xx-xx-xxx-xx:~# sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up fuse-utils (2.7.4-1.1ubuntu4) ...
creating fuse group...
udev active, skipping device node creation.
 * Reloading kernel event manager...                                            No /sbin/udevd found running; none killed.
                                                                         [fail]
invoke-rc.d: initscript udev, action "reload" failed.
dpkg: error processing fuse-utils (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-fuse:
 gvfs-fuse depends on fuse-utils; however:
  Package fuse-utils is not configured yet.
dpkg: error processing gvfs-fuse (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 fuse-utils
 gvfs-fuse
E: Sub-process /usr/bin/dpkg returned an error code (1)
0
 

Author Comment

by:HeavenWings
ID: 24767066
Maybe, Do I need to remove fuse-utils and gvfs-fuse or change it?
0
 

Author Comment

by:HeavenWings
ID: 24767370
Ok I removed these packages.

When I do sudo apt-get install x11vnc, it says x11vnc is already the newest version. So that is good.

But when I use my VNC viewer, it says connection refused.
0
 

Author Comment

by:HeavenWings
ID: 24769764
Resolved

Just remove the packages I stated above. And redo the commands.

Thanks fmarzocca for your support.

My Ubuntu IQ increases by 100.
0
 

Author Closing Comment

by:HeavenWings
ID: 31599308
He was very helpful.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

At the beginning of the year, the IT world was taken hostage by the shareholders of LogMeIn. Their free product, which had been free for ten years, all of the sudden became a "pay" product. Now, I am the first person who will say that software maker…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now