In this tutorial, we will go through the steps to install Black Candy, a fast and lightweight file sharing platform, on Ubuntu Server Latest.
Before we proceed, make sure your Ubuntu Server is up-to-date and you have sudo access.
Black Candy requires some dependencies to be installed on the system before we can proceed with the installation. Run the following command to install them:
sudo apt-get update
sudo apt-get install -y wget git curl zip unzip sqlite3 build-essential
Next, we need to install Go Language on the system. Black Candy is written in Go, so this is a mandatory step. Run the following commands to install Go:
wget https://golang.org/dl/go1.17.2.linux-amd64.tar.gz
sudo tar -xvf go1.17.2.linux-amd64.tar.gz
sudo mv go /usr/local
sudo nano ~/.bashrc
Add the following lines at the end of ~/.bashrc file:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
Save and close the file by pressing Ctrl+x
and then y
.
Then, run the following command to apply the changes:
source ~/.bashrc
Now, we can clone the Black Candy repository to our server by running the following command:
git clone https://github.com/blackcandy-org/black_candy.git
Once the repository is cloned, navigate to the directory by running:
cd black_candy
Next, we will build and install Black Candy on the system. To do this, execute the following commands:
go mod tidy
go build .
sudo cp ./black_candy /usr/bin
sudo chmod +x /usr/bin/black_candy
Finally, we need to create a directory for Black Candy to store the uploaded files, and start the service. Run the following commands to do this:
sudo mkdir /var/tmp/black_candy
sudo chmod 777 /var/tmp/black_candy
sudo black_candy start
That's it! You have successfully installed Black Candy on Ubuntu Server. You can now access the web interface at http://<Server-IP>:8888
and start uploading and sharing files. Enjoy!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!