banner



How To Set Up Personal Cloud Server

How can I create a personal cloud server?

Updated: 12/31/2020 by Reckoner Hope

Illustration: Syncing a desktop computer, laptop, and smartphone with Nextcloud.

Cloud computing services have become widely used, ranging from deject storage services, like Dropbox and iCloud, to productivity suites, similar Google Workspace and Office 365. These services offer the ability to sync documents across devices and to use professional software from any spider web browser or mobile device. Every bit deject computing matures, an increasingly pop solution is for users to operate a personal deject server.

In these instructions, we create a deject storage service yous control using the open-source software, Nextcloud. Nosotros create a local test server, limited to operating in your local network. Then we install the Nextcloud client on your desktop computer and mobile device, and synchronize files between them. Then we show how you tin can run this aforementioned general configuration on a remote hosting service, so you can admission your cloud from anywhere.

About Nextcloud

Nextcloud is a deject storage server designed to scale to hundreds of thousands of users. Yous tin can run the client software on Windows, macOS, Linux, Android, and iOS, syncing files to multiple devices.

You can besides access your files on the web by logging in to your Nextcloud spider web portal. The portal features an Ambassador Control Panel, where you can add users, configure group permissions, and set individual disk quotas. The portal too uses a plugin system to provide additional features, such as real-time chat and video conferencing for yous and your other users.

To learn more nearly Nextcloud, visit the official website at https://nextcloud.com.

Creating a local Nextcloud server

Note

If you desire to skip the local installation and install Nextcloud on a web hosting service with a domain name, proceed to running Nextcloud on the Internet.

In this department, we create a Nextcloud server on your local network. The cloud service is only available to devices connected to your network. This setup lets you lot endeavour out Nextcloud in the security of your local network, without spending any coin on a domain name or a remote web hosting service.

Y'all could run the server on a defended computer, simply for testing, it's easier to install information technology on a VM (virtual auto), which you can run on your main computer. Your computer requires the following resources:

  • A 64-bit CPU with a 64-bit operating organization. If you lot're not sure, see: How to determine if you have a 32-bit or 64-bit CPU.
  • An Internet connection.
  • x GB of gratis deejay space.
  • At least 1 GB of RAM to dedicate to the VM.

Download Ubuntu 18 Server

Nextcloud requires a server running Linux. The recommended Linux OS for Nextcloud is Ubuntu Server, so that'southward what nosotros use in this instance.

Ubuntu is costless to download and use. Download Ubuntu Server 18.04 from http://releases.ubuntu.com/18.04.two/ubuntu-xviii.04.2-alive-server-amd64.iso. It'southward a large file, at about 2 GB.

Install VirtualBox and create a VM

In this example, we use Oracle VM VirtualBox to create and run our VM. VirtualBox is free of charge for personal use.

  1. In a browser, become to https://www.virtualbox.org/wiki/Downloads. Click Windows hosts to download the installer for Windows.
  2. Run the installer using the default installation options. When the installation is complete, run VirtualBox.
  3. In VirtualBox, click New to create a new virtual motorcar.

Click the New button.

  1. Name the VM. The proper name can be anything, only information technology should incorporate the word Ubuntu. Make certain "Blazon" is set to Linux and "Version" is set to Ubuntu (64-bit). Click Side by side.

Give the virtual machine a name containing the word Ubuntu.

  1. Set the "Retentiveness size" to 1024 MB (1 GB). Click Adjacent.

Set the memory size to 1024 MB.

  1. For "Hard disk," choose Create a virtual hard disk drive at present and then click Create.

Select Create a virtual hard disk now, and click Create.

  1. For "Difficult disk file type," cull VDI. Click Next.

Select Hard disk file type VDI.

  1. For "Storage on physical hard disk drive," choose Dynamically allocated.

Choose Dynamically allocated.

  1. For "File location and size," choose a deejay size of x GB. (You can cull a larger size if y'all'd like.) Click Create.

