<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OS on Blog - uTIcARdI</title><link>https://blog.gainskills.top/categories/os/</link><description>Recent content in OS on Blog - uTIcARdI</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 04 Aug 2025 18:51:32 +1200</lastBuildDate><atom:link href="https://blog.gainskills.top/categories/os/index.xml" rel="self" type="application/rss+xml"/><item><title>openwrt DDNS, acme commands</title><link>https://blog.gainskills.top/2021/09/15/openwrt-ddns-cert/</link><pubDate>Wed, 15 Sep 2021 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2021/09/15/openwrt-ddns-cert/</guid><description>&lt;p&gt;I&amp;rsquo;m using &lt;a href="https://openwrt.org/releases/21.02/notes-21.02.0"&gt;OpenWrt R21.8.6&lt;/a&gt; by compile it from &lt;a href="https://github.com/coolsnowwolf/lede"&gt;coolsnowwolf/lede&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="1-install-softwares-on-openwrt"&gt;1. Install softwares on Openwrt&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;acme&lt;/li&gt;
&lt;li&gt;ddns-scripts (This originally built when compile the firmware)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="2-ddns-configuration"&gt;2. DDNS configuration&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;DNS System&lt;/p&gt;
&lt;p&gt;Creating a dynamic DNS record on your DNS service provider (Mine is running over &lt;a href="https://dns.he.net/"&gt;dns.he.net&lt;/a&gt;)&lt;/p&gt;

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 &lt;div align="center"&gt;
 &lt;figure style="padding: 0.8rem; margin: 2rem 0; border: thin #c0c0c0 solid; border-radius: 10px; width: 257px; max-width: 88%; "&gt;
 &lt;a href="https://blog.gainskills.top/img/postimgs/2021/09/01-opt_hu_3faac8f37118d8bc.jpg" data-fancybox data-caption=Dynamic&amp;#32;DNS&amp;#32;A&amp;#32;Record&amp;#32;-&amp;#32;New &gt;
 &lt;img data-src="https://blog.gainskills.top/img/postimgs/2021/09/01-opt_hu_538f31170da74257.jpg" class="img-responsive img-lazyload" alt=Dynamic&amp;#32;DNS&amp;#32;A&amp;#32;Record&amp;#32;-&amp;#32;New style="height: 180px;"/&gt;
 &lt;/a&gt;
 &lt;figcaption class="text-capitalize"&gt;
 &lt;small&gt;Dynamic DNS A Record - New&lt;/small&gt;
 &lt;/figcaption&gt;
 &lt;/figure&gt;
 &lt;/div&gt;

&lt;p&gt;Generate password for DDNS&lt;/p&gt;</description></item><item><title>File name on windows</title><link>https://blog.gainskills.top/2019/03/01/file-name-on-winos/</link><pubDate>Fri, 01 Mar 2019 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2019/03/01/file-name-on-winos/</guid><description>&lt;h3 id="error-1"&gt;Error 1&lt;/h3&gt;
&lt;p&gt;Run a bat (ping.bat) to ping multiple IPs like this:
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bat" data-lang="bat"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;set&lt;/span&gt; testipa=x.x.x.x
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;echo&lt;/span&gt; Checking ping %testipa% (15 times), please don&amp;#39;t close current window
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;echo&lt;/span&gt; ping %testipa% (15 times) &amp;gt;&amp;gt; test.log
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ping %testipa% -w 500 -n 15 &amp;gt;&amp;gt; test.log&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;But got the following error:
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bat" data-lang="bat"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Checking ping x.x.x.x (15 times), please don&amp;#39;t close current window
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;The process cannot access the file because it is being used by another process.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;The process cannot access the file because it is being used by another process.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;</description></item><item><title>Monitor network connections based on Process</title><link>https://blog.gainskills.top/2018/09/21/monitor-network-connections-based-on-process/</link><pubDate>Fri, 21 Sep 2018 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2018/09/21/monitor-network-connections-based-on-process/</guid><description>&lt;p&gt;&lt;a href="https://www.wireshark.org/"&gt;Wireshark&lt;/a&gt; is widely used in packets capturing with flexible filters, but for some particular cases, end users care about the network sessions which established by a specific application.&lt;/p&gt;
&lt;p&gt;I will show how to check the sessions of ‘Microsoft OneNote’.&lt;/p&gt;
&lt;h3 id="windows"&gt;Windows&lt;/h3&gt;
&lt;p&gt;Microsoft provides its own product for packets capturing: &lt;a href="https://www.microsoft.com/en-us/download/4865"&gt;Microsoft Network Monitor&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Lunch ‘Microsoft Network Monitor’ before you run OneNote:&lt;/p&gt;

















