<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>easyscripts</title>
    <link>https://noblogo.org/easyscripts/</link>
    <description></description>
    <pubDate>Sun, 27 Sep 2026 09:41:28 +0000</pubDate>
    <item>
      <title>Youtube-dl always up-to-date on Mint and Ubuntu without PPA</title>
      <link>https://noblogo.org/easyscripts/youtube-dl-always-up-to-date-on-mint-and-ubuntu-without-ppa</link>
      <description>&lt;![CDATA[A big problem of Ubuntu-based distros for the normal desktop users are the software repository. Many software  are not updated to the last version and this is a problem when a particular program like youtube-dl must be always updated to work properly.&#xA;&#xA;To update it automatically you have to schedule the curl command available on the official github repository with cron.&#xA;From a terminal windows, let run the crontab command.&#xA;&#xA;  sudo crontab -e&#xA;&#xA;and add the following line at the end of the file.&#xA;&#xA;  35 9   1 curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl&#xA;&#xA;The numbers before the curl command are needed to schedule the command. If you want to create your  personal schedule easily, please use the Crontab Guru website.&#xA;In my string above:&#xA;35 minutes&#xA;9 hours&#xA;every day of the month&#xA;every month&#xA;1 every monday&#xA;&#xA;My schedule is set to download the offical program every Monday at 9.35 AM. Change the parameters as you wish to best fit your needs.&#xA;&#xA;If youtube-dl returns a python error after the first update of youtube-dl with curl (it happened on Mint) you just have to create a symlink for python:&#xA;&#xA;  sudo ln -s /usr/bin/python3 /usr/local/bin/python]]&gt;</description>
      <content:encoded><![CDATA[<p>A big problem of Ubuntu-based distros for the normal desktop users are the software repository. Many software  are not updated to the last version and this is a problem when a particular program like youtube-dl must be always updated to work properly.</p>

<p>To update it automatically you have to schedule the <em>curl</em> command available on the official github repository with <em>cron</em>.
From a terminal windows, let run the crontab command.</p>

<blockquote><p>sudo crontab -e</p></blockquote>

<p>and add the following line at the end of the file.</p>

<blockquote><p>35 9 * * 1 curl -L <a href="https://yt-dl.org/downloads/latest/youtube-dl" rel="nofollow">https://yt-dl.org/downloads/latest/youtube-dl</a> -o /usr/local/bin/youtube-dl</p></blockquote>

<p>The numbers before the curl command are needed to schedule the command. If you want to create your  personal schedule easily, please use the <a href="https://crontab.guru/" rel="nofollow">Crontab Guru</a> website.
In my string above:
35 minutes
9 hours
* every day of the month
* every month
1 every monday</p>

<p>My schedule is set to download the offical program every Monday at 9.35 AM. Change the parameters as you wish to best fit your needs.</p>

<p>If youtube-dl returns a python error after the first update of youtube-dl with curl (it happened on Mint) you just have to create a symlink for python:</p>

<blockquote><p>sudo ln -s /usr/bin/python3 /usr/local/bin/python</p></blockquote>
]]></content:encoded>
      <guid>https://noblogo.org/easyscripts/youtube-dl-always-up-to-date-on-mint-and-ubuntu-without-ppa</guid>
      <pubDate>Sat, 20 Mar 2021 07:30:59 +0000</pubDate>
    </item>
    <item>
      <title>How to automatically disable notebook integrated keyboard in Linux</title>
      <link>https://noblogo.org/easyscripts/how-to-automatically-disable-notebook-integrated-keyboard-in-linux</link>
      <description>&lt;![CDATA[Sometimes you may want to disable the integrated keyboard of your laptop or notebook. For example in the case it&#39;s broken and some key result as always pushed.&#xA;&#xA;This is an easy one-line script to disable the internal keyboard. You can execute it in the terminal or put it on a .sh script.&#xA;This is not the best way, but it worked for me and that&#39;s all I need :-) I hope it can work for you, too.&#xA;&#xA;The code&#xA;&#xA;xinput float $(xinput list | grep AT | cut -d&#39;=&#39; -f 2 | cut -c 1-2)&#xA;&#xA;How it works&#xA;xinput list allows to see all the attached input devices&#xA;xinput float allows to virtually detach one of the input devices&#xA;&#xA;Example of the xinput list command result:&#xA;Virtual core pointer                    &#x9;id=2&#x9;[master pointer  (3)]&#xA;⎜   ↳ Virtual core XTEST pointer              &#x9;id=4&#x9;[slave  pointer  (2)]&#xA;⎜   ↳ MLK Trust Deskset 16593                 &#x9;id=12&#x9;[slave  pointer  (2)]&#xA;⎜   ↳ Logitech M570                           &#x9;id=13&#x9;[slave  pointer  (2)]&#xA;&#xA;To detach the Logitech M570 I should input xinput float 13 where 13 is the M570 ID on my system (it&#39;s shown by the xinput list command) &#xA;&#xA;Since the integrated keyboard is often shown as &#34;AT Translated Set 2 keyboard&#34;, the code above just extracts the ID number of the &#34;AT Translated Set 2 keyboard&#34;.&#xA;&#xA;xinput float detaches the device with the ID extracted with the following command&#xA;    xinput list lists the devices&#xA;    grep AT keeps only the line with AT in the string (the AT Translated Set 2 keyboard in my case)&#xA;    cut -d&#39;=&#39; -f 2 keeps only the characters that follows the = which is used to show the ID of  the device&#xA;    cut -c 1-2 keeps only the 2 chars of  the ID&#xA;&#xA;The cut -d&#39;=&#39; -f 2 is used to cut only 2 char and it should be enough without the next cut command, but it doesn&#39;t work and I can&#39;t figure out why. I had use the cut command twice to achieve the result I need.&#xA;&#xA;Important note&#xA;This script works if the ID of your integrated keyboard is   9 (it&#39;s composed by 2 char and not only 1). If your AT device id is &lt;=9 you should change the cut -c 1-2 to cut -c 1-1&#xA;&#xA;How to run it automatically&#xA;This part heavily depends on your distro and dekstop environment. You can run it manually, running the string in the terminal everytime you boot the system, but I think the easy way is to put that string in a executable .sh script.&#xA;Just open the notepad app and save it with the .sh extension.&#xA;Then run chmod +x NameOfTheScript.sh to make it executable&#xA;&#xA;Now you can run it at the startup: double click on it or put the script in the startup applications. If you need more details, just search online run sh script at startup linux (or specifying your distro or dekstop envinronment) and you will find a lot of guides.&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>Sometimes you may want to disable the integrated keyboard of your laptop or notebook. For example in the case it&#39;s broken and some key result as always pushed.</p>

<p>This is an easy one-line script to disable the internal keyboard. You can execute it in the terminal or put it on a .sh script.
This is not the best way, but it worked for me and that&#39;s all I need :–) I hope it can work for you, too.</p>

<h2 id="the-code">The code</h2>

<p><em>xinput float $(xinput list | grep AT | cut -d&#39;=&#39; -f 2 | cut -c 1-2)</em></p>

<h2 id="how-it-works">How it works</h2>

<p><em>xinput list</em> allows to see all the attached input devices
<em>xinput float</em> allows to virtually detach one of the input devices</p>

<p>Example of the <em>xinput list</em> command result:
Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MLK Trust Deskset 16593                   id=12   [slave  pointer  (2)]
⎜   ↳ Logitech M570                             id=13   [slave  pointer  (2)]</p>

<p>To detach the Logitech M570 I should input <em>xinput float 13</em> where 13 is the M570 ID on my system (it&#39;s shown by the <em>xinput list</em> command)</p>

<p>Since the integrated keyboard is often shown as “AT Translated Set 2 keyboard”, the code above just extracts the ID number of the “AT Translated Set 2 keyboard”.</p>
<ul><li><em>xinput float</em> detaches the device with the ID extracted with the following command
<ul><li><em>xinput list</em> lists the devices</li>
<li><em>grep AT</em> keeps only the line with <em>AT</em> in the string (the AT Translated Set 2 keyboard in my case)</li>
<li><em>cut -d&#39;=&#39; -f 2</em> keeps only the characters that follows the <em>=</em> which is used to show the ID of  the device</li>
<li><em>cut -c 1-2</em> keeps only the 2 chars of  the ID</li></ul></li></ul>

<p>The <em>cut -d&#39;=&#39; -f 2</em> is used to cut only 2 char and it should be enough without the next <em>cut</em> command, but it doesn&#39;t work and I can&#39;t figure out why. I had use the <em>cut</em> command twice to achieve the result I need.</p>

<h2 id="important-note">Important note</h2>

<p>This script works if the ID of your integrated keyboard is &gt;9 (it&#39;s composed by 2 char and not only 1). If your AT device id is &lt;=9 you should change the <em>cut -c 1-2</em> to <em>cut -c 1-1</em></p>

<h2 id="how-to-run-it-automatically">How to run it automatically</h2>

<p>This part heavily depends on your distro and dekstop environment. You can run it manually, running the string in the terminal everytime you boot the system, but I think the easy way is to put that string in a executable .sh script.
* Just open the notepad app and save it with the .sh extension.
* Then run <em>chmod +x NameOfTheScript.sh</em> to make it executable</p>

<p>Now you can run it at the startup: double click on it or put the script in the startup applications. If you need more details, just search online <em>run sh script at startup linux</em> (or specifying your distro or dekstop envinronment) and you will find a lot of guides.</p>
]]></content:encoded>
      <guid>https://noblogo.org/easyscripts/how-to-automatically-disable-notebook-integrated-keyboard-in-linux</guid>
      <pubDate>Sun, 16 Aug 2020 15:20:00 +0000</pubDate>
    </item>
  </channel>
</rss>