This script updates your server, installs necessary packages, and sets up rclone for uploading files to MEGA. Follow the steps below to use the script effectively.
- A Linux server
- sudo privileges
- An active MEGA account
sudo apt update && sudo apt upgrade -y
sudo apt install wget -y
lscpu # Choose the appropriate architecture (amd64, arm, armV7, arm64)
# AMD64
wget https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-amd64.deb
# ARM
wget https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-arm.deb
# ARMv7
wget https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-arm-v7.deb
# ARM64
wget https://github.com/rclone/rclone/releases/download/v1.59.2/rclone-v1.59.2-linux-arm64.deb
ls
sudo dpkg --install rclone-v1.59.2-linux-*.deb # Replace * with appropriate architecture suffix
rclone --version or rclone -V
rclone config # Follow the prompts
# Select 'n' for new configuration
# Enter any name for the configuration
# Choose 30 for MEGA
# Enter your MEGA email, password, and other details as prompted
# Exit the configuration after setup
rclone copy -P filename mega: # Replace 'filename' with the name of the file to upload
🕒 Wait until the upload finishes
🔍 Check the file on MEGA
😊 Enjoy! 🎉