Installing Nextcloud on Debian VPS¶
After Debian Install¶
-
Install Necessary Packages:
-
Change zram Configuration:
-
Replace
.bashrc
:
Installing Nextcloud¶
-
Download Nextcloud:
-
Install MariaDB:
-
Create Nextcloud Database:
Inside the MariaDB shell:
CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'mypassword'; FLUSH PRIVILEGES;
Exit the MariaDB shell with
CTRL+D
. -
Set Up Apache Webserver:
-
Install Required Packages:
-
Enable Apache Modules:
-
Unzip and Move Nextcloud:
-
Configure Apache for Nextcloud:
Add the following contents to
nextcloud.conf
:<VirtualHost *:80> DocumentRoot "/var/www/nextcloud" ServerName nextcloud <Directory "/var/www/nextcloud/"> Options MultiViews FollowSymlinks AllowOverride All Order allow,deny Allow from all </Directory> TransferLog /var/log/apache2/nextcloud_access.log ErrorLog /var/log/apache2/nextcloud_error.log </VirtualHost>
-
Enable Nextcloud Site and Restart Apache:
-
-
Adjust PHP Settings (for Debian 12):
Update the following parameters:
-
Restart Apache:
Dealing with Warnings¶
-
Change config.php permissions
-
Detected some missing optional indices.
Make occ executable:
Then add missing indices:
Check to see if error is no longer
-
One or more mimetype migrations are available
-
The following warnings
-
Server has no maintenance window start time configured.
-
The database is used for transactional file locking.
-
No memory cache has been configured.
-
Your installation has no default phone region set.
-
You have not set or verified your email server configuration yet.
maintenance => false,
Add:
'mail_from_address' => 'nextcloud', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => 'gmail.com', 'mail_smtphost' => 'smtp.gmail.com', 'mail_smtpport' => '587', 'mail_smtpauth' => 1, 'mail_smtpname' => '[email protected]', 'mail_smtppassword' => 'app-specific-pw', 'maintenance_window_start' => 1, 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, ), 'default_phone_region' => 'US', 'overwriteprotocol' => 'https',
-
-
Some headers are not set correctly on your instance - The
Strict-Transport-Security
HTTP header is not set (should be at least15552000
seconds).Add after
Restart apache2 -
Array: Not a warning but good idea
Files Drop¶
Nextcloud Files Drop is a feature designed to simplify the process of receiving files from others, especially when they don't have a Nextcloud account. It allows you to create upload-only links where people can easily upload files to your Nextcloud instance without requiring them to log in or have an account. Here's a more detailed look at Nextcloud Files Drop:
Key Features¶
- Create Upload Links:
- Generate Links: You can create a unique upload link for a specific folder in your Nextcloud. This link can be shared with anyone who needs to upload files.
-
No Account Needed: The people receiving the link do not need to have a Nextcloud account to upload files.
-
Manage Upload Permissions:
- Set Folder Limits: You can designate specific folders for file uploads, keeping your main storage organized and separating uploaded files from other content.
-
Limit Upload Size: Control the maximum file size that can be uploaded via the link to prevent excessively large files from being added.
-
Security and Privacy:
- Expiration Dates: Set an expiration date for the upload link, ensuring it is only valid for a certain period of time.
-
Password Protection: You can add a password to the upload link, adding an extra layer of security to control who can access the link.
-
Notifications:
-
Receive Alerts: Get notifications when someone uploads a file through the link. This helps you keep track of incoming files and manage them efficiently.
-
User-Friendly Interface:
-
Simple Upload Interface: The upload page is designed to be straightforward and user-friendly, making it easy for anyone to upload files without needing technical knowledge.
-
Integration with Nextcloud's File Management:
- Organize Files: Uploaded files are automatically stored in the designated folder within Nextcloud, making it easy to organize and manage them alongside your other files.
How to Use Files Drop¶
- Enable Files Drop:
-
Ensure the Files Drop app is enabled in your Nextcloud instance. This can be done through the Nextcloud App Store or by accessing the Nextcloud app management settings.
-
Create a Files Drop Link:
- Go to the folder where you want to receive files.
- Click on the "Share" button for that folder.
-
Select the option to create a Files Drop link.
-
Configure the Link:
- Set any desired options such as expiration date, password protection, and file size limits.
-
Copy the generated link.
-
Share the Link:
-
Send the link to the individuals who need to upload files. They will be able to use the link to access the upload interface.
-
Monitor and Manage:
- Monitor incoming files and manage them as needed. You can access them in the designated folder and organize them according to your preferences.
Use Cases for Files Drop¶
- Collecting Documents: Useful for collecting documents from clients, collaborators, or team members without needing them to have a Nextcloud account.
- Event or Project Contributions: Ideal for gathering contributions or files related to a specific event or project from multiple people.
- Public File Requests: Handy for scenarios where you need to collect files from a large group of people, such as during surveys or feedback collection.
Nextcloud Files Drop streamlines the process of collecting files while maintaining control and organization within your Nextcloud environment. It enhances collaboration and makes file submission straightforward for anyone involved.
Nextcloud App¶
File Management¶
- Nextcloud Files: Powerful, portable cloud storage for uploading, managing, and sharing files with features like advanced sharing options and file versioning.
- Files Metadata: Enhance file organization with rich metadata for easier search and categorization.
- External Storage: Integrate various external storage services to centralize file access.
- FileDrop: Easily share files by dragging and dropping them into a designated area, simplifying file transfer.
- Dropbox Integration: Connect your Dropbox account for seamless access and synchronization of files.
Communication & Collab¶
- Nextcloud Talk: Secure video calls, chat, and conferencing to facilitate team communication while prioritizing privacy.
- Collabora Online / OnlyOffice: Collaborative document editing within Nextcloud, allowing real-time teamwork.
- Deck: Visual project management tool for organizing tasks into boards and cards.
- Tasks: Straightforward to-do list manager for tracking tasks and deadlines effectively.
- 4a. Integration: GNOME Endeavour app for enhanced task management.
- 4b. Mobile Options:
- OpenTasks for Android
- iOS sync with Apple Reminders
- Nextcloud Deck for collaborative task management
- Collectives: Collaborative knowledge base to organize and share information within teams.
- Element: A secure chat and collaboration app integrated with Nextcloud for Matrix communication, promoting seamless team interactions.
- Repod: A podcast app for managing and sharing podcast subscriptions, enhancing team engagement through audio content.
Personal Management¶
- Passwords: Self-hosted password manager for secure management and sharing of sensitive data.
- Contacts: Manage and securely share contacts with seamless syncing.
- Calendar: Schedule events and share calendars for organized planning.
- Notes: Portable Markdown-based note-taking app for structured documentation.
- Google Synchronization App: Sync your Google Calendar and Contacts with Nextcloud for unified management.
Media & Content¶
- Nextcloud Photos: Manage and share your photo collections securely, creating albums and organizing memories.
- Nextcloud Maps: Explore and manage maps, integrating location-based features for enhanced project planning.
- News: RSS feed reader for aggregating content from various sources.
- Extract: A powerful tool for extracting text and images from documents and files for easier data management.
Surveys and Feedback¶
- Forms: Create customizable forms and surveys to collect feedback while ensuring user privacy.
Integration & Customization¶
- Mastodon Integration: Connect with the decentralized social network for enhanced connectivity.
- Twitter Integration: Seamlessly integrate with Twitter for quick updates and interaction.
- Custom Menu: Tailor the Nextcloud menu for an optimized user experience.
- External Sites: Add links to external websites or applications to create a centralized hub.
- Bookmarks: Save and share favorite websites with integration for the Firefox extension Floccus for easy synchronization.
- Custom CSS: Customize the Nextcloud interface with your own CSS styling, enhancing the visual experience and allowing for unique modifications.
- Google Docs Redirect App: Easily redirect to Google Docs from Nextcloud for seamless document access and editing.
- LibreSign: A document signing app that allows you to sign documents securely and manage signatures within Nextcloud.
Security Features¶
- Two-Factor Authentication: Add an extra layer of protection during login.
Productivity Enhancements¶
- Bookmarks: Organize and access most visited links easily.
- Unrounded Corners: A design feature to enhance the aesthetic appeal of the Nextcloud interface.
- Breeze Dark Theme: A visually appealing dark theme option that can utilize custom CSS styling for further personalization.
Wrap up¶
That's it. If you have any additional tips send them my way so I can add to this thing. The more the merrier. Useful for all.