- Create Ubuntu 22.04 Cloud Server (WAN) -- You can use Digital Ocean, Linode, whatever
- Create Ubuntu 22.04 Internal Server (LAN)
---Replace the following where necessary---
<WAN_PUBLIC_IP>
<WAN_PRIVATE_KEY>
<WAN_PUBLIC_KEY>
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"strings" | |
) | |
func main() { |
#!/bin/bash | |
loopdevice=/dev/loop0 | |
loopfile=crypt.loop | |
#megabytes | |
loopsize=256 | |
#/dev/mapper/xxxxx when open | |
cryptmapper=myCrypt |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000