tag:blogger.com,1999:blog-57153309880739057592023-11-26T04:47:43.013-08:00Dzhumaiev.com DevOps practical noticesShort and long-read articles that could be useful in day-to-day routinesRuslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5715330988073905759.post-71892108667962294342023-02-21T01:35:00.000-08:002023-02-21T01:35:08.737-08:00Add disk image to Windows OS on Proxmox<p> </p><p><br /></p><p>1) Enter into the Proxmox console</p><p></p><p style="-webkit-text-stroke-width: 0px; color: black; font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"></p><p></p><p style="-webkit-text-stroke-width: 0px; color: black; font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">2) Select the VM -> Hardware -> Add -> Hard Disk:</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgWNH-uNKI2qIlxSt9rSXugnX-iNRZTtlxZAcJFnv7MEzEFmgp97Ks6it1K1GGroQxDWE8nrFDIUfGwQ-X-lf7YtA7ubxEJzCA78ay8snPHWZGx8EePfzVy4NXoVjGRgW7Na5rvF0YhRsFHkM-S-wuEfQpIjKQV1wA9YkDWxjeIukZ3VkyTvqiQzVzmug" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="422" data-original-width="1200" height="208" src="https://blogger.googleusercontent.com/img/a/AVvXsEgWNH-uNKI2qIlxSt9rSXugnX-iNRZTtlxZAcJFnv7MEzEFmgp97Ks6it1K1GGroQxDWE8nrFDIUfGwQ-X-lf7YtA7ubxEJzCA78ay8snPHWZGx8EePfzVy4NXoVjGRgW7Na5rvF0YhRsFHkM-S-wuEfQpIjKQV1wA9YkDWxjeIukZ3VkyTvqiQzVzmug=w589-h208" width="589" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br />3) Configure the new disk image:<p></p><p>1. Select the type of disk, usually, it is the same type of existing disk by VM (Virtual Machine)</p><p>2. Select the storage where the disk image should be placed</p><p>3. Define the size of the disk</p><p>4. Add the disk image</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEipwza215y47BH-DB8hupMIGqjMk1h0gOyj0-yfg268B4VAz-rz8uIMAYs_NVd0yZ4ibAbCzfrcAn2C6VXFSW3UsRtq3aUNEcL7C-b29_BuuTQAx6jXJBoONZADC9RG82EcdvqhQGV4ExMCaLyS8EqwSume7Db33aijxWDF1pYnRkgoQowd6_saP47bCQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="367" data-original-width="798" height="245" src="https://blogger.googleusercontent.com/img/a/AVvXsEipwza215y47BH-DB8hupMIGqjMk1h0gOyj0-yfg268B4VAz-rz8uIMAYs_NVd0yZ4ibAbCzfrcAn2C6VXFSW3UsRtq3aUNEcL7C-b29_BuuTQAx6jXJBoONZADC9RG82EcdvqhQGV4ExMCaLyS8EqwSume7Db33aijxWDF1pYnRkgoQowd6_saP47bCQ=w535-h245" width="535" /></a></div><p>4) Stop (Shutdown) and Start the VM to apply changes</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgvRWqYmSlFs2Y_4WlKLbMkp-h6-0Mk3kyn5M4n-wYVd5y0eBltP4FOpyBbfPsfIfiIKUj0pbCMaN4BeTEisiRmnE9_my8kGuA9qSuvEELQFQi9m8GRfnxlITNFv7qNKy4EiUpt9rTgT2ueXPr1_mmV8Ktp_DxUl2kIMJQo3LDX5JpUJuzaT9Q9bvLWrg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="510" data-original-width="828" height="341" src="https://blogger.googleusercontent.com/img/a/AVvXsEgvRWqYmSlFs2Y_4WlKLbMkp-h6-0Mk3kyn5M4n-wYVd5y0eBltP4FOpyBbfPsfIfiIKUj0pbCMaN4BeTEisiRmnE9_my8kGuA9qSuvEELQFQi9m8GRfnxlITNFv7qNKy4EiUpt9rTgT2ueXPr1_mmV8Ktp_DxUl2kIMJQo3LDX5JpUJuzaT9Q9bvLWrg=w555-h341" width="555" /></a></div><br />5) The disk should be exposed in the Windows Computer management<p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh259x4GExcoZUKHtWQ0IIoJrRUqOe1UuWqivJjkQ47XSa_QNebnOzO6kCV5HmytLkHctkPJezaPFnHZnietNWTo2gkznmwjOeXVDno0dVgIvtkXTzCB9szz41yU0-VrzjS-frycscyY01LzZrd5Rd376VKiYW_QqVdpenk_Cnk_R_DfpitrBzrdWw0YQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="760" data-original-width="988" height="413" src="https://blogger.googleusercontent.com/img/a/AVvXsEh259x4GExcoZUKHtWQ0IIoJrRUqOe1UuWqivJjkQ47XSa_QNebnOzO6kCV5HmytLkHctkPJezaPFnHZnietNWTo2gkznmwjOeXVDno0dVgIvtkXTzCB9szz41yU0-VrzjS-frycscyY01LzZrd5Rd376VKiYW_QqVdpenk_Cnk_R_DfpitrBzrdWw0YQ=w537-h413" width="537" /></a></div><br />There it can be made Online, Added with labels and letters, and formatted <div><br /><p></p><br /><p></p></div>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-25596810678014512932023-02-05T00:21:00.008-08:002023-02-05T06:08:30.357-08:00Cloud Academy<p> </p><p>you should try</p><p><a data-rich-text-format-boundary="true" href="https://cloudacademy.com/promos/referral/?inviter=Ruslan&referral=uc32ITlrQeerH-EjFGGsKQ" style="background-color: white; box-shadow: currentcolor 0px 1px 0px 0px; color: #007acc; font-family: Merriweather, Georgia, serif; font-size: 16px; outline: 0px; text-decoration-line: none; transition: none 0s ease 0s; white-space: pre-wrap;">https://cloudacademy.com/promos/referral/?inviter=Ruslan&referral=uc32ITlrQeerH-EjFGGsK</a></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-42363255480142016062023-02-04T12:08:00.001-08:002023-02-04T12:08:13.483-08:00Set a range of ports in iptables<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">how to list a range of ports in iptables config file you can read there?</span></p><span id="more-1193" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">it is pretty easy to get how to:</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">was a simple task to a forward range of ports for the File Zilla FTP Server on a virtual server that is running in Proxmox</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">to avoid crucial listing of full ports volume like this:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">-A INPUT -p tcp -m tcp — dport 20 -j ACCEPT-A INPUT -p tcp -m tcp — dport 21 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 20 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 21 -j ACCEPT-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:20-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:21</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">we can use listing in the range:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">-A INPUT -p tcp -m tcp — dport 20:21 -j ACCEPT-A INPUT -p tcp -m tcp — dport 45000:46000 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 20:21 -j ACCEPT-A FORWARD -d 192.168.1.101/32 -i enp4s0 -p tcp -m tcp — dport 45000:46000 -j ACCEPT-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 20:21 -j DNAT — to-destination 192.168.1.101:20–21-A PREROUTING -i enp4s0 -p tcp -m tcp — dport 45000:46000 -j DNAT — to-destination 192.168.1.101:45000–46000</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">then it could be applied and saved as rules:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~ # iptables-restore < iptables_rules_20200710_ftp_filezilla~ # iptables-save > iptables_rules_20200710_ftp_filezilla</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">exactly for File Zilla FTP Server, it should be set the same range of ports for passive mode</p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-36620528975291464902023-01-09T12:11:00.001-08:002023-02-04T12:12:49.658-08:00Git delete local multi branches<p> <span style="background-color: #d1d1d1; color: #1a1a1a; font-family: inherit; font-size: inherit; white-space: pre-wrap;">git branch | grep "<pattern>" | xargs git branch -D</span></p><span id="more-1148" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Where are:</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">1st part gets all local branches</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">2nd part selects by pattern only</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">3rd part deletes selected branches</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Links:</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><a href="https://dev.to/lauragift21/git-delete-multiple-branches-5537" style="background-color: transparent; box-shadow: currentcolor 0px 1px 0px 0px; box-sizing: inherit; color: #007acc; text-decoration-line: none;">https://dev.to/lauragift21/git-delete-multiple-branches-5537</a><br style="box-sizing: inherit;" /><a href="https://www.codegrepper.com/code-examples/shell/git+delete+multiple+branches+local" style="background-color: transparent; box-shadow: currentcolor 0px 1px 0px 0px; box-sizing: inherit; color: #007acc; text-decoration-line: none;">https://www.codegrepper.com/code-examples/shell/git+delete+multiple+branches+local</a><br style="box-sizing: inherit;" /><a href="https://git-scm.com/docs/gittutorial" style="background-color: transparent; box-shadow: currentcolor 0px 1px 0px 0px; box-sizing: inherit; color: #007acc; text-decoration-line: none;">https://git-scm.com/docs/gittutorial</a></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-58154019719009291292022-12-11T01:51:00.001-08:002023-02-05T01:54:09.547-08:00Zabbix server: Utilization of poller processes over 75%<p> To solve this issue needs to edit the parameters in the:</p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">/et/zabbiz/zabbix-server.conf</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">StartPollers=100</span></p><p><span id="docs-internal-guid-e895693d-7fff-70fa-d72b-83f437ab6bd2"></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">StartPollersUnreachable=5</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Links:</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><span id="docs-internal-guid-ddbdd9d1-7fff-6ba5-37ab-6dc62d3b06f7"><a href="https://www.sipmann.com/zabbix-poller-processes-more-than-75.html#.Y726-BVByMo" style="text-decoration-line: none;"><span style="color: #1155cc; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline;">https://www.sipmann.com/zabbix-poller-processes-more-than-75.html#.Y726-BVByMo</span></a></span></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"><br /></span></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-50016267588550692042022-10-22T03:42:00.003-07:002023-02-04T03:55:51.877-08:00NAS connection<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">To Map the network drive device:</span></p><p><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"><br /></span></p><p><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEigzP_7HhA1Osk-ItCajijRgZlMXFohjJKk-NcVpLVXCMUwQGRGPsl99bg6dltlmC5mybU44JG7Sg_JEJzIru7SRuETCDQKKQQHY_8zHfI_6at6NGtnhFeg_dLMXsRoIp3E8MqBezOyTz8LQGyqKu8KtxPdyFoJSg5_MbaFQXCZyQLq3wuH3_ShU-xrbg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="319" data-original-width="416" height="440" src="https://blogger.googleusercontent.com/img/a/AVvXsEigzP_7HhA1Osk-ItCajijRgZlMXFohjJKk-NcVpLVXCMUwQGRGPsl99bg6dltlmC5mybU44JG7Sg_JEJzIru7SRuETCDQKKQQHY_8zHfI_6at6NGtnhFeg_dLMXsRoIp3E8MqBezOyTz8LQGyqKu8KtxPdyFoJSg5_MbaFQXCZyQLq3wuH3_ShU-xrbg=w574-h440" width="574" /></a></div><br /><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">Select options:</span><br style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;" /><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">The </span><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;">suffix </span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">in the path (Folder:) should be as a login </span><p></p><p><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">\\uXXXXXX.your-storagebox.de\</span><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;">uXXXXXX-sub1</span></p><p><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;"></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgl2Dmt4k9XnH-ivA-azTETbp7u8UCnJb_Duvu7AqzlYFZMK3yN4xwVVfuj5cyuJd2_tlFMQ6tkJOhDUQdKzK5o0H1mq91PYryA4GiSR1kMQ7n9shUS87B-gghHv31KHaSkG5ZL3zI_-Ev-EbMgiKfUFaIJvEIWadlPBrXW8gtIWTXtDfr1Vs0j177IKw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="449" data-original-width="615" height="365" src="https://blogger.googleusercontent.com/img/a/AVvXsEgl2Dmt4k9XnH-ivA-azTETbp7u8UCnJb_Duvu7AqzlYFZMK3yN4xwVVfuj5cyuJd2_tlFMQ6tkJOhDUQdKzK5o0H1mq91PYryA4GiSR1kMQ7n9shUS87B-gghHv31KHaSkG5ZL3zI_-Ev-EbMgiKfUFaIJvEIWadlPBrXW8gtIWTXtDfr1Vs0j177IKw=w499-h365" width="499" /></a></div><br /><span style="font-weight: 400;">1 – Select disk (Drive)</span><br style="box-sizing: inherit; font-weight: 400;" /><span style="font-weight: 400;">2 – Enter the</span><span style="box-sizing: inherit;"> path to the NAS</span><span style="font-weight: 400;"> destination</span><br style="box-sizing: inherit; font-weight: 400;" /><span style="font-weight: 400;">3 – Reconnect if it needs to be accessible automatically</span><br style="box-sizing: inherit; font-weight: 400;" /><span style="font-weight: 400;">4 – Create and save credentials to avoid entering them again</span><p></p><p><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;"><span style="font-weight: 400;"><br /></span></span></p><p><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;"><span style="font-weight: 400;">Enter </span><span style="box-sizing: inherit;">Login </span><span style="font-weight: 400;">and </span><span style="box-sizing: inherit;">Password</span></span></p><p><span style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; font-weight: 700;"><span style="box-sizing: inherit;"></span></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEg1uRMX4PDQE73QYxPFMXkJXbO3KwVyb60bLayChZ9GNCzi5hKGKbI7CjNLnMwLgYEitssL5y4jEGXN8HPXZkwGw34fPNgzJr2HL0-kKBz1-U20dxcMuCsmXiN9f4BL2QduhkFGD-9I-YUZ_ont_NfqXX2CqL3ABKvoqry7NQT-qRorQg80jIDZCUuHjA" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="392" data-original-width="454" height="463" src="https://blogger.googleusercontent.com/img/a/AVvXsEg1uRMX4PDQE73QYxPFMXkJXbO3KwVyb60bLayChZ9GNCzi5hKGKbI7CjNLnMwLgYEitssL5y4jEGXN8HPXZkwGw34fPNgzJr2HL0-kKBz1-U20dxcMuCsmXiN9f4BL2QduhkFGD-9I-YUZ_ont_NfqXX2CqL3ABKvoqry7NQT-qRorQg80jIDZCUuHjA=w537-h463" width="537" /></a></div><br /><br /><p></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-46606272413928611552022-09-20T04:03:00.001-07:002023-02-04T04:23:19.239-08:00Create media with Windows 10<p> How to create Windows 10 boot USB flash drive </p><p>Insert a flash drive of at least 8 GB or large to avoid this warning during the installation drive preparation:</p><p></p><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/AVvXsEjAlk5k8DBPOTe2QuEW9jH3tvrpmHu3i6VWosuRHnAh7c2UNVe6rS0ONQe0a7akPEB_ErAoKI8nQedgB3YNsgVG6JJr_UUQW_kZs63f-Ut0SWM6gtPBYqDd9oQXXhIWwT0Z7UU4RxegbvlUGohreNB4tPooUCSZVL-qrx08oxfUvemeCv_tLvTk54b1NQ/s519/image-7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="205" data-original-width="519" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAlk5k8DBPOTe2QuEW9jH3tvrpmHu3i6VWosuRHnAh7c2UNVe6rS0ONQe0a7akPEB_ErAoKI8nQedgB3YNsgVG6JJr_UUQW_kZs63f-Ut0SWM6gtPBYqDd9oQXXhIWwT0Z7UU4RxegbvlUGohreNB4tPooUCSZVL-qrx08oxfUvemeCv_tLvTk54b1NQ/w488-h192/image-7.png" width="488" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><div style="text-align: left;">Download the tool from</div><div style="text-align: left;"><a href="https://www.microsoft.com/en-us/software-download/windows10"></a><a href="https://www.microsoft.com/en-us/software-download/windows10">https://www.microsoft.com/en-us/software-download/windows10</a></div><div style="text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiACHZiBhHkPA1EyguVsSBCQGzU4KmP8wsdaLIiZ5OL6bNbg2G5GxXVdlyoAasWYrknujPBOjRgMap3h3g9hX-iOsEc4KgSa6CIUS9TEgLyEiQbDYGbBF6Ht-jJpa9900RTcyWcDxpo2rsyrEkgHc232BzB3kdxG5CVk9fjis-8J0LOi-G-5YEAtGuLzg/s1024/image-10-1024x636.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="636" data-original-width="1024" height="307" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiACHZiBhHkPA1EyguVsSBCQGzU4KmP8wsdaLIiZ5OL6bNbg2G5GxXVdlyoAasWYrknujPBOjRgMap3h3g9hX-iOsEc4KgSa6CIUS9TEgLyEiQbDYGbBF6Ht-jJpa9900RTcyWcDxpo2rsyrEkgHc232BzB3kdxG5CVk9fjis-8J0LOi-G-5YEAtGuLzg/w494-h307/image-10-1024x636.png" width="494" /></a></div><br /><div style="text-align: left;"><br /></div></div>Launch the <strong>MediaCreationTool21H2.exe</strong><p></p><p><b></b></p><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjStcjeF01zfzb-NRd9hsA3m3xbsaA2Ff-85mLw2wVjZmuHj5g2DlHe06fTXsX9OjHhWxotVrLcCNRM0_zIYXBKQYeTEhVFpW7N09b3xhUXo3PIJI6V-4sw1PsThksiiIa6_WhgFQ9Zeeim5-bQmImpxYpJfngGcXm3Zp8bVh84sQ2ytLzZv622xnQaZw/s172/image.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="154" data-original-width="172" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjStcjeF01zfzb-NRd9hsA3m3xbsaA2Ff-85mLw2wVjZmuHj5g2DlHe06fTXsX9OjHhWxotVrLcCNRM0_zIYXBKQYeTEhVFpW7N09b3xhUXo3PIJI6V-4sw1PsThksiiIa6_WhgFQ9Zeeim5-bQmImpxYpJfngGcXm3Zp8bVh84sQ2ytLzZv622xnQaZw/s1600/image.png" width="172" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Accept all warnings till getting a new window:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-sAaq1PD50d3ADmso6hty8ZhrHV5nMgTvojHrQ8027pkpwZIyGQVoFATpvl0m6UFz4_v4VG9W3B1XiUe4Cqed_9ERQQL6UNbJ2H-L7S07TXmLwFJStpTsT6fRGYwYXT95Tv1xpS9Czkf04QYDJgueugIIOX4-XY-4EBjJ8CgDgk5eO--A-HtRD9AyuQ/s803/image-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="707" data-original-width="803" height="394" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-sAaq1PD50d3ADmso6hty8ZhrHV5nMgTvojHrQ8027pkpwZIyGQVoFATpvl0m6UFz4_v4VG9W3B1XiUe4Cqed_9ERQQL6UNbJ2H-L7S07TXmLwFJStpTsT6fRGYwYXT95Tv1xpS9Czkf04QYDJgueugIIOX4-XY-4EBjJ8CgDgk5eO--A-HtRD9AyuQ/w447-h394/image-1.png" width="447" /></a></div><br /><div class="separator" style="clear: both; text-align: left;"><br /></div><br />Accept it either:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMDSHscmCd8jBEy0vqCzKcOyat_Zm1Y_wUWoDxV7v_W3OKKg35yhqeUACPcNCaxC0TubW1BaSeWMR1un3wkwdgrKA7GxKU65jU3prVvx67b_GttCtvX3zYTKRgsaOq5175ly3hw3dwFSwrSoOQMkvwvSx_okMaC5qp-0WNJr1A5pw72mClkYPyvIlXgQ/s801/image-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="711" data-original-width="801" height="391" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMDSHscmCd8jBEy0vqCzKcOyat_Zm1Y_wUWoDxV7v_W3OKKg35yhqeUACPcNCaxC0TubW1BaSeWMR1un3wkwdgrKA7GxKU65jU3prVvx67b_GttCtvX3zYTKRgsaOq5175ly3hw3dwFSwrSoOQMkvwvSx_okMaC5qp-0WNJr1A5pw72mClkYPyvIlXgQ/w440-h391/image-2.png" width="440" /></a></div><br /><div class="separator" style="clear: both; text-align: left;"><br /></div>Select "Create installation media" and Next:<div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu79gCMdc1i9VPxLZhTZuQZZKjwR62tY78h_09NLIrtAYQmkP1XwtHO7DHzl_6fenx6pkiEWO-TD6lrHg0hu9Cx8NbVdlLEB893ZxYweg-Q_O4jrd5YcdqJPgCpj0bWoZKG-K4Ympem50kljmNSiHRVrC04u9sojkKXIZ9KhgMTt6C1sU_vykDpT-SLg/s798/image-3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="713" data-original-width="798" height="399" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu79gCMdc1i9VPxLZhTZuQZZKjwR62tY78h_09NLIrtAYQmkP1XwtHO7DHzl_6fenx6pkiEWO-TD6lrHg0hu9Cx8NbVdlLEB893ZxYweg-Q_O4jrd5YcdqJPgCpj0bWoZKG-K4Ympem50kljmNSiHRVrC04u9sojkKXIZ9KhgMTt6C1sU_vykDpT-SLg/w446-h399/image-3.png" width="446" /></a></div><br /><div>Unpickup "Use the recommended options for this PC" to be able to select need options:</div><div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPR8lUkY2pmbMA7CmgEEcw-nw5dGy7tt_35wB3KjK_bPxRyPighbuCJl9jycExj6Z5hL6UsABu-ZN8-k-FE2Sh1uEHsRg1aXo1SSNbvb3WBkhxOkIUl4LO99IZH_nmMzU3JhfqqTdRFcKhlZR9znzySyAHn4JYZVXTvqlU3xUUn2gFV4_DjT7K6zGeGg/s797/image-4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="710" data-original-width="797" height="407" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPR8lUkY2pmbMA7CmgEEcw-nw5dGy7tt_35wB3KjK_bPxRyPighbuCJl9jycExj6Z5hL6UsABu-ZN8-k-FE2Sh1uEHsRg1aXo1SSNbvb3WBkhxOkIUl4LO99IZH_nmMzU3JhfqqTdRFcKhlZR9znzySyAHn4JYZVXTvqlU3xUUn2gFV4_DjT7K6zGeGg/w457-h407/image-4.png" width="457" /></a></div><div class="separator" style="clear: both; text-align: left;">Choose the media driver:</div><br /><div><br /><br /><br /><p></p></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQajIQBzmbr2q1XOt3PspLMPKddLfZYqENZwgc18mELNa5qzfh2VFq5uVOMJi7iDkfTY6bH_r9iafmG5jWQhp7cwp9tgOujQQuhsMg16hFFBU95XVixgSYpqaIFvXnZKWXTBisLKBgKuio_tHNc6Cog9Roe4_s7Jdj0tnf5c-R03LEMivXeM0AlgjoyQ/s798/image-5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="708" data-original-width="798" height="416" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQajIQBzmbr2q1XOt3PspLMPKddLfZYqENZwgc18mELNa5qzfh2VFq5uVOMJi7iDkfTY6bH_r9iafmG5jWQhp7cwp9tgOujQQuhsMg16hFFBU95XVixgSYpqaIFvXnZKWXTBisLKBgKuio_tHNc6Cog9Roe4_s7Jdj0tnf5c-R03LEMivXeM0AlgjoyQ/w469-h416/image-5.png" width="469" /></a></div><div class="separator" style="clear: both; text-align: left;">Select the available USB flash drive:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEGYc0MFC8c9csrV5i4ZnpTNW5-B3a329LS6R3i-lyK1jricl0M0O6CrcB_uLUxaKyAE4YcSuLM1suQuZasOAlTOXGdzconmcx6Y8BYXUj6wkYJfZABBvK510vxB2uTVaQqZMOZXUrrtTk9vM8tRRW5AhxfLeMG9e5BDHnCRmSjwQdB3tDX-qZrEZ1Jg/s1024/image-6-1024x672.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="672" data-original-width="1024" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEGYc0MFC8c9csrV5i4ZnpTNW5-B3a329LS6R3i-lyK1jricl0M0O6CrcB_uLUxaKyAE4YcSuLM1suQuZasOAlTOXGdzconmcx6Y8BYXUj6wkYJfZABBvK510vxB2uTVaQqZMOZXUrrtTk9vM8tRRW5AhxfLeMG9e5BDHnCRmSjwQdB3tDX-qZrEZ1Jg/w480-h315/image-6-1024x672.png" width="480" /></a></div><br /><div class="separator" style="clear: both; text-align: left;">The next button will start the Windows 10 image writing on flash media:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPxwuHHVGb4vvr6Q0LXAqvv4PSwu9WfjjRe5ojIrlqxoyk3dvvFRbDybWolKuWt08p9TOr6JiVgavM9StqN5P3jRmq87Itwe9uqPFr2mfVyEMziSFyFyKuCnumbuQjPW_LHP8uGMwl06aRp2xMfkTwyGQ3ljxoMrZbUKbAGtoRx7I3aBTnC-quGCDDWQ/s798/image-8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="707" data-original-width="798" height="430" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPxwuHHVGb4vvr6Q0LXAqvv4PSwu9WfjjRe5ojIrlqxoyk3dvvFRbDybWolKuWt08p9TOr6JiVgavM9StqN5P3jRmq87Itwe9uqPFr2mfVyEMziSFyFyKuCnumbuQjPW_LHP8uGMwl06aRp2xMfkTwyGQ3ljxoMrZbUKbAGtoRx7I3aBTnC-quGCDDWQ/w485-h430/image-8.png" width="485" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">Finish:</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt6lUcIXaXzeRjfIDeEbhyo3Zzd7WGGh_GcXOknI1yzK1PvbmQ3oBqOpifFRh_XK_of9Na5R7UQQiybz7VQd1o3Xa0QH6y1CHvD_gbk_9BCxEKFbfGCedKbqzek6Zz0LLaJDpzmlFVMoFmdUgXhk1A_mOdFwescfiXKHuxo3Opx5xv1XIgxxqtjSUHwQ/s795/image-9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="708" data-original-width="795" height="435" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt6lUcIXaXzeRjfIDeEbhyo3Zzd7WGGh_GcXOknI1yzK1PvbmQ3oBqOpifFRh_XK_of9Na5R7UQQiybz7VQd1o3Xa0QH6y1CHvD_gbk_9BCxEKFbfGCedKbqzek6Zz0LLaJDpzmlFVMoFmdUgXhk1A_mOdFwescfiXKHuxo3Opx5xv1XIgxxqtjSUHwQ/w488-h435/image-9.png" width="488" /></a></div><br /><div class="separator" style="clear: both; text-align: left;">Insert the ready-to-install USB flash drive and boot from it</div><br /><div class="separator" style="clear: both; text-align: left;"><br /></div><br />Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-37070249320021757102022-09-04T03:59:00.001-07:002023-02-04T04:01:32.211-08:00WordPress Contact Form 7 to Telegram bot<p>1. create a telegram bot <a href="https://core.telegram.org/bots#3-how-do-i-create-a-bot ">https://core.telegram.org/bots#3-how-do-i-create-a-bot</a></p><p>2. install the Contact Form 7 plugin </p><p>3. install Contact Form 7 + Telegram plugin </p><p>4. configure Contact Form 7 + Telegram plugin <br /><a href="https://wordpress.org/plugins/cf7-telegram/ ">https://wordpress.org/plugins/cf7-telegram/ </a><br /><a href="https://www.pluginforthat.com/plugin/cf7-telegram/ ">https://www.pluginforthat.com/plugin/cf7-telegram/ </a></p><p>5. activate the telegram bot </p><p><!-- wp:paragraph -->
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<!-- /wp:paragraph --></p><p>6. test messages delivery</p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-31489939759272549342022-08-17T04:51:00.002-07:002023-02-04T05:40:11.210-08:00biggest file in linux command<p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">here are a few Linux console commands (bash commands) to help you to find some biggest files:</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">use the "find"</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">find . -type f -size +50M</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">find – is the command obviously <img alt="🙂" class="emoji" draggable="false" role="img" src="https://s.w.org/images/core/emoji/14.0.0/svg/1f642.svg" style="background: none; border: none; box-shadow: none; box-sizing: inherit; display: inline; height: 1em; margin: 0px 0.07em; max-width: 100%; padding: 0px; vertical-align: -0.1em; width: 1em;" /><br style="box-sizing: inherit;" />. – where to start the search<br style="box-sizing: inherit;" />-type – a type of what to check<br style="box-sizing: inherit;" />-size – Select files with a size below or an equal size<br style="box-sizing: inherit;" /></p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjd2n4w8RqcPZQtrPYzsLymCsabrIGbeQMgIDvtg5SMxA2qdffS-Eusxg8SlZzP7KcewF28bnJjRAbhYBVelNs3v3PRfuVxk9xWHJBzhA4J_4DvG3k2cKHQFRMhvsGX01tFFbZNLVltpED-wfK7X0pPPMRMpIFimvbvc60FFAoZy3VrSVwxWajt43zOcQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="246" data-original-width="925" height="134" src="https://blogger.googleusercontent.com/img/a/AVvXsEjd2n4w8RqcPZQtrPYzsLymCsabrIGbeQMgIDvtg5SMxA2qdffS-Eusxg8SlZzP7KcewF28bnJjRAbhYBVelNs3v3PRfuVxk9xWHJBzhA4J_4DvG3k2cKHQFRMhvsGX01tFFbZNLVltpED-wfK7X0pPPMRMpIFimvbvc60FFAoZy3VrSVwxWajt43zOcQ=w504-h134" width="504" /></a></div><br /><br /><p></p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">use the "du" and "sort"</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><span id="docs-internal-guid-27875da3-7fff-7311-0fb3-a435eba67490"><span style="background-color: #f4f5f7; color: #172b4d; font-family: "Roboto Mono", monospace; font-size: 10.5pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">du -h --max-depth=1 | sort -hr</span></span></p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><span><span style="background-color: #f4f5f7; color: #172b4d; font-family: "Roboto Mono", monospace; font-size: 10.5pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"></span></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhRq6gj-v7oPAYknIwYVkXh6e1mWQapf0iZpfCIlWo8B9Jz7U2kQ8ibT1Wb2kiALaIHX8la8PbKsQkhb418e1skr75IA-co8rKJ_UJsJ6OM3H3UpuHbJqrGmC9aM3NNDuyEDvFjp5A8kHYPjnANjQkNPnNJNofKTEUYnooBHcu8Dyh6ckatZfAV8Vxg_Q" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="344" data-original-width="768" height="218" src="https://blogger.googleusercontent.com/img/a/AVvXsEhRq6gj-v7oPAYknIwYVkXh6e1mWQapf0iZpfCIlWo8B9Jz7U2kQ8ibT1Wb2kiALaIHX8la8PbKsQkhb418e1skr75IA-co8rKJ_UJsJ6OM3H3UpuHbJqrGmC9aM3NNDuyEDvFjp5A8kHYPjnANjQkNPnNJNofKTEUYnooBHcu8Dyh6ckatZfAV8Vxg_Q=w488-h218" width="488" /></a></div><br /><br /><p></p><p><span id="more-1236" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span></p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">links:<br style="box-sizing: inherit;" />https://www.devopsroles.com/find-large-files-linux/<br style="box-sizing: inherit;" />https://www.tomshardware.com/how-to/find-large-files-linux<br style="box-sizing: inherit;" />https://www.cyberciti.biz/faq/linux-find-largest-file-in-directory-recursively-using-find-du/</p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-76563730391860269682022-08-15T12:14:00.001-07:002023-02-04T12:16:45.898-08:00pCloud<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">I’d like to invite you to join the cloud storage </span><a href="https://u.pcloud.com/#page=register&invite=MtES7Zq0kBq7" style="box-shadow: currentcolor 0px 1px 0px 0px; box-sizing: inherit; color: #007acc; font-family: Merriweather, Georgia, serif; font-size: 16px; text-decoration-line: none;">https://u.pcloud.com/#page=register&invite=MtES7Zq0kBq7</a></p><span id="more-1231" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Seems like, it’s a quite useful service with is able to cover your needs to share files, media, and backups between pCloud accounts and external access.</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">The main reason why I’ve chosen this service is its ability to store what I need there in unlimited time.</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">And the ability to sync your data from a smartphone or desktop is the perfect tool to keep your data backed up</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"></p><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><br /></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-61988528258555473322022-08-08T12:01:00.001-07:002023-02-04T12:03:07.049-08:00install Zabbix agent on Centos 8<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">get one of the Zabbix agent version</span></p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# wget https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm</code></pre><span id="more-1212" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">add Zabbix repository to be able to install</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
Retrieving https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
warning: /var/tmp/rpm-tmp.Ankajf: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:zabbix-release-5.0-1.el8 ################################# [ 50%]
Cleaning up / removing...
2:zabbix-release-5.0-1.el5 ################################# [100%]
~]# dnf clean all</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">install the Zabbix agent package</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# dnf install zabbix-agent</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">start the Zabbix agent service and start it in boot</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# systemctl enable --now zabbix-agent
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /usr/lib/systemd/system/zabbix-agent.service.
[root@cabinet ~]# systemctl status zabbix-agent
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2022-07-24 10:54:58 EEST; 19s ago
Process: 2920207 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 2920209 (zabbix_agentd)
Tasks: 6 (limit: 49468)
Memory: 3.8M
</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">install net-tool to run the netstat</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# yum install net-tools</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">check listening ports</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
...
tcp 0 0 10.10.10.102:1500 0.0.0.0:* LISTEN ...
</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">check firewall state:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# firewall-cmd --state
not running</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">if it’s running then stop and disable the firewall<br style="box-sizing: inherit;" />! this option makes sense due to using the target host behind the other firewall or gateway, otherwise to tune the firewall in the proper way</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# systemctl stop firewalld
~]# systemctl disable firewalld</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><br style="box-sizing: inherit;" />if it’s not running then check access to port 10050 from another host:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~ # telnet 10.10.10.102 10050
Trying 10.10.10.102...
telnet: Unable to connect to remote host: No route to host</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">if it’s blocked then check iptables on the target host:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# iptables -S
...
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
...</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">add the open 10050 port rule to the iptables by command</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;"> ~]# iptables -I INPUT 5 -p tcp -m tcp --dport 10050 -j ACCEPT</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">check the rule again</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~]# iptables -S | grep 10050
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">and check the access from another host by telnet</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">~ # telnet 10.10.10.102 10050
Trying 10.10.10.102...
Connected to 10.10.10.102.
Escape character is '^]'.
Connection closed by foreign host.</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">return to the target host and save current iptables settings to backup iptables file and to the actual iptables config file (/etc/sysconfig/iptables)</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;"># save actual working settings to backup file
~]# iptables-save > iptables_rules_20220724
# replace the actual iptables config file with actual working settings
~]# cp iptables_rules_20220724 /etc/sysconfig/iptables
# check expected record
~]# cat /etc/sysconfig/iptables | grep 10050
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT
# or the rule could be added inside the /etc/sysconfig/iptables
# -A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT
</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;"><em style="box-sizing: inherit;">References links:</em><br style="box-sizing: inherit;" />https://serverspace.io/support/help/install-configure-zabbix-agent-centos-8/<br style="box-sizing: inherit;" />https://linuxize.com/post/how-to-configure-and-manage-firewall-on-centos-8/<br style="box-sizing: inherit;" />https://linuxhint.com/disable-firewall-centos-8/<br style="box-sizing: inherit;" />https://forums.centos.org/viewtopic.php?t=9059<br style="box-sizing: inherit;" />https://upcloud.com/resources/tutorials/configure-iptables-centos</p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-70552192868701812432022-07-22T12:13:00.001-07:002023-02-04T12:14:11.175-08:00Fix a “WARNING/ERROR in budgets, maximum exceeded for initial” in Angular<p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">The warning or an error can appear and be related to the maximum budgets parameter:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">Error: bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 22.68 kB with a total of 1.02 MB.</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Should be tuned budgets module in the angular.json file of the Angular project</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]</code></pre><p><span id="more-1197" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span></p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">"budgets": [
{
"type": "initial",
"maximumWarning": "<span style="box-sizing: inherit; font-weight: 700;">2mb</span>",
"maximumError": "<span style="box-sizing: inherit; font-weight: 700;">5mb</span>"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]</code></pre>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-74404166219936281272022-06-13T11:59:00.001-07:002023-02-04T12:01:14.954-08:00Update Bitrix24 on the Remote Desktop<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">Check the running Bitrix24 on the tray</span></p><figure class="wp-block-image size-full" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1em;"><img alt="" class="wp-image-1219 jetpack-lazy-image jetpack-lazy-image--handled" data-lazy-loaded="1" data-recalc-dims="1" decoding="async" height="105" loading="eager" src="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image.png?resize=235%2C105&ssl=1" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom;" width="235" /></figure><span id="more-1218" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Click the right mouse button on the running Bitrix24 icon in the tray:</p><figure class="wp-block-image size-full" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1em;"><img alt="" class="wp-image-1220 jetpack-lazy-image jetpack-lazy-image--handled" data-lazy-loaded="1" data-recalc-dims="1" decoding="async" height="722" loading="eager" sizes="(max-width: 482px) 85vw, 482px" src="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-1.png?resize=482%2C722&ssl=1" srcset="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-1.png?w=482&ssl=1 482w, https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-1.png?resize=200%2C300&ssl=1 200w" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom;" width="482" /></figure><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Open tree dots and click on “About” and Check for Updates:</p><figure class="wp-block-image size-full" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1em;"><img alt="" class="wp-image-1221 jetpack-lazy-image jetpack-lazy-image--handled" data-lazy-loaded="1" data-recalc-dims="1" decoding="async" height="634" loading="eager" sizes="(max-width: 401px) 85vw, 401px" src="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-2.png?resize=401%2C634&ssl=1" srcset="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-2.png?w=401&ssl=1 401w, https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-2.png?resize=190%2C300&ssl=1 190w" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom;" width="401" /></figure><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">if the installed version is the latest then the program exposes this:</p><figure class="wp-block-image size-full" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1em;"><img alt="" class="wp-image-1222 jetpack-lazy-image jetpack-lazy-image--handled" data-lazy-loaded="1" data-recalc-dims="1" decoding="async" height="205" loading="eager" sizes="(max-width: 373px) 85vw, 373px" src="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-3.png?resize=373%2C205&ssl=1" srcset="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-3.png?w=373&ssl=1 373w, https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-3.png?resize=300%2C165&ssl=1 300w" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom;" width="373" /></figure><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">in otherwise case, it proposes to download the new version.</p><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Before installation<span style="box-sizing: inherit; font-weight: 700;"> log off</span> all users on the server and <span style="box-sizing: inherit; font-weight: 700;">Exit in the Bitrix24</span> of your running session on the server</p><figure class="wp-block-image size-full" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1em;"><img alt="" class="wp-image-1223 jetpack-lazy-image jetpack-lazy-image--handled" data-lazy-loaded="1" data-recalc-dims="1" decoding="async" height="186" loading="eager" sizes="(max-width: 478px) 85vw, 478px" src="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-4.png?resize=478%2C186&ssl=1" srcset="https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-4.png?w=478&ssl=1 478w, https://i0.wp.com/dzhumaiev.com/wp-content/uploads/2022/07/image-4.png?resize=300%2C117&ssl=1 300w" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom;" width="478" /></figure><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">After installation recheck the current version within “About”</p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-12326148147969708272022-05-18T12:03:00.001-07:002023-02-04T12:06:43.328-08:00Last users’ login data with PowerShell<p><br /></p><div class="entry-content" style="background-color: white; border-color: rgb(209, 209, 209); box-sizing: inherit; color: #1a1a1a; float: right; font-family: Merriweather, Georgia, serif; font-size: 16px; margin-left: 0px; margin-right: 0px; width: 600px;"><pre class="wp-block-code" style="border-radius: 4px; border: 0px; box-sizing: border-box; font-family: Inconsolata, monospace; font-size: 1rem; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">Get-ADUser -Identity <span style="box-sizing: inherit; font-weight: 700;">username </span>-Properties "LastLogonDate"</code></pre><span id="more-1195" style="box-sizing: inherit;"></span><p style="box-sizing: inherit; margin: 0px 0px 1.75em;"><em style="box-sizing: inherit;">output</em>:</p><pre class="wp-block-code" style="border-radius: 4px; border: 0px; box-sizing: border-box; font-family: Inconsolata, monospace; font-size: 1rem; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">DistinguishedName : CN=<em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">SomeName</span></em>,CN=<em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">SomeGroup</span></em>,DC=<em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">DomainName</span></em>,DC=local
Enabled : True
GivenName : <em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">AccountName</span></em>
LastLogonDate : 7/18/2022 7:48:24 PM
Name : <em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">AccountName</span></em>
ObjectClass : user
ObjectGUID : <em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">2d348557-ff9b-4452-8f3b-96e820df570s</span></em>
SamAccountName : <em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">AccountName</span></em>
SID : S-1-5-21-453637392-373859473-1311905769-2573
Surname :
UserPrincipalName : <em style="box-sizing: inherit;">AccountName</em>@<em style="box-sizing: inherit;">DomainName</em>.local</code></pre><p style="box-sizing: inherit; margin: 0px 0px 1.75em;">or it is the PowerShell command with filter:</p><pre class="wp-block-code" style="border-radius: 4px; border: 0px; box-sizing: border-box; font-family: Inconsolata, monospace; font-size: 1rem; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">Get-ADUser -Identity <span style="box-sizing: inherit; font-weight: 700;">username </span>-Properties LastLogon | Select Name, @{Name='LastLogon';Expression={[DateTime]::FromFileTime($_.LastLogon)}}</code></pre><p style="box-sizing: inherit; margin: 0px 0px 1.75em;"><em style="box-sizing: inherit;">output</em>:</p><pre class="wp-block-code" style="border-radius: 4px; border: 0px; box-sizing: border-box; font-family: Inconsolata, monospace; font-size: 1rem; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">Name LastLogon
---- ---------
<em style="box-sizing: inherit;"><span style="box-sizing: inherit; font-weight: 700;">AccountName</span></em> 7/18/2022 8:51:00 PM</code></pre></div>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-49316221033101307052022-04-28T12:08:00.001-07:002023-02-04T12:09:12.878-08:00To check a Linux kernel<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">Quick tutor on how to get data about Linux kernel</span></p><span id="more-1178" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;"># uname -r
3.10.0–1062.el7.x86_64
# cat /proc/version
Linux version 3.10.0–1062.el7.x86_64 (mockbuild@x86–040.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5–39) (GCC) ) #1 SMP Thu Jul 18 20:25:13 UTC 2019
# hostnamectl | grep Kernel
Kernel: Linux 3.10.0–1062.el7.x86_64</code></pre>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-74763772547830893792022-04-12T05:42:00.001-07:002023-02-04T05:46:04.707-08:00screen Linux command<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">This command is useful in cases where you need to leave some command in the running state, our command history is significantly important</span></p><span id="more-1226" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Check if a system already running screens</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">screen -ls</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Create/run a new screen console:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">screen -S <screen-in-name></code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Re-attach the screen:</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">screen -r <screen-in-name></code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">Kill screen session</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">screen -XS <screen-in-name> quit</code></pre><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">useful links:<br style="box-sizing: inherit;" /><a href="https://quickref.me/screen" style="background-color: transparent; box-shadow: currentcolor 0px 1px 0px 0px; box-sizing: inherit; color: #007acc; text-decoration-line: none;">https://quickref.me/screen</a></p>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-57827447845639425292022-03-25T13:09:00.001-07:002023-02-04T12:10:34.297-08:00to check open ports in Linux<p><span style="background-color: #d1d1d1; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; white-space: pre-wrap;"># netstat -nlptu</span></p><p><span style="background-color: #d1d1d1; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; white-space: pre-wrap;"># ss -nlptu</span></p><p><span style="background-color: #d1d1d1; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; white-space: pre-wrap;"># nmap -sTU localhost</span></p><span style="background-color: #d1d1d1; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; white-space: pre-wrap;"># lsof -i</span>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-13446761542861031972021-12-13T12:10:00.001-08:002023-02-04T12:11:25.439-08:00add a user to the Docker group<p> <span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;">if you got an error like this:</span></p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">$ docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create: dial unix /var/run/docker.sock: connect: permission denied.</code></pre><span id="more-1174" style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><span style="background-color: white; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px;"></span><p style="background-color: white; box-sizing: inherit; color: #1a1a1a; font-family: Merriweather, Georgia, serif; font-size: 16px; margin: 0px 0px 1.75em;">add a user to the Docker group then</p><pre class="wp-block-code" style="background-color: white; border-radius: 4px; border: 0px; box-sizing: border-box; color: #1a1a1a; font-family: Inconsolata, monospace; font-size: 16px; line-height: 1.75; margin-bottom: 1.75em; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 0px; white-space: pre-wrap;"><code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">$ sudo usermod -a -G docker $USER
$ mkdir “$HOME”/.docker
$ sudo chmod g+rwx “$HOME/.docker” -R
$ sudo chmod 666 /var/run/docker.sock</code></pre>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0tag:blogger.com,1999:blog-5715330988073905759.post-79031761482864249922021-08-09T05:41:00.017-07:002023-02-05T05:55:09.160-08:00check threads or core in Linux<p> HW details on Linux (kernel):</p>
<code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;">echo "Threads/core: $(nproc --all)"<span> </span><span> </span><span> </span></code><br /><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEg5DCvLwZK9WCtBAFAso1BS5XE_aZaQI5k9qMLYMY1qiRM2JgBLb7MZuh9qjSuD5mklEM95_8gFn8Z8p7-Gmb66h1YiSGrAg2xhFtm4rhbCbFGrEe0U-zfCTRLMWtcdDqX11MCZOvpYWcmORHcXoGipWmjnYhE_zqWtS-XgEv4OyTVNBwnXhQi6Hfu3lQ" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="79" data-original-width="593" height="67" src="https://blogger.googleusercontent.com/img/a/AVvXsEg5DCvLwZK9WCtBAFAso1BS5XE_aZaQI5k9qMLYMY1qiRM2JgBLb7MZuh9qjSuD5mklEM95_8gFn8Z8p7-Gmb66h1YiSGrAg2xhFtm4rhbCbFGrEe0U-zfCTRLMWtcdDqX11MCZOvpYWcmORHcXoGipWmjnYhE_zqWtS-XgEv4OyTVNBwnXhQi6Hfu3lQ=w499-h67" width="499" /></a></div><br /><br /></div>
<code style="background-color: #d1d1d1; border: 1px solid lightgray; box-sizing: inherit; display: block; font-family: inherit; font-size: inherit; overflow-wrap: break-word; padding: 0.125em 0.25em;"> lscpu | grep CPU</code><br />
<div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgCNdgklKblUBzQ_VAMMwGARhGJE2g2FFquAGoiKbq2VDclJmGwPzF8LtXcYBb5J3_dUzFqsO9VaSwBpdgKxsGvn0RYyhUBBd7-zRms2XLoYxZGmhfwXuBWSGysPRBR5ZPRCx1ch_yW1CgczkBLwjKmVzVv1ocIIWsRJlvb71H5IVjyi1KJziIdoPUPcg" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="148" data-original-width="759" height="96" src="https://blogger.googleusercontent.com/img/a/AVvXsEgCNdgklKblUBzQ_VAMMwGARhGJE2g2FFquAGoiKbq2VDclJmGwPzF8LtXcYBb5J3_dUzFqsO9VaSwBpdgKxsGvn0RYyhUBBd7-zRms2XLoYxZGmhfwXuBWSGysPRBR5ZPRCx1ch_yW1CgczkBLwjKmVzVv1ocIIWsRJlvb71H5IVjyi1KJziIdoPUPcg=w497-h96" width="497" /></a></div><br /><br /></div>Ruslan Dzhumaievhttp://www.blogger.com/profile/12974647372699806087noreply@blogger.com0