Enstale ak zouti RMM
Nenpòt zouti ki ka lanse yon kòmand kòm SYSTEM oswa root ka enstale JodaPrint. Egzanp ki anba yo telechaje enstalatè a nan pwòp pataj fichye oswa depo ou; fikse SHA-256 ki sou paj Telechajman an.
Action1 (Windows)
- Software Repository → Add custom package, voye
JodaPrint-x64.msi. - Additional parameters:
ACTIVATION_CODE=KJ74-PX9Q. MSI a deja mache san bri. - Deploy Software sou aparèy ou yo oswa sou yon gwoup, epi kite Action1 enstale aplikasyon ki manke yo lè yo rekonekte.
NinjaOne (Windows, macOS, Linux)
Sèvi ak Software Deployment ak MSI a ak agiman ACTIVATION_CODE=KJ74-PX9Q. Ou ka ajoute tou youn nan script ki anba yo nan Automation Library epi lanse l kòm System/root depi yon politik. Kenbe kòd la nan yon chan pèsonalize sekirize oswa yon varyab script, pa nan kò script la.
Script
Windows (PowerShell, lanse kòm SYSTEM)
$code = $env:JODAPRINT_CODE # from your RMM's secure variable
$url = "https://files.example.com/jodaprint/JodaPrint-x64.msi"
$sha = "<sha256 from the Downloads page>"
$msi = Join-Path $env:TEMP "JodaPrint-x64.msi"
Invoke-WebRequest $url -OutFile $msi -UseBasicParsing
if ((Get-FileHash $msi -Algorithm SHA256).Hash -ne $sha.ToUpper()) { throw "checksum mismatch" }
$p = Start-Process msiexec.exe -Wait -PassThru -ArgumentList "/i `"$msi`" /qn ACTIVATION_CODE=$code"
exit $p.ExitCode
macOS (lanse kòm root)
#!/bin/sh
set -e
dir=$(mktemp -d)
curl -fsSL -o "$dir/JodaPrint.pkg" "https://files.example.com/jodaprint/JodaPrint.pkg"
echo "<sha256> $dir/JodaPrint.pkg" | shasum -a 256 -c -
( umask 077; printf '%s\n' "$JODAPRINT_CODE" > "$dir/jodaprint-activation-code" )
installer -pkg "$dir/JodaPrint.pkg" -target /
rm -rf "$dir"
Debian ak Ubuntu (lanse kòm root)
#!/bin/sh
set -e
f=/tmp/jodaprint-agent.deb
curl -fsSL -o "$f" "https://files.example.com/jodaprint/jodaprint-agent_1.2.0_amd64.deb"
echo "<sha256> $f" | sha256sum -c -
JODAPRINT_ACTIVATION_CODE="$JODAPRINT_CODE" apt-get install -y "$f"
rm -f "$f"
Sou Fedora oswa RHEL, sèvi ak dnf install -y ak .rpm la.
Verifye pak aparèy la
Kòd sòti chak script di RMM ou a si enstalasyon an mache. Aktivasyon an parèt nan tablo de bò a: filtre Aparèy pa gwoup kòd aktivasyon ou a. Pou verifye yon sèl òdinatè depi RMM a, lanse jodaprint-agent status sou li: li montre eta sèvis la ak enprimant yo.