
Preface#
This is an article from a long time ago, there is a backup. Since I reset the blog before, I am reposting it. With the updates and iterations of the system, this tutorial may gradually become unsuitable for use, please use it at your discretion.
Preparation#
A device with DeepinOS (can be a desktop/laptop or Raspberry Pi)
Cloudreve 3.1 + software package
Software Provided#
DeepinOS installation method... just search it on Baidu.
The Cloudreve 3.2 version needs to be downloaded from GitHub. If you cannot download it, please use a well-known but indescribable tool to download it. Here’s a link: View link
Personal Configuration#
Before starting, I must say that the method here is suitable for my personal computer, and it may be applicable to others.
-
A computer with Deepin 15.11 or higher
I heard that V20 has been released, but at the time of writing this article, the highest version was 15.11, theoretically V20.1 should also work. -
Use a graphical desktop, as this is more convenient; other methods have minor differences.
Step One#
Download the corresponding Cloudreve installation package from GitHub. I chose the AMD64 package because I have an AMD PC (if I'm not mistaken, Intel can also use the AMD package). If you are using a machine based on the ARM instruction set, choose the ARM installation package.
Ps: If your machine uses the ARM64 instruction set, you can choose the ARM64 installation package version, as the 64-bit version will generally outperform the 32-bit version in terms of algorithms, which usually means faster access speeds.
Step Two#
Place the Cloudreve compressed package in the data disk you want; I chose the D drive. I do not recommend placing it in the system disk because it can get mixed up, and all files will be stored locally (if you prefer to store in the cloud, you can configure other storage methods; local storage speed is also fast, as it is on the intranet).
After moving, unzip it. You will find only one Cloudreve file without an extension.
Then, right-click in this data disk and select "Open in Terminal," so you can directly locate this disk. If you are not using a graphical interface, you can use the CD command to navigate.
At this moment, enter the following command in the terminal:
# Grant execution permissions
chmod +x ./cloudreve
# Start Cloudreve
./cloudreve
Note: The above commands should be entered in batches, not all at once, and don't be silly enough to input the comments as well.
After this, the build is complete. Once the build is finished, be sure to remember the provided default username and password; the default password is written in the Linux console after the first startup. Don't ask me why I remind you, because it won't show up on the second startup, and you can't see it anywhere else.
To be honest, it will display your own intranet IP.
My intranet IP is 192.168.31.30
.
Using my intranet IP as an example, enter 192.168.31.30:5212
in the browser to access it.
Step Three#
Although the build is complete, closing the console will lead to a Network Error
or inability to access.
Here, a daemon process is needed.
For personal reasons, I provide two methods.
Method One#
Using the Linux console.
Edit the configuration file vim /usr/lib/systemd/system/cloudreve.service
.
Replace PATH_TO_CLOUDREVE
with the directory where the program is located:
[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org/
After=network.target
Wants=network.target
[Service]
WorkingDirectory=/PATH_TO_CLOUDREVE
ExecStart=/PATH_TO_CLOUDREVE/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
This method is more straightforward, but I don't know how to exit the vim editor... so I will provide the second method.
Method Two#
For operations based on the Deepin graphical interface, other Linux systems without a graphical interface can install BT Panel for editing.
Enter the /usr/lib/systemd/system/
directory as an administrator.
Create a cloudreve.service
file and write:
[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org/
After=network.target
Wants=network.target
[Service]
WorkingDirectory=/PATH_TO_CLOUDREVE
ExecStart=/PATH_TO_CLOUDREVE/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
Step Four#
First, close the running Cloudreve Linux command console.
Then execute the following commands.
Get root privileges#
sudo su
At this point, you need to enter the root password; the root password for Deepin is the boot password.
Return to the default directory#
cd
Update configuration#
systemctl daemon-reload
Start the service#
systemctl start cloudreve
Set to start on boot#
systemctl enable cloudreve
Again, execute them one by one, and do not include the comments.
After this, everything is built! Currently, I cannot achieve startup on boot on my computer, for unknown reasons.
System Management#
Here are the management commands.
Start the service#
systemctl start cloudreve
Stop the service#
systemctl stop cloudreve
Restart the service#
systemctl restart cloudreve
Check status#
systemctl status cloudreve
Others#
If you need to access via a domain name, you can try setting up a reverse proxy. Of course, this is based on the server; locally, you can research it yourself. View link
Domain name access can also be done using the domain name + port method, so you don't need a server!
If you want to build from source code, please refer to this section View link.
All configurations are set by yourself, and emails can be sent normally. It is recommended to use port 465 for sending (i.e., the SSL port for the mail server) because ports below 100 are not enabled by default, while ports above 100 are enabled and only need to be listened to.
For more content, please refer to the official documentation View link.
Windows#
For Windows, after downloading and unzipping, it can be used directly.
However, Windows cannot run as a daemon process, so it must be run in the background.
This article is synchronized and updated to xLog by Mix Space. The original link is https://fmcf.cc/posts/technology/Deepin_Intranet-File-_Server