Choose disk size of 10 GB.

  1. Configure the network adapter, and then information technology'south role of your local network. With your VM highlighted on the left, click Settings.

Click the Settings button.

  1. On the left, click Network. On the right, under "Attached to," select Bridged adapter. Click OK.

On the left, click Network. In the Attached to: drop down box, choose Bridged Adapter.

  1. The VM is set to go. Click Start.

With the Ubuntu Server virtual machine highlighted, Click the Start button.

  1. At "Select start-up deejay," click the folder icon, and choose the Ubuntu ISO you downloaded. If information technology'south still downloading, wait until the download is complete. Click Showtime.

In the Select start-up disk window, click the folder icon. Select the Ubuntu Server ISO file you downloaded.

The Ubuntu Server ISO boots. Your virtual machine is up and running.

Install Ubuntu Server on your VM

Your VM boots into the Ubuntu Server live ISO, which contains the Ubuntu installer.

Note

When you click inside the VM window, it captures your mouse and keyboard. Your mouse cursor will disappear, and you may not exist able to utilize Windows shortcuts such as Alt+Tab. You can release the keyboard and mouse by pressing the VirtualBox "Host Cardinal," which is the correct Ctrl key on your keyboard. To proceed using the VM, click within its window once more.

Note

The installer interface is text-just. In the following steps, utilize the upwards, down, and Tab keys to change the highlighted option, the spacebar to toggle a check box, and Enter to make a selection.

  1. Set your keyboard type. If you're using a standard The states keyboard, press Enter.
  2. Choose Install Ubuntu and press Enter.

When the virtual machine boots from the Ubuntu Server Live ISO, choose a keyboard layout, then choose Install Ubuntu.

  1. Under "Network connections," choose the network adapter that Ubuntu should employ. In this example, we want it to apply our Ethernet connection (eth). Choose Done and printing Enter.

Select your network adapter, then choose Done.

  1. At "Configure proxy," press Enter.
  2. At "Configure Ubuntu archive mirror," printing Enter.
  3. Under "Filesystem setup," choose the default, Use an Entire Deejay. Press Enter.

In Filesystem setup, choose Use an Entire Disk.

  1. The 10 GB VirtualBox VDI is the only disk. At "Choose the disk to install to," press Enter.

Choose the VirtualBox VDI as the disk to install to.

  1. Review the summarized information, and then choose Done and press Enter.
  2. Under "Confirm destructive action," cull Keep and press Enter.

At Confirm destructive action, choose Continue.

  1. Under "Profile setup," create a new user profile. The new profile is besides the default Ubuntu administrator account. "Your name" tin be anything you like. For "Your server'south name," enter a hostname for your computer (using simply numbers, lowercase messages, dashes, and underscores), such as nextcloud. For "username," cull the name you want to use to log in to the computer (using lowercase letters and no spaces). Cull a countersign, and enter it again to verify. Choose Washed and press Enter.

In Profile Setup, create an administrator user profile, and set your hostname.

  1. Under "SSH setup," select the box marked Install OpenSSH server. An SSH allows you lot to remotely connect to the machine if necessary. Choose Washed and press Enter.

Mark the box labeled Install OpenSSH, then choose Done.

  1. Under "Featured Server Snaps," choose Nextcloud. Cull Washed and printing Enter.

Under Featured Server Snaps, select Nextcloud, then choose Done.

  1. The installation process continues. When information technology'due south washed, choose Reboot at present to kick the installed operating organization.

When installation is complete, choose Reboot Now to restart the virtual machine, and boot Ubuntu Server.

Configure Ubuntu and install Nextcloud server

  1. When the server boots, log in with the proper noun and password you chose during Ubuntu profile setup.

Note

You might notice that the login prompt gets mixed up with other arrangement letters. If you don't see the login prompt, press Enter to display a new one.

