Hi @Jac11, I’ll explain in more detail:
The first line installs the curl program needed to download the signal signing key. This is just like on the signal website. I added two more packages: one to enable networking and the other to install a basic notifications daemon (xfce4-notifyd would be an alternative to dunst). These additions are only needed for debian-minimal templates and if you are using the standard debian template you only need to install curl.
apt install --no-install-recommends curl qubes-core-agent-networking dunst
The next line is also straight from the signal website, but I added --proxy http://127.0.0.1:8082/
to the curl command:
curl --proxy http://127.0.0.1:8082/ -s https://updates.signal.org/desktop/apt/keys.asc | apt-key add -
You wrote:
I tried to copy-paste commands in Debian template terminal, as mentioned in Singal website. But it gave error - resolving updates.signal.org…failed : temporary failure in name resolution. wget : unable to resolve host address ‘updates.signal.org’
The reason for the error is that curl was not able to connect to the internet to download the signing key for the signal package. In Qubes OS templates do not have networking access for good reason. However, to be able to install software via the ‘apt’ command there is a proxy service provided that gives network access. This proxy is at localhost (127.0.0.1) port 8082.
So by adding the --proxy http://127.0.0.1:8082/
parameter to the curl command you are telling it how to connect to the internet. Then the download works.
You also saw:
gpg : no valid OpenPGP data found.
The later part of the above command apt-key add -
adds the downloaded key to your system so signal packages can be verified. However since your download failed there was not key, hence the error.
The next lines are straight from the signal homepage again:
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | tee -a /etc/apt/sources.list.d/signal-xenial.list
… adds the signal repository to your system.
apt update
… fetches all repositories (now including the newly added signal repository)
apt full-upgrade
… brings your qube up-to-date.
apt install --no-install-recommends signal-desktop
… actually and finally installs signal.