Acquired a few old HP servers for home lab.. this is to document their journey.
Challenge:
-
Started without using a monitor and a keyboard.
-
No access to any KVM over IP, or similar tools
| #!/bin/bash | |
| # Default Values | |
| SSH_USER=$(whoami) | |
| SSH_HOST="" | |
| KEY_MODE="generate_rsa" | |
| KEY_PATH_BASE="$HOME/.ssh" | |
| SSH_PORT=22 | |
| COPY_TO_CLIPBOARD=false | |
| PUSH_TO_REMOTE="" |
127.0.0.1 - - [26/Mar/2016:19:09:19 -0400] "GET / HTTP/1.1" 401 194 "" "Mozilla/5.0 Gecko" "-"
%{IPORHOST:clientip} (?:-|(%{WORD}.%{WORD})) %{USER:ident} \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent} %{QS:forwarder}
mkdir -p /usr/local/etc/nginx/sites-available
File locations:
nginx.conf to /usr/local/etc/nginx/default and default-ssl to /usr/local/etc/nginx/sites-available #STOP APACHE
sudo apachectl stop
| // pubsub attempts to reproduce a client timeout issue. | |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "os/user" | |
| "sync/atomic" |
| REGISTRY=https://index.docker.io/v2 | |
| REPO=library | |
| IMAGE=debian | |
| TAG=latest | |
| TOKEN=$(curl -sSL "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPO/$IMAGE:pull" \ | |
| | jq --raw-output .token) | |
| curl -LH "Authorization: Bearer ${TOKEN}" "$REGISTRY/$REPO/$IMAGE/manifests/$TAG" |
| 2021-04-07 07:23:15 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event timer_out_of_sync[L]: seconds=1.8326559760000123> | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.zigbee.application] Probing /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connecting to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 serial port | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Toggling RTS/CTS to skip CC2652R bootloader | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.uart] Connected to /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 at 115200 baud | |
| 2021-04-07 07:23:19 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s before sending anything | |
| 2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Sending bootloader skip byte | |
| 2021-04-07 07:23:20 DEBUG (MainThread) [zigpy_znp.api] Waiting 1s or until a reset indication is recei |
PFsense image to GCE instance