Logging into Ubuntu Server.

  1. Perform an initial system update. Run sudo apt-go update && sudo apt-get upgrade && sudo apt-get dist-upgrade. Enter your password when prompted. If y'all're asked to confirm an upgrade, type y, and press Enter.

Run sudo apt-get update, then run sudo apt-get upgrade.

  1. Add a firewall rule to allow OpenSSH connections. Run sudo ufw allow OpenSSH.
  2. Run sudo ufw enable to enable the firewall.
  3. Run sudo ufw status to verify that the firewall is filtering the server'due south network traffic.

Run sudo ufw allow OpenSSH, then run sudo ufw enable.

  1. Start the Nextcloud installer. Run sudo nextcloud.manual-install user pass . For user and pass, cull the proper noun and countersign yous want to use with your Nextcloud account. Information technology can be different than your Ubuntu name and password. This account is the Nextcloud administrator business relationship.

Run the command sudo nextcloud.manual-install username password.

Afterward a few moments, you lot meet:

          Nextcloud was successfully installed
  1. Adjacent, open ports 80 (HTTP) and 443 (HTTPS) in your firewall. Run sudo ufw allow eighty,443/tcp.

run sudo ufw allow 80,443/tcp.

  1. Nextcloud maintains an internal list of trusted domains. Only requests addressed to these domains get a response from the Nextcloud server. Past default, the but trusted domain is localhost (the server can merely respond to itself). To view the trusted domains, run sudo nextcloud.occ config:system:become trusted_domains.

sudo nextcloud.occ config:system:get trusted_domains

  1. You demand to add together your server's IP address to the trusted domain list. Starting time, determine your server'due south IP address. Run ip a | grep inet to discover the IP address of the server on your local network. If yous are on an IPv4 network, it should outset with 192.168 or 10.0.

Run up a | grep inet.

  1. Here, our address is 192.168.1.173. At present, set this address as a trusted domain. Run sudo nextcloud.occ config:arrangement:gear up trusted_domains 1 --value=domain , where the domain is the IP accost of your server.

Add your server's IP address to Nextcloud's list of trusted domains.

  1. Create an SSL document so that Nextcloud can encrypt your data over HTTPS. Because this deject is restricted to your home network, you tin utilize a self-signed certificate. Run sudo nextcloud.enable-https cocky-signed.

Enable HTTPS by generating a self-signed SSL certificate.

Server configuration is consummate, and your cloud is operational. The Nextcloud service is running, and your server is listening on your local network for HTTP and HTTPS connexion requests.

Log in to Nextcloud

To log in to your Nextcloud web dashboard, you need to add a security exception to your browser, so it accepts your self-signed SSL certificate. Normally, yous would never want to create an exception like this, unless y'all control the server and network. (This pace is not required if you lot're running Nextcloud on the Net, in which case it uses Let's Encrypt to provide SSL certificates.)

  1. In a browser, go to the address of your Nextcloud server. In this example, the address is 192.168.ane.173.
  2. Your web browser volition warn you that the SSL certificate is cocky-signed. In Chrome, click Advanced, and so Proceed to.

In Chrome, click Advanced, then Proceed to (your server address).

If you're using Firefox, click Advanced, Add Exception, Confirm Security Exception.

In Firefox, click Advanced, Add exception, Confirm security exception.

  1. Enter your Nextcloud username and countersign, as you configured them when installing Nextcloud. Click Log in.

Log in with your Nextcloud admin user and password.

  1. In the Nextcloud dashboard, you can view and work with the files you've stored in the cloud. If you click the gear icon (⚙), you tin can access Administrator settings and customize your server preferences. No configuration is necessary to begin using Nextcloud, then we won't change anything now. For a detailed guide to Nextcloud preferences, see https://docs.nextcloud.com/server/15/user_manual/userpreferences.html.

Nextcloud dashboard

How to apply Nextcloud

Your server is running, and at present it needs clients. In these steps, you'll install the Nextcloud customer on your desktop computer, and on a smartphone.

