<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Ayman Bagabas</title><link>https://aymanbagabas.com/tags/linux/</link><description>Recent content in Linux on Ayman Bagabas</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 16 Feb 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://aymanbagabas.com/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Dynamic DNS using DDclient</title><link>https://aymanbagabas.com/blog/2019/02/16/dynamic-dns-using-ddclient/</link><pubDate>Sat, 16 Feb 2019 00:00:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2019/02/16/dynamic-dns-using-ddclient/</guid><description>&lt;p&gt;&lt;a href="http://ddclient.sf.net/"&gt;DDclient&lt;/a&gt; is a service used to update dynamic DNS entries on many services. It is useful if you need a DDNS client that can work with pretty much any DNS service. Most distributions provide &lt;code&gt;DDclient&lt;/code&gt; in their official repositories. It is available on Debian-based systems, Fedora, Archlinux, and many more.&lt;/p&gt;
&lt;p&gt;In my case, I need &lt;code&gt;DDclient&lt;/code&gt; for my &lt;a href="https://ownyourbits.com/nextcloudpi/"&gt;NextcloudPi&lt;/a&gt; server that runs on a Raspberry Pi 3B hooked up to a storage device. This server gives me access to my files anywhere anytime as long as it has a working internet connection. I&amp;rsquo;m using a free DNS service from &lt;a href="https://www.dynu.com/"&gt;Dynu&lt;/a&gt; and in their &lt;a href="https://www.dynu.com/DynamicDNS/IPUpdateClient/DDClient"&gt;website&lt;/a&gt;, they go in details of how you would set up dynamic DNS using &lt;code&gt;DDclient&lt;/code&gt;. It turns out that they use a &lt;code&gt;dyndns2&lt;/code&gt; protocol by &lt;a href="https://www.dyndns.com"&gt;www.dyndns.com&lt;/a&gt; to provide this service.&lt;/p&gt;</description></item><item><title>Arch Linux on Matebook X Pro</title><link>https://aymanbagabas.com/blog/2018/07/23/archlinux-on-matebook-x-pro/</link><pubDate>Mon, 23 Jul 2018 00:00:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2018/07/23/archlinux-on-matebook-x-pro/</guid><description>&lt;p&gt;Recently, I got a new laptop, Huawei Matebook X Pro. It has an i7 8th Gen. Intel CPU, 16Gib of RAM, 512Gib of SSD storage, Nvidia MX150 GPU with 2Gib of DRAM, and a beautiful HiDPI and touchscreen. It also comes with a fingerprint sensor. The first thing I did was installing Arch Linux, because well I am a Linux user! In the end, everything was working properly except:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;del&gt;Two out of four speakers.&lt;/del&gt; See UPDATE1 down below&lt;/li&gt;
&lt;li&gt;The fingerprint sensor.&lt;/li&gt;
&lt;li&gt;&lt;del&gt;Some keys in the Fn row.&lt;/del&gt; See UPDATE2&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The installation was very straightforward and like every other Arch Linux installation process. I followed their &lt;a href="https://wiki.archlinux.org/index.php/Installation_guide" title="installation guide"&gt;installation guide&lt;/a&gt;{target=&amp;quot;_blank&amp;quot; rel=&amp;ldquo;noopener&amp;rdquo;}. After the installation is complete, everything was working properly except for some minor issues.&lt;/p&gt;</description></item><item><title>Suspend then hibernate in systemd 239</title><link>https://aymanbagabas.com/blog/2018/07/18/suspend-then-hibernate/</link><pubDate>Wed, 18 Jul 2018 00:00:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2018/07/18/suspend-then-hibernate/</guid><description>&lt;p&gt;In &lt;em&gt;systemd&lt;/em&gt; 239, they have added a new service that handles suspending then hibernating after a given amount of time. This is easier than using external scripts since it comes built-in with this version of &lt;em&gt;systemd&lt;/em&gt;. You can check &lt;em&gt;systemd&lt;/em&gt; version with &lt;code&gt;systemctl --version&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;First, you have to define the delay time before the system wakes up and go into hibernation and that should be defined in &lt;em&gt;/etc/systemd/sleep.conf&lt;/em&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f7f7f7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Sleep]
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;HibernateDelaySec=15min
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here, what we care about is the last line &lt;code&gt;HibernateDelaySec&lt;/code&gt; where you can define delayed time. As you see, I have it set to 15 minutes after suspending.&lt;/p&gt;</description></item><item><title>Sync Google calendar using Vdirsyncer and Orage</title><link>https://aymanbagabas.com/blog/2018/04/08/sync-google-calendar/</link><pubDate>Sun, 08 Apr 2018 00:00:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2018/04/08/sync-google-calendar/</guid><description>&lt;p&gt;For a long time I wanted to have all my calendars and todo lists synchronized with my current desktop setup. Currently, I am using XFCE software, like Thunar, with Openbox to manage everyday stuff. Yes, I know with Gnome DE you can achieve that easily, but Gnome has a HUGE package dependencies. XFCE on the other hand is very light-weight and simple.&lt;/p&gt;
&lt;p&gt;The other wonderful piece of software is &lt;a href="https://vdirsyncer.pimutils.org"&gt;vdirsyncer&lt;/a&gt;. It supports CalDAV protocol which is also supported by Google calendar. With simple configurations we can synchronize Google calendar locally. Then we can use Orage to view/modify our calendar files. Orage is a time-managing application that can manage your calendars, appointments, alarms, and todo lists.&lt;/p&gt;</description></item><item><title>Dropbox client on Ubuntu server 16.04</title><link>https://aymanbagabas.com/blog/2017/08/06/dropbox-client-on-ubuntu-server-16-04/</link><pubDate>Sun, 06 Aug 2017 23:19:00 +0000</pubDate><guid>https://aymanbagabas.com/blog/2017/08/06/dropbox-client-on-ubuntu-server-16-04/</guid><description>&lt;p&gt;Dropbox, in my opinion, is the best cloud service available. I wanted to have one shared dropbox folder that is accessible from all my virtual machines running on the server. I am using a ZFS drive as a storage drive, the dropbox folder is located in the ZFS drive. Dropbox service is running as a normal user, not the root, and the server is using systemd to start the service after booting the system.&lt;/p&gt;</description></item></channel></rss>