<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>smussie</title>
    <description>My adventures in coding, Jekyll, HTML, CSS and JS, should be fun.</description>
    <link>https://smussie.github.io</link>
    <atom:link href="https://smussie.github.io/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Thu, 09 Sep 2021 12:24:13 +0000</pubDate>
    <lastBuilDate>Thu, 09 Sep 2021 12:24:13 +0000</lastBuilDate>
    <generator>Jekyll v3.9.0</generator>
    
      <item>
        <title>Gnupg Cheatsheet</title>
        <description>&lt;p&gt;—–[ GnuPG Cheatsheet ]—–&lt;/p&gt;

&lt;p&gt;This document is intended to be a quick note about some GnuPG commands.
I hope this will be useful as writing it was for me.&lt;/p&gt;

&lt;p&gt;DEADBEEF is used as an example key ID, note any part of the user ID can be used
as key specifier to identify a key.&lt;/p&gt;

&lt;p&gt;The –output option can always be omitted.&lt;/p&gt;

&lt;p&gt;Any output, keys, encrypted documents, and signatures, can be ASCII-armored by
adding the –armor option.&lt;/p&gt;

&lt;h3 id=&quot;generate-a-keypair&quot;&gt;GENERATE A KEYPAIR&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –full-gen-key&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;generate-a-revoke-certificate&quot;&gt;GENERATE A REVOKE CERTIFICATE&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output revoke.gpg –gen-revoke DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;list-keys-on-the-keyring&quot;&gt;LIST KEYS ON THE KEYRING&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –list-keys&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;export-a-public-key&quot;&gt;EXPORT A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output coffee.gpg –export DEADBEEF&lt;/strong&gt;
&lt;strong&gt;$ gpg –armor –export DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;export-a-private-key&quot;&gt;EXPORT A PRIVATE KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –export-secret-keys DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;import-a-key&quot;&gt;IMPORT A KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –import key.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;validate-a-public-key&quot;&gt;VALIDATE A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;A key is validated by verifying the key’s fingerprint and then signing the key,
to certify that it is a valid key, and belongs to the correct user.
Edit the key with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –edit-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;then you can view the fingerprint with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ fpr&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now verify the fingerprint with the key owner, you must guarantee that you are
communicating with the key’s true owner.
After checking the fingerprint, you may sign the key to validate it&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;$ sign&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can list the signatures on the key with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ check&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;delete-a-public-key&quot;&gt;DELETE A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –delete-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;delete-a-private-key&quot;&gt;DELETE A PRIVATE KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –delete-secret-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;asymmetric-encryption-and-decryption&quot;&gt;ASYMMETRIC ENCRYPTION AND DECRYPTION&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output enc_doc.gpg –encrypt –recipient ax@crypt.coffee doc&lt;/strong&gt;
&lt;strong&gt;$ gpg –output doc –decrypt enc_doc.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;symmetric-encryption&quot;&gt;SYMMETRIC ENCRYPTION&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;With a passphrase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –output doc.gpg –symmetric doc.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;sign-a-document&quot;&gt;SIGN A DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;A signature is created using the private key of the signer.
Compress the doc before sign, output in binary format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –sign doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;clearsign-a-document&quot;&gt;CLEARSIGN A DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;Wrapped in an ASCII-armored signature but otherwise human readable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –clearsign doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;detached-signature&quot;&gt;DETACHED SIGNATURE&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;Creates a detached signature, in a separate file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;gpg [–armor] –detach-sig doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;extract-a-signed-document&quot;&gt;EXTRACT A SIGNED DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –decrypt doc.sig&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;verify-a-signed-documet&quot;&gt;VERIFY A SIGNED DOCUMET&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –verify doc.sig&lt;/strong&gt;&lt;/p&gt;
</description>
        <pubDate>Mon, 01 Jun 2020 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/cheatsheet/gnupg_cheetsheet</link>
        <updated>2020-06-01T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/cheatsheet/gnupg_cheetsheet</guid>
        <content type="html"> &lt;p&gt;—–[ GnuPG Cheatsheet ]—–&lt;/p&gt;

&lt;p&gt;This document is intended to be a quick note about some GnuPG commands.
I hope this will be useful as writing it was for me.&lt;/p&gt;

&lt;p&gt;DEADBEEF is used as an example key ID, note any part of the user ID can be used
as key specifier to identify a key.&lt;/p&gt;

&lt;p&gt;The –output option can always be omitted.&lt;/p&gt;

&lt;p&gt;Any output, keys, encrypted documents, and signatures, can be ASCII-armored by
adding the –armor option.&lt;/p&gt;

