Total Pageviews

Wednesday, 19 August 2020

Joplin


Joplin - an open source note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. Forum: https://discourse.joplinapp.org/

Joplin is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified either from the applications directly or from your own text editor. The notes are in Markdown format.

Notes exported from Evernote via .enex files can be imported into Joplin, including the formatted content (which is converted to Markdown), resources (images, attachments, etc.) and complete metadata (geolocation, updated time, created time, etc.). Plain Markdown files can also be imported.

The notes can be synchronised with various cloud services including Nextcloud, Dropbox, OneDrive, WebDAV or the file system (for example with a network directory). When synchronising the notes, notebooks, tags and other metadata are saved to plain text files which can be easily inspected, backed up and moved around.

The application is available for Windows, Linux, macOS, Android and iOS (the terminal app also works on FreeBSD). A Web Clipper, to save web pages and screenshots from your browser, is also available for Firefox and Chrome.

Installation

Three types of applications are available: for the desktop (Windows, macOS and Linux), for mobile (Android and iOS) and for terminal (Windows, macOS, Linux and FreeBSD). All applications have similar user interfaces and can synchronise with each other.

Desktop applications

Operating SystemDownloadAlternative
Windows (32 and 64-bit)Get it on WindowsOr get the Portable version

The portable application allows installing the software on a portable device such as a USB key. Simply copy the file JoplinPortable.exe in any directory on that USB key ; the application will then create a directory called "JoplinProfile" next to the executable file.
macOSGet it on macOSYou can also use Homebrew (unsupported): brew cask install joplin
LinuxGet it on LinuxAn Arch Linux package (unsupported) is also available.

If it works with your distribution (it has been tested on Ubuntu, Fedora, and Mint; the desktop environments supported are GNOME, KDE, Xfce, MATE, LXQT, LXDE, Unity, Cinnamon, Deepin and Pantheon), the recommended way is to use this script as it will handle the desktop icon too:

wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash

Mobile applications

Operating SystemDownloadAlt. Download
AndroidGet it on Google Playor download the APK file: 64-bit 32-bit
iOSGet it on the App Store-

Terminal application

Operating systemMethod
macOS, Linux, or Windows (via WSL)Important: First, install Node 10+.

NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin
sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin

By default, the application binary will be installed under ~/.joplin-bin. You may change this directory if needed. Alternatively, if your npm permissions are setup as described here (Option 2) then simply running npm -g install joplin would work.

To start it, type joplin.

For usage information, please refer to the full Joplin Terminal Application Documentation.

Unsupported methods

There are other ways to install the terminal application. However, they are not supported and problems must be reported to the upstream projects.

Operating systemMethod
macOSbrew install joplin
Arch LinuxAn Arch Linux package is available here. To install it, use an AUR wrapper such as yay: yay -S joplin. Both the CLI tool (type joplin) and desktop app (type joplin-desktop) are packaged. You can also install a compiled version with the chaotic-aur repository. For support, please go to the GitHub repo.

Web Clipper

The Web Clipper is a browser extension that allows you to save web pages and screenshots from your browser. For more information on how to install and use it, see the Web Clipper Help Page.






Devon Zuegel

小西 孝宗

Alexander van der Berg

Nicholas Head

Frank Bloise

Thomas Broussard

Table of contents

Features

  • Desktop, mobile and terminal applications.
  • Web Clipper for Firefox and Chrome.
  • End To End Encryption (E2EE)
  • Note history (revisions)
  • Synchronisation with various services, including Nextcloud, Dropbox, WebDAV and OneDrive.
  • Import Enex files (Evernote export format) and Markdown files.
  • Export JEX files (Joplin Export format) and raw files.
  • Support notes, to-dos, tags and notebooks.
  • Goto Anything feature.
  • Sort notes by multiple criteria - title, updated time, etc.
  • Support for alarms (notifications) in mobile and desktop applications.
  • Offline first, so the entire data is always available on the device even without an internet connection.
  • Markdown notes, which are rendered with images and formatting in the desktop and mobile applications. Support for extra features such as math notation and checkboxes.
  • File attachment support - images are displayed, and other files are linked and can be opened in the relevant application.
  • Search functionality.
  • Geo-location support.
  • Supports multiple languages
  • External editor support - open notes in your favorite external editor with one click in Joplin.

