<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Linux - tagged #shitpost</title><link>https://kyselo.eu/linux</link><description>All about Linux kernel and operating systems that are based on it.[Random post]</description><item><title>Directly streaming youtube video using yt-dlp and mpv</title><link>https://kyselo.eu/linux/post/34274</link><guid isPermaLink="true">https://kyselo.eu/linux/post/34274</guid><description>&lt;p&gt;This way you can avoid any hassle that comes with ads by avoiding them entirely by streaming video content directly to input of your video player such a mplayer or mpv and playing ir directly as shown below. The example below shows video of Never Gonna Give You Up by Rick Astley inside a new video player window.&lt;/p&gt;&lt;pre&gt;$ yt-dlp &lt;a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"&gt;&lt;span data-auto-link="true" data-href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"&gt;https://www.youtube.com/watch?v=dQw4w9WgXcQ&lt;/span&gt;&lt;/a&gt; -o - | mpv -&lt;br&gt;&lt;/pre&gt;</description><pubDate>Thu, 23 Nov 2023 17:05:17 +0100</pubDate></item><item><title>Ubuntu 22.04 has an annoying apt bug. It does not properly upgrade all packages</title><link>https://kyselo.eu/linux/post/28731</link><guid isPermaLink="true">https://kyselo.eu/linux/post/28731</guid><description>&lt;p&gt;Running apt in dist-upgrade mode generates weird results as some packages are not upgraded. The only solution is to manually add each not upgraded package to command line which is super annoying and wastes precious time :\ The following behavior is what reproduces faulty results:&lt;/p&gt;&lt;pre&gt;juozas@xubuntu:~$ export LC_ALL=C&lt;br&gt;juozas@xubuntu:~$ sudo apt-get --no-install-recommends dist-upgrade &lt;br&gt;Reading package lists... Done&lt;br&gt;Building dependency tree... Done&lt;br&gt;Reading state information... Done&lt;br&gt;Calculating upgrade... Done&lt;br&gt;The following packages were automatically installed and are no longer required:&lt;br&gt;&amp;nbsp; linux-headers-5.15.0-46 linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic linux-modules-extra-5.15.0-46-generic&lt;br&gt;&amp;nbsp; linux-tools-5.15.0-46 linux-tools-5.15.0-46-generic&lt;br&gt;Use 'sudo apt autoremove' to remove them.&lt;br&gt;The following packages have been kept back:&lt;br&gt;&amp;nbsp; fonts-opensymbol libreoffice libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core&lt;br&gt;&amp;nbsp; libreoffice-draw libreoffice-gtk libreoffice-gtk2 libreoffice-gtk3 libreoffice-help-common libreoffice-help-en-gb libreoffice-help-en-us libreoffice-impress&lt;br&gt;&amp;nbsp; libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-lt libreoffice-math libreoffice-report-builder-bin libreoffice-style-colibre libreoffice-writer&lt;br&gt;&amp;nbsp; libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 python3-uno uno-libs-private ure&lt;br&gt;0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.&lt;br&gt;juozas@xubuntu:~$ &lt;br&gt;&lt;/pre&gt;&lt;p&gt;Edit: It appers this is a new apt feature called phased updates. It can be easily disabled by adding&lt;/p&gt;&lt;pre&gt;APT::Get::Always-Include-Phased-Updates "true";&lt;/pre&gt;&lt;p&gt;to apt configuration (usually in &lt;i&gt;/etc/apt/apt.conf.d/&lt;/i&gt;).&lt;br&gt;&lt;/p&gt;</description><pubDate>Tue, 20 Sep 2022 15:42:11 +0200</pubDate></item><item><title>Installed Ubuntu 22.04 LTS from scratch, to be released within a week (April 21, 2022)</title><link>https://kyselo.eu/linux/post/26315</link><guid isPermaLink="true">https://kyselo.eu/linux/post/26315</guid><description>&lt;p&gt;Ubuntu 22.04 LTS is soon to be released so I decided to do a complete reinstall. After booting into Linux Live USB first I've deleted everything from my old install except for the important stuff I needed to keep. Then I've reinstalled the base system using debootstrap and used a script I made to enter the chroot, I installed required packages there to make it boot and to be able to access network. Finally I've installed everything else I needed including graphical interface where a list of installed previously packages would help alot. Such list could be generated by running commands as shown in example below.&lt;/p&gt;&lt;p&gt;First generate package list files while in old system as shown below&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ apt-mark showmanual &amp;gt; manual_old.txt&lt;br&gt;$ dpkg-query -Wf '${Package}\n' &amp;gt; packages_old.txt&lt;br&gt;&lt;/pre&gt;&lt;p&gt;After reinstalling system repeat same in the new installation, only change output file names where needed.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ apt-mark showmanual &amp;gt; manual.txt&lt;br&gt;$ dpkg-query -Wf '${Package}\n' &amp;gt; packages.txt&lt;br&gt;&lt;/pre&gt;&lt;p&gt;Finally compare package list files generated above, a list of missing packages would be stored in files as shown below&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ sort manual_old.txt &amp;gt; 1.txt; sort manual.txt &amp;gt; 2.txt; comm -23 1.txt 2.txt &amp;gt; missing_manual.txt&lt;br&gt;$ sort packages_old.txt &amp;gt; 1.txt; sort packages.txt &amp;gt; 2.txt; comm -23 1.txt 2.txt &amp;gt; missing.txt&lt;br&gt;&lt;/pre&gt;</description><pubDate>Wed, 13 Apr 2022 20:32:11 +0200</pubDate></item></channel></rss>
