<commit_before>mesh
====

Quick mesh network setup for Archlinux.  Once enabled, this service connects a device to a specified mesh network on boot.

Setup
-----
This repo is a pacman package.  You can install it like any other [pacman package](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages).

```
$ sudo pacman -U https://github.com/mgbelisle/mesh/raw/master/mesh.pkg.tar.xz
```

Enabling the mesh service will start it on boot.

```
$ sudo systemctl enable mesh
```

Once started, machines on the mesh are addressable via `hostname.local`.

```
$ ping ares.local
```

Config
------
Configs are set permanently via [/etc/mesh.conf](src/etc/mesh.conf) or temporarily as command line parameters to `mesh.py`.  (See `mesh.py --help`)

Troubleshooting
---------------
* If a machine is not reachable via `hostname.local`, make sure [mdns](https://wiki.archlinux.org/index.php/avahi#Hostname_resolution) is enabled in `/etc/nsswitch.conf`.

```
hosts: files mdns dns myhostname
```<commit_msg>Updating readme config<commit_after>mesh
====

Quick mesh network setup for Archlinux.  Once enabled, this service connects a device to a specified mesh network on boot.

Setup
-----
This repo is a pacman package.  You can install it like any other [pacman package](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages).

```
$ sudo pacman -U https://github.com/mgbelisle/mesh/raw/master/mesh.pkg.tar.xz
```

Enabling the mesh service will start it on boot.

```
$ sudo systemctl enable mesh
```

Once started, machines on the mesh are addressable via `hostname.local`.

```
$ ping ares.local
```

Config
------
Configs are set via [/etc/mesh.conf](src/etc/mesh.conf).

Troubleshooting
---------------
* If a machine is not reachable via `hostname.local`, make sure [mdns](https://wiki.archlinux.org/index.php/avahi#Hostname_resolution) is enabled in `/etc/nsswitch.conf`.

```
hosts: files mdns dns myhostname
```
{'fraction_non_alphanumeric': 0.14183673469387756, 'fraction_numerical': 0.0, 'mean_word_length': 3.853960396039604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1101068', 'n_tokens_mistral': 636, 'n_tokens_neox': 605, 'n_words': 200}