<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Centos7 on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/centos7/</link>
    <description>Recent content in Centos7 on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Tue, 15 Dec 2020 16:49:08 +1100</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/centos7/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Systemd List Failed Units and Services</title>
      <link>https://blog.khmersite.net/p/systemd-list-failed-units-and-services/</link>
      <pubDate>Tue, 15 Dec 2020 16:49:08 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/systemd-list-failed-units-and-services/</guid>
      <description>&lt;p&gt;This is a quick note to list failed services on systemd system.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[root@zilla ~]# systemctl status
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;● zilla
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    State: degraded
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     Jobs: 0 queued
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   Failed: 1 units
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Since: Fri 2020-09-04 02:20:47 AEST; 3 months 11 days ago
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   CGroup: /
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           ├─1 /usr/lib/systemd/systemd --system --deserialize 22
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           └─system.slice
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             ├─httpd.service
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ ├─21860 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ ├─21861 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ ├─21862 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ ├─21863 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ ├─21864 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             │ └─21865 /usr/sbin/httpd -DFOREGROUND
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[root@zilla ~]# systemctl list-units --failed
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  UNIT         LOAD   ACTIVE SUB    DESCRIPTION
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;● ipmi.service loaded failed failed IPMI Driver
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;LOAD   = Reflects whether the unit definition was properly loaded.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SUB    = The low-level unit activation state, values depend on unit type.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;1 loaded units listed. Pass --all to see loaded but inactive units, too.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;To show all installed unit files use &amp;#39;systemctl list-unit-files&amp;#39;.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install MATE Desktop on CentOS 7</title>
      <link>https://blog.khmersite.net/p/install-mate-desktop-on-centos-7/</link>
      <pubDate>Wed, 13 Jun 2018 01:26:00 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/install-mate-desktop-on-centos-7/</guid>
      <description>&lt;p&gt;Tonight I started to review the learning material for Red Hat System Administration III to prepare for RHCSE exam. I need a machine with GUI, and all my CentOS 7 VMs are headless. So let’s install the GUI on it, shall I?&lt;/p&gt;
&lt;p&gt;First install &lt;code&gt;epel&lt;/code&gt; repo, if it’s not yet installed:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# yum install epel-release -y
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then install the 2 groups:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# yum groupinstall &amp;#34;X Window system&amp;#34; -y
# yum groupinstall &amp;#34;MATE Desktop&amp;#34; -y
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Tip, if “I” can’t remember the names of the groups, I can run this command to list all available groups:&lt;/p&gt;</description>
    </item>
    <item>
      <title>grep: error while loading shared libraries: libpcre.so.0</title>
      <link>https://blog.khmersite.net/p/grep-error-while-loading-shared-libraries-libpcre-so-0/</link>
      <pubDate>Fri, 01 Jul 2016 14:14:13 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/grep-error-while-loading-shared-libraries-libpcre-so-0/</guid>
      <description>&lt;p&gt;I have a server running CentOS 6 successfully upgraded to CentOS 7.&lt;/p&gt;
&lt;p&gt;The only problem I encountered so far is that ‘grep’ doesn’t work.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[root@zilla ~]# grep
grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[root@zilla ~]# ldd /usr/bin/grep
        linux-vdso.so.1 =&amp;gt;  (0x00007ffc0b639000)
        libpcre.so.0 =&amp;gt; not found
        libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007f6be1c6c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f6be2038000)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;First thing I tried was to reinstall &lt;code&gt;pcre&lt;/code&gt; package which provides libpcre.so*. It still didn’t work. Fortunately, &lt;a href=&#34;http://sempike.blogspot.com.au/2016/02/update-to-centos-7-libpcreso0-no-such.html&#34;&gt;someone&lt;/a&gt; has posted a solution as the following:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
