<?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 Jonas Björk on Medium]]></title>
        <description><![CDATA[Stories by Jonas Björk on Medium]]></description>
        <link>https://medium.com/@karoshi?source=rss-90a6959d978d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OjKxlzvBYya5wKSrBEk6ow.jpeg</url>
            <title>Stories by Jonas Björk on Medium</title>
            <link>https://medium.com/@karoshi?source=rss-90a6959d978d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:14:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karoshi/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[Force user to change password at login]]></title>
            <link>https://medium.com/thefedoraidea/force-user-to-change-password-at-login-644cca536301?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/644cca536301</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[fedora]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 21:32:49 GMT</pubDate>
            <atom:updated>2023-11-22T21:32:49.079Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zqr3RyAq_PVaqEIw" /><figcaption>Photo by <a href="https://unsplash.com/@moneyphotos?utm_source=medium&amp;utm_medium=referral">rc.xyz NFT gallery</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we create a new user account in Fedora Linux, say user account <em>douglas</em>, we often set a random password for the account. If we want to force the user to change that password at first login we can use --expire with the passwd command.</p><pre>$ sudo passwd --expire douglas</pre><p>When d<em>ouglas</em> logs in, he will receive this message:</p><pre>WARNING: Your password has expired.<br>You must change your password now and login again!<br>Changing password for douglas.<br>Current password:</pre><p>Now <em>douglas</em> can choose his own password, unknown for us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=644cca536301" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/force-user-to-change-password-at-login-644cca536301">Force user to change password at login</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s the difference between dnf update and dnf upgrade?]]></title>
            <link>https://medium.com/thefedoraidea/whats-the-difference-between-dnf-update-and-dnf-upgrade-2942fe82e61f?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2942fe82e61f</guid>
            <category><![CDATA[fedora-linux]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[yum]]></category>
            <category><![CDATA[dnf]]></category>
            <category><![CDATA[upgrade]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 21:10:19 GMT</pubDate>
            <atom:updated>2023-11-21T21:10:19.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x3e5r8fDf7WKjN6K" /><figcaption>Photo by <a href="https://unsplash.com/@harlimarten?utm_source=medium&amp;utm_medium=referral">Harli Marten</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When using Fedora, and other RPM-based Linux distributions, you will find yourself asking: what’s the difference between dnf update and dnf upgrade?</p><p>Historivally we used dnf update to update all installed packages to their latest available versions. The update managed dependencies and resolved conflicts between packages. In recent versions of dnf the update option has become an alias for dnf upgrade . This means that dnf update now does the same as dnf upgrade .</p><p>It is recommended to use the dnf upgrade command to update all installed packages to the latest versions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2942fe82e61f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/whats-the-difference-between-dnf-update-and-dnf-upgrade-2942fe82e61f">What’s the difference between dnf update and dnf upgrade?</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Sticky Bit]]></title>
            <link>https://medium.com/thefedoraidea/the-sticky-bit-8aba3909a540?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aba3909a540</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[fedora]]></category>
            <category><![CDATA[file-system-permission]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 20:57:14 GMT</pubDate>
            <atom:updated>2023-11-21T20:57:14.219Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CYvWbMHirZ5-GLUv" /><figcaption>Photo by <a href="https://unsplash.com/@framesbyfin?utm_source=medium&amp;utm_medium=referral">Heidi Fin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The sticky bit restricts deletion of files in directories. Let’s try an example. We need two users on the machine to try it out, I’ve created <em>user1</em> and <em>user2</em>. Now, as user1, we create a directory and two files:</p><pre>$ mkdir test<br>$ touch test/hello.txt<br>$ touch test/hello2.txt<br>$ chmod ugo=rwx test<br>$ ls -l<br>drwxrwxrwx 2 user1 user1 4096 Nov 21 20:33 test<br>$</pre><p>Now we need to become <em>user2</em>, I will use the sudo command to become <em>user2</em>:</p><pre>$ sudo -u user2 -i</pre><p>Then we cd into the directory <em>test</em> , list the files and removes the hello2.txt file as user2:</p><pre>$ cd /home/user1/test<br>$ ls -l <br>-rw-rw-r-- 1 user1 user1 0 Nov 21 20:33 hello.txt<br>-rw-rw-r-- 1 user1 user1 0 Nov 21 20:33 hello2.txt<br>$ rm hello2.txt<br>$ ls -l <br>-rw-rw-r-- 1 user1 user1 0 Nov 21 20:33 hello.txt<br>$</pre><p>That worked well! The reason for this is that user2 has write permission (from the other permissions) on the test directory:</p><pre>drwxrwxrwx 2 user1 user1 4096 Nov 21 20:39 test</pre><p>So let’s become user1 again:</p><pre>$ exit</pre><p>As <em>user1</em> we now will set the sticky bit on the directory <em>test</em>:</p><pre>$ ls -l<br>drwxrwxrwx 2 user1 user1 4096 Nov 21 20:39 test<br>$ chmod o+t test <br>$ ls -l<br>drwxrwxrwt 2 user1 user1 4096 Nov 21 20:39 test</pre><p>When we set the sticky bit with chmod o+t we can see the last <em>x</em> in the permissions on the directory becomes a <em>t</em> instead. Note that the write permission also is set on the directory, meaning that we should be able to delete files from the directory. Now, let’s see this is practice. First we become <em>user2</em> again, I will use sudo to become <em>user2</em>:</p><pre>$ sudo -u user2 -i</pre><p>Then (as <em>user2</em>) we cd into the /home/user1/ directory and check the permissions on the directory. We also try to delete the file hello.txt :</p><pre>$ ls -l<br>drwxrwxrwt 2 user1 user1 4096 Nov 21 20:39 test<br>$ cd test<br>$ ls -l<br>-rw-rw-r-- 1 user1 user1 0 Nov 21 20:33 hello.txt<br>$ rm hello.txt<br>rm: cannot remove &#39;hello.txt&#39;: Operation not permitted</pre><p>Now, when the <em>sticky bit</em> is set on the directory we can’t delete the files in the directory — <em>even with write permissions!</em></p><p><em>user1</em> can delete the files he owns, even if sticky bit is set.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aba3909a540" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/the-sticky-bit-8aba3909a540">The Sticky Bit</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple identities with git]]></title>
            <link>https://medium.com/thefedoraidea/multiple-identities-with-git-e2462e9ab34?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2462e9ab34</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[fedora-linux]]></category>
            <category><![CDATA[terminal-commands]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 15:44:40 GMT</pubDate>
            <atom:updated>2023-08-14T15:44:40.165Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4xVGZf3hQEjHBfHX" /><figcaption>Photo by <a href="https://unsplash.com/@napzphoto?utm_source=medium&amp;utm_medium=referral">Patrick Amoy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s say you have a computer that you use for commiting changes to private, public and work repositories with git. Every time you enter that git commit command you have to think: do I use the correct .gitconfig now? Not any more!</p><blockquote>⚠ Note that the .gitconfig -files should be saved in your home directory.</blockquote><p>Let’s say that I want to default on my name <em>Tyrell Wellick</em> and the email adress <em>tyrell@gcompany.com</em> . I make my .gitconfig file look like this:</p><pre>[user]<br>  name = Tyrell Wellick<br>  email = tyrell@gcompany.com</pre><p>So far, so good. At my work we have a git server that I reach with the address <em>ssh://git@git.ecorp.com:9999/reponame/ </em>. When I commit to that server I want to use my corporate address tyrell@ecorp.com and also I want to sign my commits with GPG. Let’s create a .gitconfig-ecorp file with the following configuration:</p><pre>[user]<br>  name = Tyrell Wellick<br>  email = tyrell@ecorp.com<br>  sigingkey = 0123456789ABCDEF<br><br>[commit]<br>  gpgsign = true</pre><p>Ok, first of all. To find your signing key ID you use the gpg command. You can also skip the signingkey and commit/gpgsign parts in the example above if you don’t want to use GPG signing for your commits.</p><pre>$ gpg --list-secret-keys --keyid-format LONG tyrell@ecorp.com<br>sec   ed25519/0123456789ABCDEF 2022-09-12 [SC] [expires: 2027-09-11]<br>      9A3D92E4685D4B58C64049740123456789ABCDEF<br>uid                 [ultimate] Tyrell Wellick &lt;tyrell@ecorp.com&gt;<br>ssb   cv25519/FEDCBA9876543210 2022-09-12 [E] [expires: 2027-09-11]</pre><p>Your signing key ID is on the second row, in my example above you’ll see <em>0123456789ABCDEF</em> as an example.</p><p>So now we have edited and saved the .gitconfig-ecorp file and want to conditionally include that file if we are working with the git.ecorp.com git server. Let’s open the .gitconfig file again:</p><pre>[user]<br>  name = Tyrell Wellick<br>  email = tyrell@gcompany.com</pre><p>In that file we add the following:</p><pre>[user]<br>  name = Tyrell Wellick<br>  email = tyrell@gcompany.com<br><br>[includeIf &quot;hasconfig:remote.*.url:ssh://git@git.ecorp.com:9999/**&quot;]<br>  path = ~/.gitconfig-ecorp</pre><p>That’s it. Now git will take care of your identity and use the default (<em>tyrell@gcompany.com</em>) if you are git commiting to a repo, but if you are working with a repo from <em>git.ecorp.com-</em>git repo server you’ll get the identity of <em>tyrell@ecorp.com</em> .</p><p>Oh, if you wonder how you are GPG-signing a git commit. Add -S to the git commit command, like this: git commit -S .</p><h3>Versions used in this article</h3><pre>$ cat /etc/redhat-release ; git --version ; rpm -q git-core<br>Fedora release 38 (Thirty Eight)<br>git version 2.41.0<br>git-core-2.41.0-1.fc38.x86_64</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2462e9ab34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/multiple-identities-with-git-e2462e9ab34">Multiple identities with git</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Termius and the pipe key]]></title>
            <link>https://medium.com/thefedoraidea/termius-and-the-pipe-key-f088c9cda5d1?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f088c9cda5d1</guid>
            <category><![CDATA[keyboard]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[termius]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 09:50:31 GMT</pubDate>
            <atom:updated>2023-07-26T09:50:31.889Z</atom:updated>
            <content:encoded><![CDATA[<p>Just got <a href="https://termius.com/">Termius</a> installed on the Mac and the pipe key ( <strong>| , </strong>option+7) does not work. I searched the Prefences and noticed that there is a setting for <strong>Use Option as Meta key</strong> under the <strong>Terminal</strong> tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEPSgKA4epIGqBYa29jfqQ.png" /></figure><p>Just <em>disable</em> that option and the pipe key will work again, which makes the Termius terminal useful. Now it’s time to explore more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f088c9cda5d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/termius-and-the-pipe-key-f088c9cda5d1">Termius and the pipe key</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Teams in Fedora with Flatpak]]></title>
            <link>https://medium.com/thefedoraidea/microsoft-teams-in-fedora-with-flatpak-59e5efc47b71?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/59e5efc47b71</guid>
            <category><![CDATA[microsoft-teams]]></category>
            <category><![CDATA[microsoft-teams-app]]></category>
            <category><![CDATA[fedora-linux]]></category>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[flatpak]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 20:53:48 GMT</pubDate>
            <atom:updated>2022-10-11T20:53:48.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Recwt9CORos_dSR" /><figcaption>Photo by <a href="https://unsplash.com/@dkfra19?utm_source=medium&amp;utm_medium=referral">Dimitri Karastelev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As published by many other websites earlier, Microsoft is suspending support for Microsoft Teams in Linux. We have been able to download MS Teams for Linux from <a href="https://go.microsoft.com/fwlink/p/?LinkID=2112907&amp;culture=en-us&amp;country=WW">go.microsoft.com</a> , but those days are soon over.</p><p>Microsoft also said that they will come with instructions how to use MS Teams as a Progressive Web Application (PWA) in Microsoft Edge and Google Chrome soon.</p><h3>Install Microsoft Teams with Flatpak</h3><p>The best option today is to use teams-for-linux available with Flatpak. It’s Ismael Martinez that maintains the pak and sources are available at <a href="https://github.com/IsmaelMartinez/teams-for-linux">github.com</a> .</p><p>First we need to add the Flathub repository to Flatpak:</p><pre>$ flatpak remote-add --if-not-exists flathub <a href="https://flathub.org/repo/flathub.flatpakrepo">https://flathub.org/repo/flathub.flatpakrepo</a></pre><p>Then we update:</p><pre>$ flatpak update</pre><p>Now search for the package:</p><pre>$ flatpak search teams-for-linux</pre><pre># You should see:<br>teams-for-linux<br>Unofficial Microsoft Teams client for Linux using Electron<br>com.github.IsmaelMartinez.teams_for_linux 1.0.44</pre><p>And finally we install the package:</p><pre>$ flatpak install com.github.IsmaelMartinez.teams_for_linux</pre><p>To run the application you use the application menu in GNOME and search for Teams and you will find the Teams logo, or from command line we can start Teams with the flatpak command:</p><pre>$ flatpak run com.github.IsmaelMartinez.teams_for_linux</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E6lkc9a_sWacY3gaAyd_vA.png" /><figcaption>Microsoft Teams in Fedora Linux</figcaption></figure><p>Now we have a functional, Electron wrapped, Microsoft Teams client in Fedora Linux!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59e5efc47b71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/microsoft-teams-in-fedora-with-flatpak-59e5efc47b71">Microsoft Teams in Fedora with Flatpak</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Download videos from Youtube and Vimeo with youtube-dl]]></title>
            <link>https://medium.com/thefedoraidea/download-videos-from-youtube-and-vimeo-with-youtube-dl-341a065e27b5?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/341a065e27b5</guid>
            <category><![CDATA[vimeo-video-downloader]]></category>
            <category><![CDATA[vimeo]]></category>
            <category><![CDATA[youtube-video-downloader]]></category>
            <category><![CDATA[fedora-36]]></category>
            <category><![CDATA[youtube]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Thu, 06 Oct 2022 17:55:54 GMT</pubDate>
            <atom:updated>2022-10-06T17:55:54.363Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*OIZOE19eIOSab-mz5kVUQQ.png" /><figcaption>Installing youtube-dl on Fedora</figcaption></figure><p>youtube-dl is a simple console based program that can download videos from Youtube, Vimeo and many other video- and radio- services online. The application is easy to use, you simply add the link (URL) to the video. Youtube-dl will find the video on that link and download it in the highest possible quality that is available.</p><h3>Install</h3><p>In Fedora 36 we use the command dnf to install youtube-dl in the terminal:</p><pre>$ sudo dnf install youtube-dl</pre><p>The man page is extensive and describes how the application works. You can also find information about how to set username and password for video services that requires it.</p><pre>$ man youtube-dl</pre><h3>Youtube</h3><p>To download videos from Youtube we can use the full link (URL) or just the video id, let’s download the video with the id BaW_jenozKc with the full link:</p><pre>$ youtube-dl <a href="https://www.youtube.com/watch?v=BaW_jenozKc">https://www.youtube.com/watch?v=BaW_jenozKc</a></pre><p>Or if we just want to use the video id, we type the following command:</p><pre>$ youtube-dl BaW_jenozKc</pre><h3>Vimeo</h3><p>If we want to download a video from Vimeo we use the full link (URL), example:</p><pre>$ youtube-dl <a href="https://vimeo.com/56015672">https://vimeo.com/56015672</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=341a065e27b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/download-videos-from-youtube-and-vimeo-with-youtube-dl-341a065e27b5">Download videos from Youtube and Vimeo with youtube-dl</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get faster package downloads with dnf]]></title>
            <link>https://medium.com/thefedoraidea/get-faster-package-downloads-with-dnf-10914d206100?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/10914d206100</guid>
            <category><![CDATA[fedora-linux]]></category>
            <category><![CDATA[package-manager]]></category>
            <category><![CDATA[dnf]]></category>
            <category><![CDATA[fedora-36]]></category>
            <category><![CDATA[faster]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 20:58:18 GMT</pubDate>
            <atom:updated>2022-10-05T20:58:18.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fNixj8WogYQpt0yK" /><figcaption>Photo by <a href="https://unsplash.com/@jan_huber?utm_source=medium&amp;utm_medium=referral">Jan Huber</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The package manager in Fedora, dnf, is slow sometimes. But there is a way to make it faster! All we need to do is to set the fastestmirror option in the configuration file /etc/dnf/dnf.conf .</p><p>With fastestmirror configured dnf will try all configured package repositories and select the one that is fastest for us. This depends of our internet connection speed, our location on earth and other factors — but fastestmirror will give us the repository mirror that is the fastest at the moment. This will give us faster downloads of packages and we will save time. Let’s configure!</p><p>We open the file /etc/dnf/dnf.conf with a text editor, I choose vim, but you can use the editor you like best (nano, emacs or something else):</p><pre>$ sudo vi /etc/dnf/dnf.conf</pre><p>In the end of the file we add the following line:</p><pre>fastestmirror=1</pre><p>And now the file should like this:</p><pre>[main]<br>gpgcheck=True<br>installonly_limit=3<br>clean_requirements_on_remove=True<br>best=False<br>skip_if_unavailable=True<br>fastestmirror=1</pre><p>Now we save the file and it’s time to empty the local cache of the package information. This is done with the following command:</p><pre>$ sudo dnf clean all</pre><p>Now dnf will find the fastest mirror and download the packages from that mirror every time we want to upgrade or install packages in our system. Let’s do an upgrade (dnf upgrade) to see how it works and if it is faster:</p><pre>$ sudo dnf upgrade</pre><h3>max_parallel_downloads</h3><p>There is another option we can enable to make downloads faster too. This option is called max_parallel_downloads and is also configured in the file /etc/dnf/dnf.conf . As default it is set to 3 , but we can increase the value up to 20.</p><blockquote>Be aware of that multiple downloads will use more bandwidth (internet connection), and if we have a slow internet connection it might take more time to download the packages if we set a higher value for max parallel downloads.</blockquote><p>Now we edit the file /etc/dnf/dnf.conf :</p><pre>$ sudo vi /etc/dnf/dnf.conf</pre><p>And in the end of the file we type the following line:</p><pre>max_parallel_downloads=20</pre><p>Save the file. The command dnf will now download up to 20 packages at the same time, which will make installations and upgrades faster.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10914d206100" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/get-faster-package-downloads-with-dnf-10914d206100">Get faster package downloads with dnf</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can you see my screen?]]></title>
            <link>https://medium.com/thefedoraidea/can-you-see-my-screen-af6d31f5656b?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/af6d31f5656b</guid>
            <category><![CDATA[fedora-36]]></category>
            <category><![CDATA[wayland]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[google-meet]]></category>
            <category><![CDATA[fedora-linux]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 20:24:28 GMT</pubDate>
            <atom:updated>2022-10-05T20:24:28.715Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ee-BScjhgqC0KFfP" /><figcaption>Photo by <a href="https://unsplash.com/@disruptxn?utm_source=medium&amp;utm_medium=referral">Desola Lanre-Ologun</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Fedora uses <a href="https://wayland.freedesktop.org/">Wayland</a> instead of <a href="https://www.x.org/wiki/">Xorg</a> which makes things kind of strange sometimes. One such thing is that you can’t share your screen with Slack, Google Meet and so on. The best you can share is a black screen, and how fun is that?</p><h3>Slack</h3><p>To fix <em>share screen</em> in Slack we create a new slack.desktop file in our home directory that will override the original one.</p><pre>$ vi ~/.local/share/applications/slack.desktop</pre><p>Copy the following into that file:</p><pre>[Desktop Entry]<br>Name=Slack<br>StartupWMClass=Slack<br>Comment=Slack Desktop<br>GenericName=Slack Client for Linux<br>Exec=/usr/bin/slack --enable-features=WebRTCPipeWireCapturer %U<br>Icon=/usr/share/pixmaps/slack.png<br>Type=Application<br>StartupNotify=true<br>Categories=GNOME;GTK;Network;InstantMessaging;<br>MimeType=x-scheme-handler/slack;</pre><p>Save the file and start Slack with the Slack icon in application list.</p><p>There is still an issue, when you choose to share your screen it will show you white boxes instead of what to share. It’s annoying, but the screen sharing works.</p><h3>Google Meet in Google Chrome</h3><p>If you use Google Meet you are probably a Google Chrome user too. To get the screen sharing work in Google Chrome you need to enable something called webrtc-pipewire-capturer . Just type chrome://flags/#enable-webrtc-pipewire-capturer in the address field in Chrome and you will get there. Click on the button to the left and select <strong>Enabled</strong> , then you restart Chrome.</p><p>If you are using Mozilla Firefox screen sharing should work in Google Meet out of the box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af6d31f5656b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thefedoraidea/can-you-see-my-screen-af6d31f5656b">Can you see my screen?</a> was originally published in <a href="https://medium.com/thefedoraidea">The Fedora Idea</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Rocky Linux on Windows 10/WSL2]]></title>
            <link>https://medium.com/thinklinux/installing-rocky-linux-on-windows-10-wsl2-59204b24ad45?source=rss-90a6959d978d------2</link>
            <guid isPermaLink="false">https://medium.com/p/59204b24ad45</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[wsl-2]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[rocky-linux-9]]></category>
            <category><![CDATA[rocky-linux-8]]></category>
            <dc:creator><![CDATA[Jonas Björk]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 12:35:42 GMT</pubDate>
            <atom:updated>2022-10-03T12:35:42.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*fpKKfXeVeryijyGUDT5KMg.png" /><figcaption>Rocky Linux 8 on Windows 10 with WSL2</figcaption></figure><h3>Install Rocky Linux 9.0 Minimal</h3><p>You need to download the <a href="https://github.com/rocky-linux/sig-cloud-instance-images/blob/Rocky-9.0.20220720-Minimal-x86_64/layer.tar.xz">layer.tar.xz</a> file, which contains the Rocky Linux root filesystem. When the file is downloaded, you need to extract it. This can be done with <a href="https://www.7-zip.org/">7-Zip</a> , just right click in the file and select <em>Extract here</em>.</p><p>Start a PowerShell terminal (admin is not needed!). Now we will create a directory where WSL can store it’s files:</p><pre>PS&gt; mkdir AppData\RockyLinux9Minimal</pre><p>And now it’s time to import the file into WSL:</p><pre>PS&gt; wsl --import RockyLinux-9-Minimal C:\Users\jonas\AppData\RockyLinux9Minimal Downloads\layer.tar --version 2</pre><p>If you are using WSL (not WSL2) you just remove the --version 2 part.</p><p>You start Rocky Linux with the following command:</p><pre>PS&gt; wsl -d RockyLinux-9-Minimal</pre><blockquote>Note that you must use microdnf to install packages with minimal.</blockquote><h3>Install Rocky Linux 8</h3><p>This installation is basically the same as with Rocky Linux 9 Minimal above.</p><p>You need to download the <a href="https://github.com/rocky-linux/sig-cloud-instance-images/blob/Rocky-8.5-x86_64/rocky-8.5-docker-x86_64.tar.xz">rocky-8.5-docker-x86_64.tar.xz</a> file, which contains the Rocky Linux root filesystem. When the file is downloaded, you need to extract it. This can be done with <a href="https://www.7-zip.org/">7-Zip</a> , just right click in the file and select <em>Extract here</em>.</p><p>Start a PowerShell terminal (admin is not needed!). Now we will create a directory where WSL can store it’s files:</p><pre>PS&gt; mkdir AppData\RockyLinux8</pre><p>And now it’s time to import the file into WSL:</p><pre>PS&gt; wsl --import RockyLinux-8 C:\Users\jonas\AppData\RockyLinux8  Downloads\rocky-8.5-docker-x86_64.tar --version 2</pre><p>If you are using WSL (not WSL2) you just remove the --version 2 part.</p><p>You start Rocky Linux with the following command:</p><pre>PS&gt; wsl -d RockyLinux-8</pre><blockquote>Rocky Linux 8 has dnf and is like a “full” installation of Rocky Linux.</blockquote><h3>Windows Terminal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*fpKKfXeVeryijyGUDT5KMg.png" /><figcaption>Rocky Linux 8 on Windows 10 with WSL2</figcaption></figure><p>Microsoft have released a terminal that is really nice, Windows Terminal. With Windows Terminal you can have multiple tabs with cmd, powershell and multiple of WSL Linux variants running at the same time. Well worth a try, if you haven’t tried it yet!</p><p>Download <a href="https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701">Windows Terminal</a> from Microsoft Store.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59204b24ad45" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thinklinux/installing-rocky-linux-on-windows-10-wsl2-59204b24ad45">Installing Rocky Linux on Windows 10/WSL2</a> was originally published in <a href="https://medium.com/thinklinux">Think Linux!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>