Skip to content

Commit

Permalink
SYSO-139 added step to install jq package
Browse files Browse the repository at this point in the history
  • Loading branch information
Default User committed Dec 14, 2023
1 parent 54971d0 commit 5f9c49a
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 73 deletions.
155 changes: 122 additions & 33 deletions docs/Build-Linux-Machine-with-PiKVM.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,97 +213,105 @@ <h6 class="text-right">



<p class="text-muted pt-2">
<a href="#confirmcommandlinejsonprocessorisinstalled">
<strong>Step 1.1 -</strong> Confirm Command-line JSON processor is installed
</a>
</p>



<p class="text-muted pt-2">
<a href="#testpikvmauthentication">
<strong>Step 1.1 -</strong> Test PiKVM Authentication
<strong>Step 1.2 -</strong> Test PiKVM Authentication
</a>
</p>



<p class="text-muted pt-2">
<a href="#getpikvmsysteminfo">
<strong>Step 1.2 -</strong> Get PiKVM System Info
<strong>Step 1.3 -</strong> Get PiKVM System Info
</a>
</p>



<p class="text-muted pt-2">
<a href="#getatxstate">
<strong>Step 1.3 -</strong> Get ATX State
<strong>Step 1.4 -</strong> Get ATX State
</a>
</p>



<p class="text-muted pt-2">
<a href="#setatxpowersoftoff">
<strong>Step 1.4 -</strong> Set ATX Power Soft Off
<strong>Step 1.5 -</strong> Set ATX Power Soft Off
</a>
</p>



<p class="text-muted pt-2">
<a href="#getmsdstate">
<strong>Step 1.5 -</strong> Get MSD State
<strong>Step 1.6 -</strong> Get MSD State
</a>
</p>



<p class="text-muted pt-2">
<a href="#disconnectmsdimage">
<strong>Step 1.6 -</strong> Disconnect MSD Image
<strong>Step 1.7 -</strong> Disconnect MSD Image
</a>
</p>



<p class="text-muted pt-2">
<a href="#resetmsdstate">
<strong>Step 1.7 -</strong> Reset MSD State
<strong>Step 1.8 -</strong> Reset MSD State
</a>
</p>



<p class="text-muted pt-2">
<a href="#removemsdimage">
<strong>Step 1.8 -</strong> Remove MSD Image
<strong>Step 1.9 -</strong> Remove MSD Image
</a>
</p>



<p class="text-muted pt-2">
<a href="#uploadmsdimage">
<strong>Step 1.9 -</strong> Upload MSD Image
<strong>Step 1.10 -</strong> Upload MSD Image
</a>
</p>



<p class="text-muted pt-2">
<a href="#selectmsdimage">
<strong>Step 1.10 -</strong> Select MSD Image
<strong>Step 1.11 -</strong> Select MSD Image
</a>
</p>



<p class="text-muted pt-2">
<a href="#connectmsd">
<strong>Step 1.11 -</strong> Connect MSD
<strong>Step 1.12 -</strong> Connect MSD
</a>
</p>



<p class="text-muted pt-2">
<a href="#setatxpoweron">
<strong>Step 1.12 -</strong> Set ATX Power On
<strong>Step 1.13 -</strong> Set ATX Power On
</a>
</p>

Expand Down Expand Up @@ -460,20 +468,13 @@ <h3 id="preparepikvmandstartosinstallation">


<div class="row pt-5">
<h4 id="testpikvmauthentication">
<a href="#testpikvmauthentication">
<strong>Step 1.1 -</strong> Test PiKVM Authentication
<h4 id="confirmcommandlinejsonprocessorisinstalled">
<a href="#confirmcommandlinejsonprocessorisinstalled">
<strong>Step 1.1 -</strong> Confirm Command-line JSON processor is installed
</a>
</h4>
</div>

<div class="row">
<div class="description col px-0">
<p>

</p>
</div>
</div>



Expand Down Expand Up @@ -501,6 +502,94 @@ <h4 id="testpikvmauthentication">



<div class="row">
<p>
Execute the following script:
</p>
</div>
<div class="row">
<div class="col px-0">
<pre>
<code class="language-sql py-0">
if [[ -f /etc/redhat-release ]] || [[ -f /etc/lsb-release ]]
then

if which jq &gt;/dev/null; then
echo &quot;jq is installed.&quot;
else
echo &quot;jq is not installed.&quot;
dnf -y install jq
fi

elif [[ -f /etc/debian_version ]]
then

if which jq &gt;/dev/null; then
echo &quot;jq is installed.&quot;
else
echo &quot;jq is not installed.&quot;
apt-get -y install jq
fi

elif [[ &quot;Darwin&quot; == &quot;$(uname)&quot; ]]
then

