Add PPA repo for Debian
Hello,
HPN-SSH is fantastic, really helps with achieving full speeds on high latency connections.
Would it please be possible to add a PPA repo for Debian too? I am not very familiar with setting up a PPA repo, but for what it's worth, I was able to install HPN-SSH on Debian right now by using the Ubuntu PPA.
It does require a bit of manual tweaking of the apt source files though with the following steps:
- Manually install add-apt-repository on Debian (it does not come installed by default) with
apt-get install software-properties-common python3-launchpadlib - Find the source file installed by add-apt-repository (should be
/etc/apt/sources.list.d/rapier1-ubuntu-hpnssh-bookworm.list), change "bookworm" to "jammy"
Seems to work without issue, which is no surprise as Ubuntu is based off Debian.
Perhaps this means that adding a Debian repository could be as simple as adding a release file to the PPA for Debian Bookworm?
https://github.com/rapier1/hpn-ssh/discussions/65#discussioncomment-8359796
I made detailed instructions for Debian users while trying my best to follow the best practice, hope it will help.
Here are the tips for the Debian users:
1. Manually add the package source
. /etc/os-release
suites="Debian_${VERSION_ID}"
sudo mkdir -p --mode=0755 /usr/share/keyrings
out=$(mktemp -u)
if curl -fsSL "https://download.opensuse.org/repositories/home:/rapier1/${suites}/Release.key" \
| gpg --dearmor | sudo tee "$out" > /dev/null; then
sudo \mv -f "$out" /usr/share/keyrings/rapier1-hpnssh.gpg
fi
cat << EOF | sudo tee /etc/apt/sources.list.d/hpnssh.sources
Types: deb
URIs: https://download.opensuse.org/repositories/home:/rapier1/${suites}/
Suites: /
Signed-By: /usr/share/keyrings/rapier1-hpnssh.gpg
EOF
2. Install the hpnssh-server package
sudo chmod 644 /usr/share/keyrings/rapier1-hpnssh.gpg /etc/apt/sources.list.d/hpnssh.sources \
&& sudo apt-get update -qq \
&& sudo apt-get install -y hpnssh-client hpnssh-server hpnssh-sftp-server
sudo systemctl enable --now hpnssh.service
systemctl is-enabled hpnssh.service
Just wanted to let you know that I finally got around to adding this to the official documentation on hpnssh.org. It has to go through the documentation team here at work (they don't let me touch the web servers directly) so it might take about a week to show up. Thanks again!