&lt;div align="center"&gt;
 &lt;figure style="padding: 0.8rem; margin: 2rem 0; border: thin #c0c0c0 solid; border-radius: 10px; width: 430px; max-width: 88%; "&gt;
 &lt;a href="https://blog.gainskills.top/img/postimgs/2018/09/12-opt_hu_e0c726d9724957f7.png" data-fancybox data-caption=nm-1 &gt;
 &lt;img data-src="https://blog.gainskills.top/img/postimgs/2018/09/12-opt_hu_adb9115e9eadc7bf.png" class="img-responsive img-lazyload" alt=nm-1 style="height: 300px;"/&gt;
 &lt;/a&gt;
 &lt;figcaption class="text-capitalize"&gt;
 &lt;small&gt;nm-1&lt;/small&gt;
 &lt;/figcaption&gt;
 &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;You will see the processes from the left panel, All related network sessions will shown in the ‘frame summary’ window once OneNote lunched:&lt;/p&gt;</description></item><item><title>tc-How it work on different IPs</title><link>https://blog.gainskills.top/2017/09/22/tc-how-it-works-on-different-ips/</link><pubDate>Fri, 22 Sep 2017 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2017/09/22/tc-how-it-works-on-different-ips/</guid><description>&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;#!/bin/bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt;interface&lt;span style="color:#f92672"&gt;=&lt;/span&gt;eth0
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ip1&lt;span style="color:#f92672"&gt;=&lt;/span&gt;192.168.1.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ip2&lt;span style="color:#f92672"&gt;=&lt;/span&gt;172.16.1.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;delay1&lt;span style="color:#f92672"&gt;=&lt;/span&gt;100ms
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;delay2&lt;span style="color:#f92672"&gt;=&lt;/span&gt;200ms
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tc qdisc add dev $interface root handle 1: prio
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tc qdisc add dev $interface parent 1:1 netem delay $delay1 10ms 25%
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tc filter add dev $interface parent 1: protocol ip prio &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; u32 match ip dst $ip1 flowid 1:1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tc qdisc add dev $interface parent 1:2 netem delay $delay2 10ms 25%
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;tc filter add dev $interface parent 1: protocol ip prio &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; u32 match ip dst $ip2 flowid 1:2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Adding Realtek 8139 Driver to ESXi6</title><link>https://blog.gainskills.top/2016/11/29/adding-realtek-8139-driver-to-esxi6/</link><pubDate>Tue, 29 Nov 2016 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2016/11/29/adding-realtek-8139-driver-to-esxi6/</guid><description>&lt;h4 id="note-this-is-not-an-official-guide-backup-is-required-before-you-apply-the-driver"&gt;Note: This is not an official guide, backup is required before you apply the driver.&lt;/h4&gt;
&lt;p&gt;My Dell PC has two NICs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Intel I217-LM&lt;/li&gt;
&lt;li&gt;Realtek RTl-8139&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;and #2 Realtek 8139 is not supported by VMware EXSi.&lt;/p&gt;
&lt;p&gt;There are some guides about customizing EXSi installation ISO to support the NIC, but I’m trying to find a way to apply the driver without reinstall EXSi.&lt;/p&gt;
&lt;p&gt;Here is a page which contains many NIC drivers:
&lt;a href="https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages"&gt;https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Run Ansible on Windows</title><link>https://blog.gainskills.top/2016/11/30/run-ansible-on-windows/</link><pubDate>Tue, 29 Nov 2016 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2016/11/30/run-ansible-on-windows/</guid><description>&lt;p&gt;Background:&lt;/p&gt;
&lt;p&gt;Here is a topology about the environment for performance testing, let’s name the servers 1st:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1 windows server as the License/Workspace server&lt;/li&gt;
&lt;li&gt;5 windows servers as the Network Server&lt;/li&gt;
&lt;li&gt;5 windows servers as the Automation server&lt;/li&gt;
&lt;/ul&gt;















