2024-02-14 16:24:39 +00:00
# Info for our new Internet / Social network
2024-02-05 02:49:16 +00:00
> [https://info.ourworld.tf/duniayetu](https://info.ourworld.tf/duniayetu)
2024-02-12 08:12:07 +00:00
## First install hero:
```bash
2024-02-14 16:24:39 +00:00
# Download the hero installer script
2024-02-12 08:12:07 +00:00
curl https://raw.githubusercontent.com/freeflowuniverse/crystallib/development/scripts/installer_hero.sh > /tmp/hero_install.sh
2024-02-14 16:24:39 +00:00
# Run the script as root to properly complete the script (e.g. sudo bash ...)
2024-02-12 08:12:07 +00:00
bash /tmp/hero_install.sh
2024-02-14 16:24:39 +00:00
# Check how to use, can also do on each of the subcommands
2024-02-12 08:12:07 +00:00
hero -help
2024-02-14 16:24:39 +00:00
# If it can't find hero, do the following on osx
2024-02-12 08:12:07 +00:00
source ~/.zprofile
```
2024-02-16 13:34:47 +00:00
There is also a [quick guide ](./docs/hero_mdbook_fullvm.md ) and a [script ](./docs/hero_mdbook_fullvm_script.md ) on setting mdbook and hero on a full VM running on the TFGrid. Read the [docs ](./docs ) for more information.
2024-02-12 08:12:07 +00:00
2024-02-05 02:49:16 +00:00
## to run the book
```bash
2024-02-23 13:07:35 +00:00
hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/tfgrid
2024-02-05 09:44:04 +00:00
2024-02-14 16:24:39 +00:00
# In case you want to open the generated book and edit
2024-02-23 13:07:35 +00:00
hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/tfgrid -e
2024-02-05 02:49:16 +00:00
```
2024-02-12 08:12:07 +00:00
## troubleshoot
### for Ubuntu, ...
2024-02-05 02:49:16 +00:00
```bash
2024-02-12 08:12:07 +00:00
apt update
apt install curl -y
2024-02-05 02:49:16 +00:00
```
2024-02-05 09:44:04 +00:00
2024-02-12 08:12:07 +00:00
### for OSX
2024-02-05 09:44:04 +00:00
if you see the following, it means you have an outdated brew on your laptop
```bash
## stderr:
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
```
to fix:
```bash
#uninstall
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
rm -rf /opt/homebrew
#re-install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```