Importing

Importing from Evernote

Joplin was designed as a replacement for Evernote and so can import complete Evernote notebooks, as well as notes, tags, resources (attached files) and note metadata (such as author, geo-location, etc.) via ENEX files. In terms of data, the only two things that might slightly differ are:

  • Recognition data - Evernote images, in particular scanned (or photographed) documents have recognition data associated with them. It is the text that Evernote has been able to recognise in the document. This data is not preserved when the note are imported into Joplin. However, should it become supported in the search tool or other parts of Joplin, it should be possible to regenerate this recognition data since the actual image would still be available.

  • Colour, font sizes and faces - Evernote text is stored as HTML and this is converted to Markdown during the import process. For notes that are mostly plain text or with basic formatting (bold, italic, bullet points, links, etc.) this is a lossless conversion, and the note, once rendered back to HTML should be very similar. Tables are also imported and converted to Markdown tables. For very complex notes, some formatting data might be lost - in particular colours, font sizes and font faces will not be imported. The text itself however is always imported in full regardless of formatting.

To import Evernote data, first export your Evernote notebooks to ENEX files as described here. Then follow these steps:

In the desktop application, open File > Import > ENEX and select your file. The notes will be imported into a new separate notebook. If needed they can then be moved to a different notebook, or the notebook can be renamed, etc.

In the terminal application, in command-line mode, type import /path/to/file.enex. This will import the notes into a new notebook named after the filename.

Importing from Markdown files

Joplin can import notes from plain Markdown file. You can either import a complete directory of Markdown files or individual files.

In the desktop application, open File > Import > MD and select your Markdown file or directory.

In the terminal application, in command-line mode, type import --format md /path/to/file.md or import --format md /path/to/directory/.

Importing from other applications

In general the way to import notes from any application into Joplin is to convert the notes to ENEX files (Evernote format) and to import these ENEX files into Joplin using the method above. Most note-taking applications support ENEX files so it should be relatively straightforward. For help about specific applications, see below:

Exporting

Joplin can export to the JEX format (Joplin Export file), which is a tar file that can contain multiple notes, notebooks, etc. This is a lossless format in that all the notes, but also metadata such as geo-location, updated time, tags, etc. are preserved. This format is convenient for backup purposes and can be re-imported into Joplin. A "raw" format is also available. This is the same as the JEX format except that the data is saved to a directory and each item represented by a single file.

Synchronisation

One of the goals of Joplin was to avoid being tied to any particular company or service, whether it is Evernote, Google or Microsoft. As such the synchronisation is designed without any hard dependency to any particular service. Most of the synchronisation process is done at an abstract level and access to external services, such as Nextcloud or Dropbox, is done via lightweight drivers. It is easy to support new services by creating simple drivers that provide a filesystem-like interface, i.e. the ability to read, write, delete and list items. It is also simple to switch from one service to another or to even sync to multiple services at once. Each note, notebook, tags, as well as the relation between items is transmitted as plain text files during synchronisation, which means the data can also be moved to a different application, can be easily backed up, inspected, etc.

Currently, synchronisation is possible with Nextcloud, Dropbox, OneDrive or the local filesystem. To enable synchronisation please follow the instructions below. After that, the application will synchronise in the background whenever it is running, or you can click on "Synchronise" to start a synchronisation manually.

Nextcloud synchronisation

Nextcloud is a self-hosted, private cloud solution. It can store documents, images and videos but also calendars, passwords and countless other things and can sync them to your laptop or phone. As you can host your own Nextcloud server, you own both the data on your device and infrastructure used for synchronisation. As such it is a good fit for Joplin. The platform is also well supported and with a strong community, so it is likely to be around for a while - since it's open source anyway, it is not a service that can be closed, it can exist on a server for as long as one chooses.

