<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by mijorus on Medium]]></title>
        <description><![CDATA[Stories by mijorus on Medium]]></description>
        <link>https://medium.com/@mijorus?source=rss-bdbb66b7f349------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*hITe0F2t2zunar3ziKihDQ.jpeg</url>
            <title>Stories by mijorus on Medium</title>
            <link>https://medium.com/@mijorus?source=rss-bdbb66b7f349------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:28:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mijorus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Use multiple Github accounts on the same machine TL;DR]]></title>
            <link>https://mijorus.medium.com/use-multiple-github-accounts-on-the-same-machine-tl-dr-34f8b3407893?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/34f8b3407893</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[multiple-accounts]]></category>
            <category><![CDATA[tldr]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github-account]]></category>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Thu, 24 Jun 2021 14:51:45 GMT</pubDate>
            <atom:updated>2021-06-24T14:51:45.392Z</atom:updated>
            <content:encoded><![CDATA[<p>The easiest and most painless solution is the following:</p><h3>1. Create an SSH key for each account</h3><pre># when asked, give it a unique name, like &quot;work&quot; or &quot;personal&quot;<br>ssh-keygen -t rsa</pre><h3>2. Add the key</h3><pre>ssh-add ~/.ssh/work</pre><h3>3. Create/edit an ~/.ssh/config</h3><p>Edit like this</p><pre>Host github.com-personal<br>   HostName github.com<br>   User git<br>   IdentityFile ~/.ssh/personal</pre><pre>Host github.com-work<br>   HostName github.com<br>   User git<br>   IdentityFile ~/.ssh/work</pre><h3>4. Add the key on github</h3><p>Easy</p><p><a href="https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account">Adding a new SSH key to your GitHub account</a></p><h3>5. From now on, use the SSH option when cloning, but modifing the link as follow</h3><pre># Original<a href="/service/mailto:git@github.com"><br>git clone git@github.com</a>:laravel/laravel.git</pre><pre># Push with &quot;Work profile&quot;<br>git clone <a href="/service/mailto:git@github.com">git@github.com</a>-work:laravel/laravel.git</pre><p>DONE</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34f8b3407893" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy a Nuxt.js 2.14.x website on Netlify]]></title>
            <link>https://mijorus.medium.com/how-to-deploy-a-nuxt-js-2-14-x-website-on-netlify-a661ce4d8075?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/a661ce4d8075</guid>
            <category><![CDATA[ssrs]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[nuxtjs]]></category>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 09:36:40 GMT</pubDate>
            <atom:updated>2021-01-15T09:41:30.490Z</atom:updated>
            <content:encoded><![CDATA[<p>There has been some changes and some settings were deprecated. SSR true or false? Let me break it down…</p><p>Nuxt.js is great! Their documentation is actually pretty good and they have a section in their FAQs on how to deploy <a href="https://nuxtjs.org/faq/netlify-deployment">on Netlify</a>, but it doesn’t really tell the whole story in my opinion…</p><h3><em>Changes in version 2.14</em></h3><p>Since version 2.14, the mode property has been deprecated, you need to use SSR: false, but I guess this is <strong>not </strong>what you really want to deploy on Netlify, as it will generate a Single Page App with only one entry point, a big javascript that is not the best for SEO and crawlers. What you want (I guess) is explained in the next paragraph.</p><h3>SSR: true and target: ‘static’</h3><p>Let me explain what we are doing here:</p><p>ssr: true — this basically means: “<em>I have a server where I can pre-render and store all the pages the nuxt’s crawler will be able to generate</em>.” Pages will be generated in their respective routes physically on the server, so you will have something like /blog/my-blog-post.html and /blog/my-second-post.html in the final output. Obviously, Netlify being designed for static websites can handle this no problem</p><p>target: ‘static’ — that’s the key part. Netlify does not run an active server, it only serve pages. With Nuxt you could delegate some logic (like middlewares or some plugins) to run on an active server with target: &#39;universal&#39; , but that’s not the case.</p><p>Keep in mind that for this reason, all your plugins that interact with the front-end MUST run with mode: client Here is an example with the famous TinySlider script:</p><p>plugins: [{ src: &#39;~/plugins/tns.js&#39;, mode: &#39;client&#39; }]</p><p>If you don’t do it, it will run in DEV environment but it won’t load once deployed on Netlify.</p><h3>REDIRECT Dynamic routes</h3><p>Last but not least: redirects.</p><p>But why? Haven’t we generated all the routes already? Not necessarily.</p><p>Let’s say we some page like /restaurant/restaurant-name and this name comes from a database. We don’t know in advance how may restaurant we have, could be one, could be one-thousand.</p><p>Our Nuxt app queries the DataBase when the user hits that page and will load the content accordingly (or throws an error). However this page is dynamic and<strong> does not exist physically</strong> on Netlify, which complains and shows a 404.</p><p>We can fix this with two lines in the netlify.toml</p><pre>[[redirects]]</pre><pre>from = “/restaurant/*”</pre><pre>to = “/restaurant”</pre><p>All the traffic -and the params -will be redirected to /restaurant (which is a valid route and where our logic is).</p><p>You can learn more about this <a href="https://www.netlify.com/blog/2019/01/16/redirect-rules-for-all-how-to-configure-redirects-for-your-static-site/">here</a></p><p>Done! I hope this helps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a661ce4d8075" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure ownCloud on Raspberry Pi]]></title>
            <link>https://mijorus.medium.com/configure-owncloud-on-raspberry-pi-57fc9f1c4893?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/57fc9f1c4893</guid>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Tue, 12 Nov 2019 17:36:36 GMT</pubDate>
            <atom:updated>2019-12-21T13:08:58.905Z</atom:updated>
            <content:encoded><![CDATA[<p>NOTE: this guide is updated to November 2019</p><p>So, you just got yourself a brand new raspberry pi and want to make a good use of it, right? <br>Some weeks ago I had to send the holiday pictures to some of my friends, and this means you have to upload them on some messaging app like Whatsapp or Messenger, which is ok but usually those services are not the best chiose to upload a lot of multimedia content: they might have size limitation, aggressive compression or performance issues because they were not design to send a huge amount of photos at once. So you might think you can upload them on Google Drive, but you have no storage left. What else can you do?<br>Let me introduce you ownCloud.</p><p>Now, first of all, if you are reading this there is an high chance you already know that, your rasperry pi, being a linux machine, can be accessed by the network using SSH, and you can access the files from the windows file manager by connecting to its SFTP server. However, this is not something very user friendly and — most importantly — it is quite hard it you only want some users to access only some files or directories, as you have to deal with folder permissions and so on. OwnCloud works just like Drive, Dropbox, Box, those ones, but uses YOUR storage instead. You can use your raspberry pi as your cloud server; it comes with a user-friendly interface and an app for your smartphone as well if you are into it. Please, READ THE GUIDE CAREFULLY, as we are also going to open some ports at the end, which means your stuff could be exposed on the internet.</p><h4>FIRST STEPS</h4><p>some dependencies first</p><blockquote><em>sudo apt install apache2 mariadb-server libapache2-mod-php7.0 php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-intl php7.0-mcrypt php-imagick php7.0-zip php7.0-xml php7.0-mbstring fail2ban redis-server -y</em></blockquote><p>First of course you will have to properly set up you raspberry, SSH, also VNC if you want to, connect to a network and so on, this stuff is for n00bs so I will skip it :) There is no need to say that in order to make your server faster you will need to use the Ethernet connection and not wifi.<br>Now go here: <a href="https://download.owncloud.org/download/community/owncloud-latest.tar.bz2">https://download.owncloud.org/download/community</a>/ and download the latest tar package<br>## UPDATE ## it looks like you can now easily wget the latest version with:</p><blockquote><em>wget </em><a href="https://download.owncloud.org/download/community/owncloud-latest.tar.bz2"><em>https://download.owncloud.org/download/community/owncloud-latest.tar.bz2</em></a><em><br>## do an ls to show the full name of the tarball you just downloaded ##<br>ls<br>##copy the package name and unpack it ##<br>tar -xvf owncloud-version_number_here_.tar.bz2<br>chown -R www-data:www-data owncloud<br>mv owncloud /var/www/html/</em></blockquote><p>basically we have just moved owncloud into a folder that apache2 will later load as a website. Let’s move on.</p><blockquote><em>sudo nano /etc/apache2/sites-available/owncloud.conf</em></blockquote><p>paste this stuff into the file you have just created</p><blockquote><em>Alias /owncloud “/var/www/html/owncloud/”</em></blockquote><blockquote><em>&lt;Directory /var/www/html/owncloud/&gt;<br>Options +FollowSymlinks<br>AllowOverride All</em></blockquote><blockquote><em>&lt;IfModule mod_dav.c&gt;<br>Dav off<br>&lt;/IfModule&gt;</em></blockquote><blockquote><em>SetEnv HOME /var/www/html/owncloud<br>SetEnv HTTP_HOME /var/www/html/owncloud</em></blockquote><blockquote><em>&lt;/Directory&gt;</em></blockquote><p>now let’s enable apache2 (the web server) with:</p><blockquote><em>sudo ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf <br>##this will create a symbolic link of the file you have just created into the sites-enabled folder, to tell apache2 we want to load this website ##<br>systemctl start apache2 &amp;&amp; systemctl enable apache2</em></blockquote><h4>CREATE THE MYSQL DATABASE</h4><p>In order to use OwnCloud we wil need to create an SQL database, apparently MySql provides the best performances, so we can go ahead; there are alternatives if you want, like MariaDB or SQLite</p><blockquote><em>mysql -u root -p<br>CREATE DATABASE IF NOT EXISTS owncloud;<br>create user </em><strong><em>user</em></strong><em>@localhost identified by ‘</em><strong><em>password</em></strong><em>’;<br>GRANT ALL PRIVILEGES ON owncloud.* TO ‘</em><strong><em>user</em></strong><em>’@’localhost’ IDENTIFIED BY ‘</em><strong><em>password</em></strong><em>’;</em></blockquote><p>We are creating a new database called <strong>owncloud</strong>, and a new user who will have access to the database. You need to replace the highlighted parts with what you want, where <strong>user</strong> being your username and <strong>password</strong> **guesswhat** your password. USE A STRONG PASSWORD HERE.</p><h4><strong>GENERATE AN SSL CERTIFICATE</strong></h4><p>We are now going to generate an SSL certificate to use encrypted connection between our server and the clients; we will use openssl which will generate a new certificate for free. I must say for free because, as we will find out later, this certificate will be seen as untrusted and the browser will show a warning; there are ways to generate “trusted” SSL certificates for free, but most of them expire after a while and you have to generate new onces. I will deal with the browser warnings a the end.</p><blockquote><em>sudo -i <br>cd /root ##in this way we will create the server.key in a folder only the root user can access##<br>openssl genrsa -out server.key 4096<br>openssl req -new -key server.key -out server.csr<br>openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt -sha256<br>chmod 400 server.key<br>a2ensite default-ssl.conf<br>systemctl reload apache2<br>a2enmod ssl<br>systemctl restart apache2</em></blockquote><p>it will ask you some information to generate the SSL certificate, that is because this is supposed to identify you as a trusted identity for the final user. Feel free to fill them as you want, it will not matter. It will generate two files on your /root (or whetever you where when you run the commands)</p><blockquote><em>nano /etc/apache2/sites-available/default-ssl.conf</em></blockquote><p>look for this section and add the path where the ssl keys are</p><blockquote><em>&lt;VirtualHost _default_:443&gt;<br> ServerAdmin webmaster@localhost<br> ServerName IP-SERVER:443<br> DocumentRoot /var/www/html/owncloud<br> SSLCertificateFile /root/server.crt<br> SSLCertificateKeyFile /root/server.key</em></blockquote><p>now edit /etc/apache2/sites-available/000-default.conf</p><blockquote>DocumentRoot /var/www/html/owncloud</blockquote><p>sudo sed -i ‘s/AllowOverride None/AllowOverride All/’ /etc/apache2/apache2.conf<br>sudo systemctl restart apache2</p><p>Now, here comes the easy ( kind of ) part. If you open the web browser at the local_IP_address_of_your_pi/owncloud you should be able to see the website as been loaded but it is complaining. Edit <em>/var/www/html/owncloud/config/config.php<br>(save the path of this file as we will need it many times later)</em></p><blockquote><em>trusted_domains’ =&gt;<br> array (<br> 0 =&gt; ‘192.X.X.X’,<br> ),</em></blockquote><p>where XXXX is the local IP address of your PI. Where is asks about the database, enter the username and password you created before and the database name is “owncloud”. Leave data folder as it is for now. Click on “finish setup” and now you should be able to login for the first time into your OwnCloud server.</p><p><strong>CONFIGURE OWNCLOUD and LOCAL STORAGE<br></strong>Let’s add some additional configuration to our ownCloud server and configure the storage. Right now, this the default configuration owncloud creates a new user folder under /var/www/html/owncloud/data/<strong>username, </strong>you can change this path in the config file, however this means it will always use the SD card of your raspberry pi as storage, which is probably not what you want to do; you can obviously set the user data folder on an external drive, like an USB HDD for example, however this means that the owncloud server won’t start if the HDD is unpluged or powered off; there is a way however to mount any folder on your system as an owncloud directory. Edit the config file (<em>/var/www/html/owncloud/config/config.php) </em>and add this line</p><blockquote><em>‘files_external_allow_create_new_local’ =&gt; true,</em></blockquote><p>mind the comma at the end, it is required. This will enable the option to mount any folder from the filesystem. Now you can manage them from the settings in the website. Open the website and click on the username in the top right corner, then click setting&gt;storage and create a new custom folder that points to a system directory. Under “folder name” you must enter the name of the folder as it will be shown in owncloud, and under config you must type the actually path in your system where the folder is located. For example, probably the most useful in my opinion, if you want to have access from owncloud to every USB storage that will be plugged into your raspberry, just create a new folder called “USB storage” and under configuration type “/media/pi”. Under the admin tab, you can also easily control access per-user easier than ever, you can create new users and give them access just to some specific folders. For ex. you could create a new user just to give access to some friends to your holiday pics or your university docs located in the USB stick you just plugged into your Pi.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57fc9f1c4893" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thermal tweaks on DELL laptops running linux]]></title>
            <link>https://mijorus.medium.com/thermal-tweaks-on-dell-laptops-running-linux-769c8c80022e?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/769c8c80022e</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[laptop]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[dell]]></category>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Sat, 26 Oct 2019 00:48:03 GMT</pubDate>
            <atom:updated>2019-10-28T19:40:01.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*erYAzJDp2SSvaA9Cso5RdA.png" /></figure><p>A constant problem I had on my Dell laptop was with the fan noise. Now, I hate the noise of the fan, especially if I am surfing the web or just reading a PDF; on Windows 10, there Windows Update starts randomically while the system is in idle and forces the CPU to 100% for like 15 minutes triggering the fan. Fortunately, Manjaro is not Windows but there was some issues with the default configuration of the fan. However, make your very own configuration is easy enough but make sure to read the all article because you can really damage your machine if it is not properly set.</p><p>STEP #1 — install i8kmon</p><p>i8kmon is a program that let you take control the fan and monitor the CPU temperatures on Dell Laptops. You can install it with the following commands</p><blockquote>## Debian (Ubuntu) ##<br>sudo apt install i8kutils -y<br>## Arch users — search on AUR or git clone the PGKBUILD ##</blockquote><p>STEP #2 — install dell-bios-fan-control</p><p>On some Dell laptops the fan speed is controlled by the BIOS; to disable this behavior we can install a simple C program. If you are an Arch, you are luckier since is it available on the AUR. However I had some issues with the installation getting stuck while installing some dependencies. To avoid that, we will simply git clone the PGKBUILD for the AUR website.</p><blockquote>## Arch ##<br>git clone <a href="https://aur.archlinux.org/dell-bios-fan-control-git.git">https://aur.archlinux.org/dell-bios-fan-control-git.git</a><br>cd dell-bios-fan-control-git<br>makepkg -si</blockquote><blockquote>## Ubuntu ##<br>git clone <a href="https://github.com/TomFreudenberg/dell-bios-fan-control.git">https://github.com/TomFreudenberg/dell-bios-fan-control.git</a><br>cd dell-bios-fan-control<br>make<br>(you will now have an executable file)</blockquote><p>PAY ATTENTION HERE!<br>do not disable the BIOS fan control before you have set up the i8kmon service, or your system could overheat.</p><p>STEP #3 — Configure i8kmon</p><p>Type:<br>➤ sudo nano /etc/i8kutils/i8kmon.conf<br>the part we are interested in for now is this one</p><blockquote>set config(0) {{0 0} -1 75 -1 75} <br>set config(1) {{1 1} 70 85 70 85} <br>set config(2) {{2 2} 75 90 75 90} <br>set config(3) {{3 3} 80 128 80 128}</blockquote><p>this is the configuration for the fan speed. Let’s see how this works:<br>we have 3 different fan speed (your mileage may vary depending on your machine): 0 1 2 3, with 0 being the lowest ofc, when the fan is off, and 3 is on full speed. If you read below we also have:</p><blockquote>set status(leftspeed) “0 1000 2000 3000” <br>set status(rightspeed) “0 1000 2000 3000”</blockquote><p>You should read this stuff in this way:</p><p>set config(0) {{0 0} -1 75 -1 75} →configuration #1..2..3…<br><em>set config(configuration-number) {{speed-of-fan-n1 speed-of-fan-n2} lowest-temp-on-AC highest-temp-on-AC lowest-on-battery highest-on-battery}</em></p><p>There is space for two fans: right and left(or bigger and smaller, for XPS series). <br>IF THE LAPTOP ONLY HAS ONE, THE OTHER WILL BE IGNORED BUT THE CONFIGURATION CAN STAY THERE. <br>Then there is an array of numbers: they should set the fan speed based on the AC power, however, this could not be available the moment when you run this daemon (I’ll come to this at the end). Then there is this:</p><blockquote>set status(leftspeed) “0 1000 2000 3000” <br>set status(rightspeed) “0 1000 2000 3000”</blockquote><p>those are the RPMs of the fan; you can configure them independently. Every time you see a space, it is another fan speed. In this default case for example:<br>0 = 0rpm<br>1 = 1000rpm<br>2 = 2000rpm…. you get the idea. However if you configure it like:</p><blockquote>set config(0) {{0 0} -1 75 -1 75} <br>set config(1) {{1 1} 70 85 70 85} <br>set config(2) {{2 2} 75 90 75 90}<br>set config(3) {{3 3} 85 128 85 128}</blockquote><p>now the fan will go up to speed 3 when you reach 90 *C ….why?<br>Each configuration applies in its range of temperature. For example, config(0) will be triggered when the temperature goes from -1 (so the lowest values as possible) up to 75, then config(1) will be applied, which will trigger the fans to level 1 of speed till the CPU will reach 70 *C; at that point, config(0) will be called again. You got the idea.<br>HOW TO CONFIGURE YOUR FAN? Well, everybody has their preferences, me personally, I wanted a quiet laptop when surfing the internet, so I just checked how hot it became while using chrome and configured the file accordingly.</p><p><strong>NOTE</strong>: although it’s possible to manually configure the fan speed on three different levels, not every laptop is compatible; on my Inspiron laptop for example I can only set two different speeds and I can’t tweak the rpms. On my newer XPS 13 however those settings work perfectly. You can test how many fan speeds your laptop supports by executing <em>i8kfan. </em>Go like:</p><blockquote>i8kfan speed-of-fan-n1 speed-of-fan-n2</blockquote><p>ex.</p><blockquote>i8kfan 1 1<br>NOTE: if it doesn’t run, read step #5</blockquote><p>It will return two numbers that represents the current real speed of the fan; if a value returns - 1 it means that the fan does not exist on the system or it is unable to read it, while if it returns a lower number it means that your laptop does not support more speed levels. For example if I type <em>3 3</em> and it returns to <em>2 2</em> now I know that my laptop only supports two fan speeds.</p><p>STEP #5 — DISABLE BIOS FAN CONTROL</p><p>Run <br><em>dell-bios-fan-control 0<br></em>This will disable the control of the fan by the BIOS, so know i8kmon has the full control on the fan. You can set the configuration file as you wish and enable the daemon at the end, to make it run on boot:</p><blockquote>sudo systemctl enable i8kmon<br>sudo systemctl start i8kmon</blockquote><p>[OPTIONAL] STEP #6 UNDERVOLT</p><p>This could be very dangerous, it is not really needed if you really need stability or you can’t find any information on your processor online about how far you can push the undervolt, however some users are claiming around 10–15% improved thermals. The utility is called intel-undervolt and you can find it on github. It is also available on AUR</p><blockquote>git clone <a href="https://github.com/kitsunyan/intel-undervolt.git">https://github.com/kitsunyan/intel-undervolt.git</a><br>cd intel-undervolt<br>./configure &amp;&amp; make<br><em>## if you are on Ubuntu I suggest checkinstall at this point ##</em><br>checkinstall <br><em>(or)</em><br>sudo make install</blockquote><p>to edit the config file</p><blockquote><em>sudo nano /etc/intel-undervolt.conf</em></blockquote><p>this is what you will see</p><blockquote>apply 0 &#39;CPU&#39; 0<br>apply 1 &#39;GPU&#39; 0<br>apply 2 &#39;CPU Cache&#39; 0<br>apply 3 &#39;System Agent&#39; 0<br>apply 4 &#39;Analog I/O&#39; 0</blockquote><p>replace 0 with the value you want to undervolt in mV, for example -50 for -50mV, -100 for -100mV <br>ex:</p><blockquote>apply 0 ‘CPU’ -50<br>apply 1 ‘GPU’ -50</blockquote><p>apply the settings with</p><blockquote>intel-undervolt apply<br>## to check current applied settings enter##<br>intel-undervolt read</blockquote><p>enable the daemon to start it at boot, but first MAKE SURE your configuration is stable, look online for previous testings or suggestions</p><blockquote>sudo systemctl enable intel-undervolt.service<br> sudo systemctl start intel-undervolt.service</blockquote><p>DONE! enjoy your custom thermal config on your DELL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=769c8c80022e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Properly set gestures on KDE Plasma]]></title>
            <link>https://mijorus.medium.com/properly-set-gestures-on-kde-plasma-5877909bef0d?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/5877909bef0d</guid>
            <category><![CDATA[libinput]]></category>
            <category><![CDATA[kde]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[gestures]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Wed, 16 Oct 2019 21:27:18 GMT</pubDate>
            <atom:updated>2019-10-17T13:54:24.867Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you have a pretty delicious precision touchpad and you want it to shine in KDE? Here is how.</p><p>The first thing we are going to do is install libinput-gestures with</p><blockquote>sudo apt-get install xdotool wmctrl libinput-tools -y</blockquote><p>now clone the project from github</p><blockquote>git clone https://github.com/bulletmark/libinput-gestures.git &amp;&amp; cd gestures<br>sudo make install</blockquote><p>start the deamon with</p><blockquote>libinput-gestures-setup autostart</blockquote><p>add your current user to the input group to read the touchpad input</p><blockquote>sudo gpasswd -a $USER input</blockquote><p>log out and login againt to compleate the install<br>NOTE: on arch there is a AUR package that will do the installation all for you<br>Now we want to install the Gestures app in order to configure all with a simple GUI right?</p><p>git clone https://gitlab.com/cunidev/gestures &amp;&amp; cd gestures<br>sudo python3 setup.py install</p><p>Open the app, click on the + and here we have some choices. Basically we could set some xdotool commands to emulate keyboard shortcuts, but sometimes they could cause troubles, for example if an app is locking a key or if you are in an input filed. To get around this issue, we can submit commands to kwin directly. In a terminal type:</p><blockquote>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames</blockquote><p>those are all the commands available; to select Window Close for example, enter the following</p><p>qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut “Window Close”</p><p>that is it. thanks to <a href="https://www.reddit.com/user/trmdi/">this</a> reddit user for the commands</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5877909bef0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deal with the new systemd-boot (and set a default Windows entry)]]></title>
            <link>https://mijorus.medium.com/deal-with-the-new-systemd-boot-and-set-a-default-windows-entry-be1814a0c975?source=rss-bdbb66b7f349------2</link>
            <guid isPermaLink="false">https://medium.com/p/be1814a0c975</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[systemd-boot]]></category>
            <category><![CDATA[popos]]></category>
            <category><![CDATA[systemd]]></category>
            <dc:creator><![CDATA[mijorus]]></dc:creator>
            <pubDate>Wed, 16 Oct 2019 20:51:31 GMT</pubDate>
            <atom:updated>2021-01-20T12:52:15.388Z</atom:updated>
            <content:encoded><![CDATA[<p>Some days ago I freshly installed PopOS, a (not so) new Ubuntu based distro I’ve read about online. It promises easy-of-use out of the box and some small tweaks on top of stock Ubuntu 19.04, a different theme, some pre-installer GNOME3 extensions and stuff like this, which is good. But when i booted for the first time, the amazing “easy-of-use” was not so easy after all. <br>It comes with a new boot manager, called systemd-boot, which is, well, let’s say could be more user friendly. I got used to GRUB, it got the job done, but they promise better performances with this new project. I have nothing against new projects, it’s awesome, it is why I use linux, but if you promote your distro as ready-to-go out of the box, you should pay more attentions to your choices, especially when, let’s be honest, most users will probably need a dual-boot setup. <br>Ok, but what is wrong about it?</p><p>First — there is not a settings GUI<br>GRUB has grub-customizer, which is a good and easy way to manage your boot methods and set the default one, timeout etc. Systemd-boot, doesn’t. You will have to deal with configuration files, which is not a big deal for me, but it could be for some people</p><p>Second - System76 provides little to no documentation<br>On their website, they link to the freedesktop wiki page, which is ok, but if I have issues chances are I need way more informations</p><p>Third — it does not support themes<br>yes this is a big one</p><p>Ok, let’s get started. The first big problem you might have is that you want to <strong>set the timeout</strong> of the splash screen. This can be done in two ways. The first (and the one i strongly recommend) is to edit the file which is located at <strong>/boot/efi/loader </strong>called<em> </em><strong><em>loader.conf</em></strong>, so…</p><blockquote>sudo nano /boot/efi/loader/loader.conf<br>timeout 3 (enter your value here in seconds)</blockquote><p>note that the /boot partition is not actually on your root directory, instead it’s where PopOS and other distros will probably mount the EFI partition, which is a completely independent partition on your hard disk, so it could change depending on your distribution. The other alternative way to change the timeout is to<strong> press “t”</strong> while on the splash screen at boot, but this is not ideal for me, as your settings get stored in a non-volatile variable and basically you won’t be able to change them afterword (as the configuration file will then be ignored)</p><p>The other thing you might be interested is to set Windows as the default boot option. This is particularity useful, since sometimes Windows Updates needs to reboot the system to complete the update. Now, systemd-boot fetches the entries from /boot/efi/loader/entries, but probably you won’t see Windows here. It is, in fact, only detected at startup. In order to be able to pre-select windows we have to:</p><blockquote>sudo nano /boot/efi/loader/entries/windows.conf</blockquote><p>in the file put</p><blockquote>title Windows 10 <br>#or as you like to call it<br>efi /EFI/Microsoft/Boot/bootmgfw.efi <br>#if this file is in another location, look for it, but remember<br>#the /boot partition is just the mount point for the ‘efi’ partition<br>save &amp; exit</blockquote><p>you can check if the position in correct by exploring <em>/boot/efi/EFI/Microsoft/Boot</em></p><p>now let’s go back to edit the config file in with <em>sudo nano /boot/efi/loader/loader.conf</em></p><blockquote>default “Windows 10”<br>timeout 5 <br>#to prevent Windows to show up two times set auto-windows to 0, default is 1<br>auto-windows 0</blockquote><p>that was it. Hope I helped someone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be1814a0c975" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>