Set up and use Nextcloud on a new Digital Ocean droplet!
new Digital Ocean droplet setup
- had d.o. account with ssh keys for my computer already.
- new droplet via d.o. web GUI. yes, import my ssh key. i chose ubuntu 18.08, $20/mo tier o_O is this too much?
- used d.o.'s automatic script to do initial setup and make new admin user for the server. had to ssh in as root first, download script according to their instructions in that article, and change the username. i did not have to change “also copy over the ssh key” (becuase it defaulted to true), or “other ssh keys to add” (because i didn’t have any to add and it defaulted to blank).
- added a firewall using the web gui. step 4 of Initial Server Setup with Ubuntu 18.04 | DigitalOcean said to either use ufw OR the gui. i chose the gui. o_O firewall article: Firewall Overview :: DigitalOcean Product Documentation
- now i’ve met the prereqs for How To Install and Configure Nextcloud on Ubuntu 18.04 | DigitalOcean which was
A sudo user and firewall configured on your server. now i should finish reading it and consider the domain name thing.
- okay, i’ve gone to gandi and set up four new rows for dns stuff. (what i did was first add my subdomain and domain name to digital ocean dns via the d.o. web gui, look at the records it generated, then manually added them via gandi’s web gui. i have no idea if this will work. then i deleted the dns entries from the digital ocean dns via d.o.'s web gui.) (i do NOT want to use How To Point to DigitalOcean Nameservers From Common Domain Registrars | DigitalOcean because i actually am using gandi’s nameservers.)
Step 1 -
sudo snap install nextcloudasked me for my pw of course. now it’s trucking along. interesting.
2019-06-05T19:57:28Z INFO Waiting for restart... nextcloud 15.0.8snap2 from Nextcloud✓ installed
- inspect changes. this is my first time using snap and i have no idea what these changes are. i guess it will, in the future, be a log of how i’ve interacted with my snap-managed nextcloud installation.
$ snap changes nextcloud ID Status Spawn Ready Summary 2 Done today at 19:57 UTC today at 19:57 UTC Install "nextcloud" snap
- set it up automatically
$ sudo nextcloud.manual-install USERNAME PASSWORD Nextcloud was successfully installed
note: do not put a bang in
- trusted domains. first check if it’s only localhost.
$ sudo nextcloud.occ config:system:get trusted_domains localhost
- okay i’ve added it using
sudo nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.judytuna.comand now you know where my installation of it can be reached lol. that’s okay though right? now check it.
$ sudo nextcloud.occ config:system:get trusted_domains localhost nextcloud.judytuna.com
- uhhhhhhhh??? i have no idea what i’m doing. followed the instructions and failed A lookup. i have to wait for dns.
- actually, it was the firewall. i needed to allow http and https connections! i did that in the d.o. web gui.
- i sshed in and ran
sudo nextcloud.enable-https lets-encryptand it WORKED
- OMFG I CAN LOG IN TO https://nextcloud.judytuna.com this is awesome
- [ ] get clients for my devices
- upload something
- [ ] federate?
- ask some friends to join my instance so we can see the social features on a single instance
- [ ] compare and contrast social features on a with federating
- [ ] get it sending emails somehow
- [ ] open-office-online