&lt;div align="center"&gt;
 &lt;figure style="padding: 0.8rem; margin: 2rem 0; border: thin #c0c0c0 solid; border-radius: 10px; width: 476px; max-width: 88%; "&gt;
 &lt;a href="https://blog.gainskills.top/img/postimgs/2016/11/5-opt_hu_fb9d39317589d7fd.png" data-fancybox data-caption=Topo &gt;
 &lt;img data-src="https://blog.gainskills.top/img/postimgs/2016/11/5-opt_hu_7bb2a51c31b7b3fe.png" class="img-responsive img-lazyload" alt=Topo style="height: 300px;"/&gt;
 &lt;/a&gt;
 &lt;figcaption class="text-capitalize"&gt;
 &lt;small&gt;Topo&lt;/small&gt;
 &lt;/figcaption&gt;
 &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;It took us a lot of time to deploy the product and collect logs on all of these servers.&lt;/p&gt;</description></item><item><title>VSphere6, VCenter6 Installation</title><link>https://blog.gainskills.top/2016/01/08/vsphere6-vcenter6-installation/</link><pubDate>Fri, 08 Jan 2016 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2016/01/08/vsphere6-vcenter6-installation/</guid><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Crash happened when I install Vsphere on my PC&lt;/p&gt;
&lt;p&gt;Solution: Disable option &amp;ldquo;Limit Maximum CPUID&amp;rdquo; in Bios&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;VCenter appliance deployment&lt;/p&gt;
&lt;p&gt;Vmware doesn&amp;rsquo;t provide vcenter appliance in ova/ovf format anymore, follow the &lt;a href="http://www.vladan.fr/vmware-vcenter-6-0-u1-vcsa-how-to-install-configure/"&gt;instruction&lt;/a&gt; to deploy it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Inventory is empty in the VCenter webpage&lt;/p&gt;
&lt;p&gt;The most important thing: Don&amp;rsquo;t login vcenter by the account &amp;lsquo;root&amp;rsquo;, instead of it using SSO account. the account in the format: &amp;lsquo;administrator@domain-name&amp;rsquo;&lt;/p&gt;
&lt;p&gt;Also, Vmware has a KB about this issue:&lt;/p&gt;</description></item><item><title>Open LDAP and SSH Public key</title><link>https://blog.gainskills.top/2013/11/08/openldap-ssh-public-key/</link><pubDate>Fri, 08 Nov 2013 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2013/11/08/openldap-ssh-public-key/</guid><description>&lt;p&gt;The article is about how I setup Open LDAP on CentOS6 for SSH public key authentication.&lt;/p&gt;
&lt;h4 id="1download-and-install-centos62"&gt;1.Download and install CentOS6.2&lt;/h4&gt;
&lt;p&gt;&lt;a href="http://ftp.riken.jp/Linux/centos/6/isos/i386/CentOS-6.10-i386-minimal.iso"&gt;CentOS-6.xx-i366-minimal.iso&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="2-centos-configuration"&gt;2. CentOS configuration&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Network: IP address, DNS, and restart network service&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vi /etc/resolv.conf/DNS
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vi /etc/sysconfig/network-scripts/ifcfg-eth0/NIC IP
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vi /etc/networks//Route
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;/etc/init.d/network restart
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;configure host file&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;vi /etc/hosts
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Modify 127.0.0.1 item to FQDN format because openldap get &lt;em&gt;dc&lt;/em&gt; from the item automatically.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;127.0.0.1 ldap.kzblog.com
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stop security services&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;setenforce permissive
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;getenforce
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;service iptables stop
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;em&gt;Note: This only for the testing environment.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>make error :/usr/bin/ld: cannot find -luuid</title><link>https://blog.gainskills.top/2013/11/05/make-error-usrbinld-cannot-find-luuid/</link><pubDate>Tue, 05 Nov 2013 00:00:00 +0000</pubDate><guid>https://blog.gainskills.top/2013/11/05/make-error-usrbinld-cannot-find-luuid/</guid><description>&lt;p&gt;I met a make error in CentOS 6:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# make&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;......
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;/usr/bin/ld: cannot find -luuid
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ld returned &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; exit status
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;make: *** Error &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The way to fix this error is to install lib : uuid-devel&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;yum -y install libuuid-devel
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>