Install Nextcloud client on your desktop computer

  1. In a browser, go to https://nextcloud.com/install/. Click Download for desktop.
  2. Click Windows. The installer downloads.

Choose the operating system of your desktop computer to download the appropriate Nextcloud client.

  1. Run the installer, leaving all options at the defaults. When the installation is complete, bank check Run Nextcloud, and click Finish.

Run the Nextcloud installer. When installation is complete, choose Run Nextcloud, then click Finish.

  1. At the Nextcloud Connection Wizard, click Log in.

In the Nextcloud Connection Wizard, click Log in.

  1. For Server Address, enter the IP address of your server.

Enter the IP address of your server.

  1. You lot are notified that the server certificate is untrusted (because it is self-signed). Check the box labeled Trust this certificate anyway. Click OK.

Check the box labeled Trust this certificate anyway, then click OK.

  1. Click Log in.
  1. Enter the proper name and countersign y'all chose when installing Nextcloud. Click Log in.

Enter your Nextcloud name and password, and click Log in.

  1. Click Grant access.

Click Grant access

  1. At "Setup local folder options," click Connect.

At the Local folder options screen, leave everything at default values, and click Connect.

  1. Nextcloud starts its first sync, and downloads the default "Welcome to Nextcloud" files to your local folder.

First sync

  1. When your local folder is in sync with the server, you'll encounter a white checkmark in a green circle. When a sync is in progress, this icon turns bluish with a white arrows.

Nextcloud Syncing (blue with white arrows) and In Sync icons (green with white checkmark).

  1. You'll also meet the icon in your notification area. Click this icon to open up the Nextcloud window. Correct-click it for a card of options, including Pause synchronization, Settings, and Quit.

Nextcloud icon in the systray.

Congratulations! You lot're now running a individual cloud server, and syncing to a client. To access your local Nextcloud binder, open a File Explorer window (printing Windows fundamental+E). On the left, click Nextcloud.

In File explorer, the Nextcloud icon is in the left pane.

If you add files or folders here, they are automatically synced to the deject, and to any other devices running the client.

Install Nextcloud customer on your mobile device

Note

The screenshots in this section are on an Android device, just the steps are the aforementioned on iOS.

  1. Install the Nextcloud app. On Android, apply Google Play Store. On iOS, apply the App Store.

In the Google Play store, Install Nextcloud.

  1. Open up the app, and tap Log in.

In the Nextcloud app, click Log In.

  1. When prompted, allow access to files on your device.

Allow Nextcloud to access your files.

  1. For the server address, enter the IP accost of your server.

Enter the IP address of your Ubuntu server.

  1. Tap Yes to trust the cocky-signed certificate.

Tap Yes to trust your server's self-signed cert.

  1. Tap Log in.
  1. Enter the name and password you configured in installing Nextcloud and tap Log in.

Log in with your Nextcloud name and password.

  1. Tap Grant access.

Grant access

  1. Nextcloud is at present installed. However, no files are synced yet. On mobile, where storage is at a premium, the Nextcloud customer will not sync anything to your device until yous ask for it. To view what's bachelor to sync from your Nextcloud, tap the master menu push button ( ☰ ).

Click the hamburger menu button in the upper left. It looks like three horizontal lines.

  1. Choose All files.

Tap All Files

  1. Here, y'all see the files already on your Nextcloud server. To sync something to your device, tap the iii dots ( ⋮ ) next to the file or folder, and choose Sync.

To sync an item to your device, click the three vertical dots next to the item, and choose Sync.

  1. To work with files that are synced to your device, open the main menu ( ☰ ) and cull On device.

Tap the hamburger menu, and tap On device.

  1. To upload files from your device to Nextcloud, open the binder where you want to put the file, and tap the plus icon (+).

Click the Plus icon to add files from your device to the cloud.

Starting and stopping the VM

