1
0
mirror of https://github.com/vrtmrz/obsidian-livesync.git synced 2024-12-12 09:04:06 +02:00
obsidian-livesync/docs/quick_setup.md

98 lines
4.2 KiB
Markdown
Raw Normal View History

2022-09-11 03:38:20 +02:00
# Quick setup
2023-04-20 23:30:56 +02:00
The Setup wizard has been implemented since v0.15.0 simplifying the initial setup.
2022-09-11 03:38:20 +02:00
2023-04-20 23:30:56 +02:00
Note: Subsequent devices should be set up using the `Copy setup URI` and `Open setup URI` functionality.
2022-09-11 03:38:20 +02:00
2023-04-20 23:30:56 +02:00
## How to open and use the wizard
Open the `🪄 Setup wizard` in the settings dialogue. If the plugin has not been configured before, it should already be open.
2022-09-11 03:38:20 +02:00
![](../images/quick_setup_1.png)
### Discard the existing configuration and set up
2023-04-20 23:30:56 +02:00
If you have changed any settings, this button allows you to discard all changes before setting up.
2022-09-11 03:38:20 +02:00
### Do not discard the existing configuration and set up
Simply reconfigure. Be careful. In wizard mode, you cannot see all configuration items, even if they have been configured.
2023-04-20 23:30:56 +02:00
Pressing `Next` on one of the above options will put the configuration dialog into wizard mode.
2022-09-11 03:38:20 +02:00
### Wizard mode
![](../images/quick_setup_2.png)
2023-04-20 23:30:56 +02:00
Let's see how to use it step-by-step.
2022-09-11 03:38:20 +02:00
## Remote Database configuration
### Remote database configuration
2023-04-20 23:30:56 +02:00
Enter the information for the database we have set up.
2022-09-11 03:38:20 +02:00
![](../images/quick_setup_3.png)
### End to End Encryption
![](../images/quick_setup_4.png)
2023-04-20 23:30:56 +02:00
When End to End encryption is enabled, a third party will be less likely to be able to read your Remote database in the event of a data breach/leak (assuming they do not know the Passphrase). We strongly recommend enabling it.
2022-09-11 03:38:20 +02:00
Encryption is based on 256-bit AES-GCM.
This setting can be disabled if you are inside a closed network and it is clear that you will not be accessed by third parties.
2022-12-22 11:02:12 +02:00
### Test database connection and Check database configuration
2022-09-11 03:38:20 +02:00
Here we can check the status of the connection to the database and the database settings.
![](../images/quick_setup_5.png)
#### Test Database Connection
2023-04-20 23:30:56 +02:00
Check whether we can connect to the database. If it fails, there are several possible reasons, but first attempt the `Check database configuration` check to see if it fails there too.
2022-09-11 03:38:20 +02:00
#### Check database configuration
Check the database settings and fix any deficiencies on the spot.
![](../images/quick_setup_6.png)
This item may vary depending on the connection. In the above case, press all three Fix buttons.
If the Fix buttons disappear and all become check marks, we are done.
![](../images/quick_setup_7.png)
### Next
Go to the Local Database configuration.
2023-04-20 23:30:56 +02:00
### Discard existing database and proceed
2022-09-11 03:38:20 +02:00
Discard the contents of the Remote database and go to the Local Database configuration.
2022-12-22 11:02:12 +02:00
## Local Database configuration
2022-09-11 03:38:20 +02:00
![](../images/quick_setup_8.png)
2023-04-20 23:30:56 +02:00
Configure the local database. If we already have a Vault with Self-hosted LiveSync installed which has the same directory name as the one we are currently setting up, please specify a different suffix than the Vault you have already set up here.
2022-09-11 03:38:20 +02:00
## Miscellaneous
Finally, finish the miscellaneous configurations and select a preset for synchronisation.
![](../images/quick_setup_9_1.png)
2023-04-20 23:30:56 +02:00
The `Show status inside editor` can be enabled to your liking. If enabled, the status is displayed in the top right-hand corner of the editor. Learn how to read the status bar [here](/README.md#information-in-statusbar).
2022-09-11 03:38:20 +02:00
![](../images/quick_setup_9_2.png)
From Presets, select the synchronisation method we want to use and `Apply` to initialise and build the local and remote databases as required.
If `All done!' is displayed, we are done. Automatically, `Copy setup URI` will open and we will be asked for a passphrase to encrypt the `Setup URI`.
![](../images/quick_setup_10.png)
Set the passphrase as you like.
The Setup URI will be copied to the clipboard, which you can then transfer to the second and subsequent devices in some way.
# How to set up the second and subsequent units
2023-04-20 23:30:56 +02:00
After installing Self-hosted LiveSync on the first device, select `Open setup URI` from the command palette and enter the setup URI you transferred. Afterwards, enter your passphrase and a setup wizard will open.
2022-09-11 03:38:20 +02:00
Answer the following.
- `Yes` to `Importing LiveSync's conf, OK?`
2022-09-27 10:58:31 +02:00
- `Set it up as secondary or subsequent device` to `How would you like to set it up?`.
2022-09-11 03:38:20 +02:00
2023-04-20 23:30:56 +02:00
Then, The configuration will take effect and replication will start. Your files will be synchronised soon! You may need to close the settings dialog and reopen it to see the settings fields populated properly, but they will be set.