<?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>centos on Tutes Club</title><link>https://tutes.in/tag/centos/</link><description>Recent content in centos on Tutes Club</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 07 Jan 2022 09:02:35 +0000</lastBuildDate><atom:link href="https://tutes.in/tag/centos/index.xml" rel="self" type="application/rss+xml"/><item><title>centos web panel – vhost templates for proxying websocket traffic</title><link>https://tutes.in/centos-web-panel-vhost-templates-for-proxying-websocket-traffic/</link><pubDate>Fri, 07 Jan 2022 09:02:33 +0000</pubDate><guid>https://tutes.in/centos-web-panel-vhost-templates-for-proxying-websocket-traffic/</guid><description>&lt;p&gt;&lt;a href="http://wiki.centos-webpanel.com/webservers-vhost-templates"&gt;http://wiki.centos-webpanel.com/webservers-vhost-templates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Templates location: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/&lt;br&gt;
– Folder main contains main configuration for WebServers&lt;br&gt;
– Folder vhosts contains vhosts configuration for domains (this is what you need)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How to create a template file&lt;/strong&gt;&lt;br&gt;
The easiest way to do that is to simply copy an existing file and then edit a new file you have created.&lt;br&gt;
Note that you need to have .tpl and .stpl files (tpl is for http and stpl is for https version)&lt;/p&gt;</description></item><item><title>RPM repo not found connection errors on Centos Redhat duplicate problems</title><link>https://tutes.in/rpm-repo-not-found-connection-errors-on-centos-redhat-duplicate-problems/</link><pubDate>Tue, 24 Jul 2018 17:00:34 +0000</pubDate><guid>https://tutes.in/rpm-repo-not-found-connection-errors-on-centos-redhat-duplicate-problems/</guid><description>&lt;h2 id="yum--y-update-command-failing"&gt;yum -y update command failing&lt;/h2&gt;
&lt;p&gt;Command line will show messages like&lt;/p&gt;
&lt;p&gt;xxx is outdated and v abc will be installed&lt;br&gt;
but at the end it shows duplicate binary, please remove duplicate first.&lt;/p&gt;
&lt;p&gt;Process&lt;/p&gt;
&lt;p&gt;Backup first&lt;br&gt;
Integrity Check&lt;br&gt;
Find Problems&lt;br&gt;
Identify duplicates&lt;br&gt;
Clean duplicates&lt;br&gt;
re build conf cache&lt;br&gt;
update command&lt;br&gt;
remove backup file .prev if successfully solved&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="se"&gt;\c&lt;/span&gt;p -r /var/lib/rpm /var/lib/rpm.prev
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yum-complete-transaction
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;package-cleanup --problems
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;package-cleanup --dupes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;package-cleanup --cleandupes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yum clean all
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rpm --rebuilddb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yum update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# if all went OK run &amp;#39;rm -rf /var/lib/rpm.prev&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Other possible solution&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Compressing images directly on web server – Better Pagespeed tips</title><link>https://tutes.in/compressing-images-directly-on-web-server-better-pagespeed-tips/</link><pubDate>Fri, 02 Feb 2018 20:45:30 +0000</pubDate><guid>https://tutes.in/compressing-images-directly-on-web-server-better-pagespeed-tips/</guid><description>&lt;p&gt;for png, install on centos using command&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yum install optipng
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;for a single image&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;optipng -o5 filename.png
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;move to folder in which pngs are stored and use the following command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;for i in *.png; do optipng -o7 -strip all -quiet &amp;#34;$i&amp;#34;; done
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;this will overwrite all pngs, o7 is switch for number of tries. o5 will be less time consuming though. -quiet makes it muted, outputs nothing.&lt;br&gt;
-strip all will try to remove all meta data.&lt;br&gt;
you can use -preserve to preserve the modification date.&lt;br&gt;
also try -keep, if you want to save backup of each file&lt;/p&gt;</description></item></channel></rss>