Your Nextcloud server is now available to any devices continued to your local network, equally long equally your VM is running. However, you volition desire to stop the server when y'all're done testing, or when you demand to close down or reboot your computer.

You can close downwards your Ubuntu server from the Ubuntu Server command line by running sudo shutdown now. To start the server later, select the VM in your VirtualBox window, and click Start.

Alternatively, y'all can save the car state. Saving state will freeze the VM and all its current memory contents, and resume from this point when you start it afterward. To save the state, hold down the correct Ctrl key on your keyboard, and press Q primal. Select Save the machine land, and click OK.

In VirtualBox, hold the right Ctrl button and press the Q key, then choose Save state.

Running Nextcloud on the Net

If yous desire to access your cloud from anywhere, yous can create this same setup on a remote host, such as Linode or DigitalOcean.

These steps require you own a domain name. Configure Nextcloud to use a subdomain of your existing domain, such as subdomain.mydomain.com.

  • How do I register a domain name?

In the following instance, nosotros prepare up Nextcloud on a Linode "Nanode," their minimal hosting option. Every bit of March 2022, a Nanode offers 1 CPU, i GB RAM, and 25 GB SSD for your hosting case, priced at $5/mo.

Notation

These steps likewise work on the equivalent $5/mo hosting selection at DigitalOcean.

Create an Ubuntu Nanode and configure your domain

  1. Log in to your Linode account. Go to https://www.linode.com/, and click Log in. Enter your Linode name and password.
  1. At the Linode dashboard, click Create, and choose Linode.
  1. Nether "Create from paradigm," "Public Images," choose Ubuntu.
  1. For "Region," choose the location that is geographically closest to your usage area.
  1. For "Linode Plan," chose Nanode. (You can choose a more expensive hosting option if you adopt.)
  1. For "Root password," gear up the Ambassador password for your hosting instance. The starting time fourth dimension you log in to the instance, you will log in every bit username root, and the password y'all set here.
  1. Click Create.
  1. Make up one's mind the IP accost of your server. In the Linode dashboard, click Linodes on the left. On the right, you'll see the IPv4 and IPv6 address of your Nanode. Copy down the IPv4 address.
  1. Log in to your domain proper name registrar account. Add a new DNS resource record to your domain proper noun'southward DNS settings. (If you're non sure how to add a record to your domain name, check the documentation on your registrar's website.) Create a new Type A record. The Proper name of the record is the subdomain name. For example, y'all could proper name it nextcloud, mycloud, or anything else you similar. (The name should incorporate simply lowercase letters, numbers, dashes, or underscores, and no spaces). Fix the Data entry of the record to the IP address of your Nanode, which you wrote downward in the previous footstep.

Configure Ubuntu, and install Nextcloud server

  1. In your Linode dashboard, on the left, click Linodes. Under your new Nanode, click Launch Panel.
  1. If necessary, printing Enter to get a login prompt. For the user, enter root. For countersign, enter the root countersign you lot configured when creating the Nanode.
  1. Update the system.
          apt-become update && apt-get upgrade && apt-get dist-upgrade

Note

