Freitag, 17. März 2017

MAC how to log a terminal SCREEN session

In case you need to record a serial session:

script -a -t 0 out.txt screen /dev/tty.usbserial

Sonntag, 26. Februar 2017

MAC how to create a bootable USB Stick using ISO file

In case you have to create a bootable USB stick from ISO file

Check the name of your USB device:
diskutil list 


Convert myimage.iso to myimage.dmg  

hdiutil convert -format UDRW -o myimage.dmg myimage.iso 

Unmount (don't eject!) usb stick 
diskutil unmountDisk /dev/disk2 

sudo dd if=myimage.dmg of=/dev/disk2 bs=1m
 
diskutil unmountDisk /dev/disk2

Freitag, 6. Januar 2017

Firmware for HP Servers How to Unpack on Linux or MAC

In case you need to update a iLO and you just got update files called scene:
1. Create a directory and put the file in
2. chmod +x filename.scexe
3. ./filename.scexe --unpack=./
Now you have extract your file from the scene file.

Mittwoch, 28. Dezember 2016

Philips Hue - User Management & Some How To

In case you want to get more information out ouf your hue bridge:

Open your API debug website on your bridge:

http://ip_of_your_hue_bridge/debug/clip.html

This will bring you to:

CLIP API Debugger


------------------------------
Create user

To create a user fill the following fields:

URL:

/api/

Message Body:

{"devicetype":"my_hue_app#iPhone Dr. No"}

Push the button "POST"

You will get an output like:

[{"success":{"username": "TSmirSrsdsfw3er-st4rs4rm0mns-j723rJz"}}]
------------------------------
Show config
Note this output as this is your valid username for the next actions.
Now you can use this created user "TSmirSrsdsfw3er-st4rs4rm0mns-j723rJz" to get more information out of your system like:

URL:

/api/TSmirSrsdsfw3er-st4rs4rm0mns-j723rJz

Push the button "GET"
------------------------------

URL:

/api/TSmirSrsdsfw3er-st4rs4rm0mns-j723rJz/config
Push the button "GET"

Delete a user
/api/<username>/config/whitelist/<username2>





Freitag, 23. Dezember 2016

Win Server 2012 R2 as timeserver

Just a few thinks to do:

Start PowerShell


  1. net stop w32time
  2. w32tm /config /syncfromflags:manual /manualpeerlist:0.de.pool.ntp.org
  3. w32tm /config /reliable:yes
  4. net start w32time

Mittwoch, 26. Oktober 2016

SSL PFX to PEM and KEY

In case you have a wildcard PFX certificate and you need a PEM and your private KEY:

A *.pfx certificate is a PKCS#12 format and includes both the certificate and the private key.


1. Export the private key
openssl pkcs12 -in ABC.pfx -nocerts -out privatekey.pem -nodes

2. Export the certificate
openssl pkcs12 -in ABC.pfx -nokeys -out cert.pem

3.  Remove the passphrase from the private key
openssl rsa -in privatekey.pem -out server.key 

Sonntag, 23. Oktober 2016

openBSD some hints

Packages

export PKG_PATH=http://openbsd.cs.fau.de/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/

Clamav

pkg_add c-icap-clamav-0.4.3.tgz