Category Archives: Uncategorized

Ubuntu home dir auto creation freeipa

pam-auth-update –force

Posted in Uncategorized | Comments Off on Ubuntu home dir auto creation freeipa

MacOS Settings for VirtualBox

VBoxManage modifyvm “Mojave” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc” VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1 VBoxManage setextradata “Mojave” VBoxInternal2/EfiGopMode 4

Posted in Uncategorized | Comments Off on MacOS Settings for VirtualBox

How to create a Bootable ISO image of macOS

hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg hdiutil detach /Volumes/Install\ macOS\ High\ Sierra hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso

Posted in Uncategorized | Comments Off on How to create a Bootable ISO image of macOS

EMC RecoverPoint admin password recovery

Log in via SSH to the RecoverPoint Cluster using user: security-admin and password: security-admin Use the command: unlock_user Select the user admin from the list.

Posted in Uncategorized | Comments Off on EMC RecoverPoint admin password recovery

SNMP Trap Reciever for SNMP Trap Testing…

I used this perl module and script to test SNMP Traps (Mostly to check if they are being generated when expected): #!/usr/bin/perl   use Net::SNMPTrapd;   my $snmptrapd = Net::SNMPTrapd->new()     or die “Error creating SNMPTrapd listener: “, Net::SNMPTrapd->error;   … Continue reading

Posted in Uncategorized | Comments Off on SNMP Trap Reciever for SNMP Trap Testing…

How to remove a disk device in linux RHEL

Just stumbled upon an issue where disks were removed from a RHEL system by the storage admin and the RHEL os does not clean up all device files ‘/dev/sd*’ … This throws out kernel error messages to the syslog and … Continue reading

Posted in Uncategorized | Comments Off on How to remove a disk device in linux RHEL

Perl to PHP and vise versa

— Perl arrays — — Php arrays — @a = (); @a = ( ‘xx’, 11, 33.5, ); @a = 12..33; $a[2] = ‘something’; $len = scalar(@a); # or $len = @a; @a3 = (‘xx’, @a1, @a2); ($x, $y) = … Continue reading

Posted in Perl, PHP, Uncategorized | Comments Off on Perl to PHP and vise versa

How To Resize /dev/shm Filesystem In Linux

By default installation, RHEL and most Linux distributions mount tmpfs (a RAM-based temporarily filesystem) to /dev/shm directory and this temporarily filesystem size is always set to be half of the installed memory. If that default size is not something expected, … Continue reading

Posted in Uncategorized | Comments Off on How To Resize /dev/shm Filesystem In Linux

Root lost password rescue

#include <stdio.h> #include <pwd.h> int main() {         setuid(0); setgid(0);         execl(“/bin/bash”,”prom”,0); } So what is the idea behind this code? Compile this code and the output place in a safe place with a name that only you might know … Continue reading

Posted in Uncategorized | Comments Off on Root lost password rescue