{"id":8849,"date":"2024-12-07T11:02:25","date_gmt":"2024-12-07T16:02:25","guid":{"rendered":"https:\/\/www.both.org\/?page_id=8849"},"modified":"2026-03-16T21:07:52","modified_gmt":"2026-03-17T01:07:52","slug":"errata-for-using-and-administering-linux-2nd-edition","status":"publish","type":"page","link":"https:\/\/www.both.org\/?page_id=8849","title":{"rendered":"Errata for Using and Administering Linux &#8212; 2nd Edition"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"8849\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>This page contains errata for the 2nd Edition of my <em>Using and Administering Linux<\/em> three-volume set of books. <\/p>\n\n\n\n<p>I&#8217;m sure there are more errors than have been reported so far. If you encounter an error, please email me at LinuxGeek46@both.org. I&#8217;ll keep this as up to date as possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fedora 43 installation breaks my books<\/h2>\n\n\n\n<p>Well, it really only breaks the some of the experiments the 2nd Edition of my <em>\u201c<a href=\"https:\/\/www.both.org\/?page_id=2208\">Using and Administering Linux<\/a>\u201c<\/em> series. This includes ones in all three volumes of this series that deal with filesystems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The problem <\/h3>\n\n\n\n<p>Except for Fedora 43 Server, <a href=\"https:\/\/www.both.org\/?p=12400\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?p=12400\" target=\"_blank\" rel=\"noreferrer noopener\">Fedora 43 only installs the BtrFS filesystem<\/a> and provides no options for others such as the Logical Volume Management (LVM) and EXT4 configurations I specify in the books. I\u2019m currently working with my editors at Apress to determine how best to handle this problem for the long term. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The best solution<\/h3>\n\n\n\n<p>Use the instructions in my article, <a href=\"https:\/\/www.both.org\/?p=13676\">The Fedora \u201cEverything\u201d 43 Image Changes Everything<\/a>, to use the Fedora Everything ISO image. In the section, &#8220;Software Selection,&#8221; just choose the <strong>Xfce desktop<\/strong> in the left column and make no changes to the right column. This gives the same results as using the Xfce ISO but allows you to create the proper EXT4 filesystems on an LVM base.<\/p>\n\n\n\n<p>Just be sure to use the filesystem structure and sizes shown in Table 5-1 on Page 138 of Volume 1. <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Mount Point<\/th><th>Partition<\/th><th>Filesystem Type<\/th><th>Size (GiB)<\/th><th>Label<\/th><\/tr><\/thead><tbody><tr><td>\/boot<\/td><td>Standard<\/td><td>EXT4<\/td><td>1.0<\/td><td>boot<\/td><\/tr><tr><td>\/boot\/efi<\/td><td><br><\/td><td><br><\/td><td><br><\/td><td><br><\/td><\/tr><tr><td>\/ (root)<\/td><td>LVM<\/td><td>EXT4<\/td><td>2.0<\/td><td>root<\/td><\/tr><tr><td>\/usr<\/td><td>LVM<\/td><td>EXT4<\/td><td>15.0<\/td><td>usr<\/td><\/tr><tr><td>\/home<\/td><td>LVM<\/td><td>EXT4<\/td><td>2.0<\/td><td>home<\/td><\/tr><tr><td>\/var<\/td><td>LVM<\/td><td>EXT4<\/td><td>10.0<\/td><td>var<\/td><\/tr><tr><td>\/tmp<\/td><td>LVM<\/td><td>EXT4<\/td><td>5.0<\/td><td>tmp<\/td><\/tr><tr><td><strong>Total<\/strong><\/td><td><br><\/td><td><br><\/td><td><strong>35.00<\/strong><\/td><td><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">An alternate solution<\/h3>\n\n\n\n<p>As an alternate solution, I suggest that, rather than using Fedora 43, you install Fedora 42 on the VMs you create for the experiments in the course and work with that. Be sure to use the LVM and EXT4 filesystem combination specified in the partitioning instructions of Chapter 5. This should work perfectly for the foreseeable future.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Upgrade to Fedora 43 (Optional)<\/h4>\n\n\n\n<p>The good thing about upgrades, such as from Fedora 42 to Fedora 43, is that they don\u2019t change the filesystem structure. Therefore, you can upgrade your VM from Fedora 42 to Fedora 43 and all of the experiments should work properly. You can read about performing version upgrades <a href=\"https:\/\/www.both.org\/?p=5027\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Downloading Fedora 42 Xfce<\/h3>\n\n\n\n<p>Fedora 42 is no longer directly downloadable from the Fedora downloads website. But you can download the Fedora 42 Xfce ISO image needed for this course from <a href=\"http:\/\/www.both.org\/downloads\/Fedora-Xfce-Live-42-1.1.x86_64.iso\" target=\"_blank\" rel=\"noreferrer noopener\">Both.org<\/a>, or from the <a href=\"https:\/\/fedora.mirrorservice.org\/fedora\/linux\/releases\/42\/Spins\/x86_64\/iso\/Fedora-Xfce-Live-42-1.1.x86_64.iso\" target=\"_blank\" rel=\"noreferrer noopener\">Fedora mirror service<\/a>.<\/p>\n\n\n\n<p>I hope this solution works for you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Errata Affecting All Volumes<\/h2>\n\n\n\n<p>Some commands that previously worked for non-root users no longer do. This has been changed because the results of running those commands as a regular user could be used in attempts to crack into the system. This is a definite improvement in security, but some of the experiments need to be modified a bit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">dmesg Errors<\/h3>\n\n\n\n<p>Changes to the <strong>dmesg<\/strong> command so make it more secure mean that only the root user can access that data. All non-root users see is an error message.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dboth@essex:~$ <strong>dmesg<\/strong>\ndmesg: read kernel buffer failed: Operation not permitted<\/code><\/pre>\n\n\n\n<p>The objective with the use of dmesg is usually to create a large data stream that can be saved as content of a file used for testing. The actual data doesn&#8217;t matter. Use the following command instead to create a file with a large amount of data.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>dd if=\/dev\/urandom bs=2048 count=500 | od &gt; test.file<\/strong><\/code><\/pre>\n\n\n\n<p>This command extracts 1 MegaByte of data from the the urandom device special file and redirects the data stream into the specified file. Just change the name of the target file to the one in the experiment.  There will be more on all of this later in the course.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Volume 1<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Page 99-100: Although I suggest using an external USB storage device for your experiments, you can also use an internal device that has at least 300GB of storage available and which can be partitioned and allocated for use by the virtual machines. Depending upon the current partitioning of your storage device, and the choices you make when creating space for the VMs, the device may be different than shown in the book. You&#8217;ll need to make adjustments for that as you perform the experiments pertaining to creation of the VMs.<\/li>\n\n\n\n<li>Page 341, Experiment 12-12, &#8220;Keeping Old Kernels.&#8221; The dnf.conf file has changed and all entries removed except the comment that refers you to the man page for dnf.conf. So there&#8217;s no content to change as stated in the experiment. Just add the line as it appears in the experiment.<\/li>\n\n\n\n<li>Page 472: Experiment 16-1, the file \/boot\/grub2\/i386-pc\/boot.img no longer exists due to changes in how GRUB uses the configuration files. Use the file \/usr\/lib\/grub\/i386-pc\/boot.img here and in other places where the file \/boot\/grub2\/i386-pc\/boot.img is specified. This is the case on Page 473 also.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Volume 2<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Chapter 24 <em>Special Filesystems<\/em>, page 125, section Thrashing, second paragraph, &#8220;If you can manage to issue a command like free that shows CPU load and memory usage, \u2026&#8221; The command free does not show CPU load. Thanks to Ivan Kraj\u010der for letting me know about this error.<\/li>\n\n\n\n<li>Chapter 30, <em>Automation with Ansible<\/em>, Page 327, in Experiment 30-3, The ssh-keygen command now creates a public\/private ed25519 key pair instead of the RSA pair that it previously did. This does not  affect the results of  this experiment or any of the following ones. Thanks to Ivan Kraj\u010der for informing me of this change.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>root@f42vm:~# <strong>ssh-keygen -b 2048<\/strong>\nGenerating public\/private ed25519 key pair.\nEnter file in which to save the key (\/root\/.ssh\/id_ed25519):\nEnter passphrase for \"\/root\/.ssh\/id_ed25519\" (empty for no passphrase):\nEnter same passphrase again:\nYour identification has been saved in \/root\/.ssh\/id_ed25519\nYour public key has been saved in \/root\/.ssh\/id_ed25519.pub\nThe key fingerprint is:\nSHA256:F8AyZp5aTiocdwe7KDKN2NO9HTmUZyyGK1Rnktz1otI root@f42vm.both.org\nThe key's randomart image is:\n+--&#91;ED25519 256]--+\n|     . +...      |\n|      @ =. .     |\n|     = @ oo .    |\n|  . o O.*.+o     |\n|.= = X.*E=.      |\n|= B * =.+.       |\n| o + . o o       |\n|      . .        |\n|                 |\n+----&#91;SHA256]-----+\nroot@f42vm:~#<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Volume 3<\/h2>\n\n\n\n<p>None at this time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page contains errata for the 2nd Edition of my Using and Administering Linux three-volume set of books.<\/p>\n","protected":false},"author":2,"featured_media":2353,"parent":1452,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"class_list":["post-8849","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/pages\/8849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8849"}],"version-history":[{"count":23,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/pages\/8849\/revisions"}],"predecessor-version":[{"id":13841,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/pages\/8849\/revisions\/13841"}],"up":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/pages\/1452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2353"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}