Created
February 13, 2019 15:25
-
-
Save typelogic/a60b03c24e665154dbef4c5f46976f6c to your computer and use it in GitHub Desktop.
asciinema setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup asciinema-server inside VM via docker | |
# Configured values in .env.production file | |
``` | |
## Base URL of your asciinema web app instance | |
URL_SCHEME=http | |
URL_HOST=<ip of vm here> | |
URL_PORT=80 | |
## Base secret key for signing cookies etc. | |
## Run `docker-compose run --rm web mix phx.gen.secret` | |
## and copy generated secret here. | |
SECRET_KEY_BASE=7jEj1fcDJfk5hKkSolDJq5510RFymbCuwBbky6P0qTGoZP8ZgaMYR1ZRqzreBS2Z | |
``` | |
# In your Windows machine, open (git bash or cygwiwn) shell and ssh into remote Windows host server | |
ssh -p 2222 -ND 1337 -i ./id_rsa guest@<ip of windows host here> | |
``` | |
Setup port forwarding in VM's NAT interface. | |
2222 -> 22 = this is for ssh | |
8000 -> 80 = this is for asciinema server | |
In your Windows machine, Goto Windows proxy setting: | |
Address = http://socks=localhost | |
Port = 1337 | |
``` | |
Download asciinema client: | |
No client for Windows | |
---- | |
Inside VM, create a tunneling user | |
useradd -m proxy | |
chsh proxy -s /bin/false | |
------------------ | |
In your asciinema client config: .config/asciinema/config: | |
``` | |
[api] | |
url = http://<ip of windows host here>:8000 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment