5.6 KiB
xrsh
click here for the website / hosted repo
XRSH Manual
Documentation for XRSH users can be found here
TIP: this is also available by typing
ctrl/cmd+a+0orman xrshinside XRSH
Wiki / Roadmap
See the wiki here
Install
NOTE: installation is optional: just surf to the public version here
run standalone binary
- Download xrsh.com
- optional: run
unzip xrsh.comto verify repository contents - run
chmod +x xrsh.comin your console (only linux/mac) - run
./xrsh.comin (any) shell - Profit! ✔
install using nixos
NIX is a convenient way to install or develop xrsh:
nix-shell -p xrsh thttpdthttpd -p 8080 -d /nix/store/5q4vd50gmh52jh48z62ln1j05xzfh1fz-xrsh-0.142- point your browser to
localhost:8080 - profit!
run OCI container [podman/docker]
$(which podman || which docker) run -p 8080:8080 docker.io/coderofsalvation/xrsh- point your browser to
localhost:8080 - profit!
NOTE 1: to add files use the
-D <dir>overlay webroot parameter.
NOTE 2: to enable SSL and add (iso)file try something like this:
$ mkdir data
$ cp ../xrsh.iso data/. # copy custom iso
$ $(which podman || which docker) run -p 8080:8080 -v data/cert:etc/cert -v data:/data docker.io/coderofsalvation/xrsh /xrsh.com -D /data -c 0 -C /etc/cert/cert.pem -K /etc/cert/key.pem
or as an exercise in constructive laziness setup a reverse proxy like zoraxy, go-proxy, [droxy], caddy or nginx-reverse-proxymanager.
run from codeberg.org (nonprofit-backed forgejo instance)
1. create a `pages` branchclone 2. push it to the codeberg repository 3. profit! it is now live
more info: https://docs.codeberg.org/codeberg-pages/
run from selfhosted [forgejo](https://forgejo.org)/gitea codeforge-instance
1. clone the xrsh repository locally 2. create a repo on your forgejo instance 3. `git push` the xrsh to it 4. in your forgejo (docker/nix)-instance symlink it to the public folder (*) 5. point your browser to `https://yourforgejo.org/assets/xrsh`
* = for example:
ln -f git/repositories/yourusername/xrsh gitea/public/assets/.
optionally customize the xrsh yunohost package with your own ISO
install in [yunohost](https://yunohost.org)
1. search for xrsh in the application catalog 2. click install 3. profit!
optionally customize the xrsh yunohost package with your own ISO
The browser auto-launches https://localhost:8080 on most platforms
pass
-p XXXXto specify port (default:8080)
Developers
Make sure to clone the repo including submodules (the xrsh-com repo)
$ git clone --recurse-submodules https://forgejo.isvery.ninja/xrsh/xrsh
$ cd xrsh
$ nix-shell # optional but adviced (to get up and running instantly)
Now serve the repo from a HTTPS webserver (for example run
./make dev)
build using shellscript
- Run
./make standaloneto package everything intoxrsh.com
build using nix
nix-build -E "with import <nixpkgs> { }; callPackage ./nix/xrsh-package.nix"- optionally see the other nix-files in
nix-folder
launch different .iso / modify files
You can specify a different .iso file in various ways:
- open the
xrsh.comas a zip (drag-drop into a zip-manager, or add.zipextension) - method 1: overwrite
xrsh.iso - method 2: open
src/index.htmland changeisoterminal="iso: ./../xrsh.iso"to another file/URL
see developer-section below on building your own iso
- development of components (
src/com) takes places in this git submodule - development of
xrsh.isotakes places in this gitsubmodule
Funding
This project is funded through NGI0 Entrust, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program. Learn more at the NLnet project page.
Inspired by
- mimetype hooks: Future of Text's
- xterm
- xr-terminal of Mauve (an amazingly talented dev)
- Fabien Beneout's PIM (the WIKI containing all secrets & ideas in life)