If you lot are prompted about updating your GRUB configuration, choose to proceed the currently installed GRUB configuration.

  1. Create a regular arrangement user, so you can log in as someone other than root. Run the adduser command. The username tin be annihilation you like (lowercase messages, numbers, dashes, and underscores, no spaces). Enter a countersign, then enter it again to verify it. The rest of the information can be left bare. When prompted, type y and printing Enter to create the user.
          adduser          username        
  1. Side by side, run usermod to add this user to the "sudo" group, so y'all can run administrator commands without logging in to the root account.
          usermod -aG sudo          username        
  1. Your regular user tin now run commands with sudo. Log out of the root account.
          exit
  1. Log in again, with the regular user'south name and password.
  1. Run the post-obit command to cheque if the snap package managing director is installed, and if not, install it.
          if ! which snap; then sudo apt-get install snapd; fi
  1. Install the Nextcloud server snap package. When prompted, enter the regular user'south countersign.
          sudo snap install nextcloud
  1. Install the Nextcloud server. For newuser and newpass, enter a new username and countersign for the Nextcloud administrator account. (You use these to log in to the Nextcloud client apps and web portal.)
          sudo nextcloud.manual-install          newuser          newpass        
  1. Configure the firewall to allow OpenSSH, HTTP, and HTTPS connections, and then enable the firewall.
          sudo ufw allow OpenSSH
          sudo ufw allow 80,443/tcp
          sudo ufw enable
  1. Set your subdomain every bit a Nextcloud trusted domain. Only requests made to this domain name will receive a response from Nextcloud. In the adjacent command, supersede subdomain.mydomain.com with your subdomain proper noun.
          sudo nextcloud.occ config:system:set trusted_domains one --value subdomain.mydomain.com
  1. Enable HTTPS using Let's Encrypt. This stride automatically creates an SSL certificate for you, that needs to exist renewed (for free) every ninety days.
          sudo nextcloud.enable-https lets-encrypt
  1. Verify you lot meet the requirements, then type y to proceed.
  1. At "Enter an e-mail address," enter an electronic mail accost where Allow'south Encrypt can notify you nearly document renewal.
  1. At "Enter your domain name(south)," enter your subdomain name, for example, subdomain.mydomain.com.

Your Nextcloud is now running on the Internet. You can use it equally described in the department how to use Nextcloud, but instead of a local IP address, use your subdomain proper name.

If you enter your subdomain proper name in a web browser, yous can log in to the Nextcloud spider web portal with your Nextcloud ambassador username and password. When installing the Nextcloud customer, employ your subdomain name as the Nextcloud server address.

All-time of all, you don't need to add any trust exceptions to your browser or customer, because Let's Encrypt certificates are registered with a trusted certificate authorisation.

General Nextcloud tips

Saving big files

If you're working with a big file and saving it frequently, Nextcloud might take trouble syncing it. This problem arises when you brand changes to the file faster than it tin be uploaded to the server. If yous encounter this problem, wait until the Nextcloud icon in your notification area turns greenish before saving your document again. Or, correct-click the Nextcloud icon and cull Suspension synchronization. When y'all're ready, right-click the icon and choose Resume synchronization to upload your changes to Nextcloud.

Resolving conflicts

If changes are made to a file on two carve up devices, either at the same fourth dimension or while one device is not running the Nextcloud customer, conflicts may arise. The conflict occurs when you try to sync both versions of the file.

If the Nextcloud server isn't sure which version of the file you want to keep, information technology will keep them both, and display a warning in the customer window. The Nextcloud icon changes to a yellow circle with an exclamation mark.

Nextcloud message stating there are unresolved conflicts.

Click the yellowish message bar to view the action log, and find out which files are having a conflict.

In the activity log, you can see which files are conflicted.

The alien file will be renamed to include "conflicted re-create" and the date. Yous can open both versions of the file and compare them, to effigy out which one y'all desire to keep.

To resolve the disharmonize, move the conflicted copy to a location exterior of your Nextcloud binder, such as your desktop. Or, if yous're sure, you tin delete it.

When your Nextcloud binder contains no files with "conflicted copy" in their file name, the disharmonize is resolved. If your icon doesn't turn light-green right abroad, you can force a new sync, which will re-bank check the files in your local Nextcloud. In your client window, click the push with three dots ( ⋯ ) to the right of your chief Nextcloud folder, and choose Forcefulness sync at present.

In the Nextcloud client window, click the button with three dots next to your main Nextcloud folder. Choose Force sync now.

When the icon changes back to the green checkmark, your files are in sync again.

How To Set Up Personal Cloud Server,

Source: https://www.computerhope.com/issues/ch001982.htm

Posted by: mccandlessthriff.blogspot.com

0 Response to "How To Set Up Personal Cloud Server"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel