Install Dropbox on Ubuntu 20.04 Desktop From Official Repository If you don’t have a Dropbox account yet, then click here to sign up. Next, open a terminal window, run the following command to create a source list file for Dropbox. Nano is a command line text editor, which allows you to edit text files in the terminal. Dropbox install on Ubuntu This video show you how to install Dropxbox on Ubuntu 16 Commands: sudo nano /etc/apt/sources.list deb arch=i386,amd64.
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.
Find a Raspberry Pi
Personally, I dug through my cardboard box full of random electronics and pulled out a trusty old Raspberry Pi 3 Model B. 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.
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).
Install Ubuntu Server 20.04 on the Pi
Follow this tutorial that Ubuntu makes to install Ubuntu on your Pi -- that's what I'm doing. I'm using the Ubuntu Server 20.04.2 LTS (RPi 3/4/400) 64-bit image. Once you get to the step '4. Boot Ubuntu Server' you can come back here.
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. I'm using nmap to do this. You can install it from your Linux package manager, from Homebrew on a Mac, or from nmap's website on Windows)
Uninstall Dropbox Ubuntu 20.04
Because 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:
There it is, my Pi's IP address is
192.168.1.46. So let's see if I can SSH into it. If you're following along, make sure to use the IP of your Pi, as it's probably different than mine. The default username and password are both
Accept the fingerprint. After logging in, you're forced to reset the password. Set it to something random and save it in your password manager. You do use a password manager, right?
After you reset your password, your connection will close and you'll need to SSH in again:
(hacker voice)I'm in.
Go ahead and install updates by running:
OnionShare is written in python, and you can install the command line version use python's package manager
pip. So first, I must install
Now I'm going to install OnionShare itself:
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. This will add
~/.local/bin to your path automatically for the next time you SSH into your Pi:
Okay, now try running
onionshare-cli. You should see the usage information:
Test it out (install tor)
Great, so let's start by seeing if we can run a chat server:
Oh right, I need to install tor. That's easy:
Okay, let's try again:
Load the OnionShare address you see in Tor Browser to make sure it works.
Press Ctrl-C to quit OnionShare.
Start a persistent anonymous dropbox
To let people anonymously upload files to your computer (in this case, your Raspberry Pi) you use receive mode. In the command line this is the
You'll also want to make sure you use
--persistent. 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 probably want to use
--public which disables the default password protection. Basically, this lets you post a link to your anonymous dropbox on Twitter (for example) and anyone can go there to anonymously leak documents to you.
Putting it all together:
Now, load the OnionShare address in Tor Browser to make sure it works.
And live web logs get displayed in the terminal as well. For example when I loaded the OnionShare address, this was displayed in the terminal:
You'll never get to know the IP addresses of people who visit your onion site. Their IP will always look like
127.0.0.1. This is how Tor onion services work: you run a service anonymously, and all the clients that connect to your service are anonymous as well. If someone loads your anonymous dropbox while you happen to be looking at the terminal, you'll be able to tell that someone is there because you'll see the logs they generate, but you won't know who it is.
Upload a file, and then see what was uploaded
Now, let's try uploading a file. In my case, I'm uploading a ~2.6mb file called
In the terminal you can see the progress of the file as it uploads, and then you can see the location it was saved to:
But now, how do I actually access this file? There are many ways. Here are some options:
In macOS or Windows
If you use macOS or Windows you can use SFTP software like Cyberduck. For example, here I'm setting up a new connection in Cyberduck called
Then when I connect to it, I can browse the files and download anything to my computer:
And finally, I can open
IMG_0417.jpg and see what this image I uploaded was.
In Ubuntu (or other distros that use nautilus as the file manager), I open the file manager, go to 'Other Locations', and connect to the server
Now I have access to the files that get uploaded to my anonymous dropbox:
Make sure the anonymous dropbox is actually persistent
The command we used to start OnionShare in receive mode is:
This stores all the settings associated with this session, including the secret key required to get this same Tor onion address, in the file
If you quit OnionShare by pressing Ctrl-C, then run that same command over again (in the terminal press up arrow, then enter), it should start OnionShare again, and the URL should be exactly the same. This is important because if you ever have to quit OnionShare (like maybe you need to unplug the Raspberry Pi and plug it in somewhere else, forcing it to reboot), you'll be able to get your anonymous dropbox up and running again with the same address.
...and yup, I just confirmed persistence works on my end.
You may wish to copy and paste the contents of this file into a note field in your password manager, or otherwise make a secure backup of it. This way when you spill coffee all over your Raspberry Pi, you can get up and running again without too much trouble.
Run OnionShare in a screen session so you can close your terminal
So far this works great, but there's a big problem: When you SSH into a remote server (the Pi) and run a command (
onionshare-cli), if you close your terminal, get disconnected from wifi, or otherwise end your SSH session, it will close
onionshare-cli as well. Ideally you want it to just always be open and running in the background.
A simple way of doing this is using the program
screen, a terminal multiplexer (you can also use
tmux or whatever else you prefer). If OnionShare is running on your Raspberry Pi, quit it with Ctrl-C. Then from a terminal, install screen and download a simple
.screenrc file so it will look a bit nicer:
You should see a new bar at the bottom of the screen with
0 bash highlighted in yellow. This means you're inside a screen session now. (If you want to get nerdy, you may with to teach yourself more about using
screen or similar terminal multiplexers.)
Now go ahead and completely close out of the terminal window, and make sure your you can still load your OnionShare address. It should load fine, because
onionshare-cli should still be running on the Pi in your
Now let's get back in. Open a new terminal and SSH back into the Pi:
Once you're in, reconnect your
You should see your OnionShare anonymous dropbox again.
Some final thoughts
After following this guide, you should have:
- A Raspberry Pi with Ubuntu Server 20.04 installed on it
- The ability to SSH into the server to remotely configure it
- An OnionShare anonymous dropbox running in a screen session
- The ability to access all the files that get uploaded to your anonymous dropbox on your normal computer
Congratulations! You're now equipped to accept leaks from the public. Just let people know that they can load your OnionShare address in Tor Browser to send you stuff anonymously. Here are a few things to keep in mind:
You can keep an eye on it by keeping a terminal open with the
screen session attached to see when people access it, and regularly checking on the files that get uploaded.
Now that you're running a server, it's a good idea to regularly install updates so it doesn't get hacked, and keep an eye out for OnionShare updates as well (you'll be able to update
onionshare-cli by running
pip3 install --upgrade onionshare-cli). You might also want to do other things to harden your server like start using SSH keys instead of passwords or set up a firewall.
Your Raspberry Pi's hard drive is not encrypted, which means if someone can physically access your Pi, they can simply unplug the microSD card, plug it into their own computer, and copy all of the documents people have uploaded to you. The best solution is to add disk encryption to this setup (perhaps this will be the target of a future blog post -- if you're interested in that, post in the comments). But in the meantime, whenever someone sends you anything sensitive, you can download it to your computer and then delete it from the Raspberry Pi, and then securely erase the free space on the Pi's microSD card so that it can't be recovered.
To securely delete free space, install the
And then run
sfill to fill up all of the free space from zeros:
In this command I'm using the flag
-l which means 'lessens the security. Only two passes are written: one mode with 0xff and a final mode with random values.' -- though honestly I think this is fine for almost every use-case. This will take a very long time as it is, but if you leave off the
-l it will take about 19 times longer, overwriting your free space 38 times instead of 2 times. (Run
man sfill for more information.)
Warning: Receive mode lets people upload files to your computer. Some files can potentially take control of your computer if you open them. Only open things from people you trust, or if you know what you are doing.
This warning is prominently displayed in OnionShare, and I think it's important to point out again. Just like why you're instructed not to open sketchy email attachments, you shouldn't just blindly open documents that you receive from OnionShare. For a trivial example, if you use Windows someone can send you
backdoor.exe, and if you open that file, they will have hacked you.
If you do get a document and you're worried it might hack you when you open it, here are a few strategies to try:
- If it's an office document, run it through Dangerzone first. This is another piece of software I wrote that turns office documents into PDFs that you can be confident won't hack you.
- If you're not concerned with sharing it with third parties:
- You can upload it to VirusTotal to get it scanned by dozens of anti-virus programs, which might help inform if you want to open it or not.
- You can also upload certain types of documents (including office docs, videos, and audio files) to Google Drive, and then view them in your web browser instead of programs like Word or VLC. If these documents would try to hack you, they'll instead try to hack some container running on Google's infrastructure, letting you view it safely.
- Set up a virtual machine, turn networking off, copy the document to your VM, and open it there. If it's malicious it will try to hack your VM instead of your host computer, and if it tries to phone home it will fail because your VM doesn't have networking.
Good luck, and I'd love to know if you're running an OnionShare anonymous dropbox of your own.
Oh and if you have any newsworthy leaks, feel free to send them my way: http://vxat6yszh7o5r2fxzvibxsb4lmfi6yzudobn3o3yz2vhvue3z2xmbqid.onion
Most computer users don't know about Dropbox and its use, for those people, Dropbox is a very useful file synchronization and sharing service that allows you to synchronize files between different computer systems over the network for free.
It offers various services such as cloud storage, personal cloud, and client software. So that it's very beneficial for creating the backing up of your important documents, MP3 files, pictures, video files, and many other types of data.
When a user creates a free Dropbox account, a 2GB free space is allocated for storing data.
If you need to get more additional space then, you can buy the pro-Dropbox version. Dropbox client applications are supported on all operating platforms like Linux (Debian, Ubuntu, CentOS, etc), Windows, and MacOS.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Packages Installation tasks on Ubuntu Linux Servers.
In this context, we shall look into how to install and Configure Dropbox on the Ubuntu 20.04 LTS system through running terminal commands.
How to install Dropbox on Ubuntu 20.04 from the official repository ?
Before performing this installation procedure, ensure that you execute all commands with sudo or root privileges.
Follow the steps given below.
1. Create a source list file
Open the terminal application by pressing 'Ctrl + Alt + t' and create a source list file for Dropbox by typing the following command on the terminal.
Nano command is used for a command-line nano text editor, that permits you to edit all source code as well as text files in the terminal:
Now, add the following text in the 'dropbox.list' file and press 'Ctrl + O' to save this text.
Press enter for confirmation and then, press 'Ctrl + X' to exit from the current window.
2. Import Dropbox GPG key
Next, by using the following command import Dropbox GPG key to your system Ubuntu 20.04:
3. Install Dropbox
Now, update the all packages index and then, install Dropbox on your Ubuntu system:
Here, the python3-gpg package is used with Dropbox to check the binary signature. It is important to note that the Dropbox package is not the actual binary Dropbox.
It's just a supportive package.
4. Start GUI Dropbox installer
Now, execute the following command to start the GUI installer of Dropbox through the terminal.
i. The -i tag represents if Dropbox is not already installed then, install this service:
ii. You can also start the GUI Dropbox installer from the application search bar.
iii. Click on the 'OK' button to install the Dropbox daemon.
After that, Dropbox will download and install on your system.
Download Dropbox Ubuntu 20.04
Once the Dropbox daemon is installed, a new window tab will appear in your browser prompting you to link your computer machine to your online Dropbox account.
You can also verify the Dropbox installation from the Desktop icon that displays at the top right side of your desktop after the installation.
Now, Dropbox is installed on your system. Upload your system's data and enjoy the benefits of allocated Dropbox space.
[Need urgent assistance in fixing missing packages on any Linux system? We are available to help you today. ]
This article covers how to install Dropbox on your Ubuntu 20.04 system. Dropbox online storage provides us support for Ubuntu Linux.
Dropbox provides us online storage to store or backup our data automatically. We use Dropbox to backup our contents with some security and peace of mind.
In the event of our PCs crash, Our data will be saved and ready to be restored onto server.
To install Dropbox from Command Line on Ubuntu:
1. Install the wget package using the apt command,
2. Dropbox cli version is available for both 32 and 64 bit editions, we will download Dropbox upon out version.
Ubuntu 20.04 Vs 20.10
3. Run the following command to start the Dropbox from .dropbox-dist folder.
To manage Dropbox service:
1. Enable dropbox service using command below.
2. Start dropbox service using command below.
3. Check running of the service using command below.