&lt;h3 id=&quot;generate-a-keypair&quot;&gt;GENERATE A KEYPAIR&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –full-gen-key&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;generate-a-revoke-certificate&quot;&gt;GENERATE A REVOKE CERTIFICATE&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output revoke.gpg –gen-revoke DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;list-keys-on-the-keyring&quot;&gt;LIST KEYS ON THE KEYRING&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –list-keys&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;export-a-public-key&quot;&gt;EXPORT A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output coffee.gpg –export DEADBEEF&lt;/strong&gt;
&lt;strong&gt;$ gpg –armor –export DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;export-a-private-key&quot;&gt;EXPORT A PRIVATE KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –export-secret-keys DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;import-a-key&quot;&gt;IMPORT A KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –import key.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;validate-a-public-key&quot;&gt;VALIDATE A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;A key is validated by verifying the key’s fingerprint and then signing the key,
to certify that it is a valid key, and belongs to the correct user.
Edit the key with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –edit-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;then you can view the fingerprint with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ fpr&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now verify the fingerprint with the key owner, you must guarantee that you are
communicating with the key’s true owner.
After checking the fingerprint, you may sign the key to validate it&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;$ sign&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can list the signatures on the key with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ check&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;delete-a-public-key&quot;&gt;DELETE A PUBLIC KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –delete-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;delete-a-private-key&quot;&gt;DELETE A PRIVATE KEY&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –delete-secret-key DEADBEEF&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;asymmetric-encryption-and-decryption&quot;&gt;ASYMMETRIC ENCRYPTION AND DECRYPTION&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –output enc_doc.gpg –encrypt –recipient ax@crypt.coffee doc&lt;/strong&gt;
&lt;strong&gt;$ gpg –output doc –decrypt enc_doc.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;symmetric-encryption&quot;&gt;SYMMETRIC ENCRYPTION&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;With a passphrase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –output doc.gpg –symmetric doc.gpg&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;sign-a-document&quot;&gt;SIGN A DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;A signature is created using the private key of the signer.
Compress the doc before sign, output in binary format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –sign doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;clearsign-a-document&quot;&gt;CLEARSIGN A DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;Wrapped in an ASCII-armored signature but otherwise human readable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$ gpg –clearsign doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;detached-signature&quot;&gt;DETACHED SIGNATURE&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;Creates a detached signature, in a separate file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;gpg [–armor] –detach-sig doc&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;extract-a-signed-document&quot;&gt;EXTRACT A SIGNED DOCUMENT&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –decrypt doc.sig&lt;/strong&gt;&lt;/p&gt;

&lt;h3 id=&quot;verify-a-signed-documet&quot;&gt;VERIFY A SIGNED DOCUMET&lt;/h3&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;$ gpg –verify doc.sig&lt;/strong&gt;&lt;/p&gt;
</content>
      </item>
    
      <item>
        <title>Bash Cheatsheet</title>
        <description>
</description>
        <pubDate>Mon, 01 Jun 2020 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/Bash-Cheatsheet</link>
        <updated>2020-06-01T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/Bash-Cheatsheet</guid>
        <content type="html"> 
</content>
      </item>
    
      <item>
        <title>Customize Shell Prompt</title>
        <description>&lt;hr /&gt;

&lt;h2 id=&quot;table-for-shell-prompt&quot;&gt;Table for shell prompt&lt;/h2&gt;

&lt;hr /&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Sequence&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Sequence&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\d&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The date (+%a\ %b\ %d format) 1)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\v&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The version of the shell (short)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\D{format}&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The date in the desired format (in strftime format) 2)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\w&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The path of the working directory&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\t&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 24-hour (+%k:%M:%S format) 3)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\W&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the working directory&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\T&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 12-hour (+%l:%M:%S format) 4)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;!&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The current command number in the history&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\@&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 12-hour, with AM/PM (+%l:%M\ %p format) 5)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;#&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The command number (from the start of the shell)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\A&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 24-hour (+%k:%M format) 6)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;If the current user is root, displays a #, else displays a $&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\h&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The host name&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;[&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Start a sequence of non-printing characters&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\H&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The full host name (with the domain name)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;]&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;End a sequence of non-printing characters&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\j&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The number of suspended processes in the current shell (&lt;Ctrl&gt;+Z)&lt;/Ctrl&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\l&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the shell’s terminal device&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\a ,\007&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The  bell character&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\s&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the shell executable&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\n&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Start a new line&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\u&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The current user name&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\r&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Carriage return&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A single backslash&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\e ,\033&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The  Escape character. Used by some Control Sequences (see bellow)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;hr /&gt;

&lt;!--Prompt Helper--&gt;
&lt;div id=&quot;ph_prompt_helper&quot; style=&quot;border: 3px solid rgb(192, 192, 192); padding: 0px; background: rgb(0, 0, 0); color: rgb(255, 255, 255); font-family: monospace; font-size: 9pt;&quot;&gt;
&lt;div id=&quot;ph_titlebar&quot; style=&quot;padding: 0px 0px 3px; background: rgb(192, 192, 192); color: rgb(0, 0, 0); font-family: sans-serif; font-weight: bold; min-height: 16px; overflow: hidden; white-space: nowrap;&quot;&gt;
&lt;a href=&quot;http://download.flogisoft.com/files/misc/softwares/prompt_helper/&quot;&gt;
&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOAQMAAAAlhr%2BSAAAAAXNSR0IArs4c6QAAAAZQTFRFAGAHOTk527ktlgAAAAF0Uk5TAEDm2GYAAAAfSURBVAjXY2BgYGBvQEf2HxjkHzDwHwCxmRlAXAYGAJloB%2BGJ8YGpAAAAAElFTkSuQmCC&quot; alt=&quot;Download Prompt Helper&quot; title=&quot;Download Prompt Helper&quot; style=&quot;vertical-align: middle; margin: -1px 2px 0px 0px; border: none;&quot; /&gt;
&lt;/a&gt;Prompt Helper&lt;/div&gt;
&lt;div id=&quot;ph_prev&quot; style=&quot;padding: 3px 5px 5px; min-height: 16px; overflow: hidden;&quot;&gt;
&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;username&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;hostname&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;~/Documents&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;
&lt;/div&gt;
&lt;div id=&quot;ph_input_div&quot; style=&quot;padding: 3px 5px; font-weight: bold;&quot;&gt;PS1=&quot;&lt;input type=&quot;text&quot; name=&quot;ph_input&quot; id=&quot;ph_input&quot; value=&quot;\[\e[1;32m\]\u@\h\[\e[0;1m\]:\[\e[0;36m\]\w\[\e[0m\]\$ &quot; style=&quot;border: 1px dashed rgb(68, 68, 68); background: rgb(34, 34, 34); color: rgb(170, 170, 170); font-family: monospace; font-size: 9pt; width: 1072px;&quot; /&gt;&quot;&lt;/div&gt;&lt;/div&gt;
&lt;script src=&quot;/js/prompt_helper.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;!-- &lt;script src=&quot;https://misc.flogisoft.com/scripts/prompt_helper.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; --&gt;

&lt;h2 id=&quot;prompt-examples&quot;&gt;Prompt Examples&lt;/h2&gt;

&lt;h3 id=&quot;for-system-wide-change&quot;&gt;For system wide change&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;/etc/profile&lt;/li&gt;
  &lt;li&gt;/etc/bashrc&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;for-user-based-changes&quot;&gt;For user based changes&lt;/h3&gt;

&lt;p&gt;~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc
~/.bash_logout&lt;/p&gt;
</description>
        <pubDate>Thu, 19 Sep 2019 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/bash/Customize_shell_prompt</link>
        <updated>2019-09-19T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/bash/Customize_shell_prompt</guid>
        <content type="html"> &lt;hr /&gt;

&lt;h2 id=&quot;table-for-shell-prompt&quot;&gt;Table for shell prompt&lt;/h2&gt;

&lt;hr /&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Sequence&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt; &lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Sequence&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\d&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The date (+%a\ %b\ %d format) 1)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\v&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The version of the shell (short)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\D{format}&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The date in the desired format (in strftime format) 2)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\w&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The path of the working directory&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\t&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 24-hour (+%k:%M:%S format) 3)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\W&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the working directory&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\T&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 12-hour (+%l:%M:%S format) 4)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;!&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The current command number in the history&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\@&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 12-hour, with AM/PM (+%l:%M\ %p format) 5)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;#&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The command number (from the start of the shell)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\A&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The time, 24-hour (+%k:%M format) 6)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;$&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;If the current user is root, displays a #, else displays a $&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\h&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The host name&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;[&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Start a sequence of non-printing characters&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\H&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The full host name (with the domain name)&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;]&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;End a sequence of non-printing characters&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\j&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The number of suspended processes in the current shell (&lt;Ctrl&gt;+Z)&lt;/Ctrl&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\l&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the shell’s terminal device&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\a ,\007&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The  bell character&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\s&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The name of the shell executable&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\n&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Start a new line&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\u&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The current user name&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\r&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Carriage return&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A single backslash&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;\e ,\033&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;The  Escape character. Used by some Control Sequences (see bellow)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;hr /&gt;

