Administratorberechtigungen auf alle Postfächer/Datenbank

September 29th, 2016 by Jan Gabriel Keine Kommentare »

Get-MailboxDatabase | Add-ADPermission -user administrator@contoso.de -AccessRights GenericAll

8 GPUs (vielleicht auch mehr) unter Windows

April 5th, 2016 by Jan Gabriel Keine Kommentare »

– Start Menu
– Under Search type: Regedit (Press Enter)
– Navigate to the following directory:
o HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E968-E325-11CE-BFC1-08002BE10318}
– You will see directories labeled “0000”, “0001” and so on that are relative to the total amount of cards.
– Under each of those Keys (eg. 0000) create the following two Dword values, once created set their value to 1
o DisplayLessPolicy
o LimitVideoPresentSources

LUN entfernen VMware ESXi/ESX 4.0 and 4.1die nicht mehr erreichbar ist und vSphere kommt nicht klar

Februar 23rd, 2016 by Jan Gabriel Keine Kommentare »

gefunden hier: http://blog.shiraj.com/2014/10/1057/

First find Dead Path Link

esxcfg-mpath -L | more

List which drive are used by server and naa.xx nubmer.

esxcfg-scsidevs --vmfs

Rescan vmhba in my case vmhba35

esxcfg-rescan vmhba35


To shutdown the VM

vim-cmd vmsvc/getallvms | grep <vm name>
vim-cmd vmsvc/power.getstate <vmid>
vim-cmd vmsvc/power.off <vmid>


List all world id

vm-support -x

To Kill that vm

vm-support -X <world id>
--
Folgendes hat mir das letzte Mal geholfen, einfach ummaskieren, dann war alles wieder gut:

Masking a LUN from ESX and ESXi using the MASK_PATH plug-in

check Mask

esxcfg-mpath -G

List claimrules esxcli corestorage claimrule list if you sill have problem with dead path, you can mask (–rule number you can have anything from 101 and up)

esxcli corestorage claimrule add --rule 102 -t location -A vmhba37 -C 3 -T 0 -L 27 -d naa.600xxxxxx -P MASK_PATH

Interne Mouseoverfunktion in Typo3 4.5 umbennen

Februar 14th, 2016 by Jan Gabriel Keine Kommentare »

In der Datei typo3/sysext/cms/tslib/class.tslib_fe.php die Funktionen over (name,imgObj) und out(name,imgObj) umbennen.

WordPress URL ändern und Links anpassen

November 10th, 2015 by Jan Gabriel Keine Kommentare »

To update WordPress options with the new blog location, use the following SQL command:

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

After that […] fix URLs of the WordPress posts and pages […] stored in database wp_posts table as guid field. […]

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');

And further on:

Use the following SQL commands [sic!] to fix all internal links […]:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

Benutzer Profil oder Computer behält alte Policies

April 16th, 2015 by Jan Gabriel Keine Kommentare »

Wenn ein Profil oder Client alte Policies behalten hat in der Registry folgendes löschen:

HKLM\Software\Policies\Microsoft Key (looks like a folder).
HKCU\Software\Policies\Microsoft Key.
HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects Key.
HKCU\Software\Microsoft\Windows\CurrentVersion\Policiess Key.

große xfs Partition unter Linux anlegen

Januar 9th, 2015 by Jan Gabriel Keine Kommentare »

fdisk taugt nix bei großen Platten/Raids, also muß parted ran z.B.:

parted /dev/sdb
mklabel gpt
mkpart primary xfs 1 -1
quit

Dann xfs draufbügeln mit:

mkfs.xfs -d name=/dev/sdb1 -L irgendeinname

Zum mounten braucht man evtl. noch:

apt-get install parted xfsprogs

Zum mounten in der fstab sollte man die Option inode64 für FS größer 2TB nehmen und wenn man nicht cached oder nen Batteriepuffer hat kann man auch noch nobarrier setzten:

/dev/sdb1 /mnt/xfsmount xfs inode64,nobarrier 0 2

Screen unter Linux

Januar 9th, 2015 by Jan Gabriel Keine Kommentare »

Vorgehensweise

  • Verbindung zum Zielrechner aufbauen, z.B. mit OpenSSH.

  • Starten tut man es einfach mit screen, ab dann arbeitet man auf einem von screen verwalteten screen ;)

    • Eine Liste von laufenden screens erzeugt screen -ls

    • Multi-User-Mode: Wenn schon ein screen läuft, kann man sich einfach mit screen -rx <pid> draufschalten.

    • Wenn man sich nicht sicher ist, ob schon ein anderer screen läuft: screen -R erstellt bei Bedarf einen neuen.

  • Wenn man fertig ist, einfach Verbindung abbrechen (ggf. vorher Strg-a d = detach).

Die wichtigsten Screen-Kommandos

Kombination

Kommando

Beschreibung

Strg-a ?

help

Zeigt den eingebauten Hilfebildschirm

Strg-a 0

select

Schaltet zum Bildschirm 0

select

Strg-a 9

select

Schaltet um auf Bildschirm 9

Strg-a A

title

Erlaubt dem User, dem aktuellen Bildschirm einen Namen zu geben.

Strg-a c

create

erzeugt einen neuen von Screen verwalteten Bildschirm

Strg-a d

detach

Beendet den screen prozess, der die Session und das Terminal verbindet.

Screen und die ggf. gestartete Anwendung läuft aber weiter!!!

Strg-a n

next

Schaltet zum Bildschirm mit der nächsthöheren Nummer

Strg-a p

previous

Schaltet zum Bildschirm mit der nächstniedrigeren Nummer

Strg-a x

lockscreen

Sperrt die Konsole, bis das Passwort des Benutzers eingegeben wurde

Strg-a <Leertaste>

next

Alternative zu n; u.U. handlicher zu bedienen

Strg-a "

windowlist -b

Listet alle Fenster der aktuellen Session

VMware ESXi: mpt-statusd Fehlermeldungen

November 18th, 2014 by Jan Gabriel Keine Kommentare »

Installiert man ein Linux System unter VMware ESXi so erscheint im Gastsystem unter umständen folgende Fehlermeldung:

mpt-statusd: detected non-optimal RAID status

Das Gast-OS ist nicht in der Lage den RAID-Controller des Hostsystems abzufragen, daher ist eine überprüfung mit mpt-statusd vollkommen unsinnig.

Stoppen des Dienstes (bis zum Reboot)

/etc/init.d/mpt-statusd stop

Permanentes Deaktivieren des automatischen Starts (Entfernen aus den Runlevels)

update-rc.d-insserv -f mpt-statusd remove

Synology Festplatte über Linux (oder direkt per USB) auslesen

November 3rd, 2014 by Jan Gabriel Keine Kommentare »

Mit dieser Hilfe und ein paar Abänderungen erfolgreich in eine Synology eingebunden.

 

I had the the same problem with an SHR-Raid on a Synology Diskstation. Tried over 1 Week to solve the same problem. The first i can say you have to work with the terminal. The 2nd is that you need the mdadm package.

#   sudo apt-get install mdadm

then you have to check how the drive is registered in Ubuntu „“dev/sdc or something like that. The next input says linux that you want to run this drive as a volume

#   mdadm -A --verbose --run /dev/md3 /dev/sdc5

with that input you force linux to use this as volumegroup

#   mdadm -Sf /dev/md3

#   pvscan

gives back following information

#   File descriptor 4 (/dev/urandom) leaked on pvscan invocation. Parent PID 2451: bash
#     PV /dev/md3   VG vg1   lvm2 [1,81 TiB / 0    free]
#     Total: 1 [1,81 TiB] / in use: 1 [1,81 TiB] / in no VG: 0 [0   ]

with the next you make the volumegroup to a disk

#   vgchange -ay /dev/vg1
#   lvdisplay vg1

If you made this steps correctly you can find your drive in personal Folders under ubuntu an you can mount the drive then. If you want you can mount with terminal too:

#  mkdir /media/syno-vg1
#  mount /dev/vg1/lv -o ro /media/syno-vg1

Hope it works.