literate-dotfiles/docs/install.html

2519 lines
70 KiB
HTML
Raw Normal View History

2020-01-12 00:19:16 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
2022-05-09 10:05:23 +02:00
<!-- 2022-05-09 lun. 10:04 -->
2020-01-12 00:19:16 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Installation</title>
2021-01-01 20:12:34 +01:00
<meta name="author" content="Dehaeze Thomas" />
2021-04-25 19:10:57 +02:00
<meta name="generator" content="Org Mode" />
2021-01-01 20:12:34 +01:00
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
2020-01-12 00:19:16 +01:00
</head>
<body>
2021-01-01 20:12:34 +01:00
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
2022-05-09 10:05:23 +02:00
</div><div id="content" class="content">
2020-01-12 00:19:16 +01:00
<h1 class="title">Installation</h1>
2022-05-09 10:05:23 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-12 00:19:16 +01:00
<h2>Table of Contents</h2>
2022-05-09 10:05:23 +02:00
<div id="text-table-of-contents" role="doc-toc">
2020-01-12 00:19:16 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org4f6368a">Issues to handle</a></li>
<li><a href="#org8745cef"><code>git</code> - Version Control System</a></li>
<li><a href="#org9d33b28"><code>alacritty</code> - Terminal</a></li>
<li><a href="#orgb29ee53"><code>bash</code> - Shell</a></li>
<li><a href="#org8bfabc8"><code>tmux</code> - Terminal Multiplexer</a></li>
<li><a href="#orgbe0e58a">Fonts</a></li>
<li><a href="#org25b78b8">Syncthing</a></li>
<li><a href="#orgb34eca4"><code>emacs</code> and <code>vim</code> - Text Editors</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org973ecdd">Neovim</a></li>
<li><a href="#orgf0500f9">Emacs</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgbb19097">SSH setup</a></li>
<li><a href="#orgcb4f1db">GnuPG</a></li>
<li><a href="#orge993410"><code>rofi</code> - Application Launcher</a></li>
<li><a href="#org5c0b48f"><code>pass</code> - Password Manager</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgd5d2f55">Integration with other programs</a></li>
<li><a href="#org88cc248">Alternative - Bitwarden</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org5400a9a"><code>qutebrowser</code> - Browser</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org60b629e">Installation</a></li>
<li><a href="#org0b6982b">View Pdf inside qutebrowser with pdfjs</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org90c7498">Installation</a></li>
<li><a href="#orge401f76">Usage</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgd6e4c22">Integration with Pass: the password manager</a></li>
<li><a href="#org3944986">Spell Checking</a></li>
<li><a href="#orga80672a"><code>firefox</code></a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org37d1449"><code>xrandr</code> - Monitor Manager</a></li>
<li><a href="#org7b4cc4d">Music Setup</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org7a2e902"><code>pulseaudio</code> - Sound Server</a></li>
<li><a href="#orge034fbe"><code>pavucontrol</code> - Sound Manager</a></li>
<li><a href="#org118403d"><code>mopidy</code> - Audio Server</a></li>
<li><a href="#org592f428"><code>ncmpcpp</code> - MPD Client</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org47c73ac">Movies</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orga93de38"><code>mpv</code> - Media Player</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org9dcdff5">Contact Manager</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org5faa603"><code>khard</code> - Google Conctacts</a></li>
<li><a href="#org0bd5617"><code>mu</code> - Index Emails</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org7956f43"><code>redshift</code></a></li>
<li><a href="#org6b75056">Mail Setup</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org6301bcc"><code>mbsync</code> - Synchronize Mailboxes</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org38424a9">Installation</a></li>
<li><a href="#org31bb6f0">Configuration</a></li>
<li><a href="#orgbc34732">Automation using systemd</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgf627411">Retreive New mails</a></li>
<li><a href="#org4a4f994">Synchronize all the mailboxes</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgac842c2"><code>msmtp</code> - Send Mails</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgcb40b42">Installation</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org7251436"><code>mu</code> - Mail Index, Search and Tagging</a></li>
<li><a href="#orgb678b8e"><code>neomutt</code> - Mail Client</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgadf8ce0">Installation</a></li>
<li><a href="#orge4adc86">Display html mails</a></li>
<li><a href="#orgdca6692">Open Url from mail</a></li>
<li><a href="#org1bb2a0b">Ressources</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org51e8f29">Notification system</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org94ed5e2"><code>ranger=/=pcmanfm</code> - File Manager</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org0689714">Ranger</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgb3fd092">Installation</a></li>
<li><a href="#org4c25888">Configuration</a></li>
<li><a href="#org582bb32">Display pdf</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org5a11531">GUI File Manager: pcmanfm</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgb9b36eb"><code>sxiv</code> - Image viewer</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgf17d546">Installation</a></li>
<li><a href="#orga65b553">Open Gif</a></li>
<li><a href="#org5892b51">Cheatsheet</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgffb5c23"><code>sxhkd</code> - HotKey Manager</a></li>
<li><a href="#orgb4cad2c"><code>i3</code> - Windows Manager</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org68c6fb7">Installation</a></li>
<li><a href="#org166ce19">Configuration</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org10e707d"><code>polybar</code> - Top Bar</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgfc5852d">Installation</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgeeb7f03"><code>picom</code> - Compositor</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgb693544">Installation</a></li>
<li><a href="#org9a60966">Configuration</a></li>
<li><a href="#orge9f5f59">Automatic run as daemon</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgea59012"><code>dunst</code> - Notification Manager</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orga112083">Installation</a></li>
<li><a href="#org83ba6de">Configuration</a></li>
<li><a href="#orgc590771">Usage</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org25a4cc0">LaTeX</a></li>
<li><a href="#org52d7a99">Mathematical Software</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org843a353">Insect</a></li>
<li><a href="#orgfaa753a">Matlab</a></li>
<li><a href="#orge0803c0">SageMath</a></li>
<li><a href="#org74bd2dd">Python and Jupyter-notebook</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgd5a74d7">Calendar</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org7461509"><code>vdirsyncer</code> - Sync calendars</a></li>
<li><a href="#org7315f96"><code>khal</code> - Calendar Client</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org0ae00e2"><code>zathura</code> - PDF Reader</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org79cb54d">Installation</a></li>
<li><a href="#org3592520">Configuration</a></li>
<li><a href="#orgaf25e5a">Cheatsheet</a></li>
<li><a href="#orgd86a28d">Multi-monitor pdf presentation - pdfpc</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org9be05cb">Installation</a></li>
<li><a href="#org2aff926">Video support</a></li>
<li><a href="#org083b825">Usage</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2021-01-03 22:52:53 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org445dc4a">Display Manager</a></li>
<li><a href="#org6d0663d"><code>inkscape</code> - Graphical Editor</a></li>
<li><a href="#org9955fc6"><code>wireguard</code> - VPN</a></li>
<li><a href="#org05c822f">Others</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgccbe77e">Things to install</a></li>
<li><a href="#orgd3128df"><code>maim=/=flameshot</code> - Take Screenshots</a></li>
<li><a href="#org9d9cc7c">Find Files</a></li>
<li><a href="#org056ce20">PDF/Image Utilities</a></li>
<li><a href="#org0f004d9">Trash</a></li>
<li><a href="#org1f22f91">Nice other programs</a></li>
2020-03-19 10:46:47 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orge8798c2">Printer</a></li>
<li><a href="#orgdf06299">List of all the install programs</a>
2020-03-19 10:46:47 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgdb02e65">Mutt</a></li>
<li><a href="#org3a409b3">File Management</a></li>
<li><a href="#org5192d2c">File Downloader</a></li>
<li><a href="#org89cdaa3">Utils</a></li>
<li><a href="#orga0b1612">A trier</a></li>
2020-01-12 00:19:16 +01:00
</ul>
2020-03-19 10:46:47 +01:00
</li>
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4f6368a" class="outline-2">
<h2 id="org4f6368a">Issues to handle</h2>
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8745cef" class="outline-2">
<h2 id="org8745cef"><code>git</code> - Version Control System</h2>
<div class="outline-text-2" id="text-org8745cef">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install <span class="org-type">git</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
<a href="git.html">Git</a> Configuration:
</p>
<ul class="org-ul">
<li><code>~/.gitconfig</code></li>
<li><code>~/.gitignore_global</code></li>
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9d33b28" class="outline-2">
<h2 id="org9d33b28"><code>alacritty</code> - Terminal</h2>
<div class="outline-text-2" id="text-org9d33b28">
2020-03-19 10:46:47 +01:00
<p>
2021-10-25 14:37:10 +02:00
<a href="https://github.com/alacritty/alacritty">Alacritty</a> is a very nice keyboard-centric terminal.
2021-01-03 22:52:53 +01:00
</p>
<p>
It can be installed like so:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> add-apt-repository ppa:aslatter/ppa
<span class="org-type">sudo</span> apt install alacritty
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-10-25 14:37:10 +02:00
Its configuration file is described <a href="alacritty.html">here</a>.
2020-03-19 10:46:47 +01:00
</p>
2021-01-08 01:43:48 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
2022-05-09 10:05:23 +02:00
<caption class="t-above"><span class="table-number">Table 1:</span> <code>alacritty</code> - Cheatsheet</caption>
2020-03-19 10:46:47 +01:00
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>ctrl-shift-x</code></td>
<td class="org-left">activate url hints mode</td>
</tr>
<tr>
<td class="org-left"><code>ctrl-shift-c</code></td>
<td class="org-left">copy to CLIPBOARD</td>
</tr>
<tr>
<td class="org-left"><code>ctrl-shift-v</code></td>
<td class="org-left">paste from CLIPBOARD</td>
</tr>
<tr>
<td class="org-left"><code>ctrl-shift-space</code></td>
<td class="org-left">start selection mode</td>
</tr>
<tr>
2020-11-03 16:27:09 +01:00
<td class="org-left"><code>ctrl +</code></td>
2020-03-19 10:46:47 +01:00
<td class="org-left">increase font size</td>
</tr>
<tr>
2020-11-03 16:27:09 +01:00
<td class="org-left"><code>ctrl -</code></td>
2020-03-19 10:46:47 +01:00
<td class="org-left">decrease font size</td>
</tr>
</tbody>
</table>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb29ee53" class="outline-2">
<h2 id="orgb29ee53"><code>bash</code> - Shell</h2>
<div class="outline-text-2" id="text-orgb29ee53">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
<a href="https://wiki.archlinux.org/index.php/Bash">https://wiki.archlinux.org/index.php/Bash</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2021-01-03 22:52:53 +01:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install bash bash-completion zsh
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
<a href="bash.html">Bash</a> configuration:
</p>
<ul class="org-ul">
<li><code>~/.bashrc</code></li>
<li><code>~/.bash_profile</code></li>
<li><code>~/.config/bash/</code></li>
<li><code>~/.profile</code></li>
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8bfabc8" class="outline-2">
<h2 id="org8bfabc8"><code>tmux</code> - Terminal Multiplexer</h2>
<div class="outline-text-2" id="text-org8bfabc8">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://github.com/tmux/tmux">https://github.com/tmux/tmux</a>
</p>
2021-01-03 22:52:53 +01:00
<p>
Installation:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install tmux
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
<a href="tmux.html">TMUX</a> configuration
</p>
2021-01-03 22:52:53 +01:00
<p>
Ressources:
</p>
2020-03-19 10:46:47 +01:00
<ul class="org-ul">
<li><a href="https://github.com/gpakosz/.tmux">https://github.com/gpakosz/.tmux</a></li>
<li><a href="https://gist.github.com/MohamedAlaa/2961058">https://gist.github.com/MohamedAlaa/2961058</a></li>
<li><a href="https://blog.bugsnag.com/tmux-and-vim/">https://blog.bugsnag.com/tmux-and-vim/</a></li>
<li><a href="https://github.com/tmux-plugins/tmux-resurrect">https://github.com/tmux-plugins/tmux-resurrect</a></li>
<li><a href="https://github.com/rothgar/awesome-tmux">https://github.com/rothgar/awesome-tmux</a></li>
<li><a href="https://thoughtbot.com/upcase/tmux">https://thoughtbot.com/upcase/tmux</a></li>
</ul>
2021-01-08 01:43:48 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
2022-05-09 10:05:23 +02:00
<caption class="t-above"><span class="table-number">Table 2:</span> <code>tmux</code> - Cheatsheet</caption>
2020-03-19 10:46:47 +01:00
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>ctrl-spc</code></td>
<td class="org-left">Prefix</td>
</tr>
<tr>
<td class="org-left"><code>c</code></td>
<td class="org-left">New pane</td>
</tr>
<tr>
<td class="org-left"><code>/</code>, <code>-</code></td>
<td class="org-left">Split Vertically/Horizontally</td>
</tr>
<tr>
<td class="org-left"><code>s</code></td>
<td class="org-left">Change session</td>
</tr>
<tr>
<td class="org-left"><code>p</code>, <code>n</code></td>
<td class="org-left">Previous/Next Pane</td>
</tr>
<tr>
<td class="org-left"><code>ctrl-h,j,k,l</code></td>
<td class="org-left">Move between windows</td>
</tr>
</tbody>
</table>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgbe0e58a" class="outline-2">
<h2 id="orgbe0e58a">Fonts</h2>
<div class="outline-text-2" id="text-orgbe0e58a">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
My font of choice is <code>nerd-fonts-hack</code> which can be installed as so:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">git</span> clone --depth <span class="org-highlight-numbers-number">1</span> https://github.com/ryanoasis/nerd-fonts
<span class="org-type">cd</span> nerd-fonts
./install.sh Hack
2020-03-19 10:46:47 +01:00
</pre>
</div>
2020-04-05 11:30:26 +02:00
<p>
2021-01-03 22:52:53 +01:00
For emojis, use:
2020-04-05 11:30:26 +02:00
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install fonts-noto-color-emoji
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
Default font used:
</p>
2021-04-25 19:10:57 +02:00
2020-03-19 10:46:47 +01:00
<ul class="org-ul">
<li>Monospace Font: <code>Hack Nerd Font Mono</code></li>
<li>Serif Font: <code>Hack Nerd Font</code></li>
<li>Sans Font: <code>Hack Nerd Font</code></li>
</ul>
<p>
2021-01-03 22:52:53 +01:00
To list all fonts available:
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">fc-list
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org25b78b8" class="outline-2">
<h2 id="org25b78b8">Syncthing</h2>
<div class="outline-text-2" id="text-org25b78b8">
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://leandeep.com/installer-syncthing-sur-ubuntu-20.04/">https://leandeep.com/installer-syncthing-sur-ubuntu-20.04/</a>
2021-01-03 22:52:53 +01:00
</p>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb34eca4" class="outline-2">
<h2 id="orgb34eca4"><code>emacs</code> and <code>vim</code> - Text Editors</h2>
<div class="outline-text-2" id="text-orgb34eca4">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org973ecdd" class="outline-3">
<h3 id="org973ecdd">Neovim</h3>
<div class="outline-text-3" id="text-org973ecdd">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
I use <a href="https://github.com/neovim/neovim">Neovim</a> for all the small edits.
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<p>
Installation:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install neovim
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
The Neovim configuration can be found <a href="vim.html">here</a>.
</p>
2022-05-09 10:05:23 +02:00
<p>
Simlink the Vim config to Neovim:
</p>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">mkdir</span> ~/.config/nvim
<span class="org-type">ln</span> -s ~/.vimrc ~/.config/nvim/init.vim
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
Then install the plugin manager <a href="https://github.com/junegunn/vim-plug">plug</a>:
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">sh -c <span class="org-string">'</span><span class="org-type"><span class="org-string">curl</span></span><span class="org-string"> -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'</span>
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
<p>
2021-01-03 22:52:53 +01:00
And to install/setup all the plugins:
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">nvim +PlugInstall
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash">nvim +UpdateRemotePlugins
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgf0500f9" class="outline-3">
<h3 id="orgf0500f9">Emacs</h3>
<div class="outline-text-3" id="text-orgf0500f9">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
I use <a href="https://www.gnu.org/software/emacs/">Emacs</a> and the <a href="https://github.com/hlissner/doom-emacs">Doom</a> framework.
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<p>
Install Emacs:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> snap install emacs --edge --classic
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
And then the Doom framework:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">git</span> clone --depth <span class="org-highlight-numbers-number">1</span> https://github.com/hlissner/doom-emacs ~/.emacs.d
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash">~/.emacs.d/bin/doom install
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
The Emacs configuration can be found <a href="./doom.html">here</a>.
</p>
<p>
SpellCheck with Aspell:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install aspell aspell-en aspell-fr
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2021-01-03 22:52:53 +01:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgbb19097" class="outline-2">
<h2 id="orgbb19097">SSH setup</h2>
<div class="outline-text-2" id="text-orgbb19097">
2021-01-03 22:52:53 +01:00
<p>
Generate a new SSH key:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">ssh-keygen -t rsa -b <span class="org-highlight-numbers-number">4096</span> -C <span class="org-string">"dehaeze.thomas@gmail.com"</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
Start the ssh-agent in the background:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-builtin">eval</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">ssh-agent</span><span class="org-string"><span class="org-sh-quoted-exec"> -s)</span></span><span class="org-string">"</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
Add the SSH key to the ssh-agent:
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">ssh-add ~/.ssh/id_rsa
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgcb4f1db" class="outline-2">
<h2 id="orgcb4f1db">GnuPG</h2>
<div class="outline-text-2" id="text-orgcb4f1db">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://gnupg.org/">https://gnupg.org/</a>
</p>
2021-01-03 22:52:53 +01:00
<p>
Install the gnupg package:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install gnupg
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
Create a key pair:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">gpg --full-gen-key
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
To configure the <code>gpg-agent</code> to cache the passphrase, edit the following file <code>~/.gnupg/gpg-agent.conf</code>:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">default-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
max-cache-ttl <span class="org-highlight-numbers-number">60480000</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
Install <code>Gnome-Keyring</code> to automatically unlock the GnuPG keys:
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install gnome-keyring
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge993410" class="outline-2">
<h2 id="orge993410"><code>rofi</code> - Application Launcher</h2>
<div class="outline-text-2" id="text-orge993410">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
<a href="https://github.com/DaveDavenport/rofi">Rofi</a> is a very nice alternative to <a href="https://tools.suckless.org/dmenu/">dmenu</a>.
2020-03-19 10:46:47 +01:00
</p>
<p>
2021-01-03 22:52:53 +01:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install dmenu rofi
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
To be able to run sudo commands with <code>rofi</code> (<a href="https://github.com/DaveDavenport/rofi/issues/584#issuecomment-384555551">github issue</a>), the command <code>sudo -A</code> can be used: it opens a <code>rofi</code> prompt to ask for the password.
2020-03-19 10:46:47 +01:00
</p>
<p>
For that to work, we need to add the following code to <code>~/.profile</code>:
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-builtin">export</span> <span class="org-variable-name">SUDO_ASKPASS</span>=~/.local/bin/askpass-rofi
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
The <code>askpass-rofi</code> script is:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-comment-delimiter">#</span><span class="org-comment">!/bin/</span><span class="org-keyword">sh</span>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
rofi -dmenu <span class="org-sh-escaped-newline">\</span>
-password <span class="org-sh-escaped-newline">\</span>
-no-fixed-num-lines <span class="org-sh-escaped-newline">\</span>
-p <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">printf</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">1</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed s/://)</span></span><span class="org-string">"</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5c0b48f" class="outline-2">
<h2 id="org5c0b48f"><code>pass</code> - Password Manager</h2>
<div class="outline-text-2" id="text-org5c0b48f">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://www.passwordstore.org/">https://www.passwordstore.org/</a>
</p>
<p>
2021-01-03 22:52:53 +01:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install pass
2020-03-19 10:46:47 +01:00
</pre>
</div>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">git</span> clone https://git.tdehaeze.xyz/tdehaeze/pass.git ~/.password-store
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
Gui Manager: <a href="https://github.com/IJHack/qtpass">qtpass</a>
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install qtpass
2021-01-03 22:52:53 +01:00
</pre>
2020-03-19 10:46:47 +01:00
</div>
<p>
2021-01-03 22:52:53 +01:00
Integration with Rofi: <a href="https://github.com/carnager/rofi-pass">rofi-pass</a>
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/soft/
<span class="org-type">git</span> clone https://github.com/carnager/rofi-pass
<span class="org-type">cd</span> rofi-pass
<span class="org-type">sudo</span> <span class="org-type">make</span> install
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
Then we can add a shortcut to <code>rofi-pass</code> on i3 config.
2020-03-19 10:46:47 +01:00
</p>
<p>
2021-01-03 22:52:53 +01:00
Integration with Git: <a href="https://github.com/languitar/pass-git-helper">pass-git-helper</a>
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install pass-git-helper
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
First, add the relation between repository addresses and entries in <code>pass</code>. This is done in the following config file <code>.config/pass-git-helper/git-pass-mapping.ini</code>:
</p>
<pre class="example">
[github.com*]
target=github.com/tdehaeze
</pre>
<p>
Then, add the credential helper on the git configuration file <code>~/.gitconfig</code> and add the default username for the repositories adresses.
</p>
<pre class="example">
[credential]
helper = !pass-git-helper $@
[credential "https://github.com"]
username = tdehaeze
</pre>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd5d2f55" class="outline-3">
<h3 id="orgd5d2f55">Integration with other programs</h3>
<div class="outline-text-3" id="text-orgd5d2f55">
2020-03-19 10:46:47 +01:00
<p>
Integrate pass in other programs is usually very easy, here are few examples:
</p>
<ul class="org-ul">
<li><code>~/.msmtprc</code>:
<ul class="org-ul">
<li><code>passwordeval "pass email/dehaeze.thomas@gmail.com"</code></li>
</ul></li>
<li><code>~/.mbsyncrc</code>
<ul class="org-ul">
<li><code>PassCmd "pass email/dehaeze.thomas@gmail.com"</code></li>
</ul></li>
</ul>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org88cc248" class="outline-3">
<h3 id="org88cc248">Alternative - Bitwarden</h3>
<div class="outline-text-3" id="text-org88cc248">
2020-03-19 10:46:47 +01:00
<p>
Bitwarden <a href="https://github.com/bitwarden/cli">https://github.com/bitwarden/cli</a>
</p>
<div class="org-src-container">
2021-01-03 22:52:53 +01:00
<pre class="src src-bash"> yay -Ss bitwarden-bin bitwarden-cli-bin
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5400a9a" class="outline-2">
<h2 id="org5400a9a"><code>qutebrowser</code> - Browser</h2>
<div class="outline-text-2" id="text-org5400a9a">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/qutebrowser/qutebrowser">https://github.com/qutebrowser/qutebrowser</a>
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org60b629e" class="outline-3">
<h3 id="org60b629e">Installation</h3>
<div class="outline-text-3" id="text-org60b629e">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">mkdir</span> ~/.local/soft
<span class="org-type">cd</span> ~/.local/soft
<span class="org-type">git</span> clone https://github.com/qutebrowser/qutebrowser.git
<span class="org-type">cd</span> qutebrowser
<span class="org-type">sudo</span> apt install --no-install-recommends <span class="org-type">git</span> ca-certificates python3 python3-venv asciidoc libglib2.0-0 libgl1 libfontconfig1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libdbus-1-3 libyaml-dev gcc python3-dev libnss3
python3 scripts/mkvenv.py
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
Then it can be launched using <a href="binaries-private.html#qutebrowser">file:~/.config/literate-dotfiles/binaries-private.org::#qutebrowser</a>
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">~/.local/soft/qutebrowser/.venv/bin/python3 -m qutebrowser
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
And upgraded with:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/soft/qutebrowser/
mkvenv.py --update
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org0b6982b" class="outline-3">
<h3 id="org0b6982b">View Pdf inside qutebrowser with pdfjs</h3>
<div class="outline-text-3" id="text-org0b6982b">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org90c7498" class="outline-4">
<h4 id="org90c7498">Installation</h4>
<div class="outline-text-4" id="text-org90c7498">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install pdf.js-common
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge401f76" class="outline-4">
<h4 id="orge401f76">Usage</h4>
<div class="outline-text-4" id="text-orge401f76">
2020-03-19 10:46:47 +01:00
<p>
When opening a pdf file on qutebrowser, you&rsquo;ll be ask for options:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>&lt;return&gt;</code></td>
<td class="org-left">Download the file</td>
</tr>
<tr>
<td class="org-left"><code>Ctrl-x</code></td>
<td class="org-left">Download and open</td>
</tr>
<tr>
<td class="org-left"><code>Ctrl-p</code></td>
<td class="org-left">Open with pdf.js</td>
</tr>
<tr>
<td class="org-left"><code>Alt-y</code></td>
<td class="org-left">Yank the url</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd6e4c22" class="outline-3">
<h3 id="orgd6e4c22">Integration with Pass: the password manager</h3>
<div class="outline-text-3" id="text-orgd6e4c22">
2020-03-19 10:46:47 +01:00
<p>
Add the key-binding on <code>~/.config/qutebrowser/config.py</code>
</p>
<pre class="example">
2022-05-09 10:05:23 +02:00
config.bind(',p', 'spawn --userscript password_fill')
2020-03-19 10:46:47 +01:00
</pre>
<p>
The <code>password_fill</code> script can be found on <a href="https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/password_fill">github.com</a>.
It is configured using the <code>~/.config/qutebrowser/password_fill_rc</code> file.
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org3944986" class="outline-3">
<h3 id="org3944986">Spell Checking</h3>
<div class="outline-text-3" id="text-org3944986">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">./scripts/dictcli.py install fr-FR
./scripts/dictcli.py install en-US
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga80672a" class="outline-3">
<h3 id="orga80672a"><code>firefox</code></h3>
<div class="outline-text-3" id="text-orga80672a">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install firefox
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2021-01-03 22:52:53 +01:00
Addons:
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<ul class="org-ul">
<li><a href="https://addons.mozilla.org/fr/firefox/addon/ublock-origin/">uBlock Origin</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/">Adblock Plus</a></li>
<li><a href="https://addons.mozilla.org/fr/firefox/addon/bukubrow/">Bukurow</a></li>
2021-01-08 01:43:48 +01:00
<li><a href="https://addons.mozilla.org/fr/firefox/addon/i-dont-care-about-cookies/">I don&rsquo;t care about cookies</a></li>
2021-01-03 22:52:53 +01:00
</ul>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org37d1449" class="outline-2">
<h2 id="org37d1449"><code>xrandr</code> - Monitor Manager</h2>
<div class="outline-text-2" id="text-org37d1449">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install arandr
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
<a href="https://wiki.archlinux.org/index.php/Xrandr">Xrandr</a> is used in shell scripts (<a href="https://github.com/Ventto/mons">mons</a> could be used as a layer on top of Xrandr).
<a href="https://christian.amsuess.com/tools/arandr/">Arandr</a> is a GUI application to manage monitors.
</p>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7b4cc4d" class="outline-2">
<h2 id="org7b4cc4d">Music Setup</h2>
<div class="outline-text-2" id="text-org7b4cc4d">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7a2e902" class="outline-3">
<h3 id="org7a2e902"><code>pulseaudio</code> - Sound Server</h3>
<div class="outline-text-3" id="text-org7a2e902">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://wiki.archlinux.org/index.php/PulseAudio">https://wiki.archlinux.org/index.php/PulseAudio</a>
</p>
<p>
2021-01-03 22:52:53 +01:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install pulseaudio pulseaudio-module-bluetooth
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
If sound is not working, should run <code>pulseaudio --kill</code> to kill the deamon and then <code>pulseaudio --daemonize</code> to run it again.
</p>
<p>
<a href="https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/">https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/</a>
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge034fbe" class="outline-3">
<h3 id="orge034fbe"><code>pavucontrol</code> - Sound Manager</h3>
<div class="outline-text-3" id="text-orge034fbe">
2020-03-19 10:46:47 +01:00
<p>
2021-01-03 22:52:53 +01:00
<code>pavucontrol</code> is used as a sound manager:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install pavucontrol
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org118403d" class="outline-3">
<h3 id="org118403d"><code>mopidy</code> - Audio Server</h3>
<div class="outline-text-3" id="text-org118403d">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://github.com/mopidy/mopidy">https://github.com/mopidy/mopidy</a>
<a href="https://medium.com/@theos.space/using-mopidy-with-spotify-and-ncmpcpp-44352f4a2ce8">https://medium.com/@theos.space/using-mopidy-with-spotify-and-ncmpcpp-44352f4a2ce8</a>
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install mopidy
2021-01-01 20:12:34 +01:00
</pre>
</div>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install python3-pip
python3 -m pip install --use mopidy-jellyfin
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
To update local files:
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">mopidy local scan
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
If mopidy is used, MPD should be disabled. (<code>systemctl disable --user mpd.service</code>)
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org592f428" class="outline-3">
<h3 id="org592f428"><code>ncmpcpp</code> - MPD Client</h3>
<div class="outline-text-3" id="text-org592f428">
2020-03-19 10:46:47 +01:00
<p>
<a href="https://wiki.archlinux.org/index.php/Ncmpcpp">https://wiki.archlinux.org/index.php/Ncmpcpp</a>
</p>
2021-01-03 22:52:53 +01:00
<p>
Installation:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install ncmpcpp
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
The main config is located here: <code>~/.ncmpcpp/config</code>.
The key bindings can be configured here: <code>~/.ncmpcpp/bindings</code>.
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org47c73ac" class="outline-2">
<h2 id="org47c73ac">Movies</h2>
<div class="outline-text-2" id="text-org47c73ac">
</div>
<div id="outline-container-orga93de38" class="outline-3">
<h3 id="orga93de38"><code>mpv</code> - Media Player</h3>
<div class="outline-text-3" id="text-orga93de38">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install mpv
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
The configuration is set in <code>/.config/mpv/input.conf</code>.
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9dcdff5" class="outline-2">
<h2 id="org9dcdff5">Contact Manager</h2>
<div class="outline-text-2" id="text-org9dcdff5">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5faa603" class="outline-3">
<h3 id="org5faa603"><code>khard</code> - Google Conctacts</h3>
<div class="outline-text-3" id="text-org5faa603">
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/scheibler/khard">https://github.com/scheibler/khard</a>
2021-01-03 22:52:53 +01:00
</p>
2022-05-09 10:05:23 +02:00
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> yay -Ss khard
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
This is the command line interface for contact management.
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
Contact synchronization:
Vdirsyncer is used for contact synchronization with Google.
2020-03-19 10:46:47 +01:00
</p>
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
To search with Khard: <code>khard &lt;conctact-name&gt;</code>
2021-01-03 22:52:53 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
</div>
<div id="outline-container-org0bd5617" class="outline-3">
<h3 id="org0bd5617"><code>mu</code> - Index Emails</h3>
<div class="outline-text-3" id="text-org0bd5617">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install maildir-utils
2020-03-19 10:46:47 +01:00
</pre>
</div>
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
This looks for contacts in all indexed emails.
<code>mu cfind &lt;name&gt;</code>
2021-01-03 22:52:53 +01:00
</p>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7956f43" class="outline-2">
<h2 id="org7956f43"><code>redshift</code></h2>
<div class="outline-text-2" id="text-org7956f43">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="http://jonls.dk/redshift/">http://jonls.dk/redshift/</a>
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install redshift
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6b75056" class="outline-2">
<h2 id="org6b75056">Mail Setup</h2>
<div class="outline-text-2" id="text-org6b75056">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="mail.html">Link</a> to the mail setup.
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6301bcc" class="outline-3">
<h3 id="org6301bcc"><code>mbsync</code> - Synchronize Mailboxes</h3>
<div class="outline-text-3" id="text-org6301bcc">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="http://isync.sourceforge.net/">http://isync.sourceforge.net/</a>
<a href="https://wiki.archlinux.org/index.php/Isync">https://wiki.archlinux.org/index.php/Isync</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
<div id="outline-container-org38424a9" class="outline-4">
<h4 id="org38424a9">Installation</h4>
<div class="outline-text-4" id="text-org38424a9">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install isync
</pre>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org31bb6f0" class="outline-4">
<h4 id="org31bb6f0">Configuration</h4>
<div class="outline-text-4" id="text-org31bb6f0">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>~/.mbsyncrc</code>
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgbc34732" class="outline-4">
<h4 id="orgbc34732">Automation using systemd</h4>
<div class="outline-text-4" id="text-orgbc34732">
</div>
<div id="outline-container-orgf627411" class="outline-5">
<h5 id="orgf627411">Retreive New mails</h5>
<div class="outline-text-5" id="text-orgf627411">
<ul class="org-ul">
<li><code>checkmail</code></li>
<li><code>~/.config/systemd/user/checkmail.service</code></li>
<li><code>~/.config/systemd/user/checkmail.timer</code></li>
</ul>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">systemctl --user enable checkmail.timer
systemctl --user start checkmail.timer
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4a4f994" class="outline-5">
<h5 id="org4a4f994">Synchronize all the mailboxes</h5>
<div class="outline-text-5" id="text-org4a4f994">
<ul class="org-ul">
<li><code>~/.config/systemd/user/syncmail.service</code></li>
<li><code>~/.config/systemd/user/syncmail.timer</code></li>
</ul>
<div class="org-src-container">
<pre class="src src-bash">systemctl --user enable syncmail.timer
systemctl --user start syncmail.timer
</pre>
</div>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgac842c2" class="outline-3">
<h3 id="orgac842c2"><code>msmtp</code> - Send Mails</h3>
<div class="outline-text-3" id="text-orgac842c2">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://marlam.de/msmtp/">https://marlam.de/msmtp/</a>
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgcb40b42" class="outline-4">
<h4 id="orgcb40b42">Installation</h4>
<div class="outline-text-4" id="text-orgcb40b42">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install msmtp
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
</div>
<div id="outline-container-org7251436" class="outline-3">
<h3 id="org7251436"><code>mu</code> - Mail Index, Search and Tagging</h3>
<div class="outline-text-3" id="text-org7251436">
<p>
<a href="https://github.com/djcb/mu">https://github.com/djcb/mu</a>
</p>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb678b8e" class="outline-3">
<h3 id="orgb678b8e"><code>neomutt</code> - Mail Client</h3>
<div class="outline-text-3" id="text-orgb678b8e">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/neomutt/neomutt">https://github.com/neomutt/neomutt</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
<div id="outline-container-orgadf8ce0" class="outline-4">
<h4 id="orgadf8ce0">Installation</h4>
<div class="outline-text-4" id="text-orgadf8ce0">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install neomutt
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge4adc86" class="outline-4">
<h4 id="orge4adc86">Display html mails</h4>
<div class="outline-text-4" id="text-orge4adc86">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install w3m
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgdca6692" class="outline-4">
<h4 id="orgdca6692">Open Url from mail</h4>
<div class="outline-text-4" id="text-orgdca6692">
<div class="org-src-container">
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install urlview
</pre>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1bb2a0b" class="outline-4">
<h4 id="org1bb2a0b">Ressources</h4>
<div class="outline-text-4" id="text-org1bb2a0b">
<ul class="org-ul">
<li><a href="http://therandymon.com/woodnotes/mutt/using-mutt.html">http://therandymon.com/woodnotes/mutt/using-mutt.html</a></li>
<li><a href="https://ankursinha.in/2017/12/16/transitioning-to-neomutt-and-friends-for-e-mail.html">https://ankursinha.in/2017/12/16/transitioning-to-neomutt-and-friends-for-e-mail.html</a></li>
<li><a href="https://github.com/LukeSmithxyz/mutt-wizard">https://github.com/LukeSmithxyz/mutt-wizard</a></li>
</ul>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org51e8f29" class="outline-3">
<h3 id="org51e8f29">Notification system</h3>
<div class="outline-text-3" id="text-org51e8f29">
<p>
A script (<code>checkmail</code>) is used to retreive new mails and use <code>notify=send</code> is there are new received mails.
</p>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org94ed5e2" class="outline-2">
<h2 id="org94ed5e2"><code>ranger=/=pcmanfm</code> - File Manager</h2>
<div class="outline-text-2" id="text-org94ed5e2">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Configuration files:
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<ul class="org-ul">
<li>GUI: <a href="pcmanfm.html">Pcmanfm</a></li>
<li>Terminal based: <a href="ranger.html">Ranger</a></li>
</ul>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org0689714" class="outline-3">
<h3 id="org0689714">Ranger</h3>
<div class="outline-text-3" id="text-org0689714">
<p>
<a href="https://github.com/ranger/ranger">https://github.com/ranger/ranger</a>
</p>
</div>
<div id="outline-container-orgb3fd092" class="outline-4">
<h4 id="orgb3fd092">Installation</h4>
<div class="outline-text-4" id="text-orgb3fd092">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install ranger
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4c25888" class="outline-4">
<h4 id="org4c25888">Configuration</h4>
<div class="outline-text-4" id="text-org4c25888">
<p>
The configuration file is <code>~/.config/ranger/rc.conf</code>.
</p>
</div>
</div>
<div id="outline-container-org582bb32" class="outline-4">
<h4 id="org582bb32">Display pdf</h4>
<div class="outline-text-4" id="text-org582bb32">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
All the display of the files are defined in <code>~/.config/ranger/scope.sh</code>.
</p>
<p>
It seems that Ranger is not working well with Termite. The screen is not refreshing after viewing one image (<a href="https://github.com/ranger/ranger/issues/859">Github Issue</a>).
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
It works better with Urxvt.
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5a11531" class="outline-3">
<h3 id="org5a11531">GUI File Manager: pcmanfm</h3>
<div class="outline-text-3" id="text-org5a11531">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://wiki.archlinux.org/index.php/PCManFM">https://wiki.archlinux.org/index.php/PCManFM</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
</div>
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb9b36eb" class="outline-2">
<h2 id="orgb9b36eb"><code>sxiv</code> - Image viewer</h2>
<div class="outline-text-2" id="text-orgb9b36eb">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/muennich/sxiv">https://github.com/muennich/sxiv</a>
<a href="https://www.youtube.com/watch?v=GYW9i_u5PYs">https://www.youtube.com/watch?v=GYW9i_u5PYs</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
<div id="outline-container-orgf17d546" class="outline-3">
<h3 id="orgf17d546">Installation</h3>
<div class="outline-text-3" id="text-orgf17d546">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install sxiv
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga65b553" class="outline-3">
<h3 id="orga65b553">Open Gif</h3>
<div class="outline-text-3" id="text-orga65b553">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">sxiv -a file.gif
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5892b51" class="outline-3">
<h3 id="org5892b51">Cheatsheet</h3>
<div class="outline-text-3" id="text-org5892b51">
2020-03-19 10:46:47 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>-t</code></td>
<td class="org-left">Start in Thumbmail mode</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>f</code></td>
<td class="org-left">Toggle fullscreen</td>
</tr>
<tr>
<td class="org-left"><code>Return</code></td>
<td class="org-left">Switch to thumbmail mode</td>
</tr>
2020-03-19 10:46:47 +01:00
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>&lt;</code>, <code>&gt;</code></td>
<td class="org-left">Rotate the image</td>
</tr>
<tr>
<td class="org-left"><code>\vert</code>, <code>_</code></td>
<td class="org-left">Flip the image</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>n</code>, <code>p</code></td>
<td class="org-left">Next, Previous image</td>
2020-03-19 10:46:47 +01:00
</tr>
</tbody>
</table>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgffb5c23" class="outline-2">
<h2 id="orgffb5c23"><code>sxhkd</code> - HotKey Manager</h2>
<div class="outline-text-2" id="text-orgffb5c23">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install sxhkd
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
Configuration file: <a href="sxhkd.html">SXHKD</a>.
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb4cad2c" class="outline-2">
<h2 id="orgb4cad2c"><code>i3</code> - Windows Manager</h2>
<div class="outline-text-2" id="text-orgb4cad2c">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="i3.html">Link</a> to the documentation
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org68c6fb7" class="outline-3">
<h3 id="org68c6fb7">Installation</h3>
<div class="outline-text-3" id="text-org68c6fb7">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> add-apt-repository -y ppa:regolith-linux/stable
<span class="org-type">sudo</span> apt install i3-gaps
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org166ce19" class="outline-3">
<h3 id="org166ce19">Configuration</h3>
<div class="outline-text-3" id="text-org166ce19">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>~/.i3/config</code>
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org10e707d" class="outline-2">
<h2 id="org10e707d"><code>polybar</code> - Top Bar</h2>
<div class="outline-text-2" id="text-org10e707d">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://polybar.github.io/">https://polybar.github.io/</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
<a href="polybar.html">Link</a> to the documentation.
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgfc5852d" class="outline-3">
<h3 id="orgfc5852d">Installation</h3>
<div class="outline-text-3" id="text-orgfc5852d">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/soft
<span class="org-type">git</span> clone https://github.com/jaagr/polybar.git
<span class="org-type">cd</span> polybar
<span class="org-comment-delimiter"># </span><span class="org-comment">Install necessary</span>
<span class="org-type">sudo</span> apt install build-essential <span class="org-type">git</span> cmake cmake-data pkg-config python3-sphinx python3-packaging libuv1-dev libcairo2-dev libxcb1-dev libxcb-util0-dev libxcb-randr0-dev libxcb-composite0-dev python3-xcbgen xcb-proto libxcb-image0-dev libxcb-ewmh-dev libxcb-icccm4-dev
<span class="org-comment-delimiter"># </span><span class="org-comment">Install optional</span>
<span class="org-type">sudo</span> apt install libxcb-xkb-dev libxcb-xrm-dev libxcb-cursor-dev libasound2-dev libpulse-dev i3-wm libjsoncpp-dev libmpdclient-dev libcurl4-openssl-dev libnl-genl-3-dev
./build.sh
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgeeb7f03" class="outline-2">
<h2 id="orgeeb7f03"><code>picom</code> - Compositor</h2>
<div class="outline-text-2" id="text-orgeeb7f03">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://wiki.archlinux.org/index.php/Picom">https://wiki.archlinux.org/index.php/Picom</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
<a href="compositor.html">Link</a> to the documentation.
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb693544" class="outline-3">
<h3 id="orgb693544">Installation</h3>
<div class="outline-text-3" id="text-orgb693544">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install picom
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9a60966" class="outline-3">
<h3 id="org9a60966">Configuration</h3>
<div class="outline-text-3" id="text-org9a60966">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>~/.config/picom/picom.conf</code>
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge9f5f59" class="outline-3">
<h3 id="orge9f5f59">Automatic run as daemon</h3>
<div class="outline-text-3" id="text-orge9f5f59">
<p>
Compton is run from <code>.xprofile</code> config in the background:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">picom --daemon
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgea59012" class="outline-2">
<h2 id="orgea59012"><code>dunst</code> - Notification Manager</h2>
<div class="outline-text-2" id="text-orgea59012">
<p>
<a href="https://github.com/dunst-project/dunst">https://github.com/dunst-project/dunst</a>
<a href="https://wiki.archlinux.org/index.php/Dunst">https://wiki.archlinux.org/index.php/Dunst</a>
</p>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga112083" class="outline-3">
<h3 id="orga112083">Installation</h3>
<div class="outline-text-3" id="text-orga112083">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install dunst notify-send
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org83ba6de" class="outline-3">
<h3 id="org83ba6de">Configuration</h3>
<div class="outline-text-3" id="text-org83ba6de">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>~/.config/dunst/dunstrc</code>
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc590771" class="outline-3">
<h3 id="orgc590771">Usage</h3>
<div class="outline-text-3" id="text-orgc590771">
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> notify-send <span class="org-string">"AppName"</span> <span class="org-string">"Message"</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
The number <code>--replace</code> can be used with an ID to merge notifications from the
same application for instance.
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org25a4cc0" class="outline-2">
<h2 id="org25a4cc0">LaTeX</h2>
<div class="outline-text-2" id="text-org25a4cc0">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Installation
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install texlive-full
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
<p>
Every custom class or packages can be put under <code>~/.local/share/texmf/tex/latex/local/</code> folder.
In order for LaTeX to be aware of new packages/classes, run <code>sudo texhash</code> each time a new custom package is added.
</p>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org52d7a99" class="outline-2">
<h2 id="org52d7a99">Mathematical Software</h2>
<div class="outline-text-2" id="text-org52d7a99">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org843a353" class="outline-3">
<h3 id="org843a353">Insect</h3>
<div class="outline-text-3" id="text-org843a353">
<p>
<a href="https://github.com/sharkdp/insect">https://github.com/sharkdp/insect</a>
</p>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<p>
Installation
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install insect
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>3 m/s to km/h</code></td>
<td class="org-left">Convert Unit</td>
</tr>
</tbody>
</table>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgfaa753a" class="outline-3">
<h3 id="orgfaa753a">Matlab</h3>
<div class="outline-text-3" id="text-orgfaa753a">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://wiki.archlinux.org/index.php/MATLAB#Installation">https://wiki.archlinux.org/index.php/MATLAB#Installation</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
<a href="matlab.html">Link</a> to the configuration.
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
Installation
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install matlab
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
If there is a problem when opening a Simulink file, check the solution <a href="https://fr.mathworks.com/matlabcentral/answers/361053-can-t-reload-usr-local-matlab-r2017b-bin-glnxa64-libmwdastudio-so">here</a>.
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge0803c0" class="outline-3">
<h3 id="orge0803c0">SageMath</h3>
<div class="outline-text-3" id="text-orge0803c0">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="http://www.sagemath.org/">http://www.sagemath.org/</a>
<a href="https://wiki.archlinux.org/index.php/SageMath">https://wiki.archlinux.org/index.php/SageMath</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
Installation
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install sagemath
</pre>
</div>
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Run <code>sage -n jupyter</code> to run jupyter notebooks
2020-03-19 10:46:47 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org74bd2dd" class="outline-3">
<h3 id="org74bd2dd">Python and Jupyter-notebook</h3>
</div>
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd5a74d7" class="outline-2">
<h2 id="orgd5a74d7">Calendar</h2>
<div class="outline-text-2" id="text-orgd5a74d7">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="calendar-contact.html">Link</a> to configuration
2020-03-19 10:46:47 +01:00
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7461509" class="outline-3">
<h3 id="org7461509"><code>vdirsyncer</code> - Sync calendars</h3>
<div class="outline-text-3" id="text-org7461509">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/pimutils/vdirsyncer">https://github.com/pimutils/vdirsyncer</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<p>
Installation:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install vdirsyncer python-requests-oauthlib-doc
2020-03-19 10:46:47 +01:00
</pre>
</div>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> pip install requests-oauthlib
2020-03-19 10:46:47 +01:00
</pre>
</div>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>vdirsyncer sync</code></td>
<td class="org-left">Synchronize</td>
2020-03-19 10:46:47 +01:00
</tr>
</tbody>
</table>
2022-05-09 10:05:23 +02:00
<p>
Setup the <code>google_calendar</code>:
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">vdirsyncer discover radicale_calendar
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
And start the <code>systemd</code> timer that automatically synchronize the calendars;
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-bash">systemctl --user enable --now vdirsyncer.timer
</pre>
2020-03-19 10:46:47 +01:00
</div>
<p>
2022-05-09 10:05:23 +02:00
To check the status of the service:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">systemctl --user status vdirsyncer.service
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7315f96" class="outline-3">
<h3 id="org7315f96"><code>khal</code> - Calendar Client</h3>
<div class="outline-text-3" id="text-org7315f96">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/pimutils/khal">https://github.com/pimutils/khal</a>
2020-03-19 10:46:47 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
Installation:
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install khal
</pre>
</div>
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Import ICS files:
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash">khal import even.ics
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org0ae00e2" class="outline-2">
<h2 id="org0ae00e2"><code>zathura</code> - PDF Reader</h2>
<div class="outline-text-2" id="text-org0ae00e2">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://pwmt.org/projects/zathura/">https://pwmt.org/projects/zathura/</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
</div>
<div id="outline-container-org79cb54d" class="outline-3">
<h3 id="org79cb54d">Installation</h3>
<div class="outline-text-3" id="text-org79cb54d">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install zathura
</pre>
</div>
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
Then add dependecies to view specific files:
2021-01-03 22:52:53 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install zathura-pdf-mupdf zathura-djvu zathura-ps zathura-cb
2021-01-03 22:52:53 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org3592520" class="outline-3">
<h3 id="org3592520">Configuration</h3>
<div class="outline-text-3" id="text-org3592520">
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>~/.config/zathura/zathurarc</code>
2021-01-03 22:52:53 +01:00
</p>
</div>
2020-03-19 10:46:47 +01:00
</div>
2021-01-03 22:52:53 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgaf25e5a" class="outline-3">
<h3 id="orgaf25e5a">Cheatsheet</h3>
<div class="outline-text-3" id="text-orgaf25e5a">
2021-01-03 22:52:53 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Command</th>
<th scope="col" class="org-left">Usage</th>
</tr>
</thead>
<tbody>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>p</code></td>
<td class="org-left">Print the current pdf</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>tab</code></td>
<td class="org-left">Show the outline</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>r</code></td>
<td class="org-left">Reload</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>J/K</code></td>
<td class="org-left">Next/previous page</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>H/L</code></td>
<td class="org-left">Zoom in/out</td>
2020-03-19 10:46:47 +01:00
</tr>
2020-11-03 16:27:09 +01:00
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>a</code></td>
<td class="org-left">Fit height</td>
2020-11-03 16:27:09 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>s</code></td>
<td class="org-left">Fit width</td>
2020-11-03 16:27:09 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>D</code></td>
<td class="org-left">Double page</td>
2020-11-03 16:27:09 +01:00
</tr>
2020-03-19 10:46:47 +01:00
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>f</code></td>
<td class="org-left">Follow link</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>i</code></td>
<td class="org-left">Night Mode</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>&lt;n&gt;gg</code></td>
<td class="org-left">Go to page n</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>mm</code></td>
<td class="org-left">Mark current location to m</td>
2020-03-19 10:46:47 +01:00
</tr>
<tr>
2022-05-09 10:05:23 +02:00
<td class="org-left"><code>'m</code></td>
<td class="org-left">Goto location m</td>
2020-03-19 10:46:47 +01:00
</tr>
</tbody>
</table>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd86a28d" class="outline-3">
<h3 id="orgd86a28d">Multi-monitor pdf presentation - pdfpc</h3>
<div class="outline-text-3" id="text-orgd86a28d">
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://github.com/pdfpc/pdfpc">https://github.com/pdfpc/pdfpc</a>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<p>
pdfpc is a great tool for showing pdf presentations. It support:
</p>
<ul class="org-ul">
<li>screen splitting</li>
<li>support for videos in pdf presentations</li>
<li>support for notes</li>
<li>support for annotations</li>
</ul>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9be05cb" class="outline-4">
<h4 id="org9be05cb">Installation</h4>
<div class="outline-text-4" id="text-org9be05cb">
<div class="org-src-container">
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install pdfpc
</pre>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org2aff926" class="outline-4">
<h4 id="org2aff926">Video support</h4>
<div class="outline-text-4" id="text-org2aff926">
<div class="org-src-container">
<pre class="src src-bash"> <span class="org-type">sudo</span> apt install gst-plugins-ugly gst-plugins-good gst-plugins-base-libs gst-plugins-base gst-plugins-bad gst-libav
</pre>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org083b825" class="outline-4">
<h4 id="org083b825">Usage</h4>
<div class="outline-text-4" id="text-org083b825">
<div class="org-src-container">
<pre class="src src-bash"> pdfpc filename.pdf
</pre>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org445dc4a" class="outline-2">
<h2 id="org445dc4a">Display Manager</h2>
<div class="outline-text-2" id="text-org445dc4a">
<p>
Before, I was using <code>lightDM</code>, but a single tty is enough.
</p>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<p>
However, to make tools like Anydesk or Teamviewer to work:
Add &ldquo;type=x11&rdquo; in <code>/etc/pam.d/system-login</code>:
</p>
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-variable-name">-session optional pam_systemd.so type</span>=x11
</pre>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<ul class="org-ul">
<li>When executing <code>loginctl session-status | grep Service</code> X11 should appear as initialized.</li>
<li><code>echo $XDG_SESSION_TYPE</code> should show <code>x11</code> instead of <code>tty</code> now</li>
</ul>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6d0663d" class="outline-2">
<h2 id="org6d0663d"><code>inkscape</code> - Graphical Editor</h2>
<div class="outline-text-2" id="text-org6d0663d">
<ul class="org-ul">
<li><a href="https://inkscape.org/">https://inkscape.org/</a></li>
<li>Tikz</li>
</ul>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> add-apt-repository ppa:inkscape.dev/stable
<span class="org-type">sudo</span> apt update
<span class="org-type">sudo</span> apt install inkscape
</pre>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9955fc6" class="outline-2">
<h2 id="org9955fc6"><code>wireguard</code> - VPN</h2>
<div class="outline-text-2" id="text-org9955fc6">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install wireguard-tools
</pre>
</div>
2020-03-19 10:46:47 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org05c822f" class="outline-2">
<h2 id="org05c822f">Others</h2>
<div class="outline-text-2" id="text-org05c822f">
</div>
<div id="outline-container-orgccbe77e" class="outline-3">
<h3 id="orgccbe77e">Things to install</h3>
<div class="outline-text-3" id="text-orgccbe77e">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install xwallpaper mpc mpv maim
<span class="org-type">sudo</span> apt install freerdp2-x11 xsel xclip xdotool
<span class="org-type">sudo</span> apt install unclutter xautolock redshift
<span class="org-type">sudo</span> apt install atool unrar p7zip
</pre>
2020-03-19 10:46:47 +01:00
</div>
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
Diff so fancy
2021-01-03 22:52:53 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> add-apt-repository ppa:aos1/diff-so-fancy
<span class="org-type">sudo</span> apt-get update
<span class="org-type">sudo</span> apt install diff-so-fancy
</pre>
</div>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">cd</span> ~/.local/bin
wget https://raw.githubusercontent.com/carnager/rofi-pass/master/rofi-pass
<span class="org-type">chmod</span> +x rofi-pass
2021-01-03 22:52:53 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
For image preview in <code>ranger</code>:
2021-01-03 22:52:53 +01:00
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> pip3 install ueberzug
2020-03-19 10:46:47 +01:00
</pre>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd3128df" class="outline-3">
<h3 id="orgd3128df"><code>maim=/=flameshot</code> - Take Screenshots</h3>
<div class="outline-text-3" id="text-orgd3128df">
<ul class="org-ul">
<li><a href="https://github.com/naelstrof/maim">https://github.com/naelstrof/maim</a></li>
<li><a href="https://github.com/lupoDharkael/flameshot">https://github.com/lupoDharkael/flameshot</a></li>
</ul>
<div class="org-src-container">
<pre class="src src-bash"><span class="org-type">sudo</span> apt install maim flameshot
</pre>
</div>
</div>
2021-01-03 22:52:53 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9d9cc7c" class="outline-3">
<h3 id="org9d9cc7c">Find Files</h3>
<div class="outline-text-3" id="text-org9d9cc7c">
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install fd-find ripgrep fzf
2021-01-03 22:52:53 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
2021-01-03 22:52:53 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org056ce20" class="outline-3">
<h3 id="org056ce20">PDF/Image Utilities</h3>
<div class="outline-text-3" id="text-org056ce20">
<ul class="org-ul">
<li><a href="https://github.com/dawbarton/pdf2svg">https://github.com/dawbarton/pdf2svg</a></li>
<li><a href="https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/">https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/</a></li>
<li><a href="https://github.com/Airblader/unclutter-xfixes">https://github.com/Airblader/unclutter-xfixes</a></li>
</ul>
2021-01-03 22:52:53 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install pdf2svg pdftk unclutter pdfarranger imagemagick
2021-01-03 22:52:53 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
</div>
</div>
2021-01-03 22:52:53 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org0f004d9" class="outline-3">
<h3 id="org0f004d9">Trash</h3>
<div class="outline-text-3" id="text-org0f004d9">
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>trash-cli</code> is used to manage the trash.
It is integrated with <code>ranger</code> and <code>pcmanFM</code>.
2021-01-03 22:52:53 +01:00
</p>
2022-05-09 10:05:23 +02:00
2021-01-01 20:12:34 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install trash-cli
2021-01-01 20:12:34 +01:00
</pre>
</div>
</div>
2020-03-19 10:46:47 +01:00
</div>
2021-01-01 20:12:34 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1f22f91" class="outline-3">
<h3 id="org1f22f91">Nice other programs</h3>
<div class="outline-text-3" id="text-org1f22f91">
<ul class="org-ul">
<li><a href="https://github.com/leonwind/cli2cloud">https://github.com/leonwind/cli2cloud</a></li>
<li>Gnu Make alternative <a href="https://github.com/taskctl/taskctl">https://github.com/taskctl/taskctl</a></li>
</ul>
</div>
</div>
</div>
2021-01-03 22:52:53 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge8798c2" class="outline-2">
<h2 id="orge8798c2">Printer</h2>
<div class="outline-text-2" id="text-orge8798c2">
2021-01-03 22:52:53 +01:00
<p>
2022-05-09 10:05:23 +02:00
<a href="https://wiki.archlinux.org/index.php/CUPS">https://wiki.archlinux.org/index.php/CUPS</a>
Web based administration: <a href="http://localhost:631/">http://localhost:631/</a>
2021-01-03 22:52:53 +01:00
</p>
<p>
2022-05-09 10:05:23 +02:00
To install the ESRF printer:
2021-01-03 22:52:53 +01:00
</p>
2022-05-09 10:05:23 +02:00
<div class="org-src-container">
<pre class="src src-bash">lpadmin -p ctb127c1u -v ipp://cups.esrf.fr/printers/ctb127c1u -E
</pre>
2021-01-03 22:52:53 +01:00
</div>
2020-03-19 10:46:47 +01:00
<p>
2022-05-09 10:05:23 +02:00
<code>system-config-printer</code>
2020-03-19 10:46:47 +01:00
</p>
2022-05-09 10:05:23 +02:00
<p>
Check the queue
</p>
2020-03-19 10:46:47 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> lpq
lpq -a <span class="org-comment-delimiter"># </span><span class="org-comment">on all queues</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
Clear the queue
2020-03-19 10:46:47 +01:00
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"> lprm <span class="org-comment-delimiter"># </span><span class="org-comment">remove last entry only</span>
lprm - <span class="org-comment-delimiter"># </span><span class="org-comment">remove all entries</span>
2020-03-19 10:46:47 +01:00
</pre>
</div>
2022-05-09 10:05:23 +02:00
<p>
Print a file
</p>
<div class="org-src-container">
<pre class="src src-bash"> lpr -P printer_name filename.pdf
</pre>
2020-01-12 00:19:16 +01:00
</div>
2022-05-09 10:05:23 +02:00
<p>
List available printers
</p>
<div class="org-src-container">
<pre class="src src-bash"> lpstat -a
</pre>
2020-01-12 00:19:16 +01:00
</div>
2022-05-09 10:05:23 +02:00
<p>
Stats about the printer
</p>
<div class="org-src-container">
<pre class="src src-bash"> lpstat -p printer_name
</pre>
2020-03-19 10:46:47 +01:00
</div>
</div>
</div>
2021-01-03 22:52:53 +01:00
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgdf06299" class="outline-2">
<h2 id="orgdf06299">List of all the install programs</h2>
<div class="outline-text-2" id="text-orgdf06299">
2020-03-19 10:46:47 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgdb02e65" class="outline-3">
<h3 id="orgdb02e65">Mutt</h3>
<div class="outline-text-3" id="text-orgdb02e65">
2021-01-03 22:52:53 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left"><code>neomutt</code></td>
<td class="org-left">Teaching an Old Dog New Tricks</td>
</tr>
<tr>
<td class="org-left"><code>msmtp</code></td>
<td class="org-left">SMTP client that can be used as an SMTP plugin for Mutt</td>
</tr>
<tr>
<td class="org-left"><code>isync</code></td>
<td class="org-left">Synchronize a maildir with an IMAP server</td>
</tr>
<tr>
<td class="org-left"><code>vdirsyncer</code></td>
<td class="org-left">Synchronize calendars and contacts</td>
</tr>
2021-01-08 01:43:48 +01:00
<tr>
<td class="org-left"><code>abook</code></td>
<td class="org-left">Address book with mutt support</td>
</tr>
2021-01-03 22:52:53 +01:00
<tr>
<td class="org-left"><code>urlview</code></td>
<td class="org-left">URL extractor/launcher</td>
</tr>
<tr>
<td class="org-left"><code>w3m</code></td>
<td class="org-left">Pager/text based browser</td>
</tr>
<tr>
2021-01-08 01:43:48 +01:00
<td class="org-left"><code>lynx</code></td>
2021-01-03 22:52:53 +01:00
<td class="org-left">Text mode web browser</td>
</tr>
<tr>
<td class="org-left"><code>lbdb</code></td>
<td class="org-left">Little brother&rsquo;s database for the mutt mail reader</td>
</tr>
<tr>
<td class="org-left"><code>mu</code></td>
<td class="org-left">Tool for searching e-mail messages stored in the maildir-format</td>
</tr>
<tr>
<td class="org-left"><code>ripmime</code></td>
<td class="org-left">Extract attachments out of MIME encoded email packages</td>
</tr>
<tr>
<td class="org-left"><code>shared</code></td>
<td class="org-left">mime-info - Database of common MIME types</td>
</tr>
</tbody>
</table>
2020-01-12 00:19:16 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org3a409b3" class="outline-3">
<h3 id="org3a409b3">File Management</h3>
<div class="outline-text-3" id="text-org3a409b3">
2020-01-12 00:19:16 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left"><code>grep</code></td>
<td class="org-left">GNU grep, egrep and fgrep</td>
</tr>
<tr>
<td class="org-left"><code>pdfgrep</code></td>
<td class="org-left">Search PDFs for strings matching a regular expression</td>
</tr>
<tr>
<td class="org-left"><code>the_platinum_searcher</code></td>
<td class="org-left">Multi-platform code-search similar to ack and ag</td>
</tr>
<tr>
<td class="org-left"><code>the_silver_searcher</code></td>
<td class="org-left">Code-search similar to ack</td>
</tr>
<tr>
<td class="org-left"><code>fdupes</code></td>
<td class="org-left">Identify or delete duplicate files</td>
</tr>
<tr>
<td class="org-left"><code>findutils</code></td>
<td class="org-left">Collection of GNU find, xargs, and locate</td>
</tr>
<tr>
<td class="org-left"><code>ranger</code></td>
<td class="org-left">File browser</td>
</tr>
<tr>
<td class="org-left"><code>vifm</code></td>
<td class="org-left">Ncurses based file manager with vi like keybindings</td>
</tr>
<tr>
<td class="org-left"><code>tree</code></td>
<td class="org-left">Display directories as trees (with optional color/HTML output)</td>
</tr>
<tr>
<td class="org-left"><code>p7zip</code></td>
<td class="org-left">7-Zip (high compression file archiver) implementation</td>
</tr>
<tr>
<td class="org-left"><code>unrar</code></td>
<td class="org-left">Extract, view, and test RAR archives</td>
</tr>
<tr>
2020-01-28 21:32:38 +01:00
<td class="org-left"><code>atool</code> <code>zip</code></td>
2020-01-12 00:19:16 +01:00
<td class="org-left">script for managing file archives of various types</td>
</tr>
</tbody>
</table>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5192d2c" class="outline-3">
<h3 id="org5192d2c">File Downloader</h3>
<div class="outline-text-3" id="text-org5192d2c">
2021-01-03 22:52:53 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left"><code>wget</code></td>
<td class="org-left">Internet file retriever</td>
</tr>
<tr>
<td class="org-left"><code>htop</code></td>
<td class="org-left">Improved top (interactive process viewer)</td>
</tr>
<tr>
<td class="org-left"><code>httpie</code></td>
<td class="org-left">User-friendly cURL replacement (command-line HTTP client)</td>
</tr>
<tr>
<td class="org-left"><code>curl</code></td>
<td class="org-left">Get a file from an HTTP, HTTPS or FTP server</td>
</tr>
</tbody>
</table>
2020-01-12 00:19:16 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org89cdaa3" class="outline-3">
<h3 id="org89cdaa3">Utils</h3>
<div class="outline-text-3" id="text-org89cdaa3">
2021-01-03 22:52:53 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left"><code>binutils</code></td>
<td class="org-left">GNU Binary Utilities</td>
</tr>
<tr>
<td class="org-left"><code>coreutils</code></td>
<td class="org-left">GNU File, Shell, and Text utilities</td>
</tr>
<tr>
<td class="org-left"><code>gnome</code></td>
<td class="org-left">doc-utils - Documentation utilities for the GNOME project</td>
</tr>
<tr>
<td class="org-left"><code>moreutils</code></td>
<td class="org-left">Collection of tools that nobody wrote when UNIX was young</td>
</tr>
</tbody>
</table>
2020-01-12 00:19:16 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orga0b1612" class="outline-3">
<h3 id="orga0b1612">A trier</h3>
<div class="outline-text-3" id="text-orga0b1612">
2020-01-12 00:19:16 +01:00
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left"><code>asciinema</code></td>
<td class="org-left">Terminal session recorder</td>
</tr>
<tr>
<td class="org-left"><code>automake</code></td>
<td class="org-left">tool for automatically generating Makefile</td>
</tr>
<tr>
<td class="org-left"><code>cmake</code></td>
<td class="org-left">Cross-platform make</td>
</tr>
<tr>
<td class="org-left"><code>cputhrottle</code></td>
<td class="org-left">Limit the CPU usage of a process</td>
</tr>
<tr>
<td class="org-left"><code>ctags</code></td>
<td class="org-left">Reimplementation of ctags</td>
</tr>
<tr>
<td class="org-left"><code>gdb</code></td>
<td class="org-left">GNU debugger</td>
</tr>
<tr>
<td class="org-left"><code>ghostscript</code></td>
<td class="org-left">Interpreter for PostScript and PDF</td>
</tr>
<tr>
<td class="org-left"><code>go</code></td>
<td class="org-left">Open source programming language to build simple/reliable/efficient software</td>
</tr>
<tr>
<td class="org-left"><code>hugo</code></td>
<td class="org-left">Configurable static site generator</td>
</tr>
<tr>
<td class="org-left"><code>markdown</code></td>
<td class="org-left">Text-to-HTML conversion tool</td>
</tr>
<tr>
<td class="org-left"><code>pandoc</code></td>
<td class="org-left">Swiss-army knife of markup format conversion</td>
</tr>
2021-01-08 01:43:48 +01:00
<tr>
<td class="org-left"><code>uni</code></td>
<td class="org-left">Query the Unicode database from the commandline</td>
</tr>
2020-01-12 00:19:16 +01:00
</tbody>
</table>
</div>
</div>
</div>
2020-03-19 10:46:47 +01:00
</div>
2020-01-12 00:19:16 +01:00
<div id="postamble" class="status">
2021-01-01 20:12:34 +01:00
<p class="author">Author: Dehaeze Thomas</p>
2022-05-09 10:05:23 +02:00
<p class="date">Created: 2022-05-09 lun. 10:04</p>
2020-01-12 00:19:16 +01:00
</div>
</body>
</html>