I am trying to install x11vnc on linux machine which doesn’t have internet on it.So i won’t able to install using sudo apt-get install x11vnc command. Can someone please help me install x11vnc with all the required dependencies using offline mode?
I tried installing with .tar.gz file but i am getting below error when tried ./configure command.
checking for gcc… no
checking for cc… no
checking for cc… no
checking for cl… no
configure: error: no acceptable C compiler found in $PATH
Here I assume that you can transfer all dependency packages the to offline host via USB drive, NFS etc.
STEP 1:
On some other online system first download all packages and requirements. Preferably the system will be the same distro and version as the offline host.
To download all required packages you could do something like this:
$ sudo apt update
$ mkdir x11vnc; cd $_
$ for i in $(apt-cache depends --recurse --no-suggests --no-conflicts --no-recommends --no-breaks --no-replaces --no-enhances x11vnc | grep "^\w"); do apt download $i; done
The above will download all required packages into the x11vnc directory.
STEP 2:
Copy the entire x11vnc to your offline system. On my test run this was exactly:
$ du -sh x11vnc
21M x11vnc
Just for an illustration this is what the content of the x11vnc directory might look like:
On the offline system enter the x11vnc directory you just copied and execute:
$ sudo dpkg -i *
This should install all packages including dependencies as well as the x11vnc package. Note you might encounter some errors as some of the packages might already be installed etc. Analyse the output and rectify the issues if necessary or post here for a further assistance.