Skip to content

Commit 506ac3a

Browse files
author
mike dupont
committed
adding in more notes
1 parent f871200 commit 506ac3a

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

demo2.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
* Whats the scenario
3+
4+
Homelab:
5+
Windows pc - linux server - aws instance
6+
mobile phone -
7+
8+
on Road : moblile phone talking to api server
9+
10+
** aws tg4.small arm64 instance running on private account, firewall
11+
skinny eliza docker
12+
solana
13+
akash
14+
no voice/video plugin
15+
16+
** stages
17+
*** build the dao
18+
**** x
19+
*** run the dao
20+
*** rebuild the new dao
21+
22+
* forward ports for ssh and eliza to local pc
23+
24+
# lets forward ssh to 2222
25+
```
26+
aws ssm start-session --target i-06a744b2cf12e2356 --document-name AWS-StartPortForwardingSession --parameters '{"portNumber": ["22"], "localPortNumber": ["2222"]}'
27+
```
28+
29+
# lets forward port 3000 on server to our local 9301 to talk to eliza
30+
```
31+
aws ssm start-session --target i-06a744b2cf12e2356 --document-name AWS-StartPortForwardingSession --parameters '{"portNumber": ["3000"], "localPortNumber": ["9301"]}'aws ssm start-session --target i-06a744b2cf12e2356 --document-name AWS-StartPortForwardingSession --parameters '{"portNumber": ["3000"], "localPortNumber": ["9301"]}'
32+
```
33+
34+
# now lets connect the agent on what appears to be local host 9031
35+
```
36+
cd ~/eliza-starter/
37+
export SERVER_NAME=localhost:9301
38+
nvm use 23
39+
pnpm start
40+
```
41+
42+
```
43+
ssh ubuntu@localhost -p 2222
44+
sudo su -
45+
cd /opt/agent
46+
47+
asciinema rec server.txt
48+
tail -f strace.log | grep -i TINE
49+
asciinema upload server.txt
50+
```
51+
52+
Record cinema
53+
```
54+
asciinema rec server.ac
55+
```
56+
57+
```
58+
aws ssm start-session --target i-06a744b2cf12e2356
59+
```

0 commit comments

Comments
 (0)