snipt

Ctrl+h for KB shortcuts

Bash

Add/Remove Apache 2 from Startup

1
2
3
$ sudo update-rc.d apache2 defaults

$ sudo update-rc.d -f apache2 remove
https://snipt.net/embed/476a2fabde8dd72eae892a0975de0611/
/raw/476a2fabde8dd72eae892a0975de0611/
476a2fabde8dd72eae892a0975de0611
bash
Bash
3
2019-07-16T21:05:44
True
False
False
Jul 30, 2013 at 11:02 PM
/api/public/snipt/70703/
addremove-apache-2-from-startup
<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>$ sudo update-rc.d apache2 defaults </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>$ sudo update-rc.d -f apache2 remove </span></pre></div> </td></tr></table>
apache2, bash, ubuntu

Bash

Install True Type Fonts on Ubuntu

1
2
3
4
# Copy new fonts to /usr/share/fonts/truetype

# Rebuild font cache
sudo fc-cache -f
https://snipt.net/embed/3d91f3f1b8ea9e6f3d646ce5a6beb3b8/
/raw/3d91f3f1b8ea9e6f3d646ce5a6beb3b8/
3d91f3f1b8ea9e6f3d646ce5a6beb3b8
bash
Bash
4
2019-07-21T19:44:56
True
False
False
Apr 29, 2013 at 10:38 PM
/api/public/snipt/60297/
install-true-type-fonts-on-ubuntu
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># Copy new fonts to /usr/share/fonts/truetype</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># Rebuild font cache</span> </span><span id="L-4"><a name="L-4"></a>sudo fc-cache -f </span></pre></div> </td></tr></table>
font, ubuntu

Bash

Resolve dependency problems

$ sudo apt-get -f install
https://snipt.net/embed/cd2033b6061a5706f347a8281aa25912/
/raw/cd2033b6061a5706f347a8281aa25912/
cd2033b6061a5706f347a8281aa25912
bash
Bash
1
2019-07-21T17:51:30
True
False
False
/api/public/snipt/42464/
resolve-dependency-problems
<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>$ sudo apt-get -f install </span></pre></div> </td></tr></table>
apt-get, ubuntu

Bash

List out files of a package

$ dpkg -L <package_name>
https://snipt.net/embed/79d483aca302990a6bd2a84148a82f22/
/raw/79d483aca302990a6bd2a84148a82f22/
79d483aca302990a6bd2a84148a82f22
bash
Bash
1
2019-07-19T22:52:18
True
False
False
/api/public/snipt/32439/
list-out-files-of-a-package
<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>$ dpkg -L &lt;package_name&gt; </span></pre></div> </td></tr></table>
dpkg, linux, ubuntu

Bash

Install deb packages

$ dpkg -i package.deb
https://snipt.net/embed/06dbfef3933a0daed8ef2459da95f4b5/
/raw/06dbfef3933a0daed8ef2459da95f4b5/
06dbfef3933a0daed8ef2459da95f4b5
bash
Bash
1
2019-07-14T07:15:41
True
False
False
/api/public/snipt/17243/
install-deb-packages
<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>$ dpkg -i package.deb </span></pre></div> </td></tr></table>
dpkg, ubuntu