if which jq &gt;/dev/null; then
echo &quot;jq is installed.&quot;
else
echo &quot;jq is not installed.&quot;
brew -y install jq
fi

else

echo &quot;Unsupported operating system.&quot;
exit 1
fi
</code>
</pre>
</div>
</div>









<div class="row pt-5">
<h4 id="testpikvmauthentication">
<a href="#testpikvmauthentication">
<strong>Step 1.2 -</strong> Test PiKVM Authentication
</a>
</h4>
</div>

<div class="row">
<div class="description col px-0">
<p>

</p>
</div>
</div>
















<div class="row">
<p>
Execute the following script:
Expand Down Expand Up @@ -540,7 +629,7 @@ <h4 id="testpikvmauthentication">
<div class="row pt-5">
<h4 id="getpikvmsysteminfo">
<a href="#getpikvmsysteminfo">
<strong>Step 1.2 -</strong> Get PiKVM System Info
<strong>Step 1.3 -</strong> Get PiKVM System Info
</a>
</h4>
</div>
Expand Down Expand Up @@ -607,7 +696,7 @@ <h4 id="getpikvmsysteminfo">
<div class="row pt-5">
<h4 id="getatxstate">
<a href="#getatxstate">
<strong>Step 1.3 -</strong> Get ATX State
<strong>Step 1.4 -</strong> Get ATX State
</a>
</h4>
</div>
Expand Down Expand Up @@ -664,7 +753,7 @@ <h4 id="getatxstate">
<div class="row pt-5">
<h4 id="setatxpowersoftoff">
<a href="#setatxpowersoftoff">
<strong>Step 1.4 -</strong> Set ATX Power Soft Off
<strong>Step 1.5 -</strong> Set ATX Power Soft Off
</a>
</h4>
</div>
Expand Down Expand Up @@ -723,7 +812,7 @@ <h4 id="setatxpowersoftoff">
<div class="row pt-5">
<h4 id="getmsdstate">
<a href="#getmsdstate">
<strong>Step 1.5 -</strong> Get MSD State
<strong>Step 1.6 -</strong> Get MSD State
</a>
</h4>
</div>
Expand Down Expand Up @@ -782,7 +871,7 @@ <h4 id="getmsdstate">
<div class="row pt-5">
<h4 id="disconnectmsdimage">
<a href="#disconnectmsdimage">
<strong>Step 1.6 -</strong> Disconnect MSD Image
<strong>Step 1.7 -</strong> Disconnect MSD Image
</a>
</h4>
</div>
Expand Down Expand Up @@ -841,7 +930,7 @@ <h4 id="disconnectmsdimage">
<div class="row pt-5">
<h4 id="resetmsdstate">
<a href="#resetmsdstate">
<strong>Step 1.7 -</strong> Reset MSD State
<strong>Step 1.8 -</strong> Reset MSD State
</a>
</h4>
</div>
Expand Down Expand Up @@ -899,7 +988,7 @@ <h4 id="resetmsdstate">
<div class="row pt-5">
<h4 id="removemsdimage">
<a href="#removemsdimage">
<strong>Step 1.8 -</strong> Remove MSD Image
<strong>Step 1.9 -</strong> Remove MSD Image
</a>
</h4>
</div>
Expand Down Expand Up @@ -957,7 +1046,7 @@ <h4 id="removemsdimage">
<div class="row pt-5">
<h4 id="uploadmsdimage">
<a href="#uploadmsdimage">
<strong>Step 1.9 -</strong> Upload MSD Image
<strong>Step 1.10 -</strong> Upload MSD Image
</a>
</h4>
</div>
Expand Down Expand Up @@ -1018,7 +1107,7 @@ <h4 id="uploadmsdimage">
<div class="row pt-5">
<h4 id="selectmsdimage">
<a href="#selectmsdimage">
<strong>Step 1.10 -</strong> Select MSD Image
<strong>Step 1.11 -</strong> Select MSD Image
</a>
</h4>
</div>
Expand Down Expand Up @@ -1077,7 +1166,7 @@ <h4 id="selectmsdimage">
<div class="row pt-5">
<h4 id="connectmsd">
<a href="#connectmsd">
<strong>Step 1.11 -</strong> Connect MSD
<strong>Step 1.12 -</strong> Connect MSD
</a>
</h4>
</div>
Expand Down Expand Up @@ -1136,7 +1225,7 @@ <h4 id="connectmsd">
<div class="row pt-5">
<h4 id="setatxpoweron">
<a href="#setatxpoweron">
<strong>Step 1.12 -</strong> Set ATX Power On
<strong>Step 1.13 -</strong> Set ATX Power On
</a>
</h4>
</div>
Expand Down
Loading

0 comments on commit 5f9c49a

Please sign in to comment.