title: “Join a node with kubeadm”
date: 2020-04-02T19:44:03
slug: join-a-node-with-kubeadm
kubeadm token create --print-join-command 2>/dev/null | ssh node01
title: “Join a node with kubeadm”
date: 2020-04-02T19:44:03
slug: join-a-node-with-kubeadm
kubeadm token create --print-join-command 2>/dev/null | ssh node01
title: “ps commands”
date: 2019-08-12T11:49:37
slug: ps-commands
Display the start time and date of the running processes in Linux:
$ ps -eo pid,lstart,cmd
title: “Install containerd”
date: 2019-03-26T14:00:39
slug: install-containerd
wget https://github.com/containerd/containerd/archive/v1.2.5.zip
unzip v1.2.5.zip
wget https://github.com/containerd/containerd/releases/download/v1.2.5/containerd-1.2.5.linux-amd64.tar.gz
containerd-1.2.5.linux-amd64.tar.gz
cp bin/\* /usr/local/bin
cp containerd.service /lib/systemd/system
systemctl enable containerd
mkdir /etc/containerd/
containerd config default > /etc/containerd/config.toml
systemctl start containerd
Add insecure registries to containerd /etc/containerd/config.toml (extract)
[plugins.cri.registry]
[plugins.cri.registry.mirrors]
[plugins.cri.registry.mirrors."docker.io"]
endpoint = ["https://registry-1.docker.io"]
[plugins.cri.registry.mirrors."192.168.122.123:5000"]
endpoint = ["http://192.168.122.123:5000"]
[plugins.cri.registry.auths]
[plugins.cri.registry.auths."http://192.168.122.123:5000"]
username = "docker"
password = "docker"
[plugins.cri.x509\_key\_pair\_streaming]
tls\_cert\_file = ""
title: “SSH Completation”
date: 2019-02-27T13:26:37
slug: ssh-completation
vi .bashrc
complete -W "$(<~/.ssh/hosts)" ssh
cat ~/.ssh/hosts
haproxy01.stg.fkb01.fti.int
haproxy02.prd.fkb01.fti.int
haproxy02.stg.fkb01.fti.int
hotelbeschreibung-db01.prd.fkb01.fti.int
hotelbeschreibung-db01.stg.fkb01.fti.int
hotelbeschreibung-web01.prd.fkb01.fti.int
hotelbeschreibung-web01.stg.fkb01.fti.int
hr-azubiblog-db01.prd.fkb01.fti.int
hr-azubiblog-db01.stg.fkb01.fti.int
hr-azubiblog-web01.prd.fkb01.fti.int
hr-azubiblog-web01.stg.fkb01.fti.int
i5-public-webservice-camper.prd.fkb01.fti.int
i5-public-webservice-camper.stg.fkb01.fti.int
i5-public-webservice-contact.prd.fkb01.fti.int
title: “Netplan”
date: 2018-09-05T15:09:03
slug: netplan
/etc/netplan/01-netcfg.yaml:
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.168.178.110/24
nameservers:
addresses: [192.168.178.1]
routes:
- to: default
via: 192.168.178.1
eth1:
dhcp4: no
dhcp6: no
addresses: [192.168.56.30/24]
title: “Set up Go”
date: 2018-01-22T19:51:53
slug: settun-go-variables
Download the archive (https://golang.org/dl/)
and extract it into /usr/local, creating a Go tree in /usr/local/go. For example:
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
export PATH=$PATH:/usr/local/go/bin
Create your workspace directory, $HOME/go. (If you’d like to use a different directory, you will need to set the GOPATH environment variable.)
mkdir -p $HOME/go/src
Create Test Project
mkdir $HOME/go/src/hello
vi $HOME/go/src/hello/hello.go
package main
import "fmt"
func main() {
fmt.Printf("hello, world
")
}
Then build it with the go tool:
cd $HOME/go/src/hello
go build
&
title: “sed”
date: 2015-04-06T14:18:58
slug: sed
Ersetzen einen Strings mit einem anderen (linux nach Linux). Das g nachdem Slash bedeutet das im ganzen String ersetzt wird und nicht nur nach dem ersten Vorkommen.
sed 's/linux/Linux/g' readme.txt > ReadMe.txt
Von stdin den String bis zum letzten / abschneiden:
Hier im Beispiel wird von der Ausgabe des Befehles find (beinhaltet Pfad & Dateiname)
/root/.cache/tracker/first-index.txt
der Pfad abgeschnitten so das die Ausgabe nur noch
first-index.txt ist
find / -type f | sed 's/.\*\///g'
Den String in () nach 1 schreiben und ausgeben
sed 's/^Pl: <<"\(.\*\).\*">>$/\1/g'
title: “Aptana Fehler: Fetching Directory failed”
date: 2015-01-29T18:08:14
slug: aptana-fehler-fetching-directory-failed
Im Commando Fenster folgenden Befehl ausführen (Als Admin):
netsh advfirewall set global StatefulFTP disable
title: “Aptana Studio 3 – SVN Installation”
date: 2015-01-28T20:52:09
slug: aptana-studio-svn
Repository Location hinzufügen:
http://download.eclipse.org/technology/subversive/2.0/update-site/
http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/
Anschließend SVNKIT 1.8.7 Implementation installieren
Repository für PHP Development Tools:
http://download.eclipse.org/releases/indigo/
title: “PHP mit Threads compilieren”
date: 2014-10-29T10:52:44
slug: php-mit-threads-compilieren
PHP Version 5.6.X downloaden und konfigurieren:
./configure --prefix=/usr/share/php56 --datadir=/usr/share/php56 --mandir=/usr/share/man --bindir=/usr/bin/php56 --with-libdir=lib/x86\_64-linux-gnu --includedir=/usr/include/php56 --sysconfdir=/etc/php56/apache2 --with-config-file-path=/etc/php56/apache2 --with-config-file-scan-dir=/etc/php56/conf.d --enable-libxml --enable-session --with-pcre-regex=/usr --enable-xml --enable-simplexml --enable-filter --disable-debug --enable-inline-optimization --disable-rpath --disable-static --enable-shared --with-pic --with-gnu-ld --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-xpm-dir --enable-exif --with-zlib --with-bz2 --with-curl --with-mysqli --with-freetype-dir --enable-soap --enable-sockets --enable-calendar --enable-ftp --enable-mbstring --enable-gd-native-ttf --enable-bcmath --enable-zip --with-pear --with-openssl --with-imap --with-imap-ssl --with-kerberos --enable-phar --enable-pdo --with-pdo-mysql --with-mysqli --enable-intl --with-mcrypt --with-tsrm-pthreads --enable-maintainer-zts
Dann compilieren und installieren:
make
make install
Neuste pthreads Source runterladen und entpacken:
w3m http://pecl.php.net/get/pthreads
tar -xvf pthreads-2.0.10.tgz
Dann ein:
cd pthreads-2.0.10
/usr/bin/php56/phpize
(Evtl. muss autoconf installiert werden: apt-get install autoconf)
pthreads configurieren:
./configure --with-php-config=/usr/bin/php56/php-config
pthreads compilieren und instllieren
make
make install
Jetzt müsste eine Datei namens pthreads.so im Verzeichnis /usr/share/php56/lib/php/extensions/no-debug-zts-20131226/ exitieren
Jetzt die php.ini aus den sourcen nach /etc/php56/cli kopieren
cp php.ini-development /etc/php56/conf.d/php.ini
Dann noch die extension in der php.ini Datei eintragen
extension=/usr/share/php56/lib/php/extensions/no-debug-zts-20131226/pthreads.so
Checken in php mit pthreads funktioniert:
/usr/bin/php56/php -m | grep pthreads
Ergebnis sollte sein:
pthreads