In the desktop application or mobile application, go to the config screen and select Nextcloud as the synchronisation target. Then input the WebDAV URL (to get it, click on Settings in the bottom left corner of the page, in Nextcloud), this is normally https://example.com/nextcloud/remote.php/webdav/Joplin (make sure to create the "Joplin" directory in Nextcloud), and set the username and password. If it does not work, please see this explanation for more details.

In the terminal application, you will need to set the sync.target config variable and all the sync.5.pathsync.5.username and sync.5.password config variables to, respectively the Nextcloud WebDAV URL, your username and your password. This can be done from the command line mode using:

:config sync.5.path https://example.com/nextcloud/remote.php/webdav/Joplin
:config sync.5.username YOUR_USERNAME
:config sync.5.password YOUR_PASSWORD
:config sync.target 5

If synchronisation does not work, please consult the logs in the app profile directory - it is often due to a misconfigured URL or password. The log should indicate what the exact issue is.

Dropbox synchronisation

When syncing with Dropbox, Joplin creates a sub-directory in Dropbox, in /Apps/Joplin and read/write the notes and notebooks from it. The application does not have access to anything outside this directory.

In the desktop application or mobile application, select "Dropbox" as the synchronisation target in the config screen (it is selected by default). Then, to initiate the synchronisation process, click on the "Synchronise" button in the sidebar and follow the instructions.

In the terminal application, to initiate the synchronisation process, type :sync. You will be asked to follow a link to authorise the application. It is possible to also synchronise outside of the user interface by typing joplin sync from the terminal. This can be used to setup a cron script to synchronise at regular interval. For example, this would do it every 30 minutes:

*/30 * * * * /path/to/joplin sync

WebDAV synchronisation

Select the "WebDAV" synchronisation target and follow the same instructions as for Nextcloud above.

WebDAV-compatible services that are known to work with Joplin:

OneDrive synchronisation

When syncing with OneDrive, Joplin creates a sub-directory in OneDrive, in /Apps/Joplin and read/write the notes and notebooks from it. The application does not have access to anything outside this directory.

In the desktop application or mobile application, select "OneDrive" as the synchronisation target in the config screen. Then, to initiate the synchronisation process, click on the "Synchronise" button in the sidebar and follow the instructions.

In the terminal application, to initiate the synchronisation process, type :sync. You will be asked to follow a link to authorise the application (simply input your Microsoft credentials - you do not need to register with OneDrive).

Encryption

Joplin supports end-to-end encryption (E2EE) on all the applications. E2EE is a system where only the owner of the notes, notebooks, tags or resources can read them. It prevents potential eavesdroppers - including telecom providers, internet providers, and even the developers of Joplin from being able to access the data. Please see the End-To-End Encryption Tutorial for more information about this feature and how to enable it.

For a more technical description, mostly relevant for development or to review the method being used, please see the Encryption specification.

Note history

The Joplin applications automatically save previous versions of your notes at regular intervals. These versions are synced across devices and can be viewed from the desktop application. To do so, click on the "Information" button on a note, then click on "Previous version of this note". From this screen you can view the previous versions of the note as well as restore any of them.

This feature can be disabled from the "Note history" section in the settings, and it is also possible to change for how long the history of a note is saved.

More information about this feature in the announcement post.

External text editor

Joplin notes can be opened and edited using an external editor of your choice. It can be a simple text editor like Notepad++ or Sublime Text or an actual Markdown editor like Typora. In that case, images will also be displayed within the editor. To open the note in an external editor, click on the icon in the toolbar or press Ctrl+E (or Cmd+E). Your default text editor will be used to open the note. If needed, you can also specify the editor directly in the General Options, under "Text editor command".

Attachments

Any kind of file can be attached to a note. In Markdown, links to these files are represented as a simple ID to the attachment. In the note viewer, these files, if they are images, will be displayed or, if they are other files (PDF, text files, etc.) they will be displayed as links. Clicking on this link will open the file in the default application.

In the desktop application, files can be attached either by clicking the "Attach file" icon in the editor or via drag and drop. If you prefer to create a link to a local file instead, hold the ALT key while performing the drag and drop operation. You can also copy and paste images directly in the editor via Ctrl+V.

Resources that are not attached to any note will be automatically deleted in accordance to the Note History settings.

Important: Resources larger than 10 MB are not currently supported on mobile. They will crash the application when synchronising so it is recommended not to attach such resources at the moment. The issue is being looked at.

Downloading attachments

The way the attachments are downloaded during synchronisation can be customised in the Configuration screen, under "Attachment download behaviour". The default option ("Always") is to download all the attachments, all the time, so that the data is available even when the device is offline. There is also the option to download the attachments manually (option "Manual"), by clicking on it, or automatically (Option "Auto"), in which case the attachments are downloaded only when a note is opened. These options should help saving disk space and network bandwidth, especially on mobile.

Notifications

In the desktop and mobile apps, an alarm can be associated with any to-do. It will be triggered at the given time by displaying a notification. How the notification will be displayed depends on the operating system since each has a different way to handle this. Please see below for the requirements for the desktop applications:

  • Windows: >= 8. Make sure the Action Center is enabled on Windows. Task bar balloon for Windows < 8. Growl as fallback. Growl takes precedence over Windows balloons.
  • macOS: >= 10.8 or Growl if earlier.
  • Linuxnotify-osd or libnotify-bin installed (Ubuntu should have this by default). Growl otherwise

See documentation and flow chart for reporter choice

On mobile, the alarms will be displayed using the built-in notification system.

If for any reason the notifications do not work, please open an issue.

Sub-notebooks

Sub-notebooks allow organising multiple notebooks into a tree of notebooks. For example it can be used to regroup all the notebooks related to work, to family or to a particular project under a parent notebook.

  • In the desktop application, to create a subnotebook, drag and drop it onto another notebook. To move it back to the root, drag and drop it on the "Notebooks" header. Currently only the desktop app can be used to organise the notebooks.
  • The mobile application supports displaying and collapsing/expanding the tree of notebooks, however it does not currently support moving the subnotebooks to different notebooks.
  • The terminal app supports displaying the tree of subnotebooks but it does not support collapsing/expanding them or moving the subnotebooks around.

Markdown

Joplin uses and renders a Github-flavoured Markdown with a few variations and additions. In particular it adds math formula support, interactive checkboxes and support for note links. Joplin also supports Markdown plugins which allow enabling and disabling various advanced Markdown features. Have a look at the Markdown Guide for more information.

Custom CSS

Rendered markdown can be customized by placing a userstyle file in the profile directory ~/.config/joplin-desktop/userstyle.css (This path might be different on your device - check at the top of the Config screen for the exact path). This file supports standard CSS syntax. Joplin must be restarted for the new css to be applied, please ensure that Joplin is not closing to the tray, but is actually exiting. Note that this file is used for both displaying the notes and printing the notes. Be aware how the CSS may look printed (for example, printing white text over a black background is usually not wanted).

The whole UI can be customized by placing a custom editor style file in the profile directory ~/.config/joplin-desktop/userchrome.css.

Important: userstyle.css and userchrome.css are provided for your convenience, but they are advanced settings, and styles you define may break from one version to the next. If you want to use them, please know that it might require regular development work from you to keep them working. The Joplin team cannot make a commitment to keep the application HTML structure stable.

Note templates

In the desktop app, templates can be used to create new notes or to insert into existing ones by creating a templates folder in Joplin's config folder and placing Markdown template files into it. For example creating the file hours.md in the templates directory with the contents:

Date: {{date}}
Hours:
Details:

Templates can then be inserted from the menu (File->Templates).

The currently supported template variables are:

VariableDescriptionExample
{{date}}Today's date formatted based on the settings format2019-01-01
{{time}}Current time formatted based on the settings format13:00
{{datetime}}Current date and time formatted based on the settings format01/01/19 1:00 PM
{{#custom_datetime}}Current date and/or time formatted based on a supplied string (using moment.js formatting){{#custom_datetime}}M d{{/custom_datetime}}

Searching

Joplin implements the SQLite Full Text Search (FTS4) extension. It means the content of all the notes is indexed in real time and search queries return results very fast. Both Simple FTS Queries and Full-Text Index Queries are supported. See below for the list of supported queries:

Search typeDescriptionExample
Single wordReturns all the notes that contain this term.For example, searching for cat will return all the notes that contain this exact word. Note: it will not return the notes that contain the substring - thus, for "cat", notes that contain "cataclysmic" or "prevaricate" will not be returned.
Multiple wordReturns all the notes that contain all these words, but not necessarily next to each other.dog cat - will return any notes that contain the words "dog" and "cat" anywhere in the note, no necessarily in that order nor next to each other. It will not return results that contain "dog" or "cat" only.
PhraseAdd double quotes to return the notes that contain exactly this phrase."shopping list" - will return the notes that contain these exact terms next to each other and in this order. It will not return for example a note that contains "going shopping with my list".
PrefixAdd a wildcard to return all the notes that contain a term with a specified prefix.swim* - will return all the notes that contain eg. "swim", but also "swimming", "swimsuit", etc. IMPORTANT: The wildcard can only be at the end - it will be ignored at the beginning of a word (eg. *swim) and will be treated as a literal asterisk in the middle of a word (eg. ast*rix)
Switch to basic searchOne drawback of Full Text Search is that it ignores most non-alphabetical characters. However in some cases you might want to search for this too. To do that, you can use basic search. You switch to this mode by prefixing your search with a slash /. This won't provide the benefits of FTS but it will allow searching exactly for what you need. Note that it can also be much slower, even extremely slow, depending on your query./"- [ ]" - will return all the notes that contain unchecked checkboxes.

You can also use search filters to further restrict the search.

OperatorDescriptionExample
-If placed before a text term, it excludes the notes that contain that term. You can also place it before a filter to negate it.-spam searches for all notes without the word spam.
office -trash searches for all notes with the wordoffice and without the word trash.
any:Return notes that satisfy any/all of the required conditions. any:0 is the default, which means all conditions must be satisfied.any:1 cat dog will return notes that have the word cat or dog.
any:0 cat dog will return notes with both the words cat and dog.
title:
body:
Restrict your search to just the title or the body field.title:"hello world" searches for notes whose title contains hello and world.
title:hello -body:world searches for notes whose title contains hello and body does not contain world.
tag:Restrict the search to the notes with the specified tags.tag:office searches for all notes having tag office.
tag:office tag:important searches for all notes having both office and important tags.
tag:office -tag:spam searches for notes having tag office which do not have tag spam.
any:1 tag:office tag:spam searches for notes having tag office or tag spam.
tag:be*ful does a search with wildcards.
tag:* returns all notes with tags.
-tag:* returns all notes without tags.
notebook:Restrict the search to the specified notebook(s). It cannot be negated.notebook:books limits the search scope within books and all its subnotebooks.
notebook:wheel*time does a wildcard search.
created:
updated:
Searches for notes created/updated on dates specified using YYYYMMDD format. You can also search relative to the current day, week, month, or year.created:20201218 will return notes created on or after December 18, 2020.
-updated:20201218 will return notes updated before December 18, 2020.
created:20200118 -created:20201215 will return notes created between January 18, 2020, and before December 15, 2020.
created:202001 -created:202003 will return notes created on or after January and before March 2020.
updated:1997 -updated:2020 will return all notes updated between the years 1997 and 2019.
created:day-2 searches for all notes created in the past two days.
updated:year-0 searches all notes updated in the current year.
type:Restrict the search to either notes or todos.type:note to return all notes
type:todo to return all todos
iscompleted:Restrict the search to either completed or uncompleted todos.iscompleted:1 to return all completed todos
iscompleted:0 to return all uncompleted todos
latitude:
longitude:
altitude:
Filter by locationlatitude:40 -latitude:50 to return notes with latitude >= 40 and < 50
resource:Filter by attachment MIME typeresource:image/jpeg to return notes with a jpeg attachment.
-resource:application/pdf to return notes without a pdf attachment.
resource:image/* to return notes with any images.
sourceurl:Filter by source URLsourceurl:https://www.google.com
sourceurl:*joplinapp.org to perform a wildcard search.

Note: In CliClient you have to escape the query using -- when using negated filters. Eg. :search -- "-tag:tag1".

Notes are sorted by "relevance". Currently it means the notes that contain the requested terms the most times are on top. For queries with multiple terms, it also matters how close to each other the terms are. This is a bit experimental so if you notice a search query that returns unexpected results, please report it in the forum, providing as many details as possible to replicate the issue.

Goto Anything

In the desktop application, press Ctrl+G or Cmd+G and type a note title or part of its content to jump to it. Or type # followed by a tag name, or @ followed by a notebook name.

Privacy

Joplin values your privacy and security by giving you complete control over your information and digital footprint.

Joplin applications do not send any data to any service without your authorisation. Any data that Joplin saves, such as notes or images, are saved to your own device and you are free to delete this data at any time.

Joplin has many modern features, some of which use third-party services. You can disable any or all of these features in the application settings. These features are:

FeatureDescriptionDefault
Auto-updateJoplin periodically connects to GitHub to check for new releases.Enabled
Geo-locationJoplin saves geo-location information in note properties when you create a note.Enabled
SynchronisationJoplin supports synchronisation of your notes across multiple devices. If you choose to synchronise with a third-party, such as OneDrive, the notes will be sent to your OneDrive account, in which case the third-party privacy policy applies.Disabled

Joplin is developed as an open-source application and the source code is freely available online to inspect.

For any question about Joplin privacy, please leave a message on the Joplin Forum.

Donations

Donations to Joplin support the development of the project. Developing quality applications mostly takes time, but there are also some expenses, such as digital certificates to sign the applications, app store fees, hosting, etc. Most of all, your donation will make it possible to keep up the current development standard.

Please see the donation page for information on how to support the development of Joplin.

Community

-------
 

免费开源笔记app-joplin,全平台系统使用

一款免费的笔记应用——joplin,支持markdown等轻量编程语言.

应用介绍

Joplin是一个免费的开源笔记记录和待办事项应用程序,它可以处理笔记本中组织的大量笔记。这些注释是可搜索的,可以直接从应用程序中或从您自己的文本编辑器中进行复制,标记和修改。注释采用Markdown格式。

通过.enex文件从Evernote导出的笔记可以导入到Joplin中,包括格式化的内容(转换为Markdown),资源(图像,附件等)和完整的元数据(地理位置,更新时间,创建时间等)……也可以导入普通Markdown文件。

注释可以与各种云服务同步,包括Nextcloud,Dropbox,OneDrive,WebDAV或文件系统(例如,具有网络目录)。同步笔记时,笔记本,标签和其他元数据将保存到纯文本文件中,可以方便地对其进行检查,备份和移动。

该应用程序可用于Windows,Linux,macOS,Android和iOS(终端应用程序也可在FreeBSD上运行)。还可以使用Firefox和Chrome的Web Clipper来保存浏览器中的网页和屏幕截图。

-----------------------------------

搭建私有云笔记Joplin Server

Joplin 是一个开源的笔记工具,拥有 Windows/macOS/Linux/iOS/Android/Terminal 版本的客户端。

 

官方主页:https://joplinapp.org/

安装
安装Joplin
官方安装文档:https://joplinapp.org/help/#installation

在 Windows 上,您也可以使用便携式版本。便携式应用程序允许在诸如 USB 密钥的便携式设备上安装软件。只需将文件 JoplinPortable.exe 复制到该 USB 密钥上的任何目录中即可;然后,应用程序将在可执行文件旁边创建一个名为“JoplinProfile”的目录。

在 Linux 上,推荐的方法是使用以下安装脚本,因为它也会处理桌面图标:

wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash

安装 Joplin Server

提前安装好Docker,然后创建 Joplin Server 配置文件

cd /home/app
mkdir joplin
cd joplin
vim .env
复制一下内容进去保存,https://your-sample-url 替换为需要绑定的域名

APP_BASE_URL=https://your-sample-url/
APP_PORT=22300
Joplin Server 推荐使用 PostgreSQL 数据库,但是一般小配置的服务器在额外装个数据库会运行补流程,所以上面的配置就是直接默认启用 SQLite 数据库,由于采用了 SQLite 数据库,而 Docker 默认每次运行都会使用隔离的资源,这回导致之前的同步内容丢失,我们需要考虑数据持久化的问题,因此需要创建一个 Docker Volume:

# 创建名为 joplin 的 volume
# docker volume create joplin
joplin
然后我们使用下面的命令查看 volume 是否创建成功,可以看到,volumns 文件夹位于 /var/lib/docker 中:

root:~# docker volume inspect joplin
[
{
"CreatedAt": "2022-05-15T12:41:50+08:00",
"Driver": "local",
"Labels": {},
"Mountpoint": "/var/lib/docker/volumes/joplin/_data",
"Name": "joplin",
"Options": {},
"Scope": "local"
}
]
下面的命令在后台运行 Joplin Server,名称为 joplin_server,绑定端口为 22300,并把容器的 /home/joplin 绑定到 joplin 这个 volume:

docker run -d --name joplin_server -v joplin:/home/joplin --env-file /home/app/joplin/.env -p 22300:22300 joplin/server:latest
使用下面的命令查看运行状态:

root:~# docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dc328bdf6bb5 joplin/server:latest "tini -- node dist/a…" About a minute ago Up 52 seconds 0.0.0.0:22300->22300/tcp, :::22300->22300/tcp joplin_server
重启容器:

docker container restart joplin_server

配置 Nginx 反代,建议使用宝塔服务器或者是 Nginx Proxy Manager 进行操作,或者直接修改配置文件:

server {
server_tokens off;
root /srv/www/html;
index index.html index.htm;
server_name your-domain
client_max_body_size 100m;

location / { try_files $uri $uri/ @joplin; }
location @joplin {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://localhost:22300;
}
}
然后访问域名,使用默认的账户名和密码登录,然后修改账号和密码即可:

默认用户名:admin@localhost
默认密码:admin

安装 Joplin 应用程序后,先配置语言为中文界面,首先打开Joplin,可以看到顶栏上有个tool菜单 点击后弹出菜单里面有个Option选项,点击它,弹出配置菜单,选择中文:

打开,然后打开同步部分。在这个界面中,选择“ Joplin Server ”作为同步目标,然后输入URL 和你的用户名和密码,然后在检查一下配置,如果显示“成功,同步配置看起来没有问题”就可以了。

设置完成后,Joplin Server 允许您同步设备、发布笔记或与其他 Joplin Server 用户在笔记本上协作。

拓展
插件库:https://github.com/joplin/plugins/blob/master/README.md#plugins

 ----------------------------------------

[WIN] Joplin - 开源免费 Markdown 笔记

目前文档笔记的应用选择很多,但是一些云服务功能需要另外付费会员,才能使用,所以有些小伙伴宁愿选择免费开源的笔记应用,本地备份资料,这里给大家推荐「Joplin」一款全平台的开源免费笔记应用,功能丰富。

    官方网站:
    https://joplinapp.org
    下载地址:
    https://github.com/laurent22/joplin/releases/download/v1.7.11/Joplin-Setup-1.7.11.exe

功能方面支持 To-Do 待办事项、 Markdown,全文搜索,支持外置编辑器如 Typora、VIM 来编辑笔记。

同步方面,你可以使用网盘,例如 OneDrive、坚果云来同步,或者自己的 VPS 服务器同步。

 

 

 

No comments:

Post a Comment