2024-06-24 15:18:58 +02:00
# Workshop Setup
2024-06-25 20:17:48 +10:00
With these instructions you can set up a Codex node on your machine, to use during the workshop. If you run into trouble and need help, ask a nearby Codexer!
2024-06-24 15:18:58 +02:00
2024-06-25 15:20:30 +02:00
## 1. Use the local network wifi
2024-06-24 16:18:01 +02:00
Switch to the workshop wifi:
- SSID: `codex`
- Password: `ethcc2024`
2024-06-25 15:20:30 +02:00
## 2. Clone this repository
```
git clone https://github.com/codex-storage/codex-testnet-starter.git
2024-07-01 23:12:15 +10:00
cd codex-testnet-starter/scripts
2024-06-25 20:17:48 +10:00
```
> #### 📢 **Windows users**<br>
>If you are using a native Windows environment, and not a *nix-like environment
>(eg CYGWIN/MINGW/MSYS/MINGW), use the `scripts/windows` directory.
2024-06-24 15:18:58 +02:00
2024-07-01 23:12:15 +10:00
## 3. Download Codex
2024-06-25 20:17:48 +10:00
Run `download` script:
```shell
./download.sh
```
2024-06-24 15:18:58 +02:00
2024-07-01 23:12:15 +10:00
## 4. Generate an ETH key-pair
2024-06-25 20:17:48 +10:00
Run `generate` script:
```shell
./generate.sh
```
2024-06-25 15:20:30 +02:00
* Your private key will be saved to scripts/eth.key.
* Your ethereum address will be saved to scripts/eth.address.
> #### 📢 **Don't lose your keys**<br>
>If you lose your key and address, you can generate new ones. But the faucet and/or discord bot may refuse to give you new tokens for quite a while!
2024-06-24 15:18:58 +02:00
2024-07-01 23:12:15 +10:00
## 5. Start Codex node
2024-06-25 20:17:48 +10:00
Run the `run_client` script:
```shell
./run_client.sh
```
2024-06-24 15:18:58 +02:00
2024-06-25 15:20:30 +02:00
Unix users may be required to install libgomp:
```shell
sudo apt-get install libgomp1
```
2024-06-24 15:18:58 +02:00
2024-06-25 15:20:30 +02:00
#### 📢 **Check your IP**<br>
Check that your `LOCAL IP` in the output is correct, and if not, re-run the script with the LOCALIP environment variable:
```shell
LOCALIP=192.168.88.46 ./run_client.sh
```
2024-06-25 20:17:48 +10:00
2024-07-01 23:12:15 +10:00
## 6. Acquire tokens
2024-06-25 20:17:48 +10:00
You can acquire tokens in one of two ways: the testnet faucets or the Discord bot.
### Faucets
You will need both ETH and TST to use Codex:
1. Get some testnet ETH using https://faucet-eth.testnet.codex.storage.
2. Get some testnet TST using https://faucet-tst.testnet.codex.storage.
2024-06-24 15:18:58 +02:00
### Discord bot
- Join the Codex discord server: https://discord.gg/codex-storage.
- Go to the "bot" channel, in the category "codex-bot".
2024-06-24 16:18:01 +02:00
- Use `/set` command to enter your generated address.
2024-06-24 15:18:58 +02:00
- Use `/mint` command to receive some tokens.
2024-07-01 23:12:15 +10:00
## 7. Use Codex
2024-06-25 20:17:48 +10:00
Setup complete! 🥳 You can now proceed to use your Codex node. Follow the
[instructions ](./USINGCODEX.md ) 🐇
2024-07-04 11:07:03 +02:00
If you're on Windows, we have prepare the same instructions for CMD [here ](./USINGCODEX_WIN.md )