2

I am a new Ubuntu user. I'm trying to install a package in a file called VNC-Viewer-5.0.3-Linux-x86.gz. I keep having problems.

The package is in my folder: /home/Downloads/VNC-Viewer-5.0.3-Linux-x86.gz

I tried:

owner@ubuntu:~$ cd ~/Downloads
owner@ubuntu:~/Downloads$ sudo apt-get install VNC-Viewer-5.0.3-linux-x86.gz
[sudo] password for owner: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package VNC-Viewer-5.0.3-linux-x86.gz
E: Couldn't find any package by regex 'VNC-Viewer-5.0.3-linux-x86.gz'

I also tried:

owner@ubuntu:~/Downloads$ ./configure
bash: ./configure: No such file or directory

I have followed sudo apt-get install build-essential checkinstall as explained on this wiki page and I am still quite lost in how to install this gz package. This package is needed to remotely control my school computer.

My Kernel is Linux-3.5.0-21 generic (x86-64)
Distribution Ubuntu 12.10
GNU C compiler version 4.7.2

Eliah Kagan
  • 119,640

2 Answers2

1

A gz file is compressed with gzip, so just "un-gzip" a file with gunzip. For the binary download at realvnc.com, as a regular user:

mkdir -p ~/bin
cd ~/bin
mv ~/Downloads/VNC-Viewer-5.0.3-linux-x86.gz .
gunzip VNC-Viewer-5.0.3-linux-x86.gz
chmod +x VNC-Viewer-5.0.3-linux-x86

Then double-click it from a GUI file manager or start it from the command line:

~/bin/VNC-Viewer-5.0.3-linux-x86

If there was no bin directory to start, then the PATH will get updated when you log out and in again. After this it's just

VNC-Viewer-5.0.3-linux-x86

from any directory. You could rename the file, too, if you like, or make symbolic link:

cd ~/bin
ln -s VNC-Viewer-5.0.3-linux-x86 vncv

Then call it with vncv or whichever name you pick for the symlink.

Eliah Kagan
  • 119,640
0

The file that you have downloaded contains x86 in the name. This gives a hint that it contains a 32-bit binary, you should be able to make in run by installing a 32-bit runtime. But one cannot be sure before the file is unpacked.

Hovewer, before I go in to how you unpack the file. Have you tried any of the vnc viewers that exist in the package manager? xvnc4viewer, xtightvncviewer and some more. Start the package manager and search for vnc.

Now, back to your file. Unpack it with gunzip.

gunzip VNC-Viewer-5.0.3-linux-x86.gz

You should get a file named VNC-Viewer-5.0.3-linux-x86. You need to make it executable and then start it:

chmod +x VNC-Viewer-5.0.3-linux-x86
./VNC-Viewer-5.0.3-linux-x86

This might not work because you may not have 32-bit supporting libraries ("runtime") installed (or the archive contains something else). Check out this answer.

McNisse
  • 1,933