Hello everyone, I'm Gollum Melody, and I'm glad to meet you again! Today, let's take a look at how to build an open-source note-taking Joplin service and implement remote access to local data.
Joplin is an open-source note-taking software that works on multiple platforms and supports syncing notes to the cloud. However, some users want to set up a Joplin service locally and remotely access local data. Melody will show you how to set up a Joplin service and enable remote access to local data.
1. Install Joplin
First, joplin needs to be installed locally. You can install it on the JOPLIN website** or by using the package manager. Once you have installed joplin locally, you can use joplin to create notes and save them locally.
2. Install the webd** server.
In order to remotely access local data, you need to set up a webd** server locally. WebD is an HTTP protocol-based file sharing technology that can be used to share files and directories over a network. In Linux, you can use the Apache Webd module or the Nginx Webd module to set up a WebD server. In Windows, you can use the IIS Webd module to set up a WebD server.
Taking Linux as an example, the following describes how to use the Apache WebD module to set up a WebD server.
1.Install the Apache Webd module.
First, you need to install the Apache Webd module. In the ubuntu system, it can be installed with the following command:
sudo apt-get install apache2 libapache2-mod-d**
2.On a CentOS system, you can use the following command to install:
sudo yum install httpd mod_d**_svn
Configure the Apache Webd module.
After the installation is complete, you need to configure the Apache Webd module. In the Ubuntu system, the configuration file can be opened with the following command:
sudo nano /etc/apache2/mods-enabled/d**.load
On a CentOS system, you can open a configuration file with the following command:
sudo nano /etc/httpd/conf.modules.d/10-d**.conf
Then cancel the following two lines of comments, save and close the file.
loadmodule d**_module modules/mod_d**.so
loadmodule d**_fs_module modules/mod_d**_fs.so
3.Create a webd directory.
Create a webd** directory for storing Joplin notes. You can choose to put it in Apache's default root directory var www html, or you can create it in a different directory. In the Ubuntu system, you can create a webd directory using the following command:
sudo mkdir /var/www/html/webd**
sudo chown -r www-data:www-data /var/www/html/webd**
sudo chmod -r 755 /var/www/html/webd**
On a CentOS system, you can create a webd directory using the following command:
sudo mkdir /var/www/html/webd**
sudo chown -r apache:apache /var/www/html/webd**
sudo chmod -r 755 /var/www/html/webd**
4.Configure the webd user.
In order to access the webd directory, you also need to create a webd user. The Webd user can be created in the Ubuntu system using the following command:
sudo htpasswd -c /etc/apache2/.htpasswd webd**
On a CentOS system, you can create a webd user using the following command:
sudo htpasswd -c /etc/httpd/.htpasswd webd**
The webd is the username that can be modified as needed.
5.Configure the Apache Webd module.
Finally, you need to configure the Apache Webd module. In the Ubuntu system, the configuration file can be opened with the following command:
sudo nano /etc/apache2/sites-**ailable/000-default.conf
On a CentOS system, you can open a configuration file with the following command:
sudo nano /etc/httpd/conf.d/welcome.conf
Then, add the following inside the virtualhost tag:
alias /joplin "/var/www/html/webd**"
d** on
authtype basic
authname "webd**"
authuserfile /etc/apache2/.htpasswd
require valid-user
Among them, Alias Joplin specifies the URL path of access, var www html webd specifies the webd directory, authtype basic specifies the authentication method, authname specifies the authentication name, etc apache2htpasswd specifies the password file for storing the webd** user, and require valid-user specifies that only the authenticated user can access it.
Save and close the file, and then restart the Apache service:
sudo systemctl restart apache2
Or. sudo systemctl restart httpd
At this point, the webd** server has been set up.
3. Configure the joplin synchronization settings.
Finally, Joplin's sync settings need to be configured so that the notes are synced into the Webd** server.
1.Open the joplin settings.
In Joplin, open Settings and select "Synchronizer".
2.Configure Webd synchronization.
In the synchronizer, select Webd Sync. Then enter the URL of the webd server and the username and password of the webd user, and specify the synchronization directory as the webd directory. Click the "OK" button and Joplin will sync the notes to the Webd** server.
At this point, the Joplin service has been set up and the function of remote access to local data has been realized.
Summary. This topic describes how to set up a Joplin service and remotely access local data. First, joplin needs to be installed locally. Then, you'll need to set up the WebD server and configure the Apache WebD module. Finally, you need to configure the Webd sync settings in Joplin. Through the preceding steps, you can set up the Joplin service locally and realize the function of remote access to local data.
Okay, today Melody will share it with you here, friends have a better way to play it in the comment area, so that everyone can operate it more conveniently.