&lt;!--Prompt Helper--&gt;
&lt;div id=&quot;ph_prompt_helper&quot; style=&quot;border: 3px solid rgb(192, 192, 192); padding: 0px; background: rgb(0, 0, 0); color: rgb(255, 255, 255); font-family: monospace; font-size: 9pt;&quot;&gt;
&lt;div id=&quot;ph_titlebar&quot; style=&quot;padding: 0px 0px 3px; background: rgb(192, 192, 192); color: rgb(0, 0, 0); font-family: sans-serif; font-weight: bold; min-height: 16px; overflow: hidden; white-space: nowrap;&quot;&gt;
&lt;a href=&quot;http://download.flogisoft.com/files/misc/softwares/prompt_helper/&quot;&gt;
&lt;img src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOAQMAAAAlhr%2BSAAAAAXNSR0IArs4c6QAAAAZQTFRFAGAHOTk527ktlgAAAAF0Uk5TAEDm2GYAAAAfSURBVAjXY2BgYGBvQEf2HxjkHzDwHwCxmRlAXAYGAJloB%2BGJ8YGpAAAAAElFTkSuQmCC&quot; alt=&quot;Download Prompt Helper&quot; title=&quot;Download Prompt Helper&quot; style=&quot;vertical-align: middle; margin: -1px 2px 0px 0px; border: none;&quot; /&gt;
&lt;/a&gt;Prompt Helper&lt;/div&gt;
&lt;div id=&quot;ph_prev&quot; style=&quot;padding: 3px 5px 5px; min-height: 16px; overflow: hidden;&quot;&gt;
&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;username&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;hostname&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 205, 0); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;~/Documents&lt;/span&gt;
&lt;span style=&quot;color: rgb(0, 205, 205); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 255, 255); background: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;
&lt;/div&gt;
&lt;div id=&quot;ph_input_div&quot; style=&quot;padding: 3px 5px; font-weight: bold;&quot;&gt;PS1=&quot;&lt;input type=&quot;text&quot; name=&quot;ph_input&quot; id=&quot;ph_input&quot; value=&quot;\[\e[1;32m\]\u@\h\[\e[0;1m\]:\[\e[0;36m\]\w\[\e[0m\]\$ &quot; style=&quot;border: 1px dashed rgb(68, 68, 68); background: rgb(34, 34, 34); color: rgb(170, 170, 170); font-family: monospace; font-size: 9pt; width: 1072px;&quot; /&gt;&quot;&lt;/div&gt;&lt;/div&gt;
&lt;script src=&quot;/js/prompt_helper.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;!-- &lt;script src=&quot;https://misc.flogisoft.com/scripts/prompt_helper.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; --&gt;

&lt;h2 id=&quot;prompt-examples&quot;&gt;Prompt Examples&lt;/h2&gt;

&lt;h3 id=&quot;for-system-wide-change&quot;&gt;For system wide change&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;/etc/profile&lt;/li&gt;
  &lt;li&gt;/etc/bashrc&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;for-user-based-changes&quot;&gt;For user based changes&lt;/h3&gt;

&lt;p&gt;~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc
~/.bash_logout&lt;/p&gt;
</content>
      </item>
    
      <item>
        <title>Windows server 2019 config</title>
        <description>&lt;h1 id=&quot;--installing-windows-server&quot;&gt;- Installing windows server&lt;/h1&gt;

&lt;h3 id=&quot;-1-requirements&quot;&gt;    &lt;strong&gt;1.&lt;/strong&gt; &lt;em&gt;Requirements&lt;/em&gt;&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;* after that
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;-2-virtual-box-config&quot;&gt;    &lt;strong&gt;2.&lt;/strong&gt; &lt;em&gt;Virtual box config&lt;/em&gt;&lt;/h3&gt;

&lt;h3 id=&quot;-3-requirements&quot;&gt;    &lt;strong&gt;3.&lt;/strong&gt; &lt;em&gt;Requirements&lt;/em&gt;&lt;/h3&gt;

&lt;h1 id=&quot;--configuring&quot;&gt;- Configuring&lt;/h1&gt;

&lt;h1 id=&quot;--installing-dns-and-ad&quot;&gt;- Installing DNS and AD&lt;/h1&gt;

&lt;h1 id=&quot;--configuring-dns-and-ad&quot;&gt;- Configuring DNS and AD&lt;/h1&gt;
</description>
        <pubDate>Fri, 13 Sep 2019 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/blog/note/Windows-Server</link>
        <updated>2019-09-13T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/blog/note/Windows-Server</guid>
        <content type="html"> &lt;h1 id=&quot;--installing-windows-server&quot;&gt;- Installing windows server&lt;/h1&gt;

&lt;h3 id=&quot;-1-requirements&quot;&gt;    &lt;strong&gt;1.&lt;/strong&gt; &lt;em&gt;Requirements&lt;/em&gt;&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;* after that
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;-2-virtual-box-config&quot;&gt;    &lt;strong&gt;2.&lt;/strong&gt; &lt;em&gt;Virtual box config&lt;/em&gt;&lt;/h3&gt;

&lt;h3 id=&quot;-3-requirements&quot;&gt;    &lt;strong&gt;3.&lt;/strong&gt; &lt;em&gt;Requirements&lt;/em&gt;&lt;/h3&gt;

&lt;h1 id=&quot;--configuring&quot;&gt;- Configuring&lt;/h1&gt;

&lt;h1 id=&quot;--installing-dns-and-ad&quot;&gt;- Installing DNS and AD&lt;/h1&gt;

&lt;h1 id=&quot;--configuring-dns-and-ad&quot;&gt;- Configuring DNS and AD&lt;/h1&gt;
</content>
      </item>
    
      <item>
        <title>Installing SynologyNas</title>
        <description>&lt;p&gt;Configuration Réseau DSM 6.2&lt;/p&gt;

&lt;h1 id=&quot;installsing-syslognas&quot;&gt;Installsing SyslogNAS&lt;/h1&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Read the original post announced by jun: &lt;a href=&quot;http://xpenology.com/forum/viewtopic.php?f=2&amp;amp;t=20216&quot;&gt;http://xpenology.com/forum/viewtopic.php?f=2&amp;amp;t=20216&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Requirements&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;Virtual Box&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Jun’s bootloader v1.03 (DSM 6.2) ds3617)
(https://mega.nz/#F!yQpw0YTI!DQqIzUCG2RbBtQ6YieScWg!OZw2QKwT)
! Here what i got was all in .img file thus i did this to convert them to .vmdk
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;VBoxManage convertfromraw imagefile.img vmdkname.vmdk \-\-format VMDK&lt;/code&gt;
(https://xpenology.club/download/) * Unzip the package. We will need 2 files: &lt;strong&gt;synoboot.img&lt;/strong&gt; and &lt;strong&gt;synoboot.vmdk&lt;/strong&gt;&lt;/p&gt;

        &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;		* What is downloaded is mostly \*.img format so we need this additional steps for vm
				```
				sudo apt-get install ccd2iso
				ccd2iso &amp;lt;filename&amp;gt;.img &amp;lt;filename&amp;gt;.iso
				```
		* Optionally
				```
				mount -o loop &amp;lt;img file name&amp;gt; &amp;lt;mountpoint&amp;gt;
				mkisofs -o &amp;lt;iso output file name&amp;gt; &amp;lt;mountpoint&amp;gt;
				```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Synology’s DSM : &lt;a href=&quot;https://archive.synology.com/download/DSM/release/6.2/23739/.pat&quot;&gt;https://archive.synology.com/download/DSM/release/6.2/23739/.pat&lt;/a&gt; ??
      It is the software that will be installed on the hardisk&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;Synology’s DS Assistant : &lt;a href=&quot;https://gloabl.download.synology.com/download/Tools/Assistant/&quot;&gt;https://gloabl.download.synology.com/download/Tools/Assistant/&lt;/a&gt;
      &lt;a href=&quot;https://www.synology.com/en-global/support/download/DS3617xs#utilities&quot;&gt;https://www.synology.com/en-global/support/download/DS3617xs#utilities&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Configure the Virtual Machine:&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;Type: Linux&lt;/li&gt;
      &lt;li&gt;Version : Linux 2.6 / 3.x / 4.x (64-bit)&lt;/li&gt;
      &lt;li&gt;Chipset : ICH9&lt;/li&gt;
      &lt;li&gt;HDD Virtuel (4x) &lt;strong&gt;(Does it have to be SCSI or SATA???)&lt;/strong&gt;
_ Type de fichier HDD : VDI (VirtualBox Disk Image)
_ Allocation dynamique du fichier VDI.
_ Nom du fichier : VM-DSM-HDDx (x = numéro du disque dur)
_ Taille : 8Gb * Remove Controller: IDE&lt;/li&gt;
      &lt;li&gt;Number of CPUs: 2&lt;/li&gt;
      &lt;li&gt;Network
_ Set to Bridged Adapter
_ Promiscuous-Mode: Allow all * MAC Address: 0011322CA785&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4) Setup the network:
   a) Bridge or NAT, it’s up to you
   b) Expand the Advanced option
   c) Adapter type: Intel PRO/1000 MT Desktop (8254OEM)
   d) MAC Address: &lt;strong&gt;0011322CA785&lt;/strong&gt; (This is the most important setting to make your Xpenology accesssible!)
   _ For class the teacher changed this to …
   _ Dans l’adresse MAC indiquez : 001132123456 (important !).
   &lt;strong&gt;Why is it very important?? and why is it different?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;5) Start the VM, press F12 to enable the boot menu&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Boot from IDE harddisk 1&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In the gnub menu, select the last option (xxx VMware xxx)&lt;/p&gt;

    &lt;p&gt;(http://find.synology.com)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Wait around 2~5 minutes, depends on your Hardware spec. The bootloader only show around 10 lines of message. Don’t worry. Be patient and it’s still loading the system.
&lt;del&gt;I am having most difficulty with this step right now&lt;/del&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Install synology assistant. Press Search button&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;You should see your new DiskStation now. If not, wait for another 1 or 2 minutes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The most important step! Verify the MAC address shown in the Synology Assistant. Make sure it’s the same as the one you set in step 4.3d above.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Here you go, do what you usually do to a Synology system to install the DSM.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;tuto&quot;&gt;Tuto&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;https://xpenology.com/forum/topic/6927-tutorial-install-6x-on-oracle-virtualbox-juns-loader&amp;gt;
&amp;lt;https://xpenology.com/forum/topic/13333-tutorialreference-6x-loaders-and-platforms&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Fri, 06 Sep 2019 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/blog/module/Installing-SynologyNAS</link>
        <updated>2019-09-06T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/blog/module/Installing-SynologyNAS</guid>
        <content type="html"> &lt;p&gt;Configuration Réseau DSM 6.2&lt;/p&gt;

&lt;h1 id=&quot;installsing-syslognas&quot;&gt;Installsing SyslogNAS&lt;/h1&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Read the original post announced by jun: &lt;a href=&quot;http://xpenology.com/forum/viewtopic.php?f=2&amp;amp;t=20216&quot;&gt;http://xpenology.com/forum/viewtopic.php?f=2&amp;amp;t=20216&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Requirements&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;Virtual Box&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Jun’s bootloader v1.03 (DSM 6.2) ds3617)
(https://mega.nz/#F!yQpw0YTI!DQqIzUCG2RbBtQ6YieScWg!OZw2QKwT)
! Here what i got was all in .img file thus i did this to convert them to .vmdk
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;VBoxManage convertfromraw imagefile.img vmdkname.vmdk \-\-format VMDK&lt;/code&gt;
(https://xpenology.club/download/) * Unzip the package. We will need 2 files: &lt;strong&gt;synoboot.img&lt;/strong&gt; and &lt;strong&gt;synoboot.vmdk&lt;/strong&gt;&lt;/p&gt;

        &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;		* What is downloaded is mostly \*.img format so we need this additional steps for vm
				```
				sudo apt-get install ccd2iso
				ccd2iso &amp;lt;filename&amp;gt;.img &amp;lt;filename&amp;gt;.iso
				```
		* Optionally
				```
				mount -o loop &amp;lt;img file name&amp;gt; &amp;lt;mountpoint&amp;gt;
				mkisofs -o &amp;lt;iso output file name&amp;gt; &amp;lt;mountpoint&amp;gt;
				```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Synology’s DSM : &lt;a href=&quot;https://archive.synology.com/download/DSM/release/6.2/23739/.pat&quot;&gt;https://archive.synology.com/download/DSM/release/6.2/23739/.pat&lt;/a&gt; ??
      It is the software that will be installed on the hardisk&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;Synology’s DS Assistant : &lt;a href=&quot;https://gloabl.download.synology.com/download/Tools/Assistant/&quot;&gt;https://gloabl.download.synology.com/download/Tools/Assistant/&lt;/a&gt;
      &lt;a href=&quot;https://www.synology.com/en-global/support/download/DS3617xs#utilities&quot;&gt;https://www.synology.com/en-global/support/download/DS3617xs#utilities&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Configure the Virtual Machine:&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;Type: Linux&lt;/li&gt;
      &lt;li&gt;Version : Linux 2.6 / 3.x / 4.x (64-bit)&lt;/li&gt;
      &lt;li&gt;Chipset : ICH9&lt;/li&gt;
      &lt;li&gt;HDD Virtuel (4x) &lt;strong&gt;(Does it have to be SCSI or SATA???)&lt;/strong&gt;
_ Type de fichier HDD : VDI (VirtualBox Disk Image)
_ Allocation dynamique du fichier VDI.
_ Nom du fichier : VM-DSM-HDDx (x = numéro du disque dur)
_ Taille : 8Gb * Remove Controller: IDE&lt;/li&gt;
      &lt;li&gt;Number of CPUs: 2&lt;/li&gt;
      &lt;li&gt;Network
_ Set to Bridged Adapter
_ Promiscuous-Mode: Allow all * MAC Address: 0011322CA785&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4) Setup the network:
   a) Bridge or NAT, it’s up to you
   b) Expand the Advanced option
   c) Adapter type: Intel PRO/1000 MT Desktop (8254OEM)
   d) MAC Address: &lt;strong&gt;0011322CA785&lt;/strong&gt; (This is the most important setting to make your Xpenology accesssible!)
   _ For class the teacher changed this to …
   _ Dans l’adresse MAC indiquez : 001132123456 (important !).
   &lt;strong&gt;Why is it very important?? and why is it different?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;5) Start the VM, press F12 to enable the boot menu&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Boot from IDE harddisk 1&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In the gnub menu, select the last option (xxx VMware xxx)&lt;/p&gt;

    &lt;p&gt;(http://find.synology.com)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Wait around 2~5 minutes, depends on your Hardware spec. The bootloader only show around 10 lines of message. Don’t worry. Be patient and it’s still loading the system.
&lt;del&gt;I am having most difficulty with this step right now&lt;/del&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Install synology assistant. Press Search button&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;You should see your new DiskStation now. If not, wait for another 1 or 2 minutes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The most important step! Verify the MAC address shown in the Synology Assistant. Make sure it’s the same as the one you set in step 4.3d above.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Here you go, do what you usually do to a Synology system to install the DSM.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;tuto&quot;&gt;Tuto&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;https://xpenology.com/forum/topic/6927-tutorial-install-6x-on-oracle-virtualbox-juns-loader&amp;gt;
&amp;lt;https://xpenology.com/forum/topic/13333-tutorialreference-6x-loaders-and-platforms&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</content>
      </item>
    
      <item>
        <title>Managing SWAP File</title>
        <description>&lt;h1 id=&quot;create-new-swap&quot;&gt;Create New SWAP&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; Deactivate and Remove SWAP if there is one already&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Remove SWAP file&lt;/p&gt;

&lt;p&gt;$ rm -r /swapfile&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dd &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/dev/zero &lt;span class=&quot;nv&quot;&gt;of&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/swap &lt;span class=&quot;nv&quot;&gt;bs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1024 &lt;span class=&quot;nv&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1024k
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;mkswap /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;600 /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;chown &lt;/span&gt;root:root /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;swapon /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;10&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; /proc/sys/vm/swappiness
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;vm.swappiness = 10&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/sysctl.conf
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;/swap none swap sw 0 0 &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/fstab &lt;span class=&quot;c&quot;&gt;#Danger: check if the swap file is alread in fstab before doing this&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1 id=&quot;increase-the-swap-file&quot;&gt;Increase the SWAP file&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;Deactivate SWAP&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;swapoff &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Increase the size of the swap file, here for 16GB for example:&lt;/p&gt;

&lt;p&gt;$ sudo dd if=/dev/zero of=/swapfile bs=1G count=16&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt; Make the SWAP file and turn on SWAP&lt;/p&gt;

&lt;p&gt;$ sudo mkswap /swapfile&lt;/p&gt;

&lt;p&gt;$ sudo swapon /swapfile&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 4:&lt;/em&gt;&lt;/strong&gt; To check the current SWAP size&lt;/p&gt;

&lt;p&gt;$ grep SwapTotal /proc/meminfo&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1 id=&quot;removing-swap-file&quot;&gt;Removing SWAP file&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; Deactivate SWAP&lt;/p&gt;

&lt;p&gt;$ sudo swapoff -v /swapfile&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;$ sudo swapoff -a&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Remove swap file entry from /etc/fstab&lt;/p&gt;

&lt;p&gt;/swapfile swap swap defaults 0 0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt; Remove or Delete the actual swap file&lt;/p&gt;

&lt;p&gt;$ sudo rm /swapfile&lt;/p&gt;
</description>
        <pubDate>Thu, 27 Jun 2019 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/blog/note/SWAPFILE</link>
        <updated>2019-06-27T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/blog/note/SWAPFILE</guid>
        <content type="html"> &lt;h1 id=&quot;create-new-swap&quot;&gt;Create New SWAP&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; Deactivate and Remove SWAP if there is one already&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Remove SWAP file&lt;/p&gt;

&lt;p&gt;$ rm -r /swapfile&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dd &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/dev/zero &lt;span class=&quot;nv&quot;&gt;of&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/swap &lt;span class=&quot;nv&quot;&gt;bs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1024 &lt;span class=&quot;nv&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1024k
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;mkswap /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;600 /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;chown &lt;/span&gt;root:root /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;swapon /swap
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;10&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; /proc/sys/vm/swappiness
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;vm.swappiness = 10&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/sysctl.conf
&lt;span class=&quot;go&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;/swap none swap sw 0 0 &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/fstab &lt;span class=&quot;c&quot;&gt;#Danger: check if the swap file is alread in fstab before doing this&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1 id=&quot;increase-the-swap-file&quot;&gt;Increase the SWAP file&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; &lt;em&gt;Deactivate SWAP&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;swapoff &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Increase the size of the swap file, here for 16GB for example:&lt;/p&gt;

&lt;p&gt;$ sudo dd if=/dev/zero of=/swapfile bs=1G count=16&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt; Make the SWAP file and turn on SWAP&lt;/p&gt;

&lt;p&gt;$ sudo mkswap /swapfile&lt;/p&gt;

&lt;p&gt;$ sudo swapon /swapfile&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 4:&lt;/em&gt;&lt;/strong&gt; To check the current SWAP size&lt;/p&gt;

&lt;p&gt;$ grep SwapTotal /proc/meminfo&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h1 id=&quot;removing-swap-file&quot;&gt;Removing SWAP file&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 1:&lt;/em&gt;&lt;/strong&gt; Deactivate SWAP&lt;/p&gt;

&lt;p&gt;$ sudo swapoff -v /swapfile&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;$ sudo swapoff -a&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2:&lt;/em&gt;&lt;/strong&gt; Remove swap file entry from /etc/fstab&lt;/p&gt;

&lt;p&gt;/swapfile swap swap defaults 0 0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3:&lt;/em&gt;&lt;/strong&gt; Remove or Delete the actual swap file&lt;/p&gt;

&lt;p&gt;$ sudo rm /swapfile&lt;/p&gt;
</content>
      </item>
    
      <item>
        <title>Welcome</title>
        <description>&lt;h1 id=&quot;for-batch&quot;&gt;For Batch&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.windowscentral.com/how-create-and-run-batch-file-windows-10&quot;&gt;https://www.windowscentral.com/how-create-and-run-batch-file-windows-10&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.geeksforgeeks.org/writing-windows-batch-script/&quot;&gt;https://www.geeksforgeeks.org/writing-windows-batch-script/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://en.wikibooks.org/wiki/Windows_Batch_Scripting&quot;&gt;https://en.wikibooks.org/wiki/Windows_Batch_Scripting&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Welcome to my &lt;em&gt;world&lt;/em&gt;&lt;/strong&gt;, this is my first test &lt;strong&gt;blog&lt;/strong&gt; or &lt;strong&gt;post&lt;/strong&gt; or &lt;strong&gt;whatever&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;sans-cyber-acces-online-tutorials&quot;&gt;SANS Cyber Acces Online Tutorials&lt;/h2&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://tutorials.cyberaces.org/tutorials.html&quot;&gt;https://tutorials.cyberaces.org/tutorials.html&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;edx&quot;&gt;EDX&lt;/h2&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.edx.org/micromasters/ritx-cybersecurity&quot;&gt;https://www.edx.org/micromasters/ritx-cybersecurity&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;cybrary&quot;&gt;Cybrary&lt;/h2&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.cybrary.it/&quot;&gt;https://www.cybrary.it/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;securitytube&quot;&gt;SecurityTube&lt;/h2&gt;

    &lt;p&gt;&lt;a href=&quot;http://www.securitytube.net/&quot;&gt;http://www.securitytube.net/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;another-thing-but-small-tutorials&quot;&gt;another thing but small tutorials&lt;/h2&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.guardicore.com/resources/&quot; title=&quot;Guardicore&quot;&gt;Guardicore&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.pentesteracademy.com&quot;&gt;https://www.pentesteracademy.com&lt;/a&gt;
&lt;img src=&quot;/images/1.jpg&quot; alt=&quot;alt My helpful screenshot&quot; /&gt;
Ref: [logo]: https://ahkhaicom.files.wordpress.com/2016/02/vm131.png?w=474 “logo2”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 26 Jun 2019 00:00:00 +0000</pubDate>
        <link>https://smussie.github.io/bash/welcome</link>
        <updated>2019-06-26T00:00:00+00:00</updated>
        <guid isPermaLink="true">https://smussie.github.io/bash/welcome</guid>
        <content type="html"> &lt;h1 id=&quot;for-batch&quot;&gt;For Batch&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.windowscentral.com/how-create-and-run-batch-file-windows-10&quot;&gt;https://www.windowscentral.com/how-create-and-run-batch-file-windows-10&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.geeksforgeeks.org/writing-windows-batch-script/&quot;&gt;https://www.geeksforgeeks.org/writing-windows-batch-script/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://en.wikibooks.org/wiki/Windows_Batch_Scripting&quot;&gt;https://en.wikibooks.org/wiki/Windows_Batch_Scripting&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Welcome to my &lt;em&gt;world&lt;/em&gt;&lt;/strong&gt;, this is my first test &lt;strong&gt;blog&lt;/strong&gt; or &lt;strong&gt;post&lt;/strong&gt; or &lt;strong&gt;whatever&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;sans-cyber-acces-online-tutorials&quot;&gt;SANS Cyber Acces Online Tutorials&lt;/h2&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://tutorials.cyberaces.org/tutorials.html&quot;&gt;https://tutorials.cyberaces.org/tutorials.html&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;edx&quot;&gt;EDX&lt;/h2&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.edx.org/micromasters/ritx-cybersecurity&quot;&gt;https://www.edx.org/micromasters/ritx-cybersecurity&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;cybrary&quot;&gt;Cybrary&lt;/h2&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.cybrary.it/&quot;&gt;https://www.cybrary.it/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;securitytube&quot;&gt;SecurityTube&lt;/h2&gt;

    &lt;p&gt;&lt;a href=&quot;http://www.securitytube.net/&quot;&gt;http://www.securitytube.net/&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h2 id=&quot;another-thing-but-small-tutorials&quot;&gt;another thing but small tutorials&lt;/h2&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.guardicore.com/resources/&quot; title=&quot;Guardicore&quot;&gt;Guardicore&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;&lt;a href=&quot;https://www.pentesteracademy.com&quot;&gt;https://www.pentesteracademy.com&lt;/a&gt;
&lt;img src=&quot;/images/1.jpg&quot; alt=&quot;alt My helpful screenshot&quot; /&gt;
Ref: [logo]: https://ahkhaicom.files.wordpress.com/2016/02/vm131.png?w=474 “logo2”&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</content>
      </item>
    
  </channel>
</rss>
