<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Archives from 2016 to 2020 on paapereira.xyz</title><link>https://paapereira.xyz/blog/archives/2016-2020/</link><description>Recent content in Archives from 2016 to 2020 on paapereira.xyz</description><generator>Hugo</generator><language>en-US</language><copyright>2008-2026 :: &lt;a href='https://creativecommons.org/licenses/by-nc/4.0/' target='_blank' rel='noopener'>CC BY-NC&lt;/a> :: &lt;a href='https://gitlab.com/paapereira/paapereira.gitlab.io' target='_blank' rel='noopener'>source code&lt;/a></copyright><lastBuildDate>Thu, 31 Dec 2020 20:33:10 +0000</lastBuildDate><atom:link href="https://paapereira.xyz/blog/archives/2016-2020/index.xml" rel="self" type="application/rss+xml"/><item><title>Book Haul for December 2020</title><link>https://paapereira.xyz/book-haul-2020-12/</link><pubDate>Thu, 31 Dec 2020 20:33:10 +0000</pubDate><guid>https://paapereira.xyz/book-haul-2020-12/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/book-hauls/2020-12-book-haul.png" alt="cover">&lt;/p>
&lt;p>Here’s my book haul for December.&lt;/p>
&lt;p>Too many Amazon deals will be my ruin.&lt;/p></description></item><item><title>Malazan Book of the Fallen Read Along</title><link>https://paapereira.xyz/malazan-read-along/</link><pubDate>Mon, 28 Dec 2020 18:23:20 +0000</pubDate><guid>https://paapereira.xyz/malazan-read-along/</guid><description>&lt;p>I’ll be reading “&lt;a href="https://www.goodreads.com/book/show/8134944">Gardens of the Moon&lt;/a>” by Steven Erikson, the first book of the &lt;a href="https://www.goodreads.com/series/43493-malazan-book-of-the-fallen">Malazan Book of the Fallen&lt;/a> series, beginning next year.&lt;/p>
&lt;p>I’ll be participating in &lt;a href="https://www.youtube.com/channel/UCm_DGonIiSrLBGLz0ProiWA">Mike&amp;rsquo;s Book Reviews&lt;/a> community read along.&lt;/p>
&lt;p>You can find out more in his &lt;a href="https://www.youtube.com/watch?v=uG7xMR7Fxwk">Malazan: Channel Read Along Schedule &amp;amp; FAQ&lt;/a> video.&lt;/p>
&lt;p>This is a 2 year read along marathon. Don’t know if I’m gonna go to the end, but at least the first book is bought and ready to go.&lt;/p></description></item><item><title>Starship - A cross-shell prompt</title><link>https://paapereira.xyz/starship/</link><pubDate>Sun, 06 Dec 2020 14:54:55 +0000</pubDate><guid>https://paapereira.xyz/starship/</guid><description>&lt;p>&lt;a href="https://starship.rs/">Starship&lt;/a> is a minimal, blazing-fast, and infinitely customizable prompt for any shell.&lt;/p>
&lt;p>You can see different options for the installation in the Starship site.&lt;/p>
&lt;p>In my case, in Arch Linux:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>paru starship-bin
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>After installing &lt;code>starship&lt;/code> you need to tell you shell to use it.&lt;/p>
&lt;p>In my case I&amp;rsquo;m using zsh and added the following to my &lt;code>.zshrc&lt;/code> file:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span># starship shell
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>eval &amp;#34;$(starship init zsh)&amp;#34;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>You can add customizations by creating a &lt;code>~/.config/starship.toml&lt;/code> file.&lt;/p></description></item><item><title>Book Haul for November 2020</title><link>https://paapereira.xyz/book-haul-2020-11/</link><pubDate>Sun, 06 Dec 2020 14:18:10 +0000</pubDate><guid>https://paapereira.xyz/book-haul-2020-11/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/book-hauls/2020-11-book-haul.png" alt="cover">&lt;/p>
&lt;p>Here’s my book haul for November.&lt;/p>
&lt;p>Those damned Amazon deals&amp;hellip;&lt;/p></description></item><item><title>Paru - An AUR helper and pacman wrapper</title><link>https://paapereira.xyz/paru/</link><pubDate>Sun, 01 Nov 2020 15:26:57 +0000</pubDate><guid>https://paapereira.xyz/paru/</guid><description>&lt;p>&lt;a href="https://github.com/Morganamilo/paru">Paru&lt;/a> is an &lt;a href="aur.archlinux.org/">AUR&lt;/a> helper and pacman wrapper written in Rust and based on the design of &lt;code>yay&lt;/code>.&lt;/p>
&lt;p>I&amp;rsquo;ve been using &lt;code>yay&lt;/code> for about a year now and I&amp;rsquo;ll be playing around with &lt;code>paru&lt;/code> for the next weeks. I still have &lt;code>yay&lt;/code> installed and yes, I used &lt;code>yay&lt;/code> to install &lt;code>paru&lt;/code>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>yay -S paru-bin
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Installing and upgrading packages from the Arch repositories or from the AUR it&amp;rsquo;s just like &lt;code>yay&lt;/code>.&lt;/p></description></item><item><title>Book Haul for October 2020</title><link>https://paapereira.xyz/book-haul-2020-10/</link><pubDate>Sun, 01 Nov 2020 14:33:10 +0000</pubDate><guid>https://paapereira.xyz/book-haul-2020-10/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/book-hauls/2020-10-book-haul.png" alt="cover">&lt;/p>
&lt;p>Here’s my book haul for October.&lt;/p>
&lt;p>Bought a few books for Kindle after recently buying a &lt;a href="https://paapereira.xyz/posts/kindle-paperwhite/">Paperwhite&lt;/a>. The rest came from Audible and I added some from Audible Plus to my library.&lt;/p></description></item><item><title>New Kindle Paperwhite</title><link>https://paapereira.xyz/kindle-paperwhite/</link><pubDate>Sat, 10 Oct 2020 15:15:54 +0100</pubDate><guid>https://paapereira.xyz/kindle-paperwhite/</guid><description>&lt;p>This week my new &lt;a href="https://www.amazon.com/dp/B075MWNNJG/ref=twister_B07J2FGZSM">Kindle Paperwhite&lt;/a> with &lt;a href="https://www.audible.com/">Audible&lt;/a> support arrived.&lt;/p>
&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-10-10-kindle-paperwhite/kindle.jpg" alt="Kindle Paperwhite">&lt;/p></description></item><item><title>Reviewing my book ratings</title><link>https://paapereira.xyz/book-ratings/</link><pubDate>Sun, 27 Sep 2020 18:23:20 +0100</pubDate><guid>https://paapereira.xyz/book-ratings/</guid><description>&lt;p>UPDATE: check out my &lt;a href="https://paapereira.xyz/posts/book-ratings-reviewed/">current rating&lt;/a> system.&lt;/p>
&lt;p>In the process of migrating my book library to &lt;a href="https://paapereira.xyz/posts/calibre/">Calibre&lt;/a> I also reviewed my rating process, all my rating in &lt;a href="https://www.goodreads.com/paapereira">Goodreads&lt;/a> and my &lt;a href="https://www.goodreads.com/review/list/16853893-paulo-pereira?ref=nav_mybooks&amp;amp;shelf=top-100">top 100 shelf&lt;/a>.&lt;/p>
&lt;p>This is my new logic for rating books:&lt;/p>
&lt;p>★★★★★ - Fantastic book. A classic or a future classic. One of my favorite books.&lt;/p>
&lt;p>★★★★☆ - Really enjoyed reading this book. Easy recommendation and a very good book.&lt;/p>
&lt;p>★★★☆☆ - I liked it and it is a good, above average, book.&lt;/p></description></item><item><title>Calibre 5 is out</title><link>https://paapereira.xyz/calibre-v5/</link><pubDate>Fri, 25 Sep 2020 15:22:57 +0100</pubDate><guid>https://paapereira.xyz/calibre-v5/</guid><description>&lt;p>Calibre 5 is out.&lt;/p>
&lt;p>I had &lt;a href="https://paapereira.xyz/posts/calibre/">installed&lt;/a> the python3 version. No need now, just install the &lt;code>calibre&lt;/code> package.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S calibre
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Calibre ebook management</title><link>https://paapereira.xyz/calibre/</link><pubDate>Thu, 24 Sep 2020 11:17:31 +0100</pubDate><guid>https://paapereira.xyz/calibre/</guid><description>&lt;p>I’ve been playing around and migrating my book library to &lt;a href="https://calibre-ebook.com/">Calibre&lt;/a>.&lt;/p>
&lt;h2 id="installing">Installing&lt;/h2>
&lt;p>I installed the python3 version.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>yay -S calibre-common calibre-python3
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="goodreads-plugin">Goodreads plugin&lt;/h2>
&lt;p>I installed the Goodreads plugin to connect to my &lt;a href="https://www.goodreads.com/paapereira">account&lt;/a> and sync my ratings and read dates (for this I created a &amp;lsquo;read_date&amp;rsquo; column.&lt;/p>
&lt;p>I also sync my top 100 books. For that I created a &amp;rsquo;top_100&amp;rsquo; column in Calibre and when syncing my &amp;lsquo;Top 100&amp;rsquo; shelf from Goodreads I update this column.&lt;/p></description></item><item><title>System backups with BorgBackup and BorgBase</title><link>https://paapereira.xyz/system-backups-borg/</link><pubDate>Wed, 23 Sep 2020 17:46:20 +0100</pubDate><guid>https://paapereira.xyz/system-backups-borg/</guid><description>&lt;p>Since my last &lt;a href="https://paapereira.xyz/posts/borg/">post&lt;/a> on &lt;a href="https://www.borgbackup.org/">BorgBackup&lt;/a> and &lt;a href="https://www.borgbase.com/">BorgBase&lt;/a>, I have subscribed to a 1 TB annual plan and have my daily and weekly /home backups running.&lt;/p>
&lt;p>The next thing to setup is my system backups. For this (for now) I’m using a more weekly manually approach.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S borg
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="setup">Setup&lt;/h2>
&lt;ul>
&lt;li>Create a new key to use in your backups (&lt;em>leave the password blank, I couldn&amp;rsquo;t get it to work witch a password&lt;/em>)&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo ssh-keygen -o -a &lt;span style="color:#ae81ff">100&lt;/span> -t ed25519
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Add your key to BorgBase (Account &amp;gt; SSH Keys)&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo cat /root/.ssh/id_ed25519.pub
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>
&lt;p>Create a new ‘desktop-system’ Repository in BorgBase and associate your SSH Key&lt;/p></description></item><item><title>Listening to podcast using gpodder, gpodder.net and AntennaPod</title><link>https://paapereira.xyz/gpodder-antennapod/</link><pubDate>Sun, 06 Sep 2020 11:43:13 +0100</pubDate><guid>https://paapereira.xyz/gpodder-antennapod/</guid><description>&lt;p>I’ve been using &lt;a href="https://www.pocketcasts.com/">PocketCasts&lt;/a> to listen to my podcasts for quite some time. In Android using with the app and in Linux in the website (using &lt;a href="https://gitlab.com/ColinDuquesnoy/MellowPlayer">MellowPlayer&lt;/a>).&lt;/p>
&lt;p>But I’ve also been looking to a more open source way to listen to my podcasts.&lt;/p>
&lt;p>I’m using for two weeks now &lt;a href="https://antennapod.org/">AntennaPod&lt;/a> in Android, &lt;a href="https://gpodder.net/">gpodder.net&lt;/a> to manage my subscriptions and &lt;a href="https://gpodder.github.io/">gpodder&lt;/a> in Arch Linux.&lt;/p>
&lt;h2 id="installation-and-setup">Installation and Setup&lt;/h2>
&lt;ul>
&lt;li>Install &lt;a href="https://antennapod.org/">AntennaPod&lt;/a> on &lt;a href="https://f-droid.org/packages/de.danoeh.antennapod/">F-Droid&lt;/a> or &lt;a href="https://play.google.com/store/apps/details?id=de.danoeh.antennapod">Google Play&lt;/a>&lt;/li>
&lt;li>Install &lt;a href="https://gpodder.github.io/">gpodder&lt;/a> (in my case in Arch Linux &lt;code>yay -S gpodder&lt;/code>)&lt;/li>
&lt;li>Create an account at &lt;a href="https://gpodder.net/">gpodder.net&lt;/a>&lt;/li>
&lt;li>Configure in AntennaPod and gpodder your new gpodder.net account&lt;/li>
&lt;/ul>
&lt;h2 id="managing-subscriptions">Managing Subscriptions&lt;/h2>
&lt;p>I exported my subscriptions in PocketCasts.&lt;/p></description></item><item><title>Remote backups using BorgBackup, Vorta and BorgBase</title><link>https://paapereira.xyz/borg/</link><pubDate>Sun, 23 Aug 2020 20:11:14 +0100</pubDate><guid>https://paapereira.xyz/borg/</guid><description>&lt;p>I’ve been using a mix of my own scripts with tar/gpg and &lt;a href="https://paapereira.xyz/tags/duplicity">duplicity&lt;/a> to manage my backups (local and remote).&lt;/p>
&lt;p>For some time now duplicity has been my choice, but lately it seems that every time a backup is interrupted it doesn’t restart at the archive it was at, but it starts from the beginning.&lt;/p>
&lt;p>Since I have many GB to backup, every time duplicity performs a full backup this is a problem because I have to leave my desktop on for many hours. Also the fans start doing overtime and my little &lt;a href="https://paapereira.xyz/tags/nuc">nuc&lt;/a> starts heating up.&lt;/p></description></item><item><title>Improving my Boot Time in Arch Linux</title><link>https://paapereira.xyz/boot-time/</link><pubDate>Sat, 22 Aug 2020 17:16:32 +0100</pubDate><guid>https://paapereira.xyz/boot-time/</guid><description>&lt;p>I was investigating and issue with &lt;a href="https://paapereira.xyz/tags/duplicity">duplicity&lt;/a> when I stumbled with &lt;code>systemd-analyze&lt;/code>.&lt;/p>
&lt;p>So I started to see what was contributing for my boot time and after that I started too see how to improved.&lt;/p>
&lt;p>This is by no means a guide, but just what I changed to improve.&lt;/p>
&lt;p>You can use &lt;code>sudo systemd-analyze blame&lt;/code> to see load time for every programs that loads at boot time and &lt;code>sudo systemd-analyze critical-chain&lt;/code> to basically see the critical programs that you could focus on.&lt;/p></description></item><item><title>Manage your Arch Linux mirrors with Reflector</title><link>https://paapereira.xyz/reflector/</link><pubDate>Sun, 02 Aug 2020 15:08:17 +0100</pubDate><guid>https://paapereira.xyz/reflector/</guid><description>&lt;p>From the &lt;a href="https://wiki.archlinux.org/index.php/Reflector">Arch Wiki&lt;/a>:&lt;/p>
&lt;p>&lt;em>&lt;a href="http://xyne.archlinux.ca/projects/reflector/">Reflector&lt;/a> is a script which can retrieve the latest mirror list from the &lt;a href="https://www.archlinux.org/mirrors/status/">MirrorStatus&lt;/a> page, filter the most up-to-date mirrors, sort them by speed and overwrite the file &lt;code>/etc/pacman.d/mirrorlist&lt;/code>.&lt;/em>&lt;/p>
&lt;h2 id="instalation">Instalation&lt;/h2>
&lt;ul>
&lt;li>Install reflector&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>yay -S reflector
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Create the systemd service&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo vi /etc/systemd/system/reflector.service
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>[Unit]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>Description=Pacman mirrorlist update
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>Wants=network-online.target
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>After=network-online.target nss-lookup.target
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>[Service]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>Type=oneshot
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span>ExecStart=/usr/bin/reflector --verbose --protocol https --country &amp;#39;Portugal&amp;#39; --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span>[Install]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span>WantedBy=multi-user.target
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo systemctl daemon-reload
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sudo systemctl start reflector.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo systemctl status reflector.service
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>You can enable the service. I prefer to control when the scripts executes.&lt;/p></description></item><item><title>🧘 1000 days in a row meditating</title><link>https://paapereira.xyz/headspace-1000/</link><pubDate>Wed, 08 Jul 2020 20:45:00 +0100</pubDate><guid>https://paapereira.xyz/headspace-1000/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-07-08-headspace-1000/headspace-1000.png" alt="cover">&lt;/p>
&lt;p>I&amp;rsquo;m a member of &lt;a href="https://www.headspace.com/">Headspace&lt;/a> since April 25, 2016 and I have meditated daily, non stop, since that day.&lt;/p>
&lt;p>The official count was resetted twice. Once because I changed from meditating in the morning to the night and other because I did after midnight and I guess it was too late to count.&lt;/p>
&lt;p>Either way, this is a nice mark. The number is actually higher, but who&amp;rsquo;s counting 😄&lt;/p></description></item><item><title>Upgrading Seafile from 7.0.x to 7.1.x</title><link>https://paapereira.xyz/upgrade-seafile-70-71/</link><pubDate>Sun, 05 Jul 2020 14:24:44 +0100</pubDate><guid>https://paapereira.xyz/upgrade-seafile-70-71/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-07-05-upgrade-seafile-70-71/seafile.png" alt="cover">&lt;/p>
&lt;p>I’ve waiting to upgrade to &lt;a href="https://www.seafile.com/">Seafile&lt;/a> 7.1 because I keep my installation manually and I wasn&amp;rsquo;t finding the *x86-64.tar.gz option to download.
After asking in the &lt;a href="https://forum.seafile.com/t/seafile-server-7-1-4-is-ready/11910/8">forums&lt;/a>, I discovered it&amp;rsquo;s just a change of name.&lt;/p>
&lt;p>Don&amp;rsquo;t forget to read the &lt;a href="https://download.seafile.com/published/seafile-manual/upgrade/upgrade_notes_for_7.1.x.md">release notes&lt;/a> from Seafile.&lt;/p>
&lt;h2 id="before-upgrading">Before upgrading&lt;/h2>
&lt;p>Reading the &lt;a href="https://download.seafile.com/published/seafile-manual/upgrade/upgrade_notes_for_7.1.x.md">release notes&lt;/a>, this version needs Python 3 and a set of modules.&lt;/p>
&lt;h3 id="python-3">Python 3&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>yay -S python python-setuptools python-pip
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo pip3 install --timeout&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">3600&lt;/span> wheel Pillow pylibmc captcha jinja2 &lt;span style="color:#ae81ff">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>&lt;span style="color:#ae81ff">&lt;/span>	sqlalchemy django-pylibmc django-simple-captcha python3-ldap &lt;span style="color:#ae81ff">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>&lt;span style="color:#ae81ff">&lt;/span>	django-recaptcha django-ranged-response
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="memcached">Memcached&lt;/h3>
&lt;p>The Memcached configuration also changed in this version. I wasn&amp;rsquo;t using Memcached, so I took the opportunity to set it up.&lt;/p></description></item><item><title>🔍 Searx: a hackable metasearch engine</title><link>https://paapereira.xyz/searx/</link><pubDate>Sat, 20 Jun 2020 11:24:26 +0100</pubDate><guid>https://paapereira.xyz/searx/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-06-20-searx/searx.png" alt="cover">&lt;/p>
&lt;p>&lt;em>Searx is a free internet metasearch engine which aggregates results from more than 70 search services. Users are neither tracked nor profiled.&lt;/em>&lt;/p>
&lt;p>I recently &lt;a href="https://lbry.tv/@Luke:7/the-proper-way-to-do-web-searches-searx:3">learned&lt;/a> about &lt;a href="https://asciimoo.github.io/searx/">Searx&lt;/a> and have been using it as my main search engine.&lt;/p>
&lt;h2 id="how-to-use">How to use&lt;/h2>
&lt;p>You basically have two option: &lt;a href="https://asciimoo.github.io/searx/admin/installation.html">install&lt;/a> Searx in a machine controlled by you or use one of the available &lt;a href="https://searx.space/">Searx-instances&lt;/a>.&lt;/p>
&lt;p>For now I&amp;rsquo;m using one of the instances, namely &lt;a href="https://searx.pofilo.fr/">https://searx.pofilo.fr/&lt;/a>.&lt;/p>
&lt;h2 id="preferences">Preferences&lt;/h2>
&lt;p>You can set a different variety of preferences including:&lt;/p></description></item><item><title>Started a new qqgtd project in GitLab</title><link>https://paapereira.xyz/qqgtd-project/</link><pubDate>Thu, 04 Jun 2020 19:03:58 +0100</pubDate><guid>https://paapereira.xyz/qqgtd-project/</guid><description>&lt;p>I recently started a &lt;a href="https://gitlab.com/paapereira/qqgtd">new project&lt;/a> at GitLab to host my new text based Getting Things Done approach.&lt;/p>
&lt;p>It&amp;rsquo;s still at early stages, but I&amp;rsquo;m using it daily along my current system using &lt;a href="https://nozbe.com/">Nozbe&lt;/a>.&lt;/p>
&lt;p>I&amp;rsquo;ve been a GTD guy since like forever and have used many different applications through the years. The most important thing about GTD is the method and not the tools, so changing my tool set is usually not a problem.&lt;/p></description></item><item><title>⌚ New Casio G-Shock DW5600-E</title><link>https://paapereira.xyz/new-casio-dw-5600e/</link><pubDate>Sat, 23 May 2020 18:05:55 +0100</pubDate><guid>https://paapereira.xyz/new-casio-dw-5600e/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-05-23-new-casio-dw-5600e/g-shock-dw-5600e.png" alt="cover">&lt;/p>
&lt;p>As an early birthday present I got the best space proved, back from ‘83, &lt;a href="https://www.casio.com/products/watches/g-shock/dw5600e-1v">Casio G-Shock DW-5600E&lt;/a>.&lt;/p>
&lt;p>I wanted a G-Shock since I was a kid. I used a Casio F-91W when I was younger until I got a cellphone in early 2000s. After that my clock was my phone, from my first “dumb” phone the the latest smart-phones and “smart”-watches.&lt;/p>
&lt;p>After buying some time ago a F-91W, remembering my 80s and 90s, I now got a super present :-)&lt;/p></description></item><item><title>🖥️ 🐧 Installing Arch Linux in my new NUC7i3BNH</title><link>https://paapereira.xyz/install-arch-linux-new-nuc7i3bnh/</link><pubDate>Sat, 09 May 2020 10:40:10 +0100</pubDate><guid>https://paapereira.xyz/install-arch-linux-new-nuc7i3bnh/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-05-09-install-arch-linux-new-nuc7i3bnh/arch-linux.png" alt="cover">&lt;/p>
&lt;p>Time to setup my new &lt;a href="https://paapereira.xyz/blog/2020/05/new-nuc7i3bnh/">NUC7i3BNH&lt;/a>.&lt;/p>
&lt;p>I will install Arch Linux with no window manager and it will act as my home server with Seafile, Plex, Sickchill, sabnzbd, etc..&lt;/p>
&lt;h2 id="preparation">Preparation&lt;/h2>
&lt;h3 id="upgrade-bios-firmware">Upgrade BIOS Firmware&lt;/h3>
&lt;ol>
&lt;li>Download the latest &lt;a href="https://downloadcenter.intel.com/product/95066/Intel-NUC-Kit-NUC7i3BNH">BIOS&lt;/a>&lt;/li>
&lt;li>Copy the .bios file to a USB drive&lt;/li>
&lt;li>Boot and enter the upgrade page with F7&lt;/li>
&lt;/ol>
&lt;h3 id="burn-iso-to-usb-pen-drive">Burn ISO to USB pen drive&lt;/h3>
&lt;ol>
&lt;li>Download the &lt;a href="https://www.archlinux.org/download/">Arch Linux ISO&lt;/a>&lt;/li>
&lt;li>Burn the iso in the usb pen drive.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>lsblk
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>cd Downloads
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo dd bs&lt;span style="color:#f92672">=&lt;/span>4M &lt;span style="color:#66d9ef">if&lt;/span>&lt;span style="color:#f92672">=&lt;/span>archlinux-2020.05.01-x86_64.iso of&lt;span style="color:#f92672">=&lt;/span>/dev/sdc status&lt;span style="color:#f92672">=&lt;/span>progress oflag&lt;span style="color:#f92672">=&lt;/span>sync
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>Boot from the usb pen drive (setup the boot sequence entering the BIOS with F2).&lt;/p></description></item><item><title>🖥️ New Intel® NUC Kit NUC7i3BNH</title><link>https://paapereira.xyz/new-nuc7i3bnh/</link><pubDate>Tue, 05 May 2020 11:30:30 +0100</pubDate><guid>https://paapereira.xyz/new-nuc7i3bnh/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-05-05-new-nuc7i3bnh/intel-nuc7i3bnh.jpg" alt="cover">&lt;/p>
&lt;p>My &lt;a href="https://ark.intel.com/content/www/us/en/ark/products/95066/intel-nuc-kit-nuc7i3bnh.html">NUC7i3BNH&lt;/a> just arrived.&lt;/p>
&lt;p>I’m going to start preparations to migrate from my current &lt;a href="https://ark.intel.com/content/www/us/en/ark/products/76978/intel-nuc-kit-d34010wyk.html">NUC D34010WYK&lt;/a> to the new one.&lt;/p>
&lt;p>New post will follow in the next days.&lt;/p>
&lt;h2 id="the-new-hardware">The new hardware&lt;/h2>
&lt;ul>
&lt;li>Intel &lt;a href="https://ark.intel.com/content/www/us/en/ark/products/95066/intel-nuc-kit-nuc7i3bnh.html">NUC7i3BNH&lt;/a> (i3-7100U Processor, 2.40 GHz)&lt;/li>
&lt;li>G.Skill Ripjaws SODIMM DDR4 8GB 2133MHz CAS15&lt;/li>
&lt;li>Samsung 970 EVO Plus SSD M.2 NVMe 250GB&lt;/li>
&lt;/ul>
&lt;h2 id="software">Software&lt;/h2>
&lt;ul>
&lt;li>Arch Linux&lt;/li>
&lt;li>No window manager&lt;/li>
&lt;li>Seafile&lt;/li>
&lt;li>Plex&lt;/li>
&lt;li>Sickchill&lt;/li>
&lt;li>sabnzbd&lt;/li>
&lt;li>etc.&lt;/li>
&lt;/ul></description></item><item><title>Setting up Hugo with GitLab</title><link>https://paapereira.xyz/setting-hugo-with-gitlab/</link><pubDate>Mon, 13 Apr 2020 20:19:55 +0100</pubDate><guid>https://paapereira.xyz/setting-hugo-with-gitlab/</guid><description>&lt;h2 id="what-will-you-need">What will you need&lt;/h2>
&lt;ul>
&lt;li>A &lt;a href="https://gitlab.com/">GitLab&lt;/a> account&lt;/li>
&lt;li>&lt;a href="https://gohugo.io/">Hugo&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="creating-a-gitlab-page">Creating a GitLab Page&lt;/h2>
&lt;p>It is as easy as clone an example GitLab Page Hugo example as the base for your own blog or homepage.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Go to &lt;a href="https://gitlab.com/pages/hugo">https://gitlab.com/pages/hugo&lt;/a> and fork the project to your GitLab account&lt;/p>
&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-04-13-setting-hugo-with-gitlab/fork.png" alt="fork">&lt;/p>
&lt;/li>
&lt;li>
&lt;p>In your new repository, remove the fork relationship (Settings &amp;gt; General &amp;gt; Advanced &amp;gt; Remove fork relationship)&lt;/p>
&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-04-13-setting-hugo-with-gitlab/remove-fork.png" alt="remove fork">&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Make sure your have the Shared Runners enabled (Settings &amp;gt; CI/CD &amp;gt; Runners)&lt;/p></description></item><item><title>New homepage and blog</title><link>https://paapereira.xyz/new-blog/</link><pubDate>Sun, 12 Apr 2020 19:01:21 +0100</pubDate><guid>https://paapereira.xyz/new-blog/</guid><description>&lt;p>I&amp;rsquo;m moving my homepage/blog from blogspot to a Hugo/GitLab setup.&lt;/p>
&lt;p>In the following future a (manual) migration will slowly be taking place.&lt;/p></description></item><item><title>🖥️ My CPU Fan is starting to die - I need a new server</title><link>https://paapereira.xyz/need-a-new-server/</link><pubDate>Mon, 02 Mar 2020 22:11:10 +0100</pubDate><guid>https://paapereira.xyz/need-a-new-server/</guid><description>&lt;p>&lt;img src="https://paapereira.xyz/blog/2020/2020-03-02-need-a-new-server/intel-nuc7i3bnh.jpg" alt="cover">&lt;/p>
&lt;p>So, my NUC server CPU fan is starting to go.&lt;/p>
&lt;p>It has been making a lot of noise. I already tried to clean it and turn off the server overnight. It’s better, but it’s starting to die.&lt;/p>
&lt;p>Time to upgrade.&lt;/p>
&lt;p>Basically I will still go with a NUC i3 with 8GB of RAM. It’s enough for my needs.&lt;/p></description></item><item><title>Jabber/XMPP Instant Messaging</title><link>https://paapereira.xyz/xmpp/</link><pubDate>Sun, 02 Feb 2020 10:55:01 +0000</pubDate><guid>https://paapereira.xyz/xmpp/</guid><description>&lt;p>&amp;mdash;&amp;mdash;&amp;gt; &lt;strong>There is an updated post &lt;a href="https://paapereira.xyz/posts/xmpp-2023-update">here&lt;/a>.&lt;/strong>&lt;/p>
&lt;h2 id="quick-start">Quick start&lt;/h2>
&lt;ol>
&lt;li>Install &lt;a href="https://play.google.com/store/apps/details?id=im.quicksy.client">Quicksy&lt;/a>&lt;/li>
&lt;li>Create your free +phonenumber@quicksy.im account&lt;/li>
&lt;li>Contact &lt;a href="mailto:paulo@paapereira.xyz">me&lt;/a> if you need help/tips&lt;/li>
&lt;/ol>
&lt;h2 id="what-is-jabber-aka-xmpp">What is Jabber (aka XMPP)?&lt;/h2>
&lt;p>&lt;em>XMPP is the Extensible Messaging and Presence Protocol, a set of open technologies for instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.&lt;/em>&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>&lt;/p>
&lt;p>In simple terms &lt;em>xmpp&lt;/em> it’s like imap and pop3 for email.
A major advantage is that you can create an account in you preferred server (just like email) and talk to another person that have an account in another server.&lt;/p></description></item><item><title>Manage dotfiles using a git bare repository</title><link>https://paapereira.xyz/manage-dotfiles/</link><pubDate>Wed, 01 Jan 2020 18:33:15 +0000</pubDate><guid>https://paapereira.xyz/manage-dotfiles/</guid><description>&lt;p>I&amp;rsquo;ve been searching the best way to manage my dotfiles using git.&lt;/p>
&lt;p>After seeing this &lt;a href="https://www.youtube.com/watch?v=tBoLDpTWVOM">video&lt;/a> and checking this &lt;a href="https://www.atlassian.com/git/tutorials/dotfiles">tutorial&lt;/a> I decided to give it a go.&lt;/p>
&lt;p>I will be using &lt;a href="https://keybase.io/">keybase&lt;/a> as my (private) git repository.&lt;/p>
&lt;h2 id="create-and-setup-repository">Create and setup repository&lt;/h2>
&lt;ul>
&lt;li>Create a repository in keybase using the application&lt;/li>
&lt;li>Create a bare repository&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>mkdir -p $HOME/.dotfiles
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>git init --bare $HOME/.dotfiles
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>alias dotfiles&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#39;/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>dotfiles config --local status.showUntrackedFiles no
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>echo &lt;span style="color:#e6db74">&amp;#34;alias dotfiles=&amp;#39;/usr/bin/git --git-dir=&lt;/span>$HOME&lt;span style="color:#e6db74">/.dotfiles --work-tree=&lt;/span>$HOME&lt;span style="color:#e6db74">&amp;#39;&amp;#34;&lt;/span> &amp;gt;&amp;gt; $HOME/.zshrc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="adding-files">Adding files&lt;/h2>
&lt;ul>
&lt;li>Add a first file to test if everything is OK&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>dotfiles status
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>dotfiles add .vimrc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>dotfiles commit -m &lt;span style="color:#e6db74">&amp;#34;Add vimrc&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>dotfiles remote add origin keybase://private/your_username/dotfiles
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>dotfiles push -u origin master
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Every time you want to add a new file&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>dotfiles add .bashrc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>dotfiles commit -m &lt;span style="color:#e6db74">&amp;#34;Add bashrc&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>dotfiles add .zshrc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>dotfiles commit -m &lt;span style="color:#e6db74">&amp;#34;Add zshrc&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>dotfiles push
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="dotfiles-in-a-new-system">Dotfiles in a new system&lt;/h2>
&lt;ul>
&lt;li>In a new system, you can get your dotfiles by:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>alias dotfiles&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#39;/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>echo &lt;span style="color:#e6db74">&amp;#34;.dotfiles&amp;#34;&lt;/span> &amp;gt;&amp;gt; .gitignore
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>git clone --bare keybase://private/your_username/dotfiles $HOME/.dotfiles
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>dotfiles config --local status.showUntrackedFiles no
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>mkdir -p $HOME/.dotfiles-backup
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>dotfiles checkout
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>&lt;span style="color:#66d9ef">if&lt;/span> &lt;span style="color:#f92672">[&lt;/span> $? &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0&lt;/span> &lt;span style="color:#f92672">]&lt;/span>; &lt;span style="color:#66d9ef">then&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span> echo &lt;span style="color:#e6db74">&amp;#34;Checked out config.&amp;#34;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>&lt;span style="color:#66d9ef">else&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span> echo &lt;span style="color:#e6db74">&amp;#34;Backing up pre-existing dot files.&amp;#34;&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span> dotfiles checkout 2&amp;gt;&amp;amp;&lt;span style="color:#ae81ff">1&lt;/span> | egrep &lt;span style="color:#e6db74">&amp;#34;\s+\.&amp;#34;&lt;/span> | awk &lt;span style="color:#f92672">{&lt;/span>&lt;span style="color:#e6db74">&amp;#39;print $1&amp;#39;&lt;/span>&lt;span style="color:#f92672">}&lt;/span> | xargs -I&lt;span style="color:#f92672">{}&lt;/span> mv &lt;span style="color:#f92672">{}&lt;/span> $HOME/.dotfiles-backup/&lt;span style="color:#f92672">{}&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12&lt;/span>&lt;span>&lt;span style="color:#66d9ef">fi&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13&lt;/span>&lt;span>dotfiles checkout
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Then, every time you want to refresh your dotfiles&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>dotfiles pull
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>🖥️ 🐧 Installing Arch Linux in my new Surface Go</title><link>https://paapereira.xyz/install-arch-linux-surface-go/</link><pubDate>Sat, 30 Nov 2019 18:01:16 +0000</pubDate><guid>https://paapereira.xyz/install-arch-linux-surface-go/</guid><description>&lt;h2 id="surface-go">Surface Go&lt;/h2>
&lt;ul>
&lt;li>Surface Go (10&amp;rsquo;&amp;rsquo; - Intel Pentium Gold 4415Y - RAM: 8 GB - 128 GB SSD - Intel HD 615)&lt;/li>
&lt;li>Surface Go Black Type Cover&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://paapereira.xyz/blog/2019/2019-11-30-install-arch-linux-surface-go/surface-go.png" alt="Surface Go">&lt;/p>
&lt;h2 id="final-setup">Final setup&lt;/h2>
&lt;ul>
&lt;li>Run only Linux&lt;/li>
&lt;li>Arch Linux&lt;/li>
&lt;li>Gnome&lt;/li>
&lt;/ul>
&lt;h2 id="preparation">Preparation&lt;/h2>
&lt;h3 id="needed-hardware">Needed hardware&lt;/h3>
&lt;ul>
&lt;li>Surface Go&lt;/li>
&lt;li>Surface Go Keyboard or USB keyboard/mouse&lt;/li>
&lt;li>USB pen drive&lt;/li>
&lt;li>USB Ethernet adapter&lt;/li>
&lt;li>USB-C to USB adapter + USB Hub or USB-C hub&lt;/li>
&lt;/ul>
&lt;h3 id="burn-iso-to-usb-pen-drive">Burn ISO to USB pen drive&lt;/h3>
&lt;ol>
&lt;li>Download the Arch Linux ISO.&lt;/li>
&lt;li>Burn the iso in the pen drive.&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo dd bs&lt;span style="color:#f92672">=&lt;/span>4M &lt;span style="color:#66d9ef">if&lt;/span>&lt;span style="color:#f92672">=&lt;/span>archlinux-2019.10.01-x86_64.iso of&lt;span style="color:#f92672">=&lt;/span>/dev/sdc status&lt;span style="color:#f92672">=&lt;/span>progress oflag&lt;span style="color:#f92672">=&lt;/span>sync
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="connect-the-dongles">Connect the dongles&lt;/h3>
&lt;p>Depending on your setup make sure you have the USB pen drive with the Arch Linux ISO burned and a Ehternet cable connected.&lt;/p></description></item><item><title>Folder thumbnails in Thunar</title><link>https://paapereira.xyz/folder-thumbnails-thunar/</link><pubDate>Tue, 13 Aug 2019 21:12:35 +0000</pubDate><guid>https://paapereira.xyz/folder-thumbnails-thunar/</guid><description>&lt;p>My favorite file manager is &lt;a href="https://docs.xfce.org/xfce/thunar/start">Thunar&lt;/a>, but it hasn’t folder thumbnails by default.&lt;/p>
&lt;p>Here’s how to enable it.&lt;/p>
&lt;ul>
&lt;li>Install tumbler and imagemagick&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>yay -S tumbler imagemagick
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Create the following a folder.thumbnailer file and add the following&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo vi /usr/share/thumbnailers/folder.thumbnailer
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>[Thumbnailer Entry]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>Version=1.0
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>Encoding=UTF-8
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>Type=X-Thumbnailer
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>Name=Folder Thumbnailer
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6&lt;/span>&lt;span>MimeType=inode/directory;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7&lt;/span>&lt;span>Exec=/usr/bin/folder-thumbnailer %s %i %o %u
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Create the folder-thumbnailer script&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo vi /usr/bin/folder-thumbnailer
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>#!/bin/bash
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>convert -thumbnail &amp;#34;$1&amp;#34; &amp;#34;$2/folder.jpg&amp;#34; &amp;#34;$3&amp;#34; 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>convert -thumbnail &amp;#34;$1&amp;#34; &amp;#34;$2/.folder.jpg&amp;#34; &amp;#34;$3&amp;#34; 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>convert -thumbnail &amp;#34;$1&amp;#34; &amp;#34;$2/folder.png&amp;#34; &amp;#34;$3&amp;#34; 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>convert -thumbnail &amp;#34;$1&amp;#34; &amp;#34;$2/cover.jpg&amp;#34; &amp;#34;$3&amp;#34; 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>rm -f &amp;#34;$HOME/.cache/thumbnails/normal/$(echo -n &amp;#34;$4&amp;#34; | md5sum | cut -d &amp;#34; &amp;#34; -f1).png&amp;#34; ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span>rm -f &amp;#34;$HOME/.thumbnails/normal/$(echo -n &amp;#34;$4&amp;#34; | md5sum | cut -d &amp;#34; &amp;#34; -f1).png&amp;#34; ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>rm -f &amp;#34;$HOME/.cache/thumbnails/large/$(echo -n &amp;#34;$4&amp;#34; | md5sum | cut -d &amp;#34; &amp;#34; -f1).png&amp;#34; ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span>rm -f &amp;#34;$HOME/.thumbnails/large/$(echo -n &amp;#34;$4&amp;#34; | md5sum | cut -d &amp;#34; &amp;#34; -f1).png&amp;#34; ||\
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span>exit 1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo chmod +x /usr/bin/folder-thumbnailer
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>To add a thumbnail to a folder you just need to add a &lt;code>.folder.jpg&lt;/code> file and your set. You can decide to use different names in the &lt;code>/usr/bin/folder-thumbnailer&lt;/code> script.&lt;/p></description></item><item><title>pass - the standard unix password manager</title><link>https://paapereira.xyz/pass/</link><pubDate>Sat, 22 Jun 2019 18:31:17 +0100</pubDate><guid>https://paapereira.xyz/pass/</guid><description>&lt;p>I&amp;rsquo;ve been using &lt;a href="https://www.passwordstore.org/">pass&lt;/a> as my password manager for the last months.&lt;/p>
&lt;p>In Linux, Android and Windows.&lt;/p>
&lt;p>Here&amp;rsquo;s how I set it up and the apps that can be used.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;h3 id="arch-linux">Arch Linux&lt;/h3>
&lt;p>I installed &lt;code>pass&lt;/code>, &lt;code>pass-otp&lt;/code> for one time password support, &lt;code>dmenu&lt;/code> for an easy way to copy your passwords to the clipboard and if you prefer &lt;code>qtpass&lt;/code> foi a gui application.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S pass pass-otp dmenu qtpass
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>You can use the command &lt;code>passmenu&lt;/code> to open a list of your passwords using &lt;code>dmenu&lt;/code>. For convenience you can assign it to a keyboard shortcut.&lt;/p></description></item><item><title>How to Make Qt Apps Match Dark Themes on Xfce</title><link>https://paapereira.xyz/make-qt-apps-match-dark-themes-xfce/</link><pubDate>Sat, 09 Feb 2019 18:40:14 +0000</pubDate><guid>https://paapereira.xyz/make-qt-apps-match-dark-themes-xfce/</guid><description>&lt;p>In summary, I prefer dark themes and my QT based applications weren’t matching this preference. I’m using Xfce.&lt;/p>
&lt;p>After some digging around, and this &lt;a href="https://www.youtube.com/watch?v=rP4DWu24ff0">video&lt;/a>, here’s what I did.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>$ nano ~/.config/Trolltech.conf
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;blockquote>
&lt;p>[Qt]
style=GTK+&lt;/p>
&lt;/blockquote>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>$ sudo pacman -S qt5-styleplugins
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>$ sudo nano /etc/environment
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;blockquote>
&lt;p>QT_QPA_PLATFORMTHEME=gtk2
QT_STYLE_OVERRIDE=gtk2&lt;/p>
&lt;/blockquote></description></item><item><title>Connecting to ProtonVPN in Arch Linux</title><link>https://paapereira.xyz/protonvpn/</link><pubDate>Sat, 14 Apr 2018 18:35:36 +0100</pubDate><guid>https://paapereira.xyz/protonvpn/</guid><description>&lt;p>I recently signed up with &lt;a href="https://protonvpn.com/support/linux-vpn-setup/">ProtonVPN&lt;/a>.&lt;/p>
&lt;p>Here’s how I connect in Arch Linux.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S openvpn
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo wget -O protonvpn-cli.sh https://raw.githubusercontent.com/ProtonVPN/protonvpn-cli/master/protonvpn-cli.sh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>sudo chmod +x protonvpn-cli.sh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6&lt;/span>&lt;span>sudo ./protonvpn-cli.sh --install
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7&lt;/span>&lt;span>sudo protonvpn-cli -init
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8&lt;/span>&lt;span>sudo protonvpn-cli -connect
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9&lt;/span>&lt;span>sudo protonvpn-cli -disconnect
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Disable the touchpad while typing</title><link>https://paapereira.xyz/touchpad-synaptics/</link><pubDate>Tue, 07 Nov 2017 11:45:22 +0000</pubDate><guid>https://paapereira.xyz/touchpad-synaptics/</guid><description>&lt;p>Here&amp;rsquo;s how I set things up to automatically disable the touchpad while typing in my laptop, using the driver&amp;rsquo;s automatic palm detection.&lt;/p>
&lt;p>These are just my notes. Check the entire Arch Wiki entry on &lt;a href="https://wiki.archlinux.org/index.php/Touchpad_Synaptics">Touchpad Synaptics&lt;/a>.&lt;/p>
&lt;p>First of all you should test if it works properly for your touchpad and if the settings are accurate. Enable palm detection with &lt;code>synclient PalmDetect=1&lt;/code>.&lt;/p>
&lt;p>Then test the typing. You can tweak the detection by setting the minimum width for the touch to be considered a palm, for example &lt;code>synclient PalmMinWidth=8&lt;/code>.&lt;/p></description></item><item><title>Seafile Installation Notes in Arch Linux</title><link>https://paapereira.xyz/seafile-installation/</link><pubDate>Sun, 28 May 2017 18:23:43 +0100</pubDate><guid>https://paapereira.xyz/seafile-installation/</guid><description>&lt;p>These are my notes about installing &lt;a href="https://www.seafile.com/">Seafile&lt;/a> in my Arch Linux home server.&lt;/p>
&lt;p>&lt;em>Note:&lt;/em> I have reviewed and added to these notes several times.&lt;/p>
&lt;p>I&amp;rsquo;m using:&lt;/p>
&lt;ul>
&lt;li>Seafile&lt;/li>
&lt;li>A NUC with Arch Linux as my home server&lt;/li>
&lt;li>A WD My Cloud NAS&lt;/li>
&lt;/ul>
&lt;h2 id="setup-a-nas-share">Setup a NAS share&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>Create a new share &lt;code>seafile&lt;/code>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Create a new directory in the server&lt;/p>
&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo mkdir /home/nas/seafile
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sudo chmod &lt;span style="color:#ae81ff">750&lt;/span> /home/nas/seafile
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo chown seafile:seafile /home/nas/seafile
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Setup a mountpoint in the server&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo vi /etc/fstab
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>nas:/nfs/seafile /home/nas/seafile nfs users,noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,soft,intr,noatime,file_mode=0640,dir_mode=0750 0 0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Set NO_ROOT_SWASH in the WD My Cloud NFS exports configuration (when I restart my NAS I have to do this again&amp;hellip;)&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>ssh -oHostKeyAlgorithms&lt;span style="color:#f92672">=&lt;/span>+ssh-dss sshd@192.168.0.99
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>vi /etc/exports
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>&amp;#34;/nfs/seafile&amp;#34; *(rw,no_root_squash,sync,no_wdelay,insecure_locks,insecure,no_subtree_check,anonuid=501,anongid=1000)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>exportfs -r
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="server-installation">Server installation&lt;/h2>
&lt;h3 id="pre-requisites">Pre-requisites&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>sudo pacman -S python-imaging mysql-python
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>mkdir /tmp/cower
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>cd /tmp/cower
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>cower -d libsearpc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>cd /tmp/cower/libsearpc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>makepkg -sri
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span>cower -d libsepol
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>cd /tmp/cower/libsepol
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span>makepkg -sri
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span>cower -d libselinux
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12&lt;/span>&lt;span>cd /tmp/cower/libselinux
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13&lt;/span>&lt;span>makepkg -sri
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="download-seafile">Download Seafile&lt;/h3>
&lt;p>&lt;a href="https://www.seafile.com/en/download/">https://www.seafile.com/en/download/&lt;/a>&lt;/p></description></item><item><title>Install TagSpaces on Linux</title><link>https://paapereira.xyz/install-tagspaces/</link><pubDate>Wed, 14 Dec 2016 21:02:24 +0000</pubDate><guid>https://paapereira.xyz/install-tagspaces/</guid><description>&lt;p>I’ve been using &lt;a href="https://www.tagspaces.org/">TagSpaces&lt;/a> from some time now, and I ended up to buy a Pro version.&lt;/p>
&lt;p>You get the Pro version by receiving a download link by email. I’m on Arch Linux and the pro versions provided are not for Arch, but it has a .deb version.&lt;/p>
&lt;p>Here&amp;rsquo;s how to install it on Arch. Updating is basically the same.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1&lt;/span>&lt;span>yaourt -S xarchiver electron libgcrypt15
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3&lt;/span>&lt;span>cd ~/Downloads
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4&lt;/span>&lt;span>mv tagspaces-pro-2.5.0-amd64.deb tagspaces-pro-2.5.0-amd64.ar
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5&lt;/span>&lt;span>xarchiver -x ./tagspaces tagspaces-pro-2.5.0-amd64.ar
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6&lt;/span>&lt;span>xarchiver -x . data.tar.xz
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7&lt;/span>&lt;span>rm -f control.tar.gz
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8&lt;/span>&lt;span>rm -f debian-binary
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9&lt;/span>&lt;span>rm -f data.tar.xz
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11&lt;/span>&lt;span>sudo cp -R opt/ /
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12&lt;/span>&lt;span>rm -rf opt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13&lt;/span>&lt;span>sudo cp -R usr/ /
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14&lt;/span>&lt;span>rm -rf usr/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15&lt;/span>&lt;span>rm -f ~/Downloads/tagspaces-pro-2.5.0-amd64.ar
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17&lt;/span>&lt;span>vi ~/.local/share/applications/tagspaces.desktop
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>[Desktop Entry]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>Name=tagspaces
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>Comment=Offline document organizer and browser for your local files, supporting easy file tagging and document editing.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>Exec=/opt/tagspaces/tagspaces
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>Terminal=false
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6&lt;/span>&lt;span>Type=Application
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7&lt;/span>&lt;span>Icon=/usr/share/icons/hicolor/512x512/apps/tagspaces.png
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Gnome Touchpad Issue</title><link>https://paapereira.xyz/gnome-touchpad-issue/</link><pubDate>Sun, 04 Dec 2016 22:54:32 +0000</pubDate><guid>https://paapereira.xyz/gnome-touchpad-issue/</guid><description>&lt;p>In Gnome 3.20 (I think) Gnome switched to use &lt;code>libinput&lt;/code> over &lt;code>synaptic&lt;/code> for the touchpad lib.&lt;/p>
&lt;p>You need to remove &lt;code>xf86-input-synaptic&lt;/code> and install &lt;code>xf86-input-libinput&lt;/code>. You&amp;rsquo;ll also need to remove the synaptic config file.&lt;/p></description></item><item><title>Use Reflector to update your pacman mirror list</title><link>https://paapereira.xyz/reflector-arch-linux/</link><pubDate>Sun, 04 Dec 2016 20:22:12 +0000</pubDate><guid>https://paapereira.xyz/reflector-arch-linux/</guid><description>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S reflector
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo vi /etc/systemd/system/reflector.service
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>[Unit]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>Description=Pacman mirrorlist update
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>[Service]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>Type=oneshot
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6&lt;/span>&lt;span>ExecStart=/usr/bin/reflector --verbose --country &amp;#39;Portugal&amp;#39; -l 5 -p http --sort rate --save /etc/pacman.d/mirrorlist
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo systemctl start reflector
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>GPG encrypted backups to rsync.net</title><link>https://paapereira.xyz/rsyncnet-gpg-backups/</link><pubDate>Mon, 28 Nov 2016 21:02:25 +0000</pubDate><guid>https://paapereira.xyz/rsyncnet-gpg-backups/</guid><description>&lt;p>I use &lt;a href="https://rsync.net">rsync.net&lt;/a> for my cloud/offline backups.&lt;/p>
&lt;p>Here’s how to do gpg encrypted backups.&lt;/p>
&lt;ul>
&lt;li>Mount rsync.net using &lt;code>sshfs&lt;/code> and create a backup folder&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>mkdir -p /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sshfs 99999@server.rsync.net: /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>mkdir -p /home/your_user/rsync.net/backups/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Create and encript a directory&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>tar --xattrs -czpvf /tmp/2016-11-28_my_dir.tgz -C /home/your_user/my_dir .
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>gpg --cipher-algo aes256 -c -o /home/your_user/rsync.net/backups/2016-11-28_my_dir.tgz.gpg /tmp/2016-11-28_my_dir.tgz
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Restore and decrypt a directory&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>mkdir -p /tmp/extract
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>cd /tmp/extract
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>gpg -o- /tmp/2016-11-28_my_dir.tgz.gpg | tar zxvf -
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Unmount rsync.net&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>fusermount -u /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Backups using ecryptfs and rsync.net</title><link>https://paapereira.xyz/rsyncnet-ecryptfs-backups/</link><pubDate>Sun, 27 Nov 2016 21:12:33 +0000</pubDate><guid>https://paapereira.xyz/rsyncnet-ecryptfs-backups/</guid><description>&lt;p>I use &lt;a href="https://rsync.net">rsync.net&lt;/a> for my cloud/offline backups.&lt;/p>
&lt;p>Here’s how to do encrypted backups using &lt;code>ecryptfs&lt;/code>.&lt;/p>
&lt;ul>
&lt;li>Install &lt;code>ecryptfs-utils&lt;/code>&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -S ecryptfs-utils
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Generate a passphrase&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>ecryptfs-setup-private --nopwcheck --noautomount
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Mount rsync.net using &lt;code>sshfs&lt;/code> and create a backup folder&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>mkdir -p /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sshfs 99999@server.rsync.net: /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>mkdir -p /home/your_user/rsync.net/backups/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Mount the backups folder as an encrypted filesystem and copy some files&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo mount -t ecryptfs ~/.Private /home/your_user/rsync.net/backups -o key&lt;span style="color:#f92672">=&lt;/span>passphrase,ecryptfs_cipher&lt;span style="color:#f92672">=&lt;/span>aes,ecryptfs_key_bytes&lt;span style="color:#f92672">=&lt;/span>24,ecryptfs_passthrough&lt;span style="color:#f92672">=&lt;/span>n,ecryptfs_enable_filename_crypto&lt;span style="color:#f92672">=&lt;/span>n
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Unmount rsync.net and the encrypted filesystem mount&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo umount ~/Private
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>fusermount -u /home/your_user/rsync.net/
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Remove pacman cache</title><link>https://paapereira.xyz/remove-pacman-cache/</link><pubDate>Thu, 10 Nov 2016 21:33:11 +0000</pubDate><guid>https://paapereira.xyz/remove-pacman-cache/</guid><description>&lt;p>&lt;code>pacman&lt;/code> keeps a cache of package versions it installs in &lt;code>/var/cache/pacman/pkg/&lt;/code>.&lt;/p>
&lt;p>As you install and upgrade more packages, the more it grows.&lt;/p>
&lt;p>So, it&amp;rsquo;s a good ideia to clean it from time to time.&lt;/p>
&lt;p>If you want to keep the last 2 versions of each package as an example, just execute the following.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo paccache -rk 2
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>&lt;span style="color:#f92672">==&lt;/span>&amp;gt; finished: &lt;span style="color:#ae81ff">2670&lt;/span> packages removed &lt;span style="color:#f92672">(&lt;/span>disk space saved: 8.49 GiB&lt;span style="color:#f92672">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Nextcloud Arch Linux installation</title><link>https://paapereira.xyz/nextcloud-arch-linux-install/</link><pubDate>Mon, 07 Nov 2016 22:44:10 +0000</pubDate><guid>https://paapereira.xyz/nextcloud-arch-linux-install/</guid><description>&lt;p>There are my notes for installing &lt;a href="https://wiki.archlinux.org/index.php/nextcloud">Nextcloud in Arch Linux&lt;/a> in my home server.&lt;/p>
&lt;h2 id="server-installation">Server installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo pacman -Syu apache php php-apache mariadb
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>cower -d nextcloud
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo pacman -Syu php-gd php-intl php-mcrypt php-apcu
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="php-configuration">PHP configuration&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo nano /etc/php/php.ini
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Uncomment the following modules:&lt;/p>
&lt;ul>
&lt;li>gd.so&lt;/li>
&lt;li>iconv.so&lt;/li>
&lt;li>xmlrpc.so&lt;/li>
&lt;li>zip.so&lt;/li>
&lt;li>extension=pdo_mysql.so&lt;/li>
&lt;li>bz2.so&lt;/li>
&lt;li>curl.so&lt;/li>
&lt;li>intl.so&lt;/li>
&lt;li>mcrypt.so&lt;/li>
&lt;/ul>
&lt;p>Add the following to open_basedir:&lt;/p>
&lt;p>&lt;code>/tmp:/usr/share/webapps/nextcloud:/dev/urandom&lt;/code>&lt;/p>
&lt;h2 id="mariadb-setup">MariaDB setup&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo mysql_install_db -–user&lt;span style="color:#f92672">=&lt;/span>mysql -–basedir&lt;span style="color:#f92672">=&lt;/span>/usr -–datadir&lt;span style="color:#f92672">=&lt;/span>/var/lib/mysql
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sudo systemctl enable mariadb.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span>sudo systemctl start mariadb.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span>sudo systemctl status mariadb.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span>sudo mysql_secure_installation
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="create-nextcloud-database">Create Nextcloud database&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>mysql -u root -p
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span> CREATE DATABASE IF NOT EXISTS nextcloud;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3&lt;/span>&lt;span> CREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘password’;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4&lt;/span>&lt;span> GRANT ALL PRIVILEGES ON nextcloud.* TO ‘username’@’localhost’ IDENTIFIED BY ‘password’;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5&lt;/span>&lt;span> quit
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="apache-setup">Apache setup&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1&lt;/span>&lt;span>sudo cp /etc/webapps/nextcloud/apache.example.conf /etc/httpd/conf/extra/nextcloud.conf
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2&lt;/span>&lt;span>sudo nano /etc/httpd/conf/httpd.conf
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Comment the line:&lt;/p></description></item></channel></rss>