Building a Web Server with Devuan + NextCloud

7 min

language: ja bn en es hi pt ru zh-cn zh-tw

Hello, it's me, the incompetent one.

After forcing myself to work despite being sick last week, I completely relapsed, but it seems I'm finally recovering.
Although I'm not feeling well, I couldn't stay still, so I built my own server.

Reference Documents
Welcome to Devuan
Setting up Nextcloud 21.0.1 + Apache + PHP + MariaDB + Redis on Ubuntu 20.04
Mounting an external drive using UUID and fstab | Linux admin junior

However, Redis didn't work in my environment, so I didn't feel a particular need for it and didn't force myself to install it. (I didn't install it because it was too much hassle.)
The biggest hurdle was NextCloud not recognizing the external drive. Most sites seemed to suggest installing "snapd" and then enabling the external drive with the snap command, but this was problematic because "snapd" is removed from Devuan's packages due to Systemd dependency issues. However, after setting up the mount point as described in Reference Document 3 and then adding the "External storage" app on NextCloud, it worked out.
Success!

If you were to actually install it, I think it would be easier to use an OS environment where snapd can be installed.
Since I'm a masochist, I deliberately tried an irregular pattern that no one else was doing, and somehow it worked out.
After Artix Linux and Slackware, I didn't want to go with a Systemd OS...? By the way, the last time I probably touched Systemd was in junior high school, and I don't understand it much now or then, it's just a feeling. Please judge the author's level of understanding in the latter half of this article.

Reasons for Implementation

- Breaking free from subscription dependence
- Using file sharing for work
- To deepen understanding of GNU/Linux and improve my own skills

I think it's mainly about subscriptions.
In today's information society, where "dilution of information" is accelerating, both in general and concerning AI.

Video subscriptions - I started to dislike the feeling of being chased by a limited viewing period and ended up watching even less.
In the past, I would get information from people or about my favorite fields, and enjoy watching videos on DVD or VHS at home, but this is destroying all of that. For me, it's not a problem since I've always been alone, but I feel like it's only promoting human social isolation.

Music subscriptions - The Blue Hearts, Morning Musume. Also Brian Jones's "Joujouka", THE BAD SEEDS's "Sick And Tired" etc... Where has all the great music gone?
I grew tired of my own system of depending on subscriptions, abandoning the enjoyment of comparing music by format and the specific attachments to each, such as "records", "CDs", "MDs", "cassette tapes", and with digitalization. If I 'self-cater' within a limited scope, I'll probably enjoy music from other media as well.

Using file sharing for work - Easy-to-handle shared folders are necessary for image sharing, using Office files, and managing company websites. Of course, there are Google Drive and OneDrive, but considering security risks and interoperability for management, NextCloud was the best.
I also considered USB and portable SSDs, but considering the risks of handling data on hardware, the risk of loss, and compatibility issues with different formats, I felt that cloudifying the data was the best option.

To deepen understanding of GNU/Linux and improve my own skills - Actually, I vaguely chose Devuan instead of Debian because I saw this article by Suwako-san.
Because I have a personality that makes me want to use something if not many people are doing it. And then there's this. -> Why I dislike systemd
Since I'm not an engineer nor do I work in a computer-related field, I think it's important for deepening my understanding.
Actually, this (Youtube) -> SystemD Runit Dinit OpenRC Boot Time
After watching that, for someone like me who likes fast boot speeds, OSes with init systems other than Systemd seemed more appealing.
By the way, I chose OpenRC for Devuan.

Eventually, I'd like to migrate this site to my home server, but considering the security risks, I can't take the plunge yet. It's a Google-dependent site, but I don't want to use Cloudflare, so I'll think of other methods.

The music files I used to rip from CDs are now coming to life here, and I feel somewhat happy surrounded by nostalgic music.
Perhaps this amount of music suits me better than having too much.

The end.

Related Posts