...
This commit is contained in:
parent
35bd66f21f
commit
8ab76adbe6
146 changed files with 101 additions and 40 deletions
|
|
@ -0,0 +1,37 @@
|
|||
ssh -i /home/tschneider/.ssh/hetzner_id_rsa root@167.235.131.137
|
||||
|
||||
|
||||
```bash
|
||||
wget https://www.zauberturm.de/awa/downloads/master_server.x86_64
|
||||
wget https://www.zauberturm.de/awa/downloads/scene_server.x86_64
|
||||
chmod +x master_server.x86_64 scene_server.x86_64
|
||||
|
||||
./master_server.x86_64 --headless > master_log.txt &
|
||||
./scene_server.x86_64 --headless > scene_log.txt & # TODO: Set unique log name
|
||||
```
|
||||
|
||||
|
||||
|
||||
VServer self-discover IPV4 address:
|
||||
```bash
|
||||
root@ubuntu-2gb-nbg1-1:~# curl -s http://169.254.169.254/hetzner/v1/metadata|grep public-ipv4|awk -F ': ' '{print $2}'
|
||||
167.235.131.137
|
||||
```
|
||||
|
||||
```bash
|
||||
curl -s http://169.254.169.254/hetzner/v1/metadata|grep public-ipv4|awk -F ': ' '{print $2}' > ip.txt
|
||||
```
|
||||
|
||||
|
||||
|
||||
PHP: Receive & write ip as textfile
|
||||
```php
|
||||
<?php
|
||||
|
||||
$myfile = fopen("ip.txt", "w");
|
||||
fwrite($myfile, $_GET['ip']);
|
||||
fclose($myfile);
|
||||
|
||||
?>
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue