You find the pre-configured VM here.
Please note that this is a 64-bit VM and something called “Virtual Technology” or “VT”, has to be enabled in the BIOS if you don’t have the option to choose 64 bit. This is already enabled by default on newer computers.
1. DOWNLOAD VMWARE PLAYER.
We made the VM in VMware Workstation 10, so for best compatibility we recommend VMware Player. It’s free and easy to use. Of course you can use other software if you want to, as long as it mounts .vmdk
When you choose the free version it will ask you about your email. You can write whatever you want, or your real address as well – VMware won’t notice. Either way, you can always unsubscribe from their newsletters (if any) when you get the first mail. You usually do this in the footer of the e-mail.
If you are on Mac, you can use VirtualBox.
2. MOUNT THE VM
Please make sure that you have >20 GB free space on you hard drive, as the VM is that size when it’s mounted. Open VMware Player and mount the VM by double-clicking the .ova file located in the folder that you just extracted. Then start the Virtual Machine. If it asks you if you moved or copied it – choose copy.
If you’re on VMware:
Right click and OPen with Vmware (player)
Import the .OVA
If you’re on VirtualBox:
Click on File and choosE import Appliance:
Browse to the file and choose it:
Then just hit Next:
Change name of the VM if you want, here I named it to Nextcloud and hit Import:
4. LOG IN TO THE VIRTUAL MACHINE
When the machine is started, you have to log in, using this credentials. Use putty.exe (if you’re on Windows) to be able to copy and paste in terminal. When you are logged in you just type the sudo password like this:
[sudo] password for ncadmin: nextcloud
The script runs as soon as you become root in Ubuntu. When the script is finished it gets deleted and you will be able to run the sudo -i (to become root) command as usual.
The VM is built upon the script, so if you don’t run it you will run into issues. I.e. you will get a white screen instead of a login page when you try to access Nextcloud, and you manually have to add the trusted domains and such. It’s important to run the script the first thing you do after you’ve logged in.
The current keyboard setup is Swedish and if you don’t know your language keymap short code, this is a Swedish keyboard:
HERE IS HOW YOU LOGIN:
If you should fail to write the password or something goes wrong, you can run the script manually by typing:
$~: sudo bash /var/scripts/nextcloud-startup-script.sh
PUTTY.EXE (IF YOU WANT TO ACCESS THE SSH TERMINAL FROM A WINDOWS MACHINE)
To [copy] text in the terminal you just mark it. Right-click with the mouse to [paste] it.
ENTER YOUR INTERNAL (STATIC) IP
MARK THE TEXT
Note, if you logged in with SSH and then tries to reconnect after you ran the script you will be prompted to remove the old key in your users home folder. The command looks something like this:
ssh-keygen -f "/home/daniel/.ssh/known_hosts" -R 192.168.1.172
5. GET A TRUSTED SSL CERT WITH LET’S ENCRYPT
:~$ sudo bash /var/scripts/activate-ssl.sh
If you want others to access your Nextcloud from outside your own network you have to make it public.
You have now successfully installed your Nextcloud. To access it, use your domain name, or internal (static) IP address.
Please report issues here. Not in the comments below.
The Virtual Host “default-ssl.conf” is deactivated and replaced by Nexcloud-self-signed-ssl.conf”. Edit this file to suit your config, here is a guide.
Some useful commands
WRITE FASTER IN LINUX SHELL
Linux predicts what you want to write. So instead of writing those looong commands and paths you could just use the tab button after you wrote a few letters.