snipt

Ctrl+h for KB shortcuts

Text only

Install htop in CentOS 5

1
2
3
 1) wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm 
 2) rpm -Uhv rpmforge-release-0.5.3-1.el5.rf.i386.rpm
 3) yum install htop
https://snipt.net/embed/d04a358770028214faaead597bbc085f/
/raw/d04a358770028214faaead597bbc085f/
d04a358770028214faaead597bbc085f
text
Text only
3
2019-07-18T15:31:15
True
False
False
/api/public/snipt/120879/
install-htop-in-centos-5
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> 1) wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm </span><span id="L-2"><a name="L-2"></a> 2) rpm -Uhv rpmforge-release-0.5.3-1.el5.rf.i386.rpm </span><span id="L-3"><a name="L-3"></a> 3) yum install htop </span></pre></div> </td></tr></table>
CentOS, Linux, htop

Text only

Add simple user to sudoers in Debian

echo 'my_user ALL=(ALL:ALL) ALL' >> /etc/sudoers
https://snipt.net/embed/f83ecfd16dc620045692997d4420c372/
/raw/f83ecfd16dc620045692997d4420c372/
f83ecfd16dc620045692997d4420c372
text
Text only
3
2019-07-17T20:36:28
True
False
False
/api/public/snipt/107957/
give-administrator-privileges-to-simple-user-in-debian
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>echo &#39;my_user ALL=(ALL:ALL) ALL&#39; &gt;&gt; /etc/sudoers </span></pre></div> </td></tr></table>
Debian, Linux, administrator, root, sudo, sudoers

Text only

Find the source of the problem of squid 3 in opensuse 11

1
2
3
4
5
6
7
8
To get squid to tell you the real problem you have to change the line 68 of /etc/init.d/squid

from:
$SQUID_BIN -z -F > /dev/null 2>&1
to:
$SQUID_BIN -z -F

Now, go to see the log :)
https://snipt.net/embed/74d093981dd0821a1e3ea6b2cdff92ab/
/raw/74d093981dd0821a1e3ea6b2cdff92ab/
74d093981dd0821a1e3ea6b2cdff92ab
text
Text only
8
2019-07-19T14:37:31
True
False
False
/api/public/snipt/102644/
squid-3-en-opensuse-11
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>To get squid to tell you the real problem you have to change the line 68 of /etc/init.d/squid </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>from: </span><span id="L-4"><a name="L-4"></a>$SQUID_BIN -z -F &gt; /dev/null 2&gt;&amp;1 </span><span id="L-5"><a name="L-5"></a>to: </span><span id="L-6"><a name="L-6"></a>$SQUID_BIN -z -F </span><span id="L-7"><a name="L-7"></a> </span><span id="L-8"><a name="L-8"></a>Now, go to see the log :) </span></pre></div> </td></tr></table>
OpenSUSE, squid, squid3