Tor and I2P mirror
- Login o registrati per inviare commenti
I setup a Tor and i2p mirror of Trisquel archive and iso.
Tor:
http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/
I2P:
http://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/
See all the mirrors here:
https://trisquel.info/en/wiki/mirrors
Awesome !
Trisquel repository over Tor
It's easy to install applications and update your Trisquel GNU/Linux-libre over Tor Onion Service mirror:
Open the Terminal (Ctrl+Alt+T) and paste this command to install apt-transport-tor:
sudo apt install apt-transport-tor -y
Now paste this command in the Terminal to change the clearnet default repository to Tor Onion Service:
sudo sed -i 's|https://archive.trisquel.org|tor+http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion|' /etc/apt/sources.list
Now start and enable Tor:
sudo systemctl enable --now tor
Done. Now you can install applications and update your libre system over Tor repository:
sudo apt update -y && sudo apt upgrade -y
If you want to return to clearnet repository, run this command:
sudo sed -i 's|tor+http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion|https://archive.trisquel.org|' /etc/apt/sources.list
GNU Linux-libre (.deb Freesh repository) over Tor
In the Terminal, download the repository:
torsocks wget http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/linux-libre/freesh/pool/main/f/freesh-archive-keyring/freesh-archive-keyring_1.1_all.deb
Now install the repository:
sudo dpkg -i freesh-archive-keyring_1.1_all.deb
And change the clearnet repository to Tor:
sudo sed -i 's|mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt|tor+http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/linux-libre/freesh|' /etc/apt/sources.list.d/freesh.sources
If you want the latest kernel version:
sudo apt install linux-libre
If you want to use a long-term support (LTS) kernel version:
sudo apt install linux-libre-lts
If you want to return to the clearnet repository, paste this command:
sudo sed -i 's|tor+http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/linux-libre/freesh|mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt|' /etc/apt/sources.list.d/freesh.sources
Trisquel repository over I2P
It's easy to install applications and update your Trisquel GNU/Linux-libre over I2P Eepsite mirror:
Install the updated version of i2pd and the apt-transport-i2phttp over Tor:
sudo apt update -y && sudo apt install i2pd -y && torsocks wget http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/i2pd_2.53.1_amd64.deb && sudo dpkg -i i2pd_2.53.1_amd64.deb && torsocks wget http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/apt-transport-i2phttp_0.4_amd64.deb && sudo dpkg -i apt-transport-i2phttp_0.4_amd64.deb
Paste this to add the I2P respository in the sources.list.d:
sudo tee /etc/apt/sources.list.d/trisquel-i2p.sources << EOF > /dev/null
X-Repolib-Name: Trisquel Archive over I2P
Enabled: yes
Types: deb
Architectures: amd64
Signed-By: /usr/share/keyrings/trisquel-archive-keyring.gpg
URIs: i2p://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/trisquel/
Suites: aramo aramo-security aramo-updates aramo-backports
Components: main
EOF
And this to add in preferences.d:
sudo tee /etc/apt/preferences.d/trisquel-i2p.pref << EOF > /dev/null
Package: *
Pin: release n=aramo
Pin-Priority: 100
EOF
If you are using the default repository (clearnet), paste this command to disable the default repository:
sudo sed -i 's|deb https:|#deb https:|' /etc/apt/sources.list
If you are using the Tor repository, paste this command to disable the Tor repository:
sudo sed -i 's|deb tor+http:|#deb tor+http:|' /etc/apt/sources.list
Done. Now update and install applications over I2P in Trisquel:
sudo apt update -y && sudo apt upgrade -y
If you want to disable the I2P repository, paste this command:
sudo sed -i 's|Enabled: yes|Enabled: no|' /etc/apt/sources.list.d/trisquel-i2p.sources
If you want to return to the clearnet repository, paste this command:
sudo sed -i 's|#deb https:|deb https:|' /etc/apt/sources.list
If you want to return to Tor repository, paste this command:
sudo sed -i 's|#deb tor+http:|deb tor+http:|' /etc/apt/sources.list
If you want to activate the I2P repository again, paste this command:
sudo sed -i 's|Enabled: no|Enabled: yes|' /etc/apt/sources.list.d/trisquel-i2p.sources
GNU Linux-libre (.deb Freesh repository) over I2P
In the Terminal, download the repository over I2P:
http_proxy=http://127.0.0.1:4444 wget http://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/linux-libre/freesh/pool/main/f/freesh-archive-keyring/freesh-archive-keyring_1.1_all.deb
Now install the repository:
sudo dpkg -i freesh-archive-keyring_1.1_all.deb
And change the clearnet repository to I2P:
sudo sed -i 's|mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt|i2p://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/linux-libre/freesh|' /etc/apt/sources.list.d/freesh.sources
If you want the latest kernel version:
sudo apt install linux-libre
If you want to use a long-term support (LTS) kernel version:
sudo apt install linux-libre-lts
If you want to return to the clearnet repository, paste this command:
sudo sed -i 's|i2p://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/linux-libre/freesh|mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt|' /etc/apt/sources.list.d/freesh.sources
If you want to return to Tor repository, paste this command:
sudo sed -i 's|i2p://dnhxnvov44chego5mmrq52ku3kdwuu46qlqhbhkngl7yvvllewtq.b32.i2p/linux-libre/freesh|tor+http://35pwbq5bpzdclyrdhenxvzv7secmnfv3qhdn4krgdr46yo3k2gnyeeid.onion/linux-libre/freesh|' /etc/apt/sources.list.d/freesh.sources
Thank you icarolongo. Two remarks though:
- Such instructions, but more generic (for any mirror), would be more useful in https://trisquel.info/en/wiki/packages-repository (that you edited today?!) or maybe in a separate manual;
- Your first substitution assumes the use of https://archive.trisquel.org but there are many mirrors and I feel it would be better to instruct the use of 'sudo apt edit-sources' and directly list the lines to have (as in the current manual) instead of using sed (by the way: no need for the g flag here) and other instructions to return to the previous configuration.
Thank you, Magic Banana!
I will add this in one wiki page.
I just set the "book outline" of https://trisquel.info/en/wiki/mirrors, so its parent wiki is now https://trisquel.info/en/wiki/packages-repository instead of "none" and also added it to https://trisquel.info/en/wiki/all-manuals.
regards
Thank you!
- Login o registrati per inviare commenti