Linux

OS Helpers

here a small Collection of Helper and Scripts. You may find this stuff useful. Please be aware that you run this stuff on your own risk. It’s specially made for myself and you should not run this stuff as provided here. you may give me access to your system and you don’t want this ;) add bash & wget we need bash and wget for the following stuff. install it if not yet installed.

Docker on OSX

Some Notes Based on this Video: https://www.youtube.com/watch?v=bhBSlnQcq2k Download Docker https://docs.docker.com/get-docker/ Download Nginx Image https://hub.docker.com/_/nginx docker pull nginx Run Image docker run nginx docker run nginx:latest docker run -d nginx:latest docker run -d -p 80 nginx:latest docker run -d -p 8080:80 nginx:latest docker run -d -p 3000:80 -p 8080:80 nginx:latest Access Webserver mbp:~ stoege$ docker run -d -p 8080:80 nginx:latest 5c7a945caa59f14e35932f3d4470c9b9afc0307dac34e01947d41adbcdfda091 mbp:~ stoege$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5c7a945caa59 nginx:latest "/docker-entrypoint.

Mint Vlan

How to configure a Vlan on Linux Mint ? Wiki Install vlan sudo apt-get install vlan Configuration root@mint:~# sudo modprobe 8021q root@mint:~# ifconfig ens19: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.10.18.83 netmask 255.255.255.0 broadcast 10.10.18.255 inet6 2001:db8:1:2:9506:5fcd:1c61:1279 prefixlen 64 scopeid 0x0<global> inet6 2001:db8:1:2:a9:c50b:1348:1ec6 prefixlen 64 scopeid 0x0<global> inet6 2001:db8:1:2:e064:b0ec:a08f:7fd8 prefixlen 64 scopeid 0x0<global> inet6 2001:db8:1:2:a015:7ec:eef0:1a75 prefixlen 64 scopeid 0x0<global> inet6 2001:db8:1:2:a028:b890:ffe8:5231 prefixlen 64 scopeid 0x0<global> inet6 2001:db8:1:2:c80:addb:1273:95d5 prefixlen 64 scopeid 0x0<global> inet6 fe80::9cc2:b22d:cc15:2946 prefixlen 64 scopeid 0x20<link> ether 4e:e5:10:00:06:83 txqueuelen 1000 (Ethernet) RX packets 181 bytes 58337 (58.

Keepalive

Little Keep Alive … mit freundlicher genehmigung von Kumpel Marc :) #!/usr/bin/env bash FILE="$HOME/scripts/excuses" # Linux or BSD ? nf points to the right binary which numfmt > /dev/null 2>&1 && nf=$(which numfmt) || nf=$(which gnumfmt); # Linux or BSD ? gs points to the right binary which shuf > /dev/null 2>&1 && gs=$(which shuf) || gs=$(which gshuf); if [ ! -e "$FILE" ]; then echo "" echo "$FILE does not exist" echo "##############################################" command -v curl >/dev/null 2>&1 || { echo >&2 "Holy cow!