Skip to content

A comprehensive, one-click installation script for Nextcloud All-in-One (AIO) that automatically detects your Linux distribution and handles the complete setup process. Compatible with Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, and Fedora.

License

Notifications You must be signed in to change notification settings

itsredbull/nextcloud-aio-install-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Universal Nextcloud All-in-One Installation Script

License: MIT Platform Docker

A comprehensive, one-click installation script for Nextcloud All-in-One (AIO) that automatically detects your Linux distribution and handles the complete setup process. Compatible with Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, and Fedora.

✨ Features

  • Universal Compatibility: Automatically detects and adapts to different Linux distributions
  • One-Click Installation: Complete automation from Docker installation to Nextcloud AIO setup
  • Smart Distribution Detection: Supports both Debian-based and RHEL-based systems
  • Automatic Firewall Configuration: Configures UFW and firewalld automatically
  • IPv6 Support: Pre-configured Docker daemon with IPv6 capabilities
  • SELinux Compatibility: Handles SELinux configurations for RHEL-based systems
  • Comprehensive Logging: Detailed installation logs for troubleshooting
  • Error Recovery: Built-in error handling and recovery mechanisms

πŸ–₯️ Supported Distributions

Distribution Family Supported Versions
Debian-based Ubuntu 18.04+, Debian 10+, Raspbian
RHEL-based AlmaLinux 8+, Rocky Linux 8+, CentOS 7+, RHEL 8+, Fedora 32+

πŸš€ Quick Installation

Prerequisites

  • Fresh Linux server (VPS or dedicated server)
  • Root access or sudo privileges
  • Minimum 2GB RAM, 20GB disk space
  • Open ports: 80, 8080, 8443, 3478 (TCP/UDP)

Installation Command

# Download and run the installation script
curl -fsSL https://raw.githubusercontent.com/itsredbull/nextcloud-aio-install-script/main/install-nextcloud-aio.sh | sudo bash

Or download and run manually:

# Download the script
wget https://raw.githubusercontent.com/itsredbull/nextcloud-aio-install-script/main/install-nextcloud-aio.sh

# Make it executable
chmod +x install-nextcloud-aio.sh

# Run the installation
sudo ./install-nextcloud-aio.sh

🌐 Recommended Server Provider

MyHBD.net - Professional VPS Hosting

We recommend MyHBD.net for hosting your Nextcloud instance:

🌍 Global Locations Available:

  • Europe: Germany, France, Netherlands, UK
  • North America: USA (East & West Coast), Canada
  • Asia-Pacific: Singapore, Japan, Australia
  • Middle East: UAE, Turkey

πŸ’° Affordable Plans Starting From:

  • Basic VPS: 2GB RAM, 50GB SSD - Perfect for personal use
  • Professional VPS: 4GB RAM, 100GB SSD - Ideal for small teams
  • Enterprise VPS: 8GB+ RAM, 200GB+ SSD - For organizations

⚑ One-Click Nextcloud Installation:

  1. Sign up at MyHBD.net
  2. Choose your preferred location
  3. Deploy a fresh Ubuntu/Debian VPS
  4. Run our installation script
  5. Access your Nextcloud in minutes!

πŸ“‹ Post-Installation Steps

1. Access Nextcloud AIO Interface

After installation completes, you'll see output similar to:

βœ… Installation completed successfully!

Access Nextcloud AIO Interface at: https://YOUR_SERVER_IP:8080

2. Initial Setup Process

  1. Open your browser and navigate to https://YOUR_SERVER_IP:8080

    • Replace YOUR_SERVER_IP with your actual server IP address
    • Important: Always use the IP address, not a domain name for port 8080
  2. Accept the self-signed certificate warning in your browser

  3. Enter your server's IP address when prompted by the Nextcloud AIO interface

  4. Set up your admin credentials and configure your instance

  5. Optional: Configure a domain name for easier access via port 8443

3. Important Security Notes

  • The script automatically configures your firewall
  • Always use HTTPS (the script sets up SSL automatically)
  • Keep your Nextcloud instance updated through the AIO interface
  • Consider setting up automated backups

πŸ”§ Manual Configuration

Required Ports

The script automatically opens these ports, but verify they're accessible:

Port Protocol Purpose
80 TCP HTTP (redirects to HTTPS)
8080 TCP Nextcloud AIO Interface
8443 TCP Nextcloud AIO (with domain)
3478 TCP/UDP Nextcloud Talk (TURN server)

Custom Domain Setup

If you have a domain pointing to your server:

  1. Ensure DNS A-record points to your server IP
  2. Access Nextcloud AIO via https://yourdomain.com:8443
  3. Configure SSL certificates through the AIO interface

πŸ“Š What Gets Installed

  • Docker CE: Latest stable version with IPv6 support
  • Nextcloud AIO Master Container: Official all-in-one solution
  • Automatic Services: Nextcloud, Database, Redis, Apache, and more
  • SSL Certificates: Automatic Let's Encrypt integration
  • Backup Solution: Built-in backup and restore functionality

πŸ” Troubleshooting

Installation Logs

Check the detailed installation log:

sudo cat /nextcloudinstall.log

Container Status

Check if Nextcloud AIO container is running:

sudo docker ps | grep nextcloud-aio

Restart Container

If needed, restart the Nextcloud AIO container:

sudo docker restart nextcloud-aio-mastercontainer

Common Issues

Port 8080 not accessible:

  • Check firewall settings: sudo ufw status or sudo firewall-cmd --list-all
  • Verify container is running: sudo docker ps

Cannot access via domain:

  • Use IP address with port 8080 for initial setup
  • Configure domain through AIO interface after initial setup

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Test on multiple distributions
  4. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⭐ Support

  • Star this repository if you find it helpful
  • Report issues via GitHub Issues
  • Share with others who need Nextcloud hosting

πŸ™ Acknowledgments


πŸ“ž Need Help?

Made with ❀️ for the Open Source Community

About

A comprehensive, one-click installation script for Nextcloud All-in-One (AIO) that automatically detects your Linux distribution and handles the complete setup process. Compatible with Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, and Fedora.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages