This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /tmp/mq | |
cd /tmp/mq | |
tar -zxvf /tmp/ms0t_mqexplorer_7502_linux_x86_64.tar.gz | |
sed -i.bak -e 's#LICENSE_ACCEPTED=FALSE#LICENSE_ACCEPTED=TRUE#g' /tmp/mq/silent_install.resp | |
env -i /tmp/mq/Setup.bin -f /tmp/mq/silent_install.resp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turn off SELinux at boot | |
sudo sed -i.bak -e 's#SELINUX=enforcing#SELINUX=permissive#g' /etc/selinux/config | |
# Turn off SELinux now | |
sudo setenforce Permissive | |
# Make sshd start at boot | |
sudo chkconfig sshd on | |
# Start sshd now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist has moved to: https://gist.github.com/grenade/aaee942da0363fa31e12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
current scripts overview: | |
vagrantfile | |
bootstrap.sh | |
shared.sh | |
installation functions | |
configuration functions | |
fcdldoa.sh | |
fcdlmyml.sh: osb, oepe, wl | |
fcdlsl3m.sh | |
fcdlsfdc.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function WebGet { | |
Param($url, $file) | |
$webClient = New-Object System.Net.WebClient | |
$webClient.Proxy = [System.Net.WebRequest]::GetSystemWebProxy() | |
$webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials | |
$webClient.DownloadFile($url, $file) | |
} | |
WebGet "https://nuget.org/nuget.exe" "C:\Test\lib\nuget.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
$windowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($windowsIdentity) | |
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator | |
if (!($windowsPrincipal.IsInRole($adminRole))) { | |
$psi = new-object System.Diagnostics.ProcessStartInfo "PowerShell"; | |
$psi.Arguments = $myInvocation.MyCommand.Definition; | |
$psi.Verb = "runas"; | |
[System.Diagnostics.Process]::Start($psi); | |
exit | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module ServerManager | |
Get-WindowsFeature MSMQ-* | Remove-WindowsFeature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration NServiceBusServiceDeployConfig { | |
param ( | |
[Parameter(Mandatory)] | |
[ValidateNotNullOrEmpty()] | |
[string[]] $targetNodes, | |
[Parameter(Mandatory)] | |
[ValidateNotNullOrEmpty()] | |
[string] $serviceDeployPath, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AllNodes = @( | |
@{ | |
NodeName = "*"; | |
RecurseValue = $true | |
}, | |
@{ | |
NodeName = "WebServer101"; | |
Role = "Web"; | |
RolesToBePresent = "Web-Server"; | |
SourceRoot = "\\Server106\source\web"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://msdn.microsoft.com/en-us/library/jj980508(v=winembedded.81).aspx | |
# http://wiki.splunk.com/Deploy:HOWTO_Enable_WMI_Access_for_Non-Admin_Domain_Users | |
# http://blogs.technet.com/b/ashleymcglone/archive/2011/04/18/powershell-remoting-exposed-how-to-command-your-minions.aspx | |
# disable Remote UAC: | |
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f | |
# enable the Remote Administration exception: | |
netsh advfirewall set service RemoteAdmin enable | |
# enable WMI traffic at a command prompt by using a WMI rule: | |
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes |