Cobbled-paths: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
''Wednesday September 25th'' | |||
Goal: Install https://gitlab.constantvzw.org/osp/tools.cobbled-paths on CC | Goal: Install https://gitlab.constantvzw.org/osp/tools.cobbled-paths on CC | ||
First remembering the documentation at: https://hub.vvvvvvaria.org/rosa/pads/rosa-log.raw.html | First remembering the documentation of how octomode is installed at: https://hub.vvvvvvaria.org/rosa/pads/rosa-log.raw.html | ||
Make a "cobbler" user on the server to run cobbled-paths with this user. In this way we can restrict the access of this user to the rest of the server. It's a way to make sure that the pads in | Make a "cobbler" user on the server to run cobbled-paths with this user. In this way we can restrict the access of this user to the rest of the server. It's a way to make sure that the pads in cobbled-paths cannot be used to write code in a specific way, that it can be executed on the server. | ||
$ useradd --system --no-create-home --shell=/sbin/nologin cobbler | $ useradd --system --no-create-home --shell=/sbin/nologin cobbler | ||
$ cd /var/www/html/cobbled-paths/ | |||
$ chown -R | $ chown -R cobbler:www-data . | ||
$ chmod -R g+rw | $ chmod -R g+rw . | ||
$ sudo mv /home/simon/.cargo/bin/* /usr/bin | <del>$ sudo mv /home/simon/.cargo/bin/* /usr/bin</del> | ||
$ sudo mv /home/simoon/.local/bin/* /usr/bin | <del>$ sudo mv /home/simoon/.local/bin/* /usr/bin</del> | ||
$ sudo apt install rustc | $ sudo apt install rustc | ||
Line 25: | Line 25: | ||
ERROR | ERROR | ||
<syntaxhighlight> | <syntaxhighlight lang="bash"> | ||
Updating crates.io index | Updating crates.io index | ||
Downloaded svgbob_cli v0.7.2 | Downloaded svgbob_cli v0.7.2 | ||
Line 37: | Line 37: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Next step: update os server to bookworm |
Latest revision as of 15:08, 23 October 2024
Wednesday September 25th
Goal: Install https://gitlab.constantvzw.org/osp/tools.cobbled-paths on CC
First remembering the documentation of how octomode is installed at: https://hub.vvvvvvaria.org/rosa/pads/rosa-log.raw.html
Make a "cobbler" user on the server to run cobbled-paths with this user. In this way we can restrict the access of this user to the rest of the server. It's a way to make sure that the pads in cobbled-paths cannot be used to write code in a specific way, that it can be executed on the server.
$ useradd --system --no-create-home --shell=/sbin/nologin cobbler
$ cd /var/www/html/cobbled-paths/
$ chown -R cobbler:www-data .
$ chmod -R g+rw .
$ sudo mv /home/simon/.cargo/bin/* /usr/bin
$ sudo mv /home/simoon/.local/bin/* /usr/bin
$ sudo apt install rustc
$ sudo cargo install svgbob_cli
ERROR
Updating crates.io index
Downloaded svgbob_cli v0.7.2
error: failed to parse manifest at `/root/.cargo/registry/src/github.com-1ecc6299db9ec823/svgbob_cli-0.7.2/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
Next step: update os server to bookworm