Best cloud storage services with CLI for PrimTux: (Comparison)

TopLinux

Best Cloud Storage with CLI for Linux PrimTux

PrimTux, an educational Linux distribution tailored for young learners and teachers, often requires lightweight, scriptable tools. Managing cloud storage directly from the terminal simplifies automation and integration into teaching workflows. Below, we review top cloud providers offering official or community CLI tools, suggest additional options, compare features, and show how to install and use each on PrimTux.

Top Recommended Cloud Storage Providers

  • pCloud – Secure, zero-knowledge encryption (optional), 10 GB free.
  • Mega – End-to-end encrypted, 20 GB free bonus.
  • Proton Drive – Privacy-focused, end-to-end encrypted, 1 GB free.
  • Filen – Zero-knowledge encryption, 10 GB free.
  • Tresorit – Enterprise-grade security, 3 GB free.
  • Icedrive – Twofish encryption, 10 GB free.
  • rclone – Multi-backend sync tool supporting Google Drive, OneDrive, S3, Mega, pCloud, etc.
  • Dropbox (via Dropbox-Uploader) – Popular, 2 GB free.

Comparison Table

Provider Free Storage Encryption CLI Tool Price (from) Link
pCloud 10 GB Optional zero-knowledge pcloudcc €4.99/mo pcloud.com
Mega 20 GB bonus End-to-end megacmd €4.99/mo mega.nz/cmd
Proton Drive 1 GB End-to-end proton-drive-cli €4.99/mo proton.me/drive
Filen 10 GB Zero-knowledge filen-cli 2.99/mo filen.io
Tresorit 3 GB End-to-end tresorit-cli €9.99/mo tresorit.com
Icedrive 10 GB Twofish icedrive 4.99/mo icedrive.net
rclone Varies Depends on backend rclone Free rclone.org
Dropbox 2 GB At-rest TLS dropbox-uploader 11.99/mo GitHub

Which One to Choose?

  • Students Beginners: pCloud or Icedrive for user-friendly setup and decent free tier.
  • Privacy-conscious: Mega or Proton Drive for end-to-end encryption.
  • Teachers Administrators: rclone connecting to institutional Google Drive/OneDrive, or Tresorit for compliance.
  • Advanced Scripting: rclone or Dropbox-Uploader for maximum backend flexibility.

How to Use Each Cloud Storage with CLI

1. pCloud (pcloudcc)

Official pCloud CLI daemon for Linux.

  1. Install pcloudcc:
  2. sudo apt update
    sudo apt install pcloudcc
      
  3. Authenticate and run:
  4. pcloudcc -u your@email.com -p YourPassword --daemon
      
  5. Mount remote folder:
  6. mkdir -p ~/pcloud
    pcloudcc --mountpoint ~/pcloud
      
  7. Typical problems:
    • Mount errors: ensure FUSE installed (sudo apt install fuse).
    • “Conflict” issues: use --configdir to isolate profiles.

2. Mega (megacmd)

Official Mega command-line tool.

  1. Download and install:
  2. sudo apt update
    sudo apt install megacmd
      
  3. Login:
  4. mega-login your@email.com YourPassword
      
  5. Basic commands:
  6. mega-ls /Root
    mega-put localfile.txt /Root/RemoteFolder
    mega-get /Root/RemoteFolder/file.txt ~/Downloads
      
  7. Typical problems:
    • “Network timeout”: add --verbose or update to latest megacmd.

3. Proton Drive (proton-drive-cli)

  1. Install via pip:
  2. sudo apt install python3-pip
    pip3 install proton-drive-cli
      
  3. Authenticate (will open browser):
  4. proton-drive login
      
  5. Upload/download:
  6. proton-drive upload file.pdf /MyDrive/Docs
    proton-drive download /MyDrive/Docs/file.pdf .
      
  7. Typical problems:
    • OAuth fails: ensure xdg-open is installed.

4. Filen (filen-cli)

  1. Install:
  2. pip3 install filen-cli
      
  3. Configure API key:
  4. filen login
      
  5. Use:
  6. filen upload report.docx /Reports/
    filen list /Reports/
      
  7. Typical problems:
    • Rate limit: slow down batch transfers.

5. Tresorit (tresorit-cli)

  1. Download AppImage or DEB:
  2. wget https://download.tresorit.com/linux/tresorit-client.deb
    sudo apt install ./tresorit-client.deb
      
  3. Login and sync folder:
  4. tresorit login
    tresorit sync MyTresor ~/Tresorit
      
  5. Typical problems:
    • Permission denied: run tresorit daemon as your user.

6. Icedrive

  1. Download binary:
  2. wget https://icedrive.net/downloads/icedrive
    chmod  x icedrive
    sudo mv icedrive /usr/local/bin/
      
  3. Authenticate:
  4. icedrive auth
      
  5. Basic usage:
  6. icedrive upload file.png /MyDrive/Pictures
    icedrive download /MyDrive/Pictures/file.png .
      
  7. Typical problems:
    • SSL errors: install ca-certificates.

7. rclone

  1. Install:
  2. curl https://rclone.org/install.sh  sudo bash
      
  3. Configure remote:
  4. rclone config
    # Follow interactive prompts: new remote, choose provider, auth
      
  5. Sync example:
  6. rclone sync ~/SchoolDocs remote:Docs --progress
      
  7. Typical problems:
    • Auth browser fails on headless: use manual OAuth.

8. Dropbox (Dropbox-Uploader)

  1. Clone script:
  2. git clone https://github.com/andreafabrizi/Dropbox-Uploader.git
    cd Dropbox-Uploader
    chmod  x dropbox_uploader.sh
    sudo mv dropbox_uploader.sh /usr/local/bin/dropbox_uploader
      
  3. Configure:
  4. dropbox_uploader
    # Enter app key/secret or follow on-screen
      
  5. Upload/download:
  6. dropbox_uploader upload notes.txt /School/notes.txt
    dropbox_uploader download /School/notes.txt .
      
  7. Typical problems:
    • Permission denied: ensure executable bit set.

Common Issues and Troubleshooting

  • FUSE not installed: sudo apt install fuse.
  • SSL/certificate errors: sudo apt install ca-certificates.
  • Headless OAuth: use manual copy-paste tokens or configure on another machine.
  • Rate limits: throttle batch scripts with sleep.

Conclusion

Choosing the right CLI-based cloud storage depends on free tier, encryption needs, and scripting requirements. PrimTux users will find pCloud and Icedrive straightforward, while rclone offers unmatched flexibility for multi-provider workflows. Privacy-focused schools may prefer Mega or Proton Drive. Follow the installation and usage guides above to integrate cloud storage seamlessly into your PrimTux environment.

Be the first to leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *