I would like to know what is the procedure for installing a custom onion v3 address into a Tor hidden service. Are there any significant differences when using nginx on Ubuntu?
The procedure is basically brute force name generation. Lets say that I want jsevans... as the beginning of my onion address. I would then generate a bunch of onion names until I get one that matches what I want. Here's the thing, it is an exponentially slow process. Maybe I get one that starts with "j" in the first minute and one that starts with "js" in the first 5 minutes, then "jse" in the first hour, then "jsev" 3 hours later, etc.
There are scripts that can do this for you. How long it takes is dependent on your computer. I probably wouldn't try more than 3-4 letters on something like a Raspberry Pi. Trying to get a completely custom name could literally take years.
This has nothing to do with your web server or your Linux distribution.
You can use this page for suggestions but if you have trouble with his program, put in a request to them directly because this isn't something that sponsored by Tor and is just one person's project.
From the link that I posted:
For 21 days, my Raspberry Pi cluster has been running mkp224o in order to generate a vanity address for my new Tor Onion v3 Hidden Service.
It isn't as good as last time, but I have chosen: jamie3vkiwibfiwucd6vxijskbhpjdyajmzeor4mc4i7yopvpo4p7cyd.onion
So that's 21 days to generate 5 letters. Keep that in mind!
Fixed. In your hidden service file (in my case /var/lib/tor/nginx) do:
chown debian-tor:debian-tor hostname hs_ed25519_public_key hs_ed25519_secret_key chmod 600 hostname hs_ed25519_public_key hs_ed25519_secret_key
I am not sure if this affected anything but I also kept the authorized_clients folder. Also, I generated the key without any specific optimization parameters like amd64 or donna.