This will save the Tor onion key into a file so that if you ever, for example, reboot your Raspberry Pi, you can start up your service with the exact same OnionShare address. You'll also want to make sure you use -persistent. In the command line this is the -receive flag. To let people anonymously upload files to your computer (in this case, your Raspberry Pi) you use receive mode. Load the OnionShare address you see in Tor Browser to make sure it works. Give this address to the Ctrl C to stop the server Great, so let's start by seeing if we can run a chat server: This will add ~/.local/bin to your path automatically for the next time you SSH into your Pi:Įcho "PATH=\$PATH:~/.local/bin" > ~/.bashrc When you install programs with pip and use the -user flag, it installs them into ~/.local/bin, which isn't in your path by default. Now I'm going to install OnionShare itself: OnionShare is written in python, and you can install the command line version use python's package manager pip. You must change your password now and login again! You do use a password manager, right?Īfter you reset your password, your connection will close and you'll need to SSH in again: Set it to something random and save it in your password manager. After logging in, you're forced to reset the password. Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1028-raspi aarch64)Īccept the fingerprint. You are required to change your password immediately (administrator enforced) Warning: Permanently added '192.168.1.46' (ECDSA) to the list of known password: $ ssh authenticity of host '192.168.1.46 (192.168.1.46)' can't be established.ĮCDSA key fingerprint is SHA256:tdB9dxpe4dIpFfvbjNdPpPVLeBlpTXaSu6SCaabjyFc.Īre you sure you want to continue connecting (yes/no/)? yes The default username and password are both ubuntu. If you're following along, make sure to use the IP of your Pi, as it's probably different than mine. There it is, my Pi's IP address is 192.168.1.46. Nmap done: 256 IP addresses (7 hosts up) scanned in 3.13 seconds You can install it from your Linux package manager, from Homebrew on a Mac, or from nmap's website on Windows)īecause my local network IP address is 192.168.1.x, I'm going to scan my whole subnet ( 192.168.1.0/24) for computers with the SSH port (22) open, and one of them is bound to be my Pi: I don't feel like plugging an HDMI cable and USB keyboard into my Pi, so after plugging in ethernet and power, I'm going to need to discover my Pi's IP address so I can connect to it remotely over the network. Boot Ubuntu Server" you can come back here. I'm using the Ubuntu Server 20.04.2 LTS (RPi 3/4/400) 64-bit image. Install Ubuntu Server 20.04 on the Piįollow this tutorial that Ubuntu makes to install Ubuntu on your Pi - that's what I'm doing. Raspberry Pis use microSD cards as their hard drive, so you'll also need a microSD card reader that you can plug into your computer to set it up, a micro-USB cable to provide power to your Pi, and an internet connection (ethernet is simplest, but wifi works too). After all, who among us doesn't have extra Raspberry Pis laying around in piles of old electronics? If you're not as fortunate as I, at the time of writing the fanciest model is the Raspberry Pi 4 Model B, and it costs $35. Personally, I dug through my cardboard box full of random electronics and pulled out a trusty old Raspberry Pi 3 Model B. Now that the command line version of OnionShare has better support for running on headless Linux servers, I figured I should set up a dedicated Raspberry Pi anonymous dropbox server, and while I'm at it document how I'm doing it in a blog post. Running an OnionShare anonymous dropbox on a Raspberry Pi
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |