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
#! /bin/bash | |
check_app() { | |
if apt-cache show $1 &>/dev/null; then | |
return 0 | |
else | |
return 1 | |
fi | |
} |
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
$vmName = "VBGuest" | |
$guestAddress = "use vb 'host only' address here" | |
$sshUsername = "root_or_something_else" | |
$sshPort = "fill_port_here" | |
# Check if the VM is running by pinging the guest address | |
$pingResult = Test-Connection -ComputerName $guestAddress -Count 2 -Quiet | |
if ($pingResult) { | |
Write-Host "VM is running. Connecting via SSH..." |
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
username-email=#username# | |
password=#password# |