tag:blogger.com,1999:blog-2524225718738022902024-03-14T13:49:50.736+06:00Tayab Khan's ICT Solution Based Personal BlogMSC,MCP,CCNA,CCNP,CCNSP,JNCIA,JNCIS-SEC.........
Personal Web: http://www.tayabkhan.com Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.comBlogger188125tag:blogger.com,1999:blog-252422571873802290.post-59286644386366138132023-03-06T11:35:00.002+06:002023-03-06T11:35:41.578+06:00Install the gcloud CLI in our Laptop<p> </p><p><br /></p><p><span style="background-color: white; color: #202124; font-family: "Google Sans", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 32px;">Install the gcloud CLI</span></p><ol style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; list-style-image: initial; list-style-position: outside; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: var(--devsite-selector-content-margin-y,15px); padding-left: 40px;">The Google Cloud CLI works on Windows 8.1 and later and Windows Server 2012 and later.<li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 12px; padding: 0px;">Download the <a href="https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe" style="box-sizing: inherit; outline: 0px; text-decoration: var(--devsite-link-text-decoration,none); word-break: break-word;" track-name="downloadCloudSDK" track-type="gettingStarted">Google Cloud CLI installer</a>.</p><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 12px 0px; padding: 0px;">Alternatively, open a PowerShell terminal and run the following PowerShell commands:</p><devsite-code data-copy-event-label="" style="--devsite-code-background: #f1f3f4; --devsite-code-button-size: 32px; --devsite-code-buttons-toggle-dark-display: inline; --devsite-code-buttons-toggle-light-display: none; --devsite-code-color: #37474f; --devsite-code-comments-color: #b80672; --devsite-code-keywords-color: #1967d2; --devsite-code-numbers-color: #c5221f; --devsite-code-strings-color: #188038; --devsite-code-types-color: #9334e6; --devsite-github-link-icon: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 18 18\"><path d=\"M9-.06A9,9,0,0,0,6.16,17.48c.44.09.59-.19.59-.43V15.38c-2.5.54-3-1.07-3-1.07a2.35,2.35,0,0,0-1-1.31c-.82-.56.06-.55.06-.55a1.89,1.89,0,0,1,1.38.93,1.92,1.92,0,0,0,2.62.75,1.91,1.91,0,0,1,.57-1.21c-2-.23-4.1-1-4.1-4.45a3.49,3.49,0,0,1,.92-2.41,3.25,3.25,0,0,1,.09-2.38S5,3.43,6.75,4.6a8.59,8.59,0,0,1,4.5,0c1.72-1.17,2.48-.92,2.48-.92a3.25,3.25,0,0,1,.09,2.38,3.49,3.49,0,0,1,.92,2.41c0,3.46-2.1,4.22-4.11,4.44a2.14,2.14,0,0,1,.62,1.67v2.47c0,.24.14.52.6.43A9,9,0,0,0,9-.06Z\" fill=\"%231a73e8\"/></svg>"); --devsite-var-color: #d01884; border-radius: var(--devsite-code-border-radius,0); border: var(--devsite-code-border,0); box-sizing: inherit; clear: both; direction: ltr !important; display: block; margin: var(--devsite-code-margin,16px 0); overflow: hidden; position: relative;"><div aria-label="Action buttons" class="devsite-code-buttons-container" role="group" style="box-sizing: inherit; margin: 0px; padding: 0px; position: absolute; right: var(--devsite-code-buttons-container-right,0); top: 0px; z-index: 1;"><button aria-label="Dark code theme" class="gc-analytics-event material-icons devsite-icon-code-dark devsite-toggle-dark" data-category="Site-Wide Custom Events" data-label="Dark Code Toggle" data-title="Dark code theme" style="-webkit-box-align: center; -webkit-box-pack: center; -webkit-font-smoothing: antialiased; align-items: center; appearance: none; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 0px; border-style: initial; border-width: 0px; box-shadow: none; cursor: pointer; direction: ltr; display: var(--devsite-code-buttons-toggle-dark-display); font-family: "Material Icons"; font-feature-settings: "liga"; font-size: var(--devsite-selector-icon-font-size,18px); font-style: normal; font-weight: normal; height: var(--devsite-code-button-size,24px); justify-content: center; line-height: 1; margin-inline-end: var(--devsite-button-margin-x-end); margin: 0px; max-width: var(--devsite-button-max-width,none); min-width: auto; outline: 0px; overflow-wrap: normal; overflow: hidden; padding: 0px; text-overflow: ellipsis; transition: color 0.2s ease 0s; vertical-align: text-bottom; white-space: nowrap; width: var(--devsite-code-button-size,24px);" track-name="darkCodeToggle" track-type="exampleCode" type="button"></button><button aria-label="Copy code sample" class="gc-analytics-event material-icons devsite-icon-copy" data-category="Site-Wide Custom Events" data-label="Click To Copy" data-title="Copy code sample" style="-webkit-box-align: center; -webkit-box-pack: center; -webkit-font-smoothing: antialiased; align-items: center; appearance: none; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 0px; border-style: initial; border-width: 0px; box-shadow: none; cursor: pointer; direction: ltr; display: inline-flex; font-family: "Material Icons"; font-feature-settings: "liga"; font-size: var(--devsite-selector-icon-font-size,18px); font-style: normal; font-weight: normal; height: var(--devsite-code-button-size,24px); justify-content: center; line-height: 1; margin-inline-end: var(--devsite-button-margin-x-end); margin-inline-start: var(--devsite-button-sibling-gap-x,16px); margin: 0px; max-width: var(--devsite-button-max-width,none); min-width: auto; outline: 0px; overflow-wrap: normal; overflow: hidden; padding: 0px; text-overflow: ellipsis; transition: color 0.2s ease 0s; vertical-align: text-bottom; white-space: nowrap; width: var(--devsite-code-button-size,24px);" track-name="clickToCopy" track-type="exampleCode" type="button"></button></div><pre class="lang-sh" dir="ltr" is-upgraded="" style="background: var(--devsite-code-background); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 14px/20px var(--devsite-code-font-family); margin-bottom: 0px; margin-top: 0px; overflow-x: auto; padding-block: var(--devsite-code-padding-block,24px); padding-inline: var(--devsite-code-padding-inline,24px); padding: 24px; position: relative;" translate="no"><span class="pun" style="box-sizing: inherit;">(</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">New</span><span class="pun" style="box-sizing: inherit;">-</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">Object</span><span class="pln" style="box-sizing: inherit;"> </span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">Net</span><span class="pun" style="box-sizing: inherit;">.</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">WebClient</span><span class="pun" style="box-sizing: inherit;">).</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">DownloadFile</span><span class="pun" style="box-sizing: inherit;">(</span><span class="str" style="box-sizing: inherit; color: var(--devsite-code-strings-color);">"https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe"</span><span class="pun" style="box-sizing: inherit;">,</span><span class="pln" style="box-sizing: inherit;"> </span><span class="str" style="box-sizing: inherit; color: var(--devsite-code-strings-color);">"$env:Temp\GoogleCloudSDKInstaller.exe"</span><span class="pun" style="box-sizing: inherit;">)</span><span class="pln" style="box-sizing: inherit;"><br style="box-sizing: inherit;" /><br style="box-sizing: inherit;" /></span><span class="pun" style="box-sizing: inherit;">&</span><span class="pln" style="box-sizing: inherit;"> $env</span><span class="pun" style="box-sizing: inherit;">:</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">Temp</span><span class="pun" style="box-sizing: inherit;">\</span><span class="typ" style="box-sizing: inherit; color: var(--devsite-code-types-color);">GoogleCloudSDKInstaller</span><span class="pun" style="box-sizing: inherit;">.</span><span class="pln" style="box-sizing: inherit;">exe<br style="box-sizing: inherit;" /> </span></pre></devsite-code></li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 12px; padding: 0px;">Launch the installer and follow the prompts. The installer is signed by Google LLC.</p><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 12px 0px 0px; padding: 0px;">If you're using a screen reader, check the <span style="box-sizing: inherit; font-weight: 700;">Turn on screen reader mode</span> checkbox. This option configures <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">gcloud</code> to use status trackers instead of unicode spinners, display progress as a percentage, and flatten tables. For more information, see the <a href="https://cloud.google.com/sdk/docs/enabling-accessibility-features" style="box-sizing: inherit; outline: 0px; text-decoration: var(--devsite-link-text-decoration,none); word-break: break-word;">Accessibility features guide</a>.</p></li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 12px; padding: 0px;">Cloud SDK requires Python; supported versions are Python 3 (3.5 to 3.9). By default, the Windows version of Cloud SDK comes bundled with Python 3. To use Cloud SDK, your operating system must be able to run a supported version of Python.</p><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 12px 0px 0px; padding: 0px;">The installer installs all necessary dependencies, including the needed Python version. While Cloud SDK installs and manages Python 3 by default, you can use an existing Python installation if necessary by <span style="box-sizing: inherit; font-weight: 700;">unchecking</span> the option to Install Bundled Python. See <a href="https://cloud.google.com/sdk/gcloud/reference/topic/startup" style="box-sizing: inherit; outline: 0px; text-decoration: var(--devsite-link-text-decoration,none); word-break: break-word;"><code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-contrast-link-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">gcloud topic startup</code></a> to learn how to use an existing Python installation.</p></li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><p style="box-sizing: inherit; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px;">After installation is complete, the installer gives you the option to create Start Menu and Desktop shortcuts, start the Google Cloud CLI shell, and configure the gcloud CLI. Make sure that you leave the options to start the shell and configure your installation selected. The installer starts a terminal window and runs the <a href="https://cloud.google.com/sdk/gcloud/reference/init" style="box-sizing: inherit; outline: 0px; text-decoration: var(--devsite-link-text-decoration,none); word-break: break-word;"><code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-contrast-link-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">gcloud init</code></a> command.</p></li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;">The default installation doesn't include the App Engine extensions required to deploy an application using <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">gcloud</code> commands. These components can be installed using the <a href="https://cloud.google.com/sdk/docs/managing-components" style="box-sizing: inherit; outline: 0px; text-decoration: var(--devsite-link-text-decoration,none); word-break: break-word;">gcloud CLI component manager</a>.</li></ol><p><span style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; font-weight: 700;">Troubleshooting tips:</span><span style="background-color: white; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px;"></span></p><ul style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; list-style-image: initial; list-style-position: outside; margin-bottom: var(--devsite-selector-content-margin-y,15px); margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-left: 40px;"><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;">If your installation is unsuccessful due to the <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">find</code> command not being recognized, ensure your <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">PATH</code> environment variable is set to include the folder containing <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">find</code>. Usually, this is <code dir="ltr" style="background: var(--devsite-code-background); border-radius: var(--devsite-inline-code-border-radius,0); border: var(--devsite-inline-code-border,0); box-sizing: inherit; color: var(--devsite-code-color); direction: ltr !important; font: 500 90%/1 var(--devsite-code-font-family); padding: var(--devsite-inline-code-padding,1px 4px); word-break: break-word;" translate="no">C:\WINDOWS\system32;</code>.</li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;">If you uninstalled the gcloud CLI, you must reboot your system before installing the gcloud CLI again.</li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;">If unzipping fails, run the installer as an administrator.</li></ul><p><span style="background-color: white; color: #202124; font-family: "Google Sans", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 32px;"><br /></span></p><p><span style="background-color: white; color: #202124; font-family: "Google Sans", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 32px;"><br /></span></p><p><span style="background-color: white; color: #202124; font-family: "Google Sans", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 32px;">Source: </span></p><p><span style="background-color: white; font-size: 32px;"><span style="color: #202124; font-family: Google Sans, Noto Sans, Noto Sans JP, Noto Sans KR, Noto Naskh Arabic, Noto Sans Thai, Noto Sans Hebrew, Noto Sans Bengali, sans-serif;">https://cloud.google.com/sdk/docs/install</span></span></p><p><span style="background-color: white; color: #202124; font-family: "Google Sans", "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 32px;"><br /></span></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-64629536868935183162022-12-15T21:57:00.001+06:002022-12-15T21:58:15.948+06:00GCP Organizational Structure<p> </p><h1 class="elementor-heading-title elementor-size-default" style="background-color: white; box-sizing: border-box; color: #2f2f2f; font-family: Montserrat, sans-serif; font-size: 36px; font-weight: var( --e-global-typography-primary-font-weight ); line-height: 1.5em; margin: 0px; padding: 0px;">How to Structure Your Enterprise on the Google Cloud Platform</h1><p><br /><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjVZGlXfGyGfnWFXUhjmgWSV3EaL3PXiBZA18q4bqHC2ybhXvUb3qWg_fv-F5zCsLLk5acO7xGr8MiMz9kDStMaqGbExElvPx5k6_ACvAGVF4mLzeo8HMuuz8QgZuo_JMWMqb3IllQRpmh3SEcmZRttEDvA1Pd0a1RJGyTPCAEkgfO5a1-MqsiSV-RBuQ" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="" data-original-height="730" data-original-width="800" height="560" src="https://blogger.googleusercontent.com/img/a/AVvXsEjVZGlXfGyGfnWFXUhjmgWSV3EaL3PXiBZA18q4bqHC2ybhXvUb3qWg_fv-F5zCsLLk5acO7xGr8MiMz9kDStMaqGbExElvPx5k6_ACvAGVF4mLzeo8HMuuz8QgZuo_JMWMqb3IllQRpmh3SEcmZRttEDvA1Pd0a1RJGyTPCAEkgfO5a1-MqsiSV-RBuQ=w612-h560" width="612" /></a></p><p><br /></p><p><br /></p><p><br /></p><p>Google Workspace or Cloud Identity structure </p><p>==================================</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiAV16jrBNz1DodxjKXIsZeHqC4oq_teWbw6rbT_fM9LeceOmoiFQ0LUv-rHltW5VqvE1omRLfpvULoiL7Z1y7JGNXMt2ZDYEIPpwSBrUeSg1Tck7eXFcHT6pQPAqVMmamUYrcyYVAmr5mowpmF7taSYbI6XI11djtUedTZP3l9I3uLjmnQK2DoBsaQXQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="424" data-original-width="941" height="247" src="https://blogger.googleusercontent.com/img/a/AVvXsEiAV16jrBNz1DodxjKXIsZeHqC4oq_teWbw6rbT_fM9LeceOmoiFQ0LUv-rHltW5VqvE1omRLfpvULoiL7Z1y7JGNXMt2ZDYEIPpwSBrUeSg1Tck7eXFcHT6pQPAqVMmamUYrcyYVAmr5mowpmF7taSYbI6XI11djtUedTZP3l9I3uLjmnQK2DoBsaQXQ=w550-h247" width="550" /></a></div><br /><br /><p></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-35016352840539922532022-12-15T11:27:00.002+06:002022-12-15T11:27:18.313+06:00Transfer or Migrate GWS a customer's subscriptions to your reseller<p> </p><p><b><u>Transfer/Migrate GWS a customer's subscriptions to your reseller</u></b></p><p><br /></p><p><b>Step-1:</b> Collect Reseller ID from reseller admin panel : admin.google.com </p><p>=>Account=>account settings=>Profile=> CustomerID => Collect CustomerID CXXDDEXXX</p><p><br /></p><p><b>Step-2:</b> Generate Transfer Token by visting bellow URL</p><p>https://admin.google.com/TransferToken</p><p><br /></p><p>Submit reseller's CustomerID to generate Token and COllect Transfer Token</p><p><br /></p><p><b>Step-3: </b>Create customers from channel services</p><p><br /></p><p>=> Customers => Create customer => Transfer customer => Give Transfer Token and submit</p><p><br /></p><p>Mail will come to admin with new customer ID: C0NEW</p><p><br /></p><p><b>Check by Login from GWS Admin Portal</b></p><p>https://admin.google.com/u/1/ac/home?ecid=C0NEW</p><p>https://admin.google.com/u/1/ac/home?hl=en&cid=C0NEW=tayabkhan.com</p><p><br /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-73464886921931697272022-12-14T22:00:00.002+06:002022-12-20T14:49:25.965+06:00Install SuiteCRM on Ubuntu<p> </p><p><b>SuiteCRM is an open-source Customer Relationship Management (CRM) software solution that helps organize all the processes and activities concerning a company's sales, markets, and services administration</b></p><p>SuiteCRM will work with php-7.4 and lower version</p><p><br /></p><p><span color="var(--docs-header)" face="Roboto, sans-serif" style="background-color: white; font-size: 32px;">STEP-1: Configure MariaDB for SuiteCRM</span></p><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 0px;">Login to MariaDB instance.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo mysql -u root
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Create a new database named <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">suitecrm</code>.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">CREATE DATABASE suitecrm;
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Create a database user <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">suitecrm</code> and grant all permission of the database to the new user.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">GRANT ALL ON suitecrm.* TO 'suitecrm'@'localhost' IDENTIFIED BY 'StrongPassword';
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Flush privileges table.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">FLUSH PRIVILEGES;
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Exit MariaDB console.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">EXIT;</code></pre><h2 class="is-active" id="2__Download_SuiteCRM" style="background-color: white; box-sizing: border-box; color: var(--docs-header); font-family: Roboto, sans-serif; font-size: 32px; font-weight: 500; line-height: 44px; margin: 0px 0px 32px;">STEP-2: Download SuiteCRM</h2><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 0px;">Download the latest stable version of SuiteCRM.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ wget https://suitecrm.com/files/162/SuiteCRM-7.11/525/SuiteCRM-7.11.18.zip
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Install <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">unzip</code> utility.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo apt install unzip
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Unzip the downloaded <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">zip</code> files to directory <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; margin-top: 32px; padding: 0.25em 0.5em;">/var/www/</code>.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo unzip SuiteCRM-7.11.18.zip -d /var/www/
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Rename the installation folder.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo mv /var/www/SuiteCRM-7.11.18/ /var/www/suitecrm
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Then run the following commands to set the correct permissions.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo chown -R www-data:www-data /var/www/suitecrm/
$ sudo chmod -R 755 /var/www/suitecrm/
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Install PHP modules required by SuiteCRM.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">sudo apt install php-imagick php7.4-fpm php7.4-mysql php7.4-common php7.4-gd php7.4-imap php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-gmp
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Edit the PHP configuration file to set a limit for upload file size. The default maximum file size for uploading is 2MB.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo nano /etc/php/7.4/fpm/php.ini
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Find the line <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">upload_max_filesize = 2M</code> around line 840. Change the value like below. Save and close the file.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">upload_max_filesize = 20M
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Restart PHP-FPM.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo systemctl restart php7.4-fpm
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px;">Restart Nginx.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo systemctl restart nginx</code></pre><p><br /></p><h2 id="3__Configure_Nginx_for_SuiteCRM" style="background-color: white; box-sizing: border-box; color: var(--docs-header); font-family: Roboto, sans-serif; font-size: 32px; font-weight: 500; line-height: 44px; margin: 0px 0px 32px;">STEP-3: Configure Nginx for SuiteCRM</h2><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 0px;">Create a virtual host for SuiteCRM.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo vi /etc/nginx/conf.d/suitecrm.conf</code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;"><br /></code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; font-size: 15px; padding: 0px;"><span style="color: #525666; font-family: monospace, monospace;">server {
listen 80;
listen [::]:80;
server_name suitecrm.tayabkhan.com;
root /var/www/suitecrm;
error_log /var/log/nginx/suitecrm.error;
access_log /var/log/nginx/suitecrm.access;
client_max_body_size 20M;
index index.php index.html index.htm index.nginx-debian.html;
location / {
# try to serve file directly, fallback to app.php
try_files $uri /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
#Note: If you install SuiteCRM on iRedMail server, you should use the TCP socket instead.
#fastcgi_pass 127.0.0.1:9999
}
location ~* ^/index.php {
# try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
#Note: If you install SuiteCRM on iRedMail server, you should use the TCP socket instead.
#fastcgi_pass 127.0.0.1:9999
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
# Don't log favicon
location = /favicon.ico {
log_not_found off;
access_log off;
}
# Don't log robots
location = /robots.txt {
access_log off;
log_not_found off;
}
# Deny all attempts to access hidden files/folders such as .htaccess, .htpasswd, .DS_Store (Mac), etc...
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}
</span></code><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">
</code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">=====================</code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; padding: 0px;"><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px; white-space: normal;">Test the Nginx configuration.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo nginx -t
</code></pre><p style="background-color: white; box-sizing: border-box; color: #525666; font-family: Roboto, sans-serif; font-size: 15px; margin-bottom: 1rem; margin-top: 28px; white-space: normal;">Reload Nginx for the changes to take effect.</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">$ sudo systemctl reload nginx</code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;"><br /></code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: #525666; font-family: monospace, monospace; font-size: 15px; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;">=========================</code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; padding: 0px;"><h2 id="4__Access_SuiteCRM" style="background-color: white; box-sizing: border-box; color: var(--docs-header); font-family: Roboto, sans-serif; font-size: 32px; font-weight: 500; line-height: 44px; margin: 0px 0px 32px; white-space: normal;">STEP-4: Finish Installation of SuiteCRM from web</h2><p style="background-color: white; box-sizing: border-box; color: var(--docs-text-primary); font-family: Roboto, sans-serif; font-size: inherit; margin-bottom: 1rem; margin-top: 0px; white-space: normal;">To finish the SuiteCRM installation, go to your browser address bar, type in <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">http://IPaddress/install.php</code> for SuiteCRM to access the web install wizard. For example:</p><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px; white-space: normal;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-text-primary); font-family: monospace, monospace; font-size: inherit; padding: 0px; white-space: pre;"><b>http://suitecrm.tayabkhan.com/install.php</b></code></pre><p style="background-color: white; box-sizing: border-box; color: var(--docs-text-primary); font-family: Roboto, sans-serif; font-size: inherit; margin-bottom: 1rem; margin-top: 0px; white-space: normal;">You have successfully installed SuiteCRM on your server. Use <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; padding: 0.25em 0.5em;">suitecrm</code> as your database name, <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; margin-top: 32px; padding: 0.25em 0.5em;">localhost</code> as your host name, <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; margin-top: 32px; padding: 0.25em 0.5em;">suitecrm</code> as user and <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; margin-top: 32px; padding: 0.25em 0.5em;">StrongPassword</code> as your password. Modify the <code style="background-attachment: initial; background-clip: initial; background-color: var(--docs-border); background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; color: var(--docs-code); font-family: monospace, monospace; font-size: inherit; margin-top: 32px; padding: 0.25em 0.5em;">StrongPassword</code> value with the actual password you used. You can now create your account and begin using SuiteCRM.</p><h2 id="4__Access_SuiteCRM" style="background-color: white; box-sizing: border-box; color: var(--docs-header); font-family: Roboto, sans-serif; font-size: 32px; font-weight: 500; line-height: 44px; margin: 0px 0px 32px; white-space: normal;">STEP-5: Configure CRONTAB</h2><p style="background-color: white; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"><span face="Roboto, sans-serif" style="color: #525666;"><span style="font-size: 15px; white-space: normal;">sudo crontab -e -u www-data</span></span></p><p style="background-color: white; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"><span face="Roboto, sans-serif" style="color: #525666;"><span style="font-size: 15px; white-space: normal;">... and add the following line to the crontab file:</span></span></p><p style="background-color: white; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px;"><span face="Roboto, sans-serif" style="color: #525666;"><span style="font-size: 15px; white-space: normal;">* * * * * cd /var/www/suitecrm; php -f cron.php > /dev/null 2>&1</span></span></p></code></pre></code></pre><pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 3px; border: none; box-sizing: border-box; margin-bottom: 1rem; margin-top: 0px; overflow: auto; padding: 9px 16px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 25px; box-sizing: border-box; padding: 0px;"><h2 id="4__Access_SuiteCRM" style="background-color: white; box-sizing: border-box; color: var(--docs-header); font-family: Roboto, sans-serif; font-size: 32px; font-weight: 500; line-height: 44px; margin: 0px 0px 32px; white-space: normal;">STEP-6: ACCESS SUITECRM</h2><div><span style="color: #525666; font-family: monospace, monospace;"><span style="font-size: 15px;">http://suitecrm.tayabkhan.com
admin usernam and password<br /></span></span></div><div><span style="color: #525666; font-family: monospace, monospace;"><span style="font-size: 15px;"><br /></span></span></div><div><span style="color: #525666; font-family: monospace, monospace;"><span style="font-size: 15px;"><br /></span></span></div><div><span style="color: #525666; font-family: monospace, monospace;"><span style="font-size: 15px;">IF you need to change URL: </span></span><span face=""Open Sans", sans-serif" style="background-color: white; color: #6b6b6b; font-size: 15.5px; white-space: normal;">Edit the</span><span face=""Open Sans", sans-serif" style="background-color: white; color: #6b6b6b; font-size: 15.5px; white-space: normal;"> </span><span style="border: 0px; box-sizing: inherit; color: #6b6b6b; font-family: inherit; font-size: 15.5px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: normal;">config.php</span><span face=""Open Sans", sans-serif" style="background-color: white; color: #6b6b6b; font-size: 15.5px; white-space: normal;"> </span><span face=""Open Sans", sans-serif" style="background-color: white; color: #6b6b6b; font-size: 15.5px; white-space: normal;">file from the site’s root directory and update the following line with the new URL:</span></div></code><pre class="wp-block-code" style="background-color: #fafafa; border-radius: 4px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #2080ad; font-family: Menlo, Consolas, monaco, monospace; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 20px; margin-top: 20px; outline: 0px; overflow: auto; padding: 0.8em 1em; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; color: #2271b1; display: block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0.6em; vertical-align: baseline;"> 'site_url' => '<span style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">https://new-domain.com</span>',</code><code style="border: 0px; box-sizing: inherit; color: #2271b1; display: block; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; outline: 0px; overflow-wrap: break-word; padding: 0.6em; vertical-align: baseline;">hostname = new-domain.com</code></pre></pre>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-51143908506018777472022-12-01T11:56:00.012+06:002022-12-01T12:20:21.694+06:00Bulk or Marketing Email Tools // cloud bulk mail solutions<p> </p><p>Marketing Mail or Bulk Email Solutions</p><p>--------------------------------------------------</p><p><br /></p><p><b>1) AWS SES : </b></p><p><span class="eb-summary lb-txt-normal lb-txt-none lb-txt-16 lb-txt" style="box-sizing: border-box; color: #333333; display: block; font-family: AmazonEmber, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.6rem; line-height: 1.6; margin-bottom: 10px; overflow-wrap: break-word;"></span></p><p style="box-sizing: border-box;">Amazon Simple Email Service (SES) lets you reach customers confidently without an on-premises Simple Mail Transfer Protocol (SMTP) system.</p><p> https://aws.amazon.com/ses/pricing/</p><p><br /></p><p>Amazon SES is a cloud email service provider that can integrate into any application for bulk email sending. Whether you send transactional or marketing emails, you pay only for what you use. Amazon SES also supports a variety of deployments including dedicated, shared, or owned IP addresses. Reports on sender statistics and a deliverability dashboard help businesses make every email count.</p><p><br /></p><p><br /></p><p><b>2) Sendgrid:</b></p><p>SendGrid delivers your transactional and marketing emails through the world's largest cloud-based email delivery platform. Send with confidence. </p><p>SendGrid (also known as Twilio SendGrid) is a Denver, Colorado-based customer communication platform for transactional and marketing email.</p><p>https://sendgrid.com/pricing/</p><p><br /></p><p><b>3) Mailgun : </b></p><p>Managed email delivery for high-volume senders</p><p>Sending millions of emails a month requires an extra level of diligence to achieve and maintain optimal deliverability and performance. Our experts help you get more emails delivered, with a strategy customized to your needs.</p><p>https://www.mailgun.com/plans-and-pricing/</p><p><br /></p><p><b>4) Mailchimp: </b></p><p><b><br /></b></p><p>https://mailchimp.com/pricing/marketing/ </p><p><br /></p><p><b>5) Sendinblue</b></p><p>https://www.sendinblue.com/pricing/ </p><p><br /></p><div><br /></div>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-90855267909688733532022-11-22T15:20:00.004+06:002022-11-22T15:29:08.218+06:00Security Command Center of GCP<p><b>GCP SCC</b></p><p>------------- </p><p><span face="Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif" style="background-color: white; color: #202124; font-size: 16px;">Security Command Center is Google Cloud's centralized vulnerability and threat reporting service. Security Command Center helps you strengthen your security posture by evaluating your security and data attack surface; providing asset inventory and discovery; identifying misconfigurations, vulnerabilities and threats; and helping you mitigate and remediate risks</span></p><p><span face="Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif" style="background-color: white; color: #202124; font-size: 16px;"><br /></span></p><p style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; line-height: inherit; margin: 16px 0px; padding: 0px;">To use Security Command Center, you must have an Identity and Access Management (IAM) role that includes appropriate permissions:</p><p><span face="Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif" style="background-color: white; color: #202124; font-size: 16px;"></span></p><ul style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; list-style-image: initial; list-style-position: outside; margin: 0px; padding-left: 40px;"><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><span style="box-sizing: inherit; font-weight: 700;">Security Center Admin Viewer</span> lets you view Security Command Center.</li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><span style="box-sizing: inherit; font-weight: 700;">Security Center Admin Editor</span> lets you view Security Command Center and make changes.</li></ul><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtPOvqCdLOQOYSwSFLvT68IeMKx0Xt1rgAnrjO0-QE3KIKiDTzGPTgMuczpW7MdisFL1ZetO3IWjIuW_i0CahYWeZ52YRqAl0Ya9rXYEY-7dBGH5aLRGuCDXmS3NWf0px2ziyAIrZGJMBvCBSDcaTMiESnX4GRJTDT53qAoNqm9A8xkhvisflzeK8jjQ/s1248/9.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="684" data-original-width="1248" height="369" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtPOvqCdLOQOYSwSFLvT68IeMKx0Xt1rgAnrjO0-QE3KIKiDTzGPTgMuczpW7MdisFL1ZetO3IWjIuW_i0CahYWeZ52YRqAl0Ya9rXYEY-7dBGH5aLRGuCDXmS3NWf0px2ziyAIrZGJMBvCBSDcaTMiESnX4GRJTDT53qAoNqm9A8xkhvisflzeK8jjQ/w637-h369/9.png" width="637" /></a></div><p><br /></p><p style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; line-height: inherit; margin: 16px 0px; padding: 0px;">The <span style="box-sizing: inherit; font-weight: 700;">Threats</span> dashboard helps you review potentially harmful events in your organization's Google Cloud resources.</p><ul style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; list-style-image: initial; list-style-position: outside; margin: 0px; padding-left: 40px;"><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><span style="box-sizing: inherit; font-weight: 700;">Threats by severity</span> shows the number of threats in each severity level.</li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><span style="box-sizing: inherit; font-weight: 700;">Threats by category</span> shows the number of findings in each category across all projects.</li><li style="box-sizing: inherit; margin: 12px 0px; padding: 0px;"><span style="box-sizing: inherit; font-weight: 700;">Threats by resource</span> shows the number of findings for each resource in your organization.</li></ul><p style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; line-height: inherit; margin: 16px 0px; padding: 0px;">The threats dashboard displays results for the time period you specify in the drop-down list. The drop-down list has several options between 1 hour and "all time," which shows all findings since the service was activated. The time period you select is saved between sessions.</p><p style="background-color: white; box-sizing: inherit; color: #202124; font-family: Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif; font-size: 16px; line-height: inherit; margin: 16px 0px; padding: 0px;"><br /></p><span face="Roboto, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Bengali", sans-serif" style="background-color: white; color: #202124;"><div>Scan with SCC and store logs will store in Cloud storage -></div><div><br /></div><div>** Security Health Analytics scans run in three modes:</div><div><br /></div><div><b>Batch scan: </b>All detectors are scheduled to run for all enrolled organizations two or more times a day. Detectors run on different schedules to meet specific service level objectives (SLO). To meet 12- and 24-hour SLOs, detectors run batch scans every six hours or 12 hours, respectively. Resource and policy changes that occur in between batch scans are not immediately captured and are applied in the next batch scan. Note: Batch scan schedules are performance objectives, not service guarantees.</div><div><br /></div><div><b>Real-time scan:</b> Supported detectors start scans whenever CAI reports a change in an asset's configuration. Findings are immediately written to Security Command Center.</div><div><br /></div><div><b>Mixed-mode:</b> Some detectors that support real-time scans might not detect changes in real time in all supported assets. In those cases, configuration changes for some assets are captured immediately and others are captured in batch scans. Exceptions are noted in the tables on this page.</div><div style="font-size: 16px;"><br /></div></span><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp22jyAqJm1Dt_-vJsPxDUPF7C2dQG_9ug10F-U1DIDxllZtfLlTsCIX0wvD9er_gkQXETlmrCg-Zrl0QDpl7u-uP6Dteg-499_DtYNkpEXxMwfzE5blHnf20weXyy624QU9Qs4-K338o1TkO3b8EIZDtzy1S3I5eRcU2sgGCoD-f1d0xKEZMXXWEiiw/s1256/SCC.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="744" data-original-width="1256" height="359" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp22jyAqJm1Dt_-vJsPxDUPF7C2dQG_9ug10F-U1DIDxllZtfLlTsCIX0wvD9er_gkQXETlmrCg-Zrl0QDpl7u-uP6Dteg-499_DtYNkpEXxMwfzE5blHnf20weXyy624QU9Qs4-K338o1TkO3b8EIZDtzy1S3I5eRcU2sgGCoD-f1d0xKEZMXXWEiiw/w605-h359/SCC.png" width="605" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><br />Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-52334843256449378372022-11-22T11:52:00.010+06:002022-12-28T17:15:17.743+06:00Route GWS MAILBOXes from On prem postfix mail server // Hybrid Google GWS Solution<p><br /></p><p>Edit transport file for ON-PREM POSTFIX</p><p>-----------------------------------</p><p>vi /etc/postfix/transport</p><p>#########################################</p><p>########### GWS MAIL Boxes ##############</p><p>#########################################</p><p>tayab.khan@tayabkhan.com smtp:[ASPMX.L.GOOGLE.com]:25</p><p>#tayabkhan.com smtp:[ASPMX.L.GOOGLE.com]</p><p><br /></p><p>postmap /etc/postfix/transport</p><p><br /></p><p>----------------------------------------------</p><p>Edit transport file for ON-PREM ZIMBRA server</p><p>-------------------------------------------</p><p>su - zimbra</p><p>vi /opt/zimbra/common/conf/transportfile [Create new file]</p><p>tayab.khan@tayabkhan.com smtp:[ASPMX.L.GOOGLE.com]:25</p><p>postmap /opt/zimbra/common/conf/transportfile</p><p>zmprov ms `zmhostname` zimbraMtaTransportMaps "lmdb:/opt/zimbra/common/conf/transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf"</p><p>[For Checking : zmlocalconfig |grep -i postfix_transport_maps]</p><p>postfix reload</p><p>tail -f /var/log/zimbra.log</p><div><br /></div><p>=-------------------------------------</p><p>From GWS admin panel use Route and also Default route for the incoming route</p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWRuIIApLGefLgtsYHF1JdDqLx1RMS8UEY4-ubP3cMHCES0tcIRsx-x9kMz0-9b-Za5oMwKLa3lm7lzyIKRNIz6_CKqbIZL4YrwCSEHZAosiL5ZguJDCzWTDWbDk2XQasxX47N580fQmMhEAOWHaw-IoEcEEwju3R480G8IwjNbSPt7V186F2mjfh6MA/s1897/4.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="955" data-original-width="1897" height="348" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWRuIIApLGefLgtsYHF1JdDqLx1RMS8UEY4-ubP3cMHCES0tcIRsx-x9kMz0-9b-Za5oMwKLa3lm7lzyIKRNIz6_CKqbIZL4YrwCSEHZAosiL5ZguJDCzWTDWbDk2XQasxX47N580fQmMhEAOWHaw-IoEcEEwju3R480G8IwjNbSPt7V186F2mjfh6MA/w657-h348/4.png" width="657" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwbg3r8-MByOSzszrhZKh1OfTsYr_1_TC33mE1MJ5_nIv41Fg9a6_zuvfFIPs3zOD4ARmeCobuFNwTVIdOTe5v6kJ43B4Dj0HV9zBTdYkv8rs2Dj2WKfTbzjrJ03a2Z8Il_qs5tOiOgGNuAdaYdomva5rpMJZmX3zQpJg_vZOHaoFD53P8Fj4DQJRZOA/s842/3.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="842" data-original-width="648" height="567" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwbg3r8-MByOSzszrhZKh1OfTsYr_1_TC33mE1MJ5_nIv41Fg9a6_zuvfFIPs3zOD4ARmeCobuFNwTVIdOTe5v6kJ43B4Dj0HV9zBTdYkv8rs2Dj2WKfTbzjrJ03a2Z8Il_qs5tOiOgGNuAdaYdomva5rpMJZmX3zQpJg_vZOHaoFD53P8Fj4DQJRZOA/w436-h567/3.png" width="436" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCS08rwgTAjIiaykJ7QJkB3DxP2KF3KxtP2SdDhKk2nWHcuW2RPyjRrhe5b9ZQjYtI1mdWBe6mtL7grlKCsUAxKu09agVvA8_5XKkYkd9SjNbKMuKoyqokaYSE703R-DluO5InhMSl4bUst5C4V4zbe3C9BxcRZf8euriDt47lvqgcRG4P2oUcOVPaQQ/s1897/5.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="955" data-original-width="1897" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCS08rwgTAjIiaykJ7QJkB3DxP2KF3KxtP2SdDhKk2nWHcuW2RPyjRrhe5b9ZQjYtI1mdWBe6mtL7grlKCsUAxKu09agVvA8_5XKkYkd9SjNbKMuKoyqokaYSE703R-DluO5InhMSl4bUst5C4V4zbe3C9BxcRZf8euriDt47lvqgcRG4P2oUcOVPaQQ/w589-h296/5.png" width="589" /></a></div><br /><br /><br /><p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSi6XX6i3z4ldzV0wm23u7uc7k3EnYUZv0vRuBBBtkQQWwGv99gBP1yPVzQsFeCVUfNxVv877ou2NEcH4WHfNqlZdSDwcZV2whDu1ZMkRe5z1QsNxNyqn7nqjyQFKwj0sZp2oUpTaTeKvnrbLbHd_Ip7umbDDw-2IUGIluakFkF4XZ7IB4amwr4ndcUg/s1897/6.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="644" data-original-width="1897" height="183" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSi6XX6i3z4ldzV0wm23u7uc7k3EnYUZv0vRuBBBtkQQWwGv99gBP1yPVzQsFeCVUfNxVv877ou2NEcH4WHfNqlZdSDwcZV2whDu1ZMkRe5z1QsNxNyqn7nqjyQFKwj0sZp2oUpTaTeKvnrbLbHd_Ip7umbDDw-2IUGIluakFkF4XZ7IB4amwr4ndcUg/w537-h183/6.png" width="537" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVQVNqlGxDbAOY0DCz8qQSAn9_6qc4xW5NqPGL2Xjhx1E4RTJZusXiVZDmYmPa4KUCFfrXJMr1AP8YCaombDuKDZ-T4pclGCCMHfcKlqGexvMU0TXsGOeba1OFb8QoEAgr8KUosblkM0s_OCXwcNMrmeeXl8fzTPcgTbvGd9UFDJchvMkh_vFRDTsrJA/s1897/7.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="955" data-original-width="1897" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVQVNqlGxDbAOY0DCz8qQSAn9_6qc4xW5NqPGL2Xjhx1E4RTJZusXiVZDmYmPa4KUCFfrXJMr1AP8YCaombDuKDZ-T4pclGCCMHfcKlqGexvMU0TXsGOeba1OFb8QoEAgr8KUosblkM0s_OCXwcNMrmeeXl8fzTPcgTbvGd9UFDJchvMkh_vFRDTsrJA/w613-h308/7.png" width="613" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><p><br /></p><br /><br /><p></p><p><br /></p><p><br /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-37792864509601464532022-11-22T11:42:00.003+06:002022-11-22T11:42:45.066+06:00Check USB Port Speed from Linux Server<p> </p><p><br /></p><p><br /></p><p>#Check USB Port Speed from Linux Server: </p><p> cat /sys/bus/usb/devices/usbX/speed</p><p>Here X will be 1 or 2 or 3 , usb1 or usb2 or usb3 </p><p>if give you the bus speed of the root hub(s) in Mbps: </p><p>either 1.5, 12, indicate USB1 (low speed or full speed)</p><p>either 480, indicate USB2</p><p>either 5000 or 10000, indicate USB3</p><p><br /></p><p>#Create specific size file and check read write speed in linux</p><p>dd if=/dev/zero of=test bs=1G count=1</p><p>this will carete a 1Gb file name will be test</p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-20916407411185034072022-11-15T12:55:00.001+06:002022-11-15T12:55:13.526+06:00How to mount a Google Cloud Bucket in Linux using gcsfuse<p> </p><p>========================</p><p>Mounting a Google Cloud Storage bucket into CentOS/Debian</p><p>================================================</p><p>So here are the steps;</p><p><br /></p><p>Create a GCP Cloud Storage bucket</p><p>Add a service account to which has access to that bucket</p><p>Install GCSFuse (The software that actually does the job) on the server</p><p>Prepare to mount (like we were doing bungee jumping up-to this point)</p><p>[Optional] Configure HTTP proxy settings</p><p>Mount the bucket</p><p><br /></p><p>------------</p><p>key.json create</p><p><br /></p><p>enable api</p><p>https://console.cloud.google.com/apis/enableflow?apiid=iam.googleapis.com&redirect=https:%2F%2Fconsole.cloud.google.com&_ga=2.231830424.623026834.1668416683-356279560.1666504556&_gac=1.84295403.1667475992.Cj0KCQjwqoibBhDUARIsAH2OpWgkL2zPs1B-deHAoIRedHDdgqrlFzJDsyKyG1fqB1l6tVO7MIxrWNcaArfrEALw_wcB&authuser=1&project=stl-tms</p><p><br /></p><p>from the top area click the Create Service Account button.</p><p><br /></p><p>Add a unique name, and press Create</p><p>In the grant service account access step, select Cloud Storage > Storage Object Admin</p><p><br /></p><p>Goto Console-> IAM -> service account -> create Service account -> (... Actions) -> Manage Key -> create json file -></p><p><br /></p><p>upload this key.json file to linux instance</p><p><br /></p><p>gcsfuse --key-file /home/khan/stl-td2e879f.json --foreground /bucketdata</p><p><br /></p><p>============================</p><p>----------------------</p><p>Mount in a Ubuntu instance</p><p>------------------------</p><p><br /></p><p>** Install gcsfuse</p><p>Enter the following commands one by one</p><p><br /></p><p>sudo apt-get update</p><p>sudo apt-get install curl -y</p><p><br /></p><p>export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`</p><p>echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list</p><p>curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -</p><p><br /></p><p>sudo apt-get update</p><p>sudo apt-get install gcsfuse</p><p><br /></p><p>As of now, you should have gcsfuse installed and ready for action. But we will need google-cloud-sdk for authenticating to the Google Storage</p><p><br /></p><p>** Install Google Cloud SDK</p><p>export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"</p><p>echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list</p><p>curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -</p><p>sudo apt-get update && sudo apt-get install google-cloud-sdk</p><p><br /></p><p>Authenticate with Google Cloud Storage</p><p>Switch to the user you will be mounting your bucket with. And issue the following command</p><p><br /></p><p>gcloud auth application-default login</p><p>This will present you with a URL. Copy that URL and paste it in your browser, login with your Google account. You should see a token on your browser window. Copy it and paste it in the Terminal prompt asking for the verification code.</p><p><br /></p><p>Once you give the token, you should be authenticated and you can now mount your Bucket.</p><p><br /></p><p>Mount the bucket</p><p>Again, switch to the user you want to mount the bucket as. This is important because you cannot change the ownership of the mount. If you mount it with root user, then the mount can only be used by the root user.</p><p><br /></p><p>mkdir /mnt/google-cloud-bucket</p><p>gcsfuse your_bucket_name /mnt/google-cloud-bucket</p><p>That’s it, you should have your bucket mounted on your system. You can verify the mount using the df -h command</p><div>===========================</div><div><br /></div><p><br /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-88373309754408984732022-11-15T09:47:00.005+06:002022-11-15T09:48:23.346+06:00Linux Users command save in a log file<p> If you want to keep a trace all Linux user commands in a log file, </p><p>Follow below-mentioned steps:</p><p><br /></p><p>1)** Edit /etc/rsyslog.d/bash.conf</p><p><br /></p><p>vi /etc/rsyslog.d/bash.conf</p><p>and add the following: </p><p>local6.* /var/log/commands.log</p><p><br /></p><p>2)** Open /root/.bashrc:</p><p>sudo -e /etc/bashrc</p><p><br /></p><p>and add this line:</p><p>export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" )"'</p><p><br /></p><p>Run the following to load the changes:</p><p>source /etc/bashrc</p><p><br /></p><p>3)** Edit /etc/logrotate.d/syslog:</p><p><br /></p><p>sudo -e /etc/logrotate.d/syslog</p><p><br /></p><p>and add the following line:</p><p><br /></p><p>/var/log/commands.log</p><p><br /></p><p>4)** Restart rsyslog service:</p><p><br /></p><p>sudo service rsyslog restart </p><p><br /></p><p><br /></p><p>5)** With the above, the logs are saved in /var/log/commands.log in the following format:</p><p>Enjoy.... @taybkhan@</p><p>tail -f /var/log/commands.log</p><div><br /></div>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-78769295357645327302022-06-09T10:21:00.003+06:002022-06-09T10:21:18.185+06:00How to get started with GCP ?<p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhxBtgV3AwtytjUuH2ZKZsDY0dTjiPwT17kFben2nGwwCCMxPVErxS91G1BjzAj_Ed8E3JZeEu7jayIDh6l1SsW-QTqiwTvaroufk4j0yc5Ga-i-cFPV9C0P1H3aNiNDe-KtBlA81kicUlOPtxvN7FHAgIJBY41ASJBXgSetayOmzBnd-7wmvxetZbMgQ" style="margin-left: 1em; margin-right: 1em;"></a><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhxBtgV3AwtytjUuH2ZKZsDY0dTjiPwT17kFben2nGwwCCMxPVErxS91G1BjzAj_Ed8E3JZeEu7jayIDh6l1SsW-QTqiwTvaroufk4j0yc5Ga-i-cFPV9C0P1H3aNiNDe-KtBlA81kicUlOPtxvN7FHAgIJBY41ASJBXgSetayOmzBnd-7wmvxetZbMgQ" style="margin-left: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhdYCDdeTVYVD3hsgUpsHWchDRU1Q6bDSjD6Vp1dD5izRXUy-a2DVqvUT6jgYq6muOuiqZ3m6MBMIFzABvzo9mNMaASqixU6bOMNcmin5uKZaPAMU2ha_w0G5cIN-FIk_QOU_u3tiDJN74PkSb1Kv3Nsq_ZarMt9rMLy0NRUtV1D35VUm8GMTM2Q8IXCw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="736" data-original-width="1048" height="308" src="https://blogger.googleusercontent.com/img/a/AVvXsEhdYCDdeTVYVD3hsgUpsHWchDRU1Q6bDSjD6Vp1dD5izRXUy-a2DVqvUT6jgYq6muOuiqZ3m6MBMIFzABvzo9mNMaASqixU6bOMNcmin5uKZaPAMU2ha_w0G5cIN-FIk_QOU_u3tiDJN74PkSb1Kv3Nsq_ZarMt9rMLy0NRUtV1D35VUm8GMTM2Q8IXCw=w438-h308" width="438" /></a></div><br /></div><br /><br /><p></p><p>Anyone can start building on Google Cloud with $300 in free credits for 90 days and free usage of </p><p>20+ products like Compute Engine and Cloud Storage, up to monthly limits.</p><p><br /></p><p><br /></p><p><br /></p><p>Visit: https://cloud.google.com/free for details</p><p><br /></p><p><br /></p><p>Signup form is here to use $300 </p><p><br /></p><p>https://console.cloud.google.com/freetrial </p><p><br /></p><p><br /><br /><img alt="" data-original-height="900" data-original-width="1200" height="302" src="https://blogger.googleusercontent.com/img/a/AVvXsEhxBtgV3AwtytjUuH2ZKZsDY0dTjiPwT17kFben2nGwwCCMxPVErxS91G1BjzAj_Ed8E3JZeEu7jayIDh6l1SsW-QTqiwTvaroufk4j0yc5Ga-i-cFPV9C0P1H3aNiNDe-KtBlA81kicUlOPtxvN7FHAgIJBY41ASJBXgSetayOmzBnd-7wmvxetZbMgQ=w533-h302" width="533" /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-66912950169511955322022-06-09T10:12:00.003+06:002022-06-09T10:13:07.032+06:00 Cloud Security <p> <span style="background-color: white; color: #202124; font-family: Roboto, Arial, sans-serif; font-size: 1.125rem;">Why Cloud Security ??</span></p><div class="mI4Zw" dir="ltr" style="-webkit-tap-highlight-color: transparent; background-color: white; color: #3c4043; font-family: Roboto, Arial, sans-serif; font-size: 0.875rem; letter-spacing: 0.02rem; line-height: 1.25rem; margin: 10px 0px;">Cloud security, also known as cloud computing security, is a collection of security measures designed to protect cloud-based infrastructure, applications, and data. These measures ensure user and device authentication, data and resource access control, and data privacy protection. They also support regulatory data compliance. Cloud security is employed in cloud environments to protect a company's data from distributed denial of service (DDoS) attacks, malware, hackers, and unauthorized user access or use.<br style="-webkit-tap-highlight-color: transparent;" /><br style="-webkit-tap-highlight-color: transparent;" />Cloud security is critical since most organizations are already using cloud computing in one form or another. This high rate of adoption of public cloud services is reflected in Gartner’s recent prediction that the worldwide market for public cloud services will grow by 23.1% in 2021.<br style="-webkit-tap-highlight-color: transparent;" /><br style="-webkit-tap-highlight-color: transparent;" />Security in cloud computing is crucial to any company looking to keep its applications and data protected from bad actors.</div><div class="mI4Zw" dir="ltr" style="-webkit-tap-highlight-color: transparent; background-color: white; color: #3c4043; font-family: Roboto, Arial, sans-serif; font-size: 0.875rem; letter-spacing: 0.02rem; line-height: 1.25rem; margin: 10px 0px;"><br /></div><div class="mI4Zw" dir="ltr" style="-webkit-tap-highlight-color: transparent; background-color: white; color: #3c4043; font-family: Roboto, Arial, sans-serif; font-size: 0.875rem; letter-spacing: 0.02rem; line-height: 1.25rem; margin: 10px 0px;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEg4Wpxv5keLGNPu3B0Q08tWntxi76cvgd1g3rnXWQpPv0j-QSgQ_t4_KUixJ5Bho6L82-Y1XF08ZXHcMxLyAaneQtIkr_frl52RUu0JKn94ZTUYxp4k-rFT3cZkjXLP4hWC3nv9DJWxJ8r0EZjIesqMnOxMwgJ-f0efSObQDTuvpz83XgGTsZPbQjqPOA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="566" data-original-width="935" height="368" src="https://blogger.googleusercontent.com/img/a/AVvXsEg4Wpxv5keLGNPu3B0Q08tWntxi76cvgd1g3rnXWQpPv0j-QSgQ_t4_KUixJ5Bho6L82-Y1XF08ZXHcMxLyAaneQtIkr_frl52RUu0JKn94ZTUYxp4k-rFT3cZkjXLP4hWC3nv9DJWxJ8r0EZjIesqMnOxMwgJ-f0efSObQDTuvpz83XgGTsZPbQjqPOA=w607-h368" width="607" /></a></div><br /><br /></div>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-23065065478616620162021-10-27T20:05:00.001+06:002021-10-27T20:05:05.930+06:00Proxmox USB device at VM<p> </p><p><br /></p><p>Login to console of mail Proxmox hypervisor</p><p>run the command: lsusb and collect USB device ID</p><p><span style="color: #141618; font-size: 16px;">root@proxmox:~# lsusb</span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTAPpGQQWk7pSe273X5W1dU-xHcCetIwVoG-B_rhYVC-_txCn9W_Czz7YydMCiv3nLOgNmvae0Npsyd3vhl9ReEBUvlDEiHoglI_jfvbHEDjMs4T0SCclsZo3SLkPf413no00_eluVbfL6/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="244" data-original-width="1007" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTAPpGQQWk7pSe273X5W1dU-xHcCetIwVoG-B_rhYVC-_txCn9W_Czz7YydMCiv3nLOgNmvae0Npsyd3vhl9ReEBUvlDEiHoglI_jfvbHEDjMs4T0SCclsZo3SLkPf413no00_eluVbfL6/w607-h148/image.png" width="607" /></a></div><br />if we wants to attach this usb (usb-device-id 8564:7000) to vm id 145 <p></p><p>first stop VM 145 and run below command</p><p><span style="color: #141618; font-family: inherit; font-size: 1em;">root@proxmox:~# qm set 145 -usb0 host=8564:7000</span></p><p><span style="color: #141618; font-family: inherit; font-size: 1em;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilrRSvo97QhmBv0kFuDAsBCJDWwddYXDT5YBX-ih0J6JohX0u1RHoqIRXQKUuLvr2rijG53BtD81aAmM5QWtshyphenhyphentoQqWIOaBoiSaEPd6hD4enk5BPJ1glQ-CUQ5r0uHo6F4PezwEObrScf/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="82" data-original-width="659" height="58" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilrRSvo97QhmBv0kFuDAsBCJDWwddYXDT5YBX-ih0J6JohX0u1RHoqIRXQKUuLvr2rijG53BtD81aAmM5QWtshyphenhyphentoQqWIOaBoiSaEPd6hD4enk5BPJ1glQ-CUQ5r0uHo6F4PezwEObrScf/w460-h58/image.png" width="460" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;">Now start VM ID-145 and check the device with lsblk</div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"># lsblk or fdisk -l </div><div class="separator" style="clear: both; text-align: center;">to find acutal device with partition and finally mount with mount command # mount /dev/sdx1 /mnt</div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-21310320729990616912021-10-24T16:16:00.001+06:002021-10-24T16:16:21.484+06:00Iredmail password change md5 ssha512 <p> To generate a password hash for a new password, please use doveadm command.</p><p>Generate a SSHA512 password hash:</p><p>$ doveadm pw -s 'ssha512' -p '123456'</p><p>{SSHA512}jOcGSlKEz95VeuLGecbL0MwJKy0yWY9foj6UlUVfZ2O2SNkEExU3n42YJLXDbLnu3ghnIRBkwDMsM31q7OI0jY5B/5E=</p><p>Generate a BCRYPT password hash on BSD system:</p><p>$ doveadm pw -s 'blf-crypt' -p '123'</p><p>{BLF-CRYPT}$2a$05$9CTW6FZtjHeK6W.2YMmzOeAj2YFvDpP4JEH0uH/YLQI81jPWDtzQW</p><p><br /></p><p><br /></p><p>SQL backends</p><p>To reset password for user user@domain.ltd, please login to SQL server as either SQL root user or vmailadmin user (note: sql user vmail has read-only privilege to vmail database, so you cannot use it to change user password), then execute SQL commands to reset password:</p><p><br /></p><p>sql> USE vmail;</p><p>sql> UPDATE mailbox SET password = '{SSHA512}$1$KxfQLbMV$Pq3x21nQEYMm6eFUrVJOS.' WHERE username = 'tayab.khan@toron.com.bd';</p><p><br /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-8016119569340861112021-10-23T21:55:00.004+06:002021-10-23T21:55:26.023+06:00Fail2Ban jail search and unban<p> </p><p><br /></p><p><br /></p><p>** To see / get the actual jail names</p><p>#fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g' </p><p><br /></p><p>example output:: ssh-iredmail roundcube-iredmail postfix-iredmail dovecot-iredmail pam-generic ssh-iptables</p><p><br /></p><p>** To Unban IP use bellow command</p><p>#fail2ban-client set JAIL_NAME unbanip 1.2.3.4</p><p><br /></p><p><br /></p><p>fail2ban-client set ssh-iredmail unbanip 1.2.3.4</p><p>fail2ban-client set roundcube-iredmail unbanip 1.2.3.4</p><p>fail2ban-client set postfix-iredmail unbanip 1.2.3.4</p><p>fail2ban-client set dovecot-iredmail unbanip 1.2.3.4</p><p>fail2ban-client set ssh-iptables unbanip 1.2.3.4</p><p>fail2ban-client set pam-generic unbanip 1.2.3.4</p><div><br /></div>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-42371568488260953812021-10-23T20:50:00.000+06:002021-10-23T20:53:09.780+06:00Clear Memory / RAM cache in Linux<p> </p><p>How to Clear Cache in Linux?</p><p>Every Linux System has three options to clear cache without interrupting any processes or services.</p><p><br /></p><p>1. Clear PageCache only.</p><p><br /></p><p># sync; echo 1 > /proc/sys/vm/drop_caches</p><p>2. Clear dentries and inodes.</p><p><br /></p><p># sync; echo 2 > /proc/sys/vm/drop_caches</p><p>3. Clear pagecache, dentries, and inodes.</p><p><br /></p><p># sync; echo 3 > /proc/sys/vm/drop_caches </p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-10932842434999476552021-10-20T20:58:00.000+06:002021-10-20T20:58:50.423+06:00Format your Pen drive / USB Flash Drive from Command Prompt<p>How to </p><p><span style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px; font-weight: 700;"><br /></span></p><p><span style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px; font-weight: 700;">Step 1:</span><span style="background-color: white; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px;"> </span><span style="background-color: white; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px;">Type</span><span style="background-color: white; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px;"> </span><span style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px; font-weight: 700;">cmd</span><span style="background-color: white; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px;"> </span><span style="background-color: white; color: #333333; font-family: "Open Sans", sans-serif; font-size: 18px;">in the search box, then you can get the best match called Command Prompt. Right-click on it and choose "Run as administrator".</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 2:</span> On the Command Prompt window, type <span style="box-sizing: border-box; font-weight: 700;">diskpart</span> and press "Enter".</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type diskpart to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step1.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 3:</span> Type <span style="box-sizing: border-box; font-weight: 700;">list disk</span> and press "Enter". According to the list disk information, check which disk is your USB flash drive. For example, disk 2.</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type list disk to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step2.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 4:</span> Now type <span style="box-sizing: border-box; font-weight: 700;">select disk 2</span> and press "Enter".</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type select disk 2 to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step3.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 5:</span> Type <span style="box-sizing: border-box; font-weight: 700;">clean</span>. Wait some time for disk erasing.</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type clean to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step4.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 6: </span>Type <span style="box-sizing: border-box; font-weight: 700;">create partition primary</span> and press "Enter".</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type create partition primary to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step5.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 7: </span>After diskpart successfully created the specified partition, type <span style="box-sizing: border-box; font-weight: 700;">format fs=ntfs</span> and press "Enter". If you prefer other file system formats, change the command ntfs to the desired one such as fat32, exfat, etc.</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type format fs=ntfs to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step6.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-size: 18px;"><span style="box-sizing: border-box; font-weight: 700;">Step 8:</span> Type <span style="box-sizing: border-box; font-weight: 700;">assign</span> to create a drive letter to the flash drive.</span></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 0px 0px 10px;"><img alt="type assign to format usb flash drive using cmd" class="img-responsive" command="" cseworld="" drive="" flash="" format="" from="" how="" prompt="" src="https://www.cseworldonline.com/articles/img/diskpart-format-step7.png" style="border: 0px; box-sizing: border-box; display: block; height: auto; max-width: 100%; vertical-align: middle;" title="" to="" usb="" /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com1tag:blogger.com,1999:blog-252422571873802290.post-3489904076804207662021-10-20T20:49:00.007+06:002021-10-20T21:00:38.982+06:00Outlook Sync send / recieve issue <p> </p><p class="MsoNormal">Please follow the attached steps to overcome the slow sync issue
from Laptop/Desktop.<o:p></o:p></p><p class="MsoNormal"><br /></p><p class="MsoNormal"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdqWHiWw6hnXTW7EQBZJjiRsWaA3l0BxgNOoSy6EQEnRxFpnf8mAcqYKnK1nCEv43TcJUdVQcFEDOGQvIijrIpCWlx5NH2MbflMNBonxiAtJoAt4pcl-j2TJAVVF0ekuiSOQYznxsQusr1/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="929" data-original-width="1466" height="388" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdqWHiWw6hnXTW7EQBZJjiRsWaA3l0BxgNOoSy6EQEnRxFpnf8mAcqYKnK1nCEv43TcJUdVQcFEDOGQvIijrIpCWlx5NH2MbflMNBonxiAtJoAt4pcl-j2TJAVVF0ekuiSOQYznxsQusr1/w612-h388/1.png" width="612" /></a></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgucWBQTEW0i5l3SmrNzyJ02SwjLZKmeKLtdO8sl5M3e9kVlXk90HaDDnQM8F0gddBVQmigNrLqGSYC0xzG2pfhFodMGyFef0WI8pcDF24wpM0vSiLiDTo-L-rbMuPyfoUt7ckVZkpIGVLO/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="813" data-original-width="1033" height="498" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgucWBQTEW0i5l3SmrNzyJ02SwjLZKmeKLtdO8sl5M3e9kVlXk90HaDDnQM8F0gddBVQmigNrLqGSYC0xzG2pfhFodMGyFef0WI8pcDF24wpM0vSiLiDTo-L-rbMuPyfoUt7ckVZkpIGVLO/w633-h498/2.png" width="633" /></a></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiStxnkIjFqMZpnegVMvEx5bYfx7aFjAjdnaYfwQ48PCavIkf7P8HYdNAeadx3SfwHjlJA3OMoR0GL614s-HBiP_89xeaxg00poH3DovDtCxWLD00Xq1wGEnERfZkpdVldFV5vqrdwHLBaf/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="813" data-original-width="870" height="579" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiStxnkIjFqMZpnegVMvEx5bYfx7aFjAjdnaYfwQ48PCavIkf7P8HYdNAeadx3SfwHjlJA3OMoR0GL614s-HBiP_89xeaxg00poH3DovDtCxWLD00Xq1wGEnERfZkpdVldFV5vqrdwHLBaf/w620-h579/3.png" width="620" /></a></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIpG3zxPxhlxxNy9TnpNI-ZMlUKG9oTbjYbZo598nOyvB5vK4fk-8fT9KLvtTod0My7xYKTnFYIRKYZnzUZgynOktJJ4lU6njFLl_KEh1TNvXrMJaGM3DXDChHLhyphenhyphenTex5iu5Clkozu9DCz/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="595" data-original-width="491" height="700" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIpG3zxPxhlxxNy9TnpNI-ZMlUKG9oTbjYbZo598nOyvB5vK4fk-8fT9KLvtTod0My7xYKTnFYIRKYZnzUZgynOktJJ4lU6njFLl_KEh1TNvXrMJaGM3DXDChHLhyphenhyphenTex5iu5Clkozu9DCz/w578-h700/4.png" width="578" /></a></div><br /><br /></div><br /><br /></div><br /><br /></div><br /><br /><p></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-83690647184395165512021-02-10T11:15:00.008+06:002021-02-10T11:20:12.376+06:00Proxmox Disk adding<p> </p><p>How to add DISK at Proxmox</p><p><br /></p><p>LOGIN proxmox</p><p>https://192.168.x.x:8006</p><p><br /></p><p>---------------------------</p><p>SSH Login: and run as bellow</p><p>vi /etc/apt/sources.list.d/pve-enterprise.list</p><p># hash enterprise</p><p><br /></p><p>apt udpate</p><p>apt install parted</p><p><br /></p><p> parted /dev/sda mklabel gpt</p><p><br /></p><p>parted -a opt /dev/sda mkpart primary ext4 0% 100%</p><p><br /></p><p>mkfs.ext4 -L storageprox /dev/sda1</p><p>mkdir -p /mnt/sas-drive1</p><p><br /></p><p><br /></p><p>vi /etc/fstab</p><p>LABEL=storageprox /mnt/sas-drive1 ext4 defaults 0 2</p><p><br /></p><p>mount -a</p><p><br /></p><p>** now login to proxmox GUI and </p><p>click datacenter -> storage -> ADD</p><p>-> directory -></p><p>ID: storageprox</p><p>Directory: /mnt/sas-drive1</p><p>Content-Type: all</p><p>Nodes: all</p><p><br /></p><p>---------------------</p><p><br /></p><p>parted /dev/sdb mklabel gpt</p><p>parted -a opt /dev/sdb mkpart primary ext4 0% 100%</p><p>mkfs.ext4 -L storageprox-2 /dev/sdb1</p><p><br /></p><p>mkdir -p /mnt/sas-drive2</p><p><br /></p><p>vi /etc/fstab</p><p>LABEL=storageprox-2 /mnt/sas-drive2 ext4 defaults 0 2</p><p><br /></p><p><br /></p><p>** now login to proxmox GUI and </p><p>click datacenter -> storage -> ADD</p><p>-> directory -></p><p>ID: storageprox-2</p><p>Directory: /mnt/sas-drive2</p><p>Content-Type: all</p><p>Nodes: all</p><p><br /></p><p>--------------------------</p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-17937969002308923542020-08-31T17:32:00.000+06:002020-08-31T17:32:08.729+06:00Sentora Domain name change<p> </p><p><br /></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;">You may want to change Sentora sub-domain if you installed Sentora without subdomain (usual error) or if, for any reason, you want to change the subdomain name.</p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;">This is an easy way from SSH console or local console.</p><h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; margin: 11px 0px 3px;">1) Login to your console</h3><h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; margin: 11px 0px 3px;">2) Change Sentora subdomain</h3><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;"><code style="background-color: #f2f6f8; border-radius: 4px; border: 1px dashed blue; box-sizing: border-box; color: #c7254e; font-family: "Lucida Console", Monaco, monospace; font-size: 12.6px; margin: 5px 20px; padding: 1px 6px; white-space: pre;">setso --set sentora_domain <span style="box-sizing: border-box; color: purple;">new_sentora_fulldomain</span></code></p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;"><span style="box-sizing: border-box; font-weight: 700;">OR</span></p><ol style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin-bottom: 10px; margin-top: 0px;"><li style="box-sizing: border-box;">Log into phpMyAdmin as root user.</li><li style="box-sizing: border-box;">Open table:sentora_core.x_settings</li><li style="box-sizing: border-box;">Edit row 90 (Or search for the domain you entered when installing Sentora)</li><li style="box-sizing: border-box;">In row 90 put your new or updated Sentora FQDN: <span style="box-sizing: border-box; color: purple;">new_sentora_fulldomain</span></li></ol><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;">Notes:</p><ul style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin-bottom: 10px; margin-top: 0px;"><li style="box-sizing: border-box;">replace <span style="box-sizing: border-box; color: purple;">new_sentora_fulldomain</span> by the <a href="http://en.wikipedia.org/wiki/Fully_qualified_domain_name" style="background: 0px 0px; box-sizing: border-box; color: #428bca; text-decoration-line: none;" target="_blank">FQDN</a> that you want to use to access Sentora (only), something like <span style="box-sizing: border-box; color: darkgreen;">mypanel.example.com</span><br style="box-sizing: border-box;" />It MUST NOT be your base "public" domain (<span style="box-sizing: border-box; color: darkgreen;">example.com</span> in the example above).<br style="box-sizing: border-box;" /> </li><li style="box-sizing: border-box;">The subdomain you will use (<span style="box-sizing: border-box; color: darkgreen;">mypanel</span> in the example above) MUST also be setup in your DNS name-server !<br style="box-sizing: border-box;" />See also <a href="http://docs.sentora.org/?node=26" id="N26" style="background: 0px 0px; box-sizing: border-box; color: #428bca; text-decoration-line: none;">Setting up DNS ...</a></li></ul><h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; margin: 11px 0px 3px;">3) Tells Sentora daemon that the vhost file must be rewriten</h3><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;"><code style="background-color: #f2f6f8; border-radius: 4px; border: 1px dashed blue; box-sizing: border-box; color: #c7254e; font-family: "Lucida Console", Monaco, monospace; font-size: 12.6px; margin: 5px 20px; padding: 1px 6px; white-space: pre;">setso --set apache_changed true </code></p><h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.1; margin: 11px 0px 3px;">4) Wait until Sentora daemon run (each 5 min)</h3><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;">It is NOT ADVIDSED, but if you are really too much impatient (and if you understand what it implies) you can run the daemon manually with:</p><p style="background-color: white; box-sizing: border-box; color: #333333; font-family: Raleway, sans-serif; font-size: 14px; margin: 0px 0px 10px;"><code style="background-color: #f2f6f8; border-radius: 4px; border: 1px dashed blue; box-sizing: border-box; color: #c7254e; font-family: "Lucida Console", Monaco, monospace; font-size: 12.6px; margin: 5px 20px; padding: 1px 6px; white-space: pre;">php -q /etc/sentora/panel/bin/daemon.php</code></p>Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-40233513990086721212020-07-23T09:54:00.000+06:002020-07-23T09:54:34.337+06:00MikroTik Script for Link up down enable disable based on gateway timeout<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
** for example we have two separate links with two gateway IP,<br />
we wants to disable or enable concern interface(ether1 or ether2) if gateway ping timeout<br />
* If we wants montior/ ping gateway three times and script will run Ones each 1 minute (interval = 00:01:00)<br />
<br />
ether1 = lnik1 = Interface IP 192.168.1.2 and gateway IP 192.168.1.1<br />
ether2 = link2 = Interface IP 172.16.1.2 and gateway IP 172.16.1.1<br />
<br />
** GoTo Winbox -> and Click<br />
#System -> Scheduler -> + Add<br />
------------------------------<br />
interval = 00:01:00<br />
<br />
:if ([ /ping 192.168.1.1 src-address=192.168.1.2 count=3] = 0) do={<br />
[/interface disable ether1]<br />
:log info "gateway timeout, disabling link1 ether1 interface"<br />
}<br />
:if ([ /ping 192.168.1.1 src-address=192.168.1.2 count=3] = 3) do={<br />
[/interface enable ether1]<br />
:log info "Link1 is now up enabling ether1 interface"<br />
}<br />
<br />
---------------------------<br />
** script to check link2<br />
----------------------------<br />
System -> Scheduler -> + Add<br />
<br />
interval = 00:01:00<br />
<br />
<br />
:if ([ /ping 172.16.1.1 src-address=172.16.1.2 count=3] = 0) do={<br />
[/interface disable ether2]<br />
:log info "gateway timeout, disabling link2 ether2 interface"<br />
}<br />
:if ([ /ping 172.16.1.1 src-address=172.16.1.2 count=3] = 3) do={<br />
[/interface enable ether2]<br />
:log info "Link2 is now up enabling ether2 interface"<br />
}<br />
<br />
------------------------------<br />
<div>
#Enjoy## Tayab Khan ###</div>
</div>
Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-89133754370086007312020-06-21T14:44:00.003+06:002020-08-31T17:28:49.828+06:00IP reputation ad sender score check<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Sender score:<br />
<a href="https://www.senderscore.org/get-your-score/">https://www.senderscore.org/get-your-score/</a><br />
<br />
IP reputaion:<br />
<br />
https://talosintelligence.com/reputation_center<br />
<br />
<br />
https://www.ers.trendmicro.com/reputations<br />
<br />
<br />
https://ipremoval.sms.symantec.com/<br />
<br />
<br />
<br />
### fail2ban unban<br />
fail2ban-client set dovecot-iredmail unbanip 192.168.2.2<br />
<br />
<br />
<br />
<br />
## Search any text from all files under a directory</div><div dir="ltr" style="text-align: left;" trbidi="on">* we wants to search a text/word named "Searching Text" from many files under location /var/www/html</div><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div><div dir="ltr" style="text-align: left;" trbidi="on">find /var/www/html/ -type f -exec grep -H 'Searching Text' {} \;</div><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div>
Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-50540707793056164302020-06-16T09:28:00.005+06:002020-07-23T09:55:29.681+06:00Postfix outgoing mail limit per domain <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="background: 0px 0px rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-family: "linux libertine", Georgia, Times, serif; font-weight: 400; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;">
<span class="mw-headline" id="Limit_by_domain"> Limit outgoing mail </span></h2>
<br />
Global configuration::<br />
<br />
<table class="config_array" style="background-color: aliceblue; border-radius: 5px; border: 1px solid rgb(208, 231, 255); color: #252525; font-family: sans-serif; font-size: 14px; width: 100%px;"><tbody>
<tr><td class="config_subarray" style="background: -webkit-linear-gradient(top, rgb(153, 204, 255) 1%, rgb(240, 248, 255) 100%); border-radius: 5px 5px 0px 0px; border: 5px rgb(0, 0, 0);">vi /etc/postfix/main.cf</td></tr>
<tr><td><div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.3em; margin: 1em 0px; padding: 1em;">
<div class="text source-text" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">smtp_destination_concurrency_limit = 2
smtp_destination_rate_delay = 1s
smtp_extra_recipient_limit = 10</pre>
</div>
</div>
</td></tr>
</tbody></table>
<br style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px;" />
<ul style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; list-style-image: url("data:image/png; margin: 0.3em 0px 0px 1.6em; padding: 0px;">
<li style="margin-bottom: 0.1em;">default_destination_concurrency_limit: This means that postfix will up to two concurrent connections per receiving domains. The default value is 20.</li>
<li style="margin-bottom: 0.1em;">default_destination_rate_delay: Postfix will add a delay between each message to the same receiving domain. It overrides the previous rule and in this example, it will send one email after another with a delay of 1 second. If you want to disable this rule, either delete it or set to 0.</li>
<li style="margin-bottom: 0.1em;">default_extra_recipient_limit: Limit the number of recipients of each message. If a message had 20 recipients on the same domain, postfix will break it out to two different email messages instead of one.</li>
</ul>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
Then restart your Postfix.</div>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
<br /></div>
<h2 style="background: 0px 0px rgb(255, 255, 255); border-bottom: 1px solid rgb(170, 170, 170); font-family: "linux libertine", Georgia, Times, serif; font-weight: 400; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;">
<span class="mw-headline" id="Limit_by_domain"> Limit outgoing mail by domain</span></h2>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
You can limit per domain if you want like this:</div>
<table class="config_array" style="background-color: aliceblue; border-radius: 5px; border: 1px solid rgb(208, 231, 255); color: #252525; font-family: sans-serif; font-size: 14px; width: 100%px;"><tbody>
<tr><td class="config_subarray" style="background: -webkit-linear-gradient(top, rgb(153, 204, 255) 1%, rgb(240, 248, 255) 100%); border-radius: 5px 5px 0px 0px; border: 5px rgb(0, 0, 0);"><a class="image" href="https://wiki.deimos.fr/File:Configuration_file.png.html" style="background: 0px 0px; color: #0b0080; text-decoration-line: none;" title="Configuration File"><img alt="Configuration File" height="32" src="https://wiki.deimos.fr/images/a/a6/Configuration_file.png" style="border: none; vertical-align: middle;" width="32" /></a> vi /etc/postfix/main.cf</td></tr>
<tr><td><div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.3em; margin: 1em 0px; padding: 1em;">
<div class="text source-text" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">transport_maps = hash:/etc/postfix/transport
# Throttle limit policy mail (global)
smtp_destination_concurrency_limit = 4
smtp_extra_recipient_limit = 2
# Polite policy
polite_destination_concurrency_limit = 3
polite_destination_rate_delay = 2s
polite_destination_recipient_limit = 5
# Turtle policy
turtle_destination_concurrency_limit = 2
turtle_destination_rate_delay = 1s
turtle_destination_recipient_limit = 2</pre>
</div>
</div>
</td></tr>
</tbody></table>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
<br /></div>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
Then add domains with the wished policy:</div>
<table class="config_array" style="background-color: aliceblue; border-radius: 5px; border: 1px solid rgb(208, 231, 255); color: #252525; font-family: sans-serif; font-size: 14px; width: 100%px;"><tbody>
<tr><td class="config_subarray" style="background: -webkit-linear-gradient(top, rgb(153, 204, 255) 1%, rgb(240, 248, 255) 100%); border-radius: 5px 5px 0px 0px; border: 5px rgb(0, 0, 0);"><a class="image" href="https://wiki.deimos.fr/File:Configuration_file.png.html" style="background: 0px 0px; color: #0b0080; text-decoration-line: none;" title="Configuration File"><img alt="Configuration File" height="32" src="https://wiki.deimos.fr/images/a/a6/Configuration_file.png" style="border: none; vertical-align: middle;" width="32" /></a> vi /etc/postfix/transport</td></tr>
<tr><td><div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.3em; margin: 1em 0px; padding: 1em;">
<div class="text source-text" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">gmail.com polite:
yahoo.com polite:</pre>
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">hotmail.com turtle:
live.com turtle:
outlook.com turtle:</pre>
</div>
</div>
</td></tr>
</tbody></table>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
<br /></div>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
Edit master configuration to inform postfix of those config. Add those lines:</div>
<table class="config_array" style="background-color: aliceblue; border-radius: 5px; border: 1px solid rgb(208, 231, 255); color: #252525; font-family: sans-serif; font-size: 14px; width: 100%px;"><tbody>
<tr><td class="config_subarray" style="background: -webkit-linear-gradient(top, rgb(153, 204, 255) 1%, rgb(240, 248, 255) 100%); border-radius: 5px 5px 0px 0px; border: 5px rgb(0, 0, 0);"><a class="image" href="https://wiki.deimos.fr/File:Configuration_file.png.html" style="background: 0px 0px; color: #0b0080; text-decoration-line: none;" title="Configuration File"><img alt="Configuration File" height="32" src="https://wiki.deimos.fr/images/a/a6/Configuration_file.png" style="border: none; vertical-align: middle;" width="32" /></a> vi /etc/postfix/master.cf</td></tr>
<tr><td><div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.3em; margin: 1em 0px; padding: 1em;">
<div class="text source-text" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">polite unix - - n - - smtp
turtle unix - - n - - smtp</pre>
</div>
</div>
</td></tr>
</tbody></table>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
<br /></div>
<div style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: inherit; margin-bottom: 0.5em; margin-top: 0.5em;">
Postmap and reload:</div>
<table class="command_array" style="background-color: #f1fff0; border-radius: 5px; border: 1px solid rgb(212, 255, 208); color: #252525; font-family: sans-serif; font-size: 14px; width: 100%px;"><tbody>
<tr><td class="command_subarray" style="background: -webkit-linear-gradient(top, rgb(153, 255, 153) 1%, rgb(241, 255, 240) 100%); border-radius: 5px 5px 0px 0px; border: 5px rgb(0, 0, 0);"><a class="image" href="https://wiki.deimos.fr/File:Terminal.png.html" style="background: 0px 0px; color: #0b0080; text-decoration-line: none;" title="Command"><img alt="Command" height="32" src="https://wiki.deimos.fr/images/9/9c/Terminal.png" style="border: none; vertical-align: middle;" width="32" /></a></td></tr>
<tr><td><div class="mw-geshi mw-code mw-content-ltr" dir="ltr" style="background-color: #f9f9f9; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: black; direction: ltr; font-family: monospace, Courier; line-height: 1.3em; margin: 1em 0px; padding: 1em;">
<div class="text source-text" style="font-family: monospace; line-height: normal;">
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">postmap /etc/postfix/transport
service postfix reload</pre>
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;"></pre>
<pre class="de1" style="background: none; border-radius: 3px; border: 0px none white; font-family: monospace, monospace; font-size: 1em; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 1.2em; padding: 0px; vertical-align: top;">Now Send mail check log</pre>
</div>
</div>
</td></tr>
</tbody></table>
</div>
Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com1tag:blogger.com,1999:blog-252422571873802290.post-71758091810071314542020-01-14T18:14:00.003+06:002022-12-15T11:29:01.300+06:00Linux Script to collect server status<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Linux Script to collect server status<br />
<br />
<br />
[root@tayab]# cat stat.sh<br />
#! /bin/bash<br />
printf "Memory\t\tDisk\t\tCPU\t\tDATE\n"<br />
end=$((SECONDS+36000000000))<br />
while [ $SECONDS -lt $end ]; do<br />
MEMORY=$(free -m | awk 'NR==2{printf "%.2f%%\t\t", $3*100/$2 }')<br />
DISK=$(df -h | awk '$NF=="/"{printf "%s\t\t", $5}')<br />
CPU=$(top -bn1 | grep load | awk '{printf "%.2f%%\t\t\n", $(NF-2)}')<br />
DATE=$(date)<br />
echo "$MEMORY$DISK$CPU$DATE"<br />
sleep 60<br />
done<br />
<br />
[root@tayab]# nohup sh stat.sh >> load.txt &<br />
<div>
<br />
<br />
** If CPU core 12 then run as bellow (100/12 = 8.333)<br />
<br />
#! /bin/bash<br />
printf "Memory\t\tDisk\t\tCPU\t\tDATE\n"<br />
end=$((SECONDS+3600000))<br />
while [ $SECONDS -lt $end ]; do<br />
MEMORY=$(free -m | awk 'NR==2{printf "%.2f%%\t\t", $3*100/$2 }')<br />
DISK=$(df -h | awk '$NF=="/"{printf "%s\t\t", $5}')<br />
<h3 style="text-align: left;">
CPU=$(top -bn1 | grep load | awk '{printf "%.2f%%\t\t\n", $(NF-2)<b><i><span style="color: red;">*8.333</span></i></b>}')</h3>
DATE=$(date)<br />
echo "$MEMORY$DISK$CPU$DATE"<br />
sleep 60<br />
done</div>
</div>
Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0tag:blogger.com,1999:blog-252422571873802290.post-24024008093197701662019-11-21T09:52:00.002+06:002019-11-21T09:54:50.480+06:00ssl tls installation for postfix mail server<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
** You can buy ssl (willcard ssl) for your domain and download files<br />
tayabkhan_com.key<br />
STAR_tayabkhan_com.crt<br />
server.ca-bundle<br />
<br />
#OR<br />
#Generate private ssl key<br />
openssl req -new -newkey rsa:2048 -nodes -out certreq.txt -keyout private.key<br />
<br />
mkdir -p /etc/postfix/ssl<br />
<br />
###### vi /etc/posfix/main.cf<br />
<br />
# tls config<br />
smtp_use_tls = yes<br />
smtpd_use_tls = yes<br />
smtpd_tls_security_level = may<br />
smtp_tls_note_starttls_offer = yes<br />
smtpd_tls_loglevel = 1<br />
smtpd_tls_received_header = yes<br />
smtpd_tls_session_cache_timeout = 3600s<br />
tls_random_source = dev:/dev/urandom<br />
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache<br />
smtpd_tls_key_file = /etc/postfix/ssl/tayabkhan_com.key<br />
smtpd_tls_cert_file = /etc/postfix/ssl/STAR_tayabkhan_com.crt<br />
smtpd_tls_CAfile = /etc/postfix/ssl/server.ca-bundle<br />
<br />
<br />
<br />
##### vi /etc/postfix/master.cf<br />
#smtp inet n - n - - smtpd<br />
## for 587 port<br />
submission inet n - n - - smtpd<br />
-o syslog_name=postfix/submission<br />
-o smtpd_tls_security_level=encrypt<br />
-o smtpd_sasl_auth_enable=yes<br />
## for 465 port<br />
smtps inet n - n - - smtpd<br />
-o syslog_name=postfix/smtps<br />
-o smtpd_tls_wrappermode=yes<br />
-o smtpd_sasl_auth_enable=yes<br />
<br />
# service postfix restart<br />
<br />
##### vi /etc/dovecot/dovecot.conf<br />
ssl = required<br />
ssl_ca = </etc/pki/tls/certs/server.ca-bundle<br />
ssl_cert = </etc/pki/tls/certs/STAR_tayabkhan_com.crt<br />
ssl_key = </etc/pki/tls/private/tayabkhan_com.key<br />
disable_plaintext_auth = yes<br />
<br />
<br />
/etc/dovecot/dovecot.conf has the following line:<br />
protocols = imap pop3 imaps pop3s<br />
<br />
<br />
<br />
Edit the /etc/dovecot/conf.d/10-ssl.conf file in the following way:<br />
ssl_disable = no<br />
<br />
If you save the certificate and private key in separate files:<br />
ssl_cert_file = </etc/ssl/certs/certificate.crt<br />
ssl_key_file = </etc/ssl/private/yourdomainname.key<br />
<br />
If you save the certificate and private key in a single file:<br />
ssl_cert_file = </etc/ssl/certs/cert_and_key.crt<br />
ssl_key_file = </etc/ssl/certs/cert_and_key.crt</div>
Tayab Khanhttp://www.blogger.com/profile/03656931063469195602noreply@blogger.com0