这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@plan5
Copy link

@plan5 plan5 commented Apr 22, 2021

innernet helps setting up and with administration of wireguard networks.

This package currently puts config in /etc/innernet. There is a commented line in the prepare section to change this to /opt/etc/innernet.

For now, I create this PR so others can test it. innernet is available as a community package in Arch or as deb packages on the repo releases page.

To Do:

  • Add (installation of) a service file
  • See if wireguard package will move config to /opt/etc and change innernet recipe accordingly

plan5 and others added 26 commits March 22, 2021 22:41
Co-authored-by: Nathaniel van Diepen <Eeems@users.noreply.github.com>
Co-authored-by: Nathaniel van Diepen <Eeems@users.noreply.github.com>
Co-authored-by: Nathaniel van Diepen <Eeems@users.noreply.github.com>
@Eeems
Copy link
Member

Eeems commented Apr 22, 2021

https://github.com/tonarino/innernet/blob/6d28e7f4ab20800e30ca759727e9cfbd9d6da17c/shared/src/lib.rs#L19-L22
I'd suggest that all of these should be moved under /opt to play nice with OS upgrades.

@Eeems Eeems marked this pull request as draft April 22, 2021 20:14
@Eeems Eeems added the packages Add or improve packages of the repository label Apr 22, 2021
@plan5
Copy link
Author

plan5 commented Apr 23, 2021

Testing on the rM1 and it looks like you haven't put in the shorthand for innernet (inn). Could you add that symlink as well?

Other than that it works!

Done! I've added the link.

Also nice to hear it works for you! :) I'm having problems pinging between peers but I guess that's a server misconfig then. Befor your post I didn't know if it's because of the package.

Would be interesting to know if it works for someone else with rM2 though...

@Eeems
Copy link
Member

Eeems commented Apr 23, 2021

Also nice to hear it works for you! :) I'm having problems pinging between peers but I guess that's a server misconfig then. Befor your post I didn't know if it's because of the package.

Would be interesting to know if it works for someone else with rM2 though...

@danshick or @raisjn would you be able to test? You'll need to go through setting up a innernet server to test with as well. If you need help with that feel free to ping me, or ask on the innernet discord: https://discord.gg/fs2nqxWKhx

Done! I've added the link.

Awesome, I'll test that sometime soon.

@danshick
Copy link
Member

danshick commented Apr 23, 2021

I should be able to give it a shot along with your oxide PRs tonight.

Edit: Got delayed yesterday and I only had about a half hour today. Planning to take a look tomorrow instead.
Edit2: And one day became four

@mcginty
Copy link

mcginty commented Apr 27, 2021

Author of innernet here! I'm happy to add a CLI option in the next release to override the default config and data directories so you don't have to maintain patches.

@danshick
Copy link
Member

Author of innernet here! I'm happy to add a CLI option in the next release to override the default config and data directories so you don't have to maintain patches.

That'd be great! Thanks for your work.

@Eeems
Copy link
Member

Eeems commented May 3, 2021

Alright, so I can confirm that the link for inn works, but I've encountered an issue. Since I've rebooted my device, innernet is failing to start
image

@mcginty any ideas how I can get more information out of this error?

@mcginty
Copy link

mcginty commented May 4, 2021

@Eeems hmm, I need to add better error messages! If you run inn up eeems manually, that has the same issue I assume? Is the wireguard kernel module loaded properly (lsmod | grep wireguard)?

@Eeems
Copy link
Member

Eeems commented May 4, 2021

Correct it does give the same error message. I forgot to check the kernel module to make sure it was loaded. Likely I forgot to add it to anything to handle it automatically loading on startup. I'll check again tomorrow and let you know.

@Eeems
Copy link
Member

Eeems commented May 4, 2021

@mcginty Okay, tried again and it is still failing after confirming that wireguard is loaded:
image

@plan5
Copy link
Author

plan5 commented May 5, 2021

It's working over reboots for me on rM2.
Just adding for documentation's sake.
Could this be related to rM1 exclusively?

@Eeems
Copy link
Member

Eeems commented May 5, 2021

It's working over reboots for me on rM2.
Just adding for documentation's sake.
Could this be related to rM1 exclusively?

Potentially, since the rM1 loads wireguard from a different location, see https://github.com/toltec-dev/toltec/blob/stable/package/wireguard/package#L26-L29

@mcginty
Copy link

mcginty commented May 9, 2021

I added more logging in v1.3.0-beta.3 that should hopefully help with debugging the issue on this platform. Maybe give that a shot?

@plan5
Copy link
Author

plan5 commented May 11, 2021

should we maybe push this to beta.4?

@mcginty is the additional loggin only available in beta.3 or also in beta.4?
I guess that decides it.

@Eeems
Copy link
Member

Eeems commented May 12, 2021

image
Alright this is interesting, how did /opt/var/lib/innernet get removed? Upon creating the directory it works fine.
image
So for now the package should ensure the folder exists on configure. I'll open an issue with innernet itself to get it created.

Copy link
Member

@Eeems Eeems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the data directory (/opt/lib/innernet) exists on install/upgrade.

plan5 and others added 3 commits May 13, 2021 11:55
@Eeems Eeems marked this pull request as ready for review May 17, 2021 14:30
@Eeems Eeems merged commit f965def into toltec-dev:testing May 17, 2021
matteodelabre added a commit that referenced this pull request Jun 4, 2021
* Add innernet-client package

Co-authored-by: plan5 <plan5 30434574+plan5@users.noreply.github.com>
Co-authored-by: Nathaniel van Diepen <Eeems@users.noreply.github.com>
Co-authored-by: Mattéo Delabre <1370040+matteodelabre@users.noreply.github.com>
Co-authored-by: Mattéo Delabre <spam@delab.re>
matteodelabre added a commit that referenced this pull request Jul 21, 2021
Important notices:

* When upgrading, users should run `opkg update && opkg upgrade` **twice** because of the changes introduced by this merge. (#310)
* Toltec **no longer supports** OS releases **earlier than 2.6**. You can check your current OS version in the settings panel. Please upgrade to 2.6 or newer after upgrading your Toltec install. (#366)
* To re-enable Toltec, **run `toltecctl reenable`** instead of the previous `entware-reenable` script that has been removed with this update.

Major change: The repository is now split into architecture subfolders. The `rmall` subfolder contains packages that can run both on reMarkable 1 and reMarkable 2 without modification. The `rm1` and `rm2` subfolders contain packages that are specific to each of the two devices. This change requires updating the Opkg configuration to point to the appropriate architectures. The migration is automated by placing an upgrade to the `toltec-bootstrap` package in the root folder of the repo that contains a migration script. (Note that this package is not generated automatically by our build system but will be added manually by the server administrator.)

New packages:

* bash-completion - 2.11-3 (#277, #375)
* display - 1.0.1-7 _(replaces the server part of the old rm2fb package)_ (#310)
* fuse - 1.0.0-2 (#331)
* gocryptfs - 2.0-beta2 (#318)
* innernet - 1.3.1-2 (#350, #358, #361)
* netsurf - 0.4.0-1 (#339)
* puzzles - 0.2.2-2 (#326)
* remarkable-stylus - 0.0.3-1 (#383)
* rm2fb-client - 1.0.1-7 _(replaces the client part of the old rm2fb package)_ (#310)
* tilem - 0.0.7-1 (#352)
* toltec-completion - 0.2.0-1 (#277)
* yaft - 0.0.4-3 (#261, #353)
* zoneinfo-utils - 2021a-2 (#182)

Updated packages:

* appmarkable - 0.0.0-11
* bufshot - 0.1.0-5
* calculator - 0.0.0-15
* chessmarkable - 0.7.1-2 (#362, #373)
* ddvk-hacks - 23.02-1 (#385)
* draft - 0.2.0-20
* evtest - 1.34-3
* fbink fbdepth fbink-doom - 1.23.1-4
* fingerterm - 1.3.5-14
* genie - 0.1.5-3
* harmony - 0.1.3-3
* iago - 0.1.0-4
* keywriter - 0.1.0-3
* koreader - 2021.06-1 (#330, #348, #357, #378)
* lamp - 0.1.0-4
* libdlib libdlib-dev - 19.21-2
* libvncserver libvncclient libvncserver-dev - 0.9.13-2
* mines - 0.1.2-4
* nao - 0.1.3-3
* oxide erode fret rot tarnish decay corrupt anxiety - 2.2-1 (#382)
* plato - 0.9.17-2 (#344)
* quickjs - 2020.11.08-2
* recrossable - 0.0.0-7
* remarkable-splash - 1.0-5
* remux - 0.1.9-3
* restream - 1.1-2
* retris - 0.6.3-3
* rmservewacominput - 0.3.0-2
* simple - 0.1.4-3
* templatectl - 0.1.3-3
* toltec-bootstrap - 0.1.0-1 _(includes toltecctl)_ (#379)
* vnsee - 0.4.0-2 (#355)
* wikipedia - 0.1.0-3
* wireguard - 1.0.20210219-2
* xochitl - 0.0.0-7 (#383, #382, #386)
* zshelf - 0.3.1-3

Website: The source files and scripts used for generating the website have been transferred to a separate repository (<https://github.com/toltec-dev/web>). A website rebuild is triggered automatically from this repository’s workflow when the stable branch is updated, so that the displayed checksum of the bootstrap script is always accurate.
matteodelabre added a commit that referenced this pull request Jul 31, 2021
Important notices:

* When upgrading, users should run `opkg update && opkg upgrade` **twice** because of the changes introduced by this merge. (#310)
* Toltec **no longer supports** OS releases **earlier than 2.6**. You can check your current OS version in the settings panel. If you’re still running on 2.5 or earlier, please upgrade to 2.6 or newer after upgrading your Toltec install. (#366)

Less important notices:

* To re-enable Toltec after a system upgrade, **run `toltecctl reenable`** instead of the previous `entware-reenable` script that has been removed with this update.
* You can now easily uninstall Toltec by running `toltec uninstall`.
* This release marks the end of our work towards transitioning to a new repository layout. This means that **stable will be updated more frequently from now on.** If you switched to the testing branch because stable has been outdated for a few months, and if you prefer to run stable releases, you can go back to the stable branch by running `toltecctl switch-branch stable`.

Layout change: The repository is now split into architecture subfolders. The `rmall` subfolder contains packages that can run both on reMarkable 1 and reMarkable 2 without modification. The `rm1` and `rm2` subfolders contain packages that are specific to each of the two devices. This change requires updating the Opkg configuration to point to the appropriate architectures. The migration is automated by placing an upgrade to the `toltec-bootstrap` package in the root folder of the repo that contains a migration script.

New packages:

* bash-completion - 2.11-3 (#277, #375)
* display - 1.0.1-7 _(replaces the server part of the old rm2fb package)_ (#310)
* fuse - 1.0.0-3 (#331)
* gocryptfs - 2.0-beta2 (#318)
* innernet-client - 1.3.1-2 (#350, #358, #361)
* netsurf - 0.4.0-2 (#339)
* puzzles - 0.2.2-3 (#326)
* remarkable-stylus - 0.0.3-1 (#383)
* rm2fb-client - 1.0.1-7 _(replaces the client part of the old rm2fb package)_ (#310)
* tilem - 0.0.7-2 (#352)
* toltec-completion - 0.2.0-1 (#277)
* yaft - 0.0.4-4 (#261, #353)
* zoneinfo-utils - 2021a-2 (#182)

Updated packages:

* appmarkable - 0.0.0-11
* bufshot - 0.1.0-5
* calculator - 0.0.0-15
* chessmarkable - 0.8.0-1 (#362, #373, #392)
* ddvk-hacks - 23.02-1 (#385)
* draft - 0.2.0-20
* evtest - 1.34-3
* fbink fbdepth fbink-doom - 1.23.2-1 (#387)
* fingerterm - 1.3.5-14
* genie - 0.1.5-3
* harmony - 0.1.3-3
* iago - 0.1.0-4
* keywriter - 0.1.0-3
* koreader - 2021.07-1 (#330, #348, #357, #378, #389)
* lamp - 0.1.0-4
* libdlib libdlib-dev - 19.21-2
* libvncserver libvncclient libvncserver-dev - 0.9.13-2
* mines - 0.1.2-4
* nao - 0.1.3-3
* oxide erode fret rot tarnish decay corrupt anxiety - 2.2.1-1 (#382)
* plato - 0.9.17-2 (#344)
* quickjs - 2020.11.08-2
* recrossable - 0.0.0-7
* remarkable-splash - 1.0-5
* remux - 0.1.9-4
* restream - 1.1-2
* retris - 0.6.3-3
* rmservewacominput - 0.3.0-2
* simple - 0.1.4-3
* templatectl - 0.1.3-3
* toltec-bootstrap - 0.1.0-1 _(includes toltecctl)_ (#379)
* vnsee - 0.4.0-2 (#355)
* wikipedia - 0.1.0-3
* wireguard - 1.0.20210219-2
* xochitl - 0.0.0-7 (#383, #382, #386)
* zshelf - 0.3.1-3

Website: The source files and scripts used for generating the website have been transferred to a separate repository (<https://github.com/toltec-dev/web>). A website rebuild is triggered automatically from this repository’s workflow when the stable branch is updated, so that the displayed checksum of the bootstrap script is always accurate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Add or improve packages of the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants