IPv6 Toolbox

NDisc6 ist eine kleine Sammlung nützlicher Tools zum debuggen von IPv6 Problemen. Z.B. zeigt einem

rdisc6 eth0

alle Router Advertisements an die auf diesem Gerät ankommen sowie zugehörige Settings:
Soliciting ff02::2 (ff02::2) on extern0...
Hop limit : undefined ( 0x00)
Stateful address conf. : Yes
Stateful other conf. : Yes
Mobile home agent : No
Router preference : medium
Neighbor discovery proxy : No
Router lifetime : 120 (0x00000078) seconds
Reachable time : 3600000 (0x0036ee80) milliseconds
Retransmit time : unspecified (0x00000000)
from fe80::1

(Ausgabe von Thore Bödecker)

Posted in General, Internet found pieces, Linux | Leave a comment

The Day The Router Died…

Posted in General, Linux, Nerd Stuff | Leave a comment

PDF Sammlung KW44

Hier eine Sammlung wichtiger und interessanter PDFs die ich die Woche über gefunden oder zugeschickt bekommen habe:

Roles and Profiles Pattern in Puppet
Sichere Crypto Implementierung für diverse Server Applikationen
The Not So ShortIntroduction to LATEX 2ε
User’s Guide to the Beamer Class
How To Ask Questions The Smart Way
Pressenews der BEREC über DPI bei ISPs
A view of traffic management and
other practices resulting in restrictions to the open Internet in Europe

Die Angaben der ISPs aus oben verlinkter Studie
DE-CIX Newsletter Oktober 2014

Posted in General, Internet found pieces, IT-Security, Linux, Nerd Stuff, Puppet | Leave a comment

Qemu VNC Passwort zur Laufzeit ändern

virsh qemu-monitor-command <DOMAIN> --hmp change vnc password <PASSWORD>

Aibo hat mich darauf hingewiesen das man mit folgendem Befehl das Passwort einer VNC Konsole live ändern kann. Dies ist allerdings nicht persistent – muss also auch noch in der Domain.xml geändert werden.

Posted in General, Linux, Short Tips, Virtualization | Leave a comment

Short Tip: Alle Mails eines Users exportieren

doveadm search -u david@domain mailbox OLD | while read guid uid; do doveadm fetch -u david@domain text mailbox-guid "$guid" uid "$uid" | sed '/^text:$/d; s#^\f$##' > "david/$uid.msg"; done
Posted in General, Linux, Short Tips | Leave a comment

PDF Sammlung KW43

Hier eine Sammlung wichtiger und interessanter PDFs die ich die Woche über gefunden oder zugeschickt bekommen habe:

2014 State of DevOps Report von PuppetLabs
PuppetLabs Dokumentationen zu Facter, Hiera, Puppet Enterprise, Puppet Beginner Guide, sowie Funktionsreferenz
Slides zur Vorlesungsreihe Betriebssysteme der TU Wien
Die Zukunft des Internets von Arthur D Little (Libertyglobal)

Posted in General, Internet found pieces, IT-Security, Linux, Puppet, Virtualization | Leave a comment

Bachelor Thesis

Nicht meine eigenen, aber trotzdem lesenswert ;)
Konzeption einer Hochverfügbarkeitslösung für LAMP-Systeme mit Open-Source-Software und Standard-Hardware
und
Informationssicherheit in modernen PHP-Systemen

Posted in General, Internet found pieces, IT-Security, Linux, Virtualization | Leave a comment

Short Tip: Git Verlauf in Farbe

Spritzgebaeck hat mir folgenden Befehl verraten:

git log --graph --oneline --all

Damit erhält man eine schöne Übersicht über alle Commits und Merges:

* 726f589 pushed to 1.1.1
* a7adc68 pushed to v1.1
* 2dbaa92 fixed all known bugs, extended docs
* 891ab0b moved from class to module, fixed issue in recursive method
* 3f4eb2f fixed typos, modularized methods, extended docs/todo
* b743dd8 added docs, removed typo
* 6901394 extended forge_client.rb
* 69a9670 added recursion, fixed typos
* 5f53709 added basic get_requirements and comments
* f0ece1a extended forge_client, now complete git support
* c155ed9 extended forge client
* 5100f17 added basic forge voodoo with ruby
* 563f458 added copyright
* 14bc20b added github mirror script the second time
* 95495f7 improved ceph repo handling removing fastestmirror the fancy way creating 8k ssh key and not 4k
* f8e2464 Merge branch 'master' of ssh+git://github.com/bastelfreak/scripts
|\
| * aaeab02 added dyndns from foxxx0
| * b57715b modified vimrc and added basic dnsblcheck script from bluewind
* | f4b6244 added puma service file for serving puppet
* | 7ebd31f added shop.sh for showing directory tree including permissions
|/
* 51e5a5c Merge branch 'master' of https://github.com/bastelfreak/scripts
|\
| * 5f2d5b9 added sshd_whitelist filterfrom bluewind
| * 640a6d8 added wallpaper
| * ba4a761 Merge branch 'master' of https://github.com/bastelfreak/scripts
| |\
| | * 5d46369 fixed path to apache vhost files
| * | 0547873 added configs
* | | 2ac34cd added bashrc stuff from Ubuntu
| |/
|/|
* | c23c5c6 Merge pull request #1 from soapsurfer/master
|\ \
| * | 5b2be5c Added stripe_cache_size.service
|/ /
* | a932ab1 added trafic shaping script from bluewind
* | 81e4795 bugfix for apache2.4
* | f17d83e added new file
|/
* 64904e3 extended bashrc
* aef53ff added basic bashrc
* e1c0e98 added inputc
* 815848d added screenrc
* d12ea71 enhanced vimrc
* 6c1a935 changed backuplocation from working place to /tmp
* 62035d0 added vimrc config
* 73252a1 fix for aibos fix that fixed a fix (or something similar)
* 00bffcd changes by aibo
* 761878c stuff from aibo
* a9a1ae6 more beautiful if/else construct
* 7d57f3a fixed the adjustments
* 2bd3ae6 small adjustments to conjure a smile on aibos face
* 9b27732 reformatted error message
* 214a56d Merge branch 'master' of https://github.com/bastelfreak/scripts
|\
| * d781f23 fixed 'setting up local website'
| * 748950e Merge branch 'master' of https://github.com/bastelfreak/scripts
| |\
| | * 6473f66 fixed double access.log
| | * 6b24d8c added stupid changes that doesn't work
| * | 3578a87 we want to have more verbosity
| * | cb6efd6 modified shell putput
| |/

Und hier noch eine Version von Bluewind:

git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short --decorate=short

sieht dann so aus:

* 726f589 2014-10-08 Tim Meusel (HEAD, origin/master, origin/HEAD, master) pushed to 1.1.1
* a7adc68 2014-10-08 Tim Meusel pushed to v1.1
* 2dbaa92 2014-10-07 Tim Meusel fixed all known bugs, extended docs
* 891ab0b 2014-10-07 Tim Meusel moved from class to module, fixed issue in recursive method
* 3f4eb2f 2014-10-07 Tim Meusel fixed typos, modularized methods, extended docs/todo
* b743dd8 2014-10-06 Tim Meusel added docs, removed typo
* 6901394 2014-10-06 Tim Meusel extended forge_client.rb
* 69a9670 2014-09-26 Tim Meusel added recursion, fixed typos
* 5f53709 2014-09-12 Tim Meusel added basic get_requirements and comments
* f0ece1a 2014-09-11 Tim Meusel extended forge_client, now complete git support
* c155ed9 2014-09-10 Tim Meusel extended forge client
* 5100f17 2014-09-10 Tim Meusel added basic forge voodoo with ruby
* 563f458 2014-09-10 Tim Meusel added copyright
* 14bc20b 2014-09-09 Tim Meusel added github mirror script the second time
* 95495f7 2014-09-09 Tim Meusel improved ceph repo handling removing fastestmirror the fancy way creating 8k ssh key and not 4k
* f8e2464 2014-08-28 Tim 'bastelfreak' Meusel Merge branch 'master' of ssh+git://github.com/bastelfreak/scripts
|\
| * aaeab02 2014-08-22 Tim 'bastelfreak' Meusel added dyndns from foxxx0
| * b57715b 2014-08-15 Tim 'bastelfreak' Meusel modified vimrc and added basic dnsblcheck script from bluewind
* | f4b6244 2014-08-27 Tim 'bastelfreak' Meusel added puma service file for serving puppet
* | 7ebd31f 2014-08-25 Tim 'bastelfreak' Meusel added shop.sh for showing directory tree including permissions
|/
* 51e5a5c 2014-08-12 Tim 'bastelfreak' Meusel Merge branch 'master' of https://github.com/bastelfreak/scripts
|\
| * 5f2d5b9 2014-07-20 bastelfreak added sshd_whitelist filterfrom bluewind
| * 640a6d8 2014-07-20 bastelfreak added wallpaper
| * ba4a761 2014-07-20 root Merge branch 'master' of https://github.com/bastelfreak/scripts
| |\
| | * 5d46369 2014-07-16 root fixed path to apache vhost files
| * | 0547873 2014-07-20 root added configs
* | | 2ac34cd 2014-08-11 Tim 'bastelfreak' Meusel added bashrc stuff from Ubuntu
| |/
|/|
* | c23c5c6 2014-06-18 Tim Meusel Merge pull request #1 from soapsurfer/master
|\ \
| * | 5b2be5c 2014-06-18 Sebastian Vogt Added stripe_cache_size.service
|/ /
* | a932ab1 2014-06-15 root added trafic shaping script from bluewind
* | 81e4795 2014-06-12 root bugfix for apache2.4
* | f17d83e 2014-06-03 Tim Meusel added new file
|/
* 64904e3 2014-05-25 root extended bashrc
* aef53ff 2014-05-25 root added basic bashrc
* e1c0e98 2014-05-25 root added inputc
* 815848d 2014-05-18 root added screenrc
* d12ea71 2014-04-29 Tim Meusel enhanced vimrc
* 6c1a935 2014-04-29 Tim Meusel changed backuplocation from working place to /tmp
* 62035d0 2014-04-29 Tim Meusel added vimrc config
* 73252a1 2014-03-17 root fix for aibos fix that fixed a fix (or something similar)
* 00bffcd 2014-03-17 root changes by aibo
* 761878c 2014-03-17 root stuff from aibo
* a9a1ae6 2014-03-17 root more beautiful if/else construct
* 7d57f3a 2014-03-17 root fixed the adjustments
* 2bd3ae6 2014-03-17 root small adjustments to conjure a smile on aibos face
* 9b27732 2014-03-17 root reformatted error message
* 214a56d 2014-03-17 root Merge branch 'master' of https://github.com/bastelfreak/scripts
|\
| * d781f23 2014-03-09 root fixed 'setting up local website'
| * 748950e 2014-02-23 root Merge branch 'master' of https://github.com/bastelfreak/scripts
| |\
| | * 6473f66 2014-02-11 root fixed double access.log
| | * 6b24d8c 2014-01-30 root added stupid changes that doesn't work
| * | 3578a87 2014-01-31 root we want to have more verbosity
| * | cb6efd6 2014-01-31 root modified shell putput
| |/

Posted in General, Linux, Short Tips | Leave a comment

Directory Tree mit rsync mirrorn

Wenn man rekursiv alle Verzeichnisse kopieren möchte, allerdings nicht die enthaltenen Datein, dann tuts folgender rsnyc Befehl:

rsync -av -f"+ */" -f"- *" /var/vmail/ /home/vmail/
Posted in General, Linux, Short Tips | Leave a comment

Libvirt Volume anlegen, in VM mounten und einbinden

virsh vol-create-as storage mail01_02 100G

der genannte Befehl erzeugt im Pool storage ein neues Volume mit dem Namen mail01_02 und einer größe von 100G. Da es sich um einen LVM Pool handelt muss man nicht mit –format angeben ob es sich im ein raw oder qcow2 Image handelt.

Hier der Beispielcode um das Image in einer VM einzubinden (domain.xml):

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/vg0/mail01_02'/>
      <target dev='vdb' bus='virtio'/>
      <alias name='virtio-disk1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </disk>

Nach einem stop und start der VM wird das Image erkennt. Alternativ kann man das Image auch live mit libvirt einbinden. Vorgehen innerhalb der VM:

aptitude install lvm2
pvcreate /dev/vdb
vgcreate vg0 /dev/vdb
lvcreate --name mails --size 99G vg0
mkfs.xfs /dev/vg0/mails

Im Anschluss kann man mit “blkid /dev/vg0/mails” die UUID herausfinden und in der /etc/fstab eintragen:

UUID=620dc3ca-e912-4d61-8c81-74f3a9e44c9e /home/vmail xfs defaults, 0 2
Posted in General, Linux, Short Tips, Virtualization | Leave a comment