<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>&#x2F;</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It&#x27;s free.</tabi:about_feeds>
        <tabi:visit_the_site>Visit website</tabi:visit_the_site>
        <tabi:recent_posts>Recent posts</tabi:recent_posts>
        <tabi:last_updated_on>Updated on $DATE</tabi:last_updated_on>
        <tabi:default_theme></tabi:default_theme>
        <tabi:post_listing_date>date</tabi:post_listing_date>
        <tabi:current_section>Fedora</tabi:current_section>
    </tabi:metadata><link rel="extra-stylesheet" href="/skins/indigo_ingot.css?h=d429472afbb246441b1a" /><title>Andrew Wippler's Sketchpad - Fedora</title>
        <subtitle>Ideas, blog, etc. </subtitle>
    <link href="/tags/fedora/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="/tags/fedora/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2024-12-16T19:37:30+00:00</updated><id>/tags/fedora/atom.xml</id><entry xml:lang="en">
        <title>GnuCash mysql backend on Fedora</title>
        <published>2024-12-16T19:37:30+00:00</published>
        <updated>2024-12-16T19:37:30+00:00</updated>
        <author>
            <name>Andrew Wippler</name>
        </author>
        <link rel="alternate" href="/2024-12-16-gnucash-mysql-backend-on-fedora/" type="text/html"/>
        <id>/2024-12-16-gnucash-mysql-backend-on-fedora/</id>
        
            <content type="html">&lt;p&gt;I have been using GnuCash for personal finance since 2014. Two years ago, I switched over to a mysql backend because it was available in the flatpak. I never understood why the regular package on Fedora did not allow for opening a mysql database until today.&lt;&#x2F;p&gt;
&lt;p&gt;On Fedora, GnuCash is bundled with weak dependencies. GnuCash does not need mysql support to run properly. It does not make sense to require mysql support for everyone, but if you want mysql support, here is how to enable it:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Find out what GnuCash depends upon:&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo dnf repoquery --depends gnucash
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Updating and loading repositories:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Repositories loaded.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;&#x2F;usr&#x2F;bin&#x2F;perl
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;dconf
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;gnome-icon-theme
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;gnucash-docs &amp;gt;= 5.9
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libaqbanking.so.44()(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libboost_filesystem.so.1.83.0()(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libboost_locale.so.1.83.0()(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libboost_program_options.so.1.83.0()(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libc.so.6(GLIBC_2.38)(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libcairo.so.2()(64bit)
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libdbi-dbd-mysql
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libdbi-dbd-pgsql
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;libdbi-dbd-sqlite
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;...
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# These three packages enable support for their respective DB
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Install the option you want&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;$ sudo dnf install -y libdbi-dbd-mysql
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;Enjoy using the native GnuCash package to save to mysql.&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        </entry><entry xml:lang="en">
        <title>Atom editor on Fedora</title>
        <published>2016-03-18T15:00:07+00:00</published>
        <updated>2016-03-18T15:00:07+00:00</updated>
        <author>
            <name>Andrew Wippler</name>
        </author>
        <link rel="alternate" href="/2016-03-18-atom-editor-on-fedora/" type="text/html"/>
        <id>/2016-03-18-atom-editor-on-fedora/</id>
        
            <content type="html">&lt;p&gt;The atom editor has quickly become my favorite IDE for working with web projects. I still use Vi&#x2F;Vim for CLI stuff, but atom is the icon I click when I want a GUI program.&lt;&#x2F;p&gt;
&lt;p&gt;It was becoming a little mundane to go to the atom website and download the new version to install. This is why package managers exist - so users don&#x27;t have to visit your website to download a new update. A quick search at &lt;a class=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;copr.fedorainfracloud.org&#x2F;coprs&#x2F;&quot;&gt;copr&lt;&#x2F;a&gt; yielded mosquito&#x27;s repo of atom - success! Below is how to add the repo and keep atom updated for Fedora.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo dnf install dnf-plugins-core
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo dnf copr enable mosquito&#x2F;atom
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo dnf install atom
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
</content>
        </entry><entry xml:lang="en">
        <title>How to fix Error: Transaction check error with dnf&#x2F;yum</title>
        <published>2016-02-08T15:00:06+00:00</published>
        <updated>2016-02-08T15:00:06+00:00</updated>
        <author>
            <name>Andrew Wippler</name>
        </author>
        <link rel="alternate" href="/2016-02-08-how-to-fix-error-transaction-check-error-with-dnfyum/" type="text/html"/>
        <id>/2016-02-08-how-to-fix-error-transaction-check-error-with-dnfyum/</id>
        
            <content type="html">&lt;p&gt;When a &lt;code&gt;dnf&lt;&#x2F;code&gt; or &lt;code&gt;yum&lt;&#x2F;code&gt; process gets interrupted, you may get the below error:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Running transaction check
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Transaction check succeeded.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Running transaction test
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;The downloaded packages were saved in cache until the next successful transaction.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;You can remove cached packages by executing &amp;#39;dnf clean packages&amp;#39;.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;Error: Transaction check error:
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;file &#x2F;usr&#x2F;share&#x2F;doc&#x2F;avahi-libs&#x2F;README from install of avahi-libs-0.6.32-0.4.rc.fc23.i686 conflicts
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;with file from package avahi-libs-0.6.31-43.fc23.x86_64
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;When presented with &lt;code&gt;Error: Transaction check error&lt;&#x2F;code&gt;, you are unable to install, update, or upgrade your system. The solution is to attempt to install the program (or download the files), locate them on your system, and manually update them using rpm.&lt;&#x2F;p&gt;
&lt;p&gt;In the example above, I want to update &lt;code&gt;avahi-libs&lt;&#x2F;code&gt; to a later version, but an older version still exists on my system. The &lt;code&gt;dnf&lt;&#x2F;code&gt; process was interrupted before it could erase the older version. Hence, the error means manual intervention of the problem is required. To fix, one needs to locate the newer version and use the &lt;code&gt;rpm&lt;&#x2F;code&gt; command to forcefully install the update. In other words, do the following:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;find &#x2F;var&#x2F;cache&#x2F;dnf&#x2F; -iname avahi-libs-0.6.32* -type f
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;rpm -Uvh --replacefiles &#x2F;path&#x2F;to&#x2F;avahi-libs-0.6.32-0.4.rc.fc23.i686.rpm
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;There is a good chance that the file you need is in &lt;code&gt;&#x2F;var&#x2F;cache&#x2F;dnf&#x2F;&lt;&#x2F;code&gt; already and does not need to be downloaded from a mirror.&lt;&#x2F;p&gt;
</content>
        </entry><entry xml:lang="en">
        <title>Setting the I&#x2F;O scheduler for a single disk on Fedora</title>
        <published>2015-07-26T22:35:41+00:00</published>
        <updated>2015-07-26T22:35:41+00:00</updated>
        <author>
            <name>Andrew Wippler</name>
        </author>
        <link rel="alternate" href="/2015-07-26-setting-the-io-scheduler-for-a-single-disk-on-fedora/" type="text/html"/>
        <id>/2015-07-26-setting-the-io-scheduler-for-a-single-disk-on-fedora/</id>
        
            <content type="html">&lt;p&gt;You can set your IO scheduler on-the-fly by echoing the scheduler you want into &lt;code&gt;&#x2F;sys&#x2F;block&#x2F;{DEVICE-NAME}&#x2F;queue&#x2F;scheduler&lt;&#x2F;code&gt;. This setting, however, does not persist across system reboots. The legacy method is to place this command in &lt;code&gt;&#x2F;etc&#x2F;rc.local&lt;&#x2F;code&gt; or by placing an elevator variable in &lt;code&gt;grub.cfg&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Beginning with Fedora 20, a better way of tuning your system has emerged: &lt;code&gt;tuned&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;code&gt;tuned&lt;&#x2F;code&gt; is a daemon that monitors your system and updates it based upon the variables at that moment. For instance, it will scale back your network interface - reducing power consumption - when it is not in use and will return it to full throttle when you are downloading the latest Fedora ISO. Enabling &lt;code&gt;tuned&lt;&#x2F;code&gt; on Fedora 22 is as simple as:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo dnf install tuned
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;systenctl enable tuned
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;systemctl start tuned
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;&lt;code&gt;tuned&lt;&#x2F;code&gt; comes pre-installed with default profiles (listed by running &lt;code&gt;tuned-adm list&lt;&#x2F;code&gt;). By default the IO scheduler is set for all disks on the system. Since this is not the behavior we intend, nor the result we want, we will have to create our own profile for &lt;code&gt;tuned&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;System profiles are stored in &lt;code&gt;&#x2F;usr&#x2F;lib&#x2F;tuned&lt;&#x2F;code&gt; and custom profiles are stored in &lt;code&gt;&#x2F;etc&#x2F;tuned&lt;&#x2F;code&gt;. Creating a custom profile is as simple as finding the recommended for your system, copying it to a new profile, editing it, and applying it.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo mkdir &#x2F;etc&#x2F;tuned&#x2F;andrewwippler
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;sudo cp &#x2F;usr&#x2F;lib&#x2F;tuned&#x2F;$(tuned-adm recommend)&#x2F;tuned.conf &#x2F;etc&#x2F;tuned&#x2F;andrewwippler&#x2F;tuned.conf
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;&lt;code&gt;tuned.conf&lt;&#x2F;code&gt; has a simple structure:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;[NAME]
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;type=TYPE
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;devices=DEVICES
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;setting1=value
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;setting2=value
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;...
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;In the event of your &lt;code&gt;NAME&lt;&#x2F;code&gt; being the same as the &lt;code&gt;TYPE&lt;&#x2F;code&gt;, you can omit the type line. For example, a normal disk declaration looks like this:&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;[disk]
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# Comma separated list of devices, all devices if commented out.
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;# devices=sda
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;alpm=medium_power
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Now all we have to do is append our declaration to &lt;code&gt;&#x2F;etc&#x2F;tuned&#x2F;andrewwippler&#x2F;tuned.conf&lt;&#x2F;code&gt; for sda&#x27;s elevator switch and enable it.&lt;&#x2F;p&gt;
&lt;pre class=&quot;z-code&quot;&gt;&lt;code&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;[my_ssd_disk]
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;type=disk
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;devices=sda
&lt;&#x2F;span&gt;&lt;span class=&quot;z-text z-plain&quot;&gt;elevator=noop
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;I can then enable my custom tuned profile by running &lt;code&gt;tuned-adm profile andrewwippler&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
</content>
        </entry>
</feed>
