Cobbled-paths: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
(Created page with "``Wednesday September 25th`` 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 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 octomode cannot be used to write code in a specific way, that it can be executed...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
``Wednesday September 25th``
''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 octomode cannot be used to write code in a specific way, that it can be executed on the server.
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


in /var/www/html/tools.cobbled-paths
$ cd /var/www/html/cobbled-paths/


  $ chown -R octomode:www-data .
  $ 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


$ sudo cargo install svgbob_cli
$ sudo cargo install svgbob_cli


failed to parse the edition key
ERROR
 
<syntaxhighlight lang="bash">
  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.
 
</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