How do I install VNC on my Ubuntu 9.04 VPS Server

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?

HeavenWingsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fabio MarzoccaFreelancerCommented:
There are several solutions to this. You can find them all here:
https://help.ubuntu.com/community/VNC/Servers
0
HeavenWingsAuthor Commented:
There are no information on the error I'm getting or how to install it on the page you posted.
0
Fabio MarzoccaFreelancerCommented:
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
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Fabio MarzoccaFreelancerCommented:
the defaulkt vnc server in ubuntu is Vino.
0
HeavenWingsAuthor Commented:
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
HeavenWingsAuthor Commented:
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
Fabio MarzoccaFreelancerCommented:
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
HeavenWingsAuthor Commented:
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
Fabio MarzoccaFreelancerCommented:
have you ever upgraded your system?? I am doubting..

type this:

sudo apt-get update
sudo apt-get dist-upgrade
0
HeavenWingsAuthor Commented:
After I update do I need to re-install GNOME?
0
Fabio MarzoccaFreelancerCommented:
no! The upgrade silently brings in the latest packages versions
0
HeavenWingsAuthor Commented:
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
Fabio MarzoccaFreelancerCommented:
Have you made a dist-upgrade?

Did it finish without errors?
0
HeavenWingsAuthor Commented:
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
Fabio MarzoccaFreelancerCommented:
try this:

sudo apt-get install -f
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HeavenWingsAuthor Commented:
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
HeavenWingsAuthor Commented:
Maybe, Do I need to remove fuse-utils and gvfs-fuse or change it?
0
HeavenWingsAuthor Commented:
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
HeavenWingsAuthor Commented:
Resolved

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

Thanks fmarzocca for your support.

My Ubuntu IQ increases by 100.
0
HeavenWingsAuthor Commented:
He was very helpful.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Remote Access

From novice to tech pro — start learning today.