53 lines
1.1 KiB
Markdown
53 lines
1.1 KiB
Markdown
---
|
|
type: "topic"
|
|
created: "2024-01-06T01:25:36.115Z"
|
|
updated: "2024-01-06T01:25:36.115Z"
|
|
---
|
|
|
|
# Bee-Link
|
|
|
|
- [Syncthing](syncthing.md)
|
|
|
|
```bash
|
|
adduser syncthing
|
|
```
|
|
|
|
```bash
|
|
sudo -i
|
|
nano /etc/hosts
|
|
echo >/etc/hosts && nano /etc/hosts
|
|
```
|
|
|
|
```conf
|
|
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
|
|
# [network]
|
|
# generateHosts = false
|
|
127.0.0.1 localhost
|
|
127.0.1.1 DESKTOP-PE6MOCB. DESKTOP-PE6MOCB
|
|
192.168.0.73 phares3757.ddsn.net
|
|
|
|
# The following lines are desirable for IPv6 capable hosts
|
|
::1 ip6-localhost ip6-loopback
|
|
fe00::0 ip6-localnet
|
|
ff00::0 ip6-mcastprefix
|
|
ff02::1 ip6-allnodes
|
|
ff02::2 ip6-allrouters
|
|
```
|
|
|
|
```bash
|
|
apt-get update
|
|
apt-get upgrade
|
|
apt-get install syncthing
|
|
apt-get install apt-transport-https
|
|
apt-get install ca-certificates
|
|
apt-get install links
|
|
syncthing
|
|
adduser syncthing
|
|
cat /etc/passwd | cut -d: -f1
|
|
systemctl enable syncthing@syncthing.service
|
|
systemctl start syncthing@syncthing.service
|
|
systemctl status syncthing@syncthing.service
|
|
journalctl -e -u syncthing@syncthing.service
|
|
nano /home/syncthing/.config/syncthing/config.xml
|
|
```
|