<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sam</title>
    <description>The latest articles on DEV Community by sam (@samstag).</description>
    <link>https://dev.to/samstag</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4115702%2F46135762-f48c-45e7-b0c8-f9709ccf93c7.jpg</url>
      <title>DEV Community: sam</title>
      <link>https://dev.to/samstag</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samstag"/>
    <language>en</language>
    <item>
      <title>Linux from scratch day one disaster</title>
      <dc:creator>sam</dc:creator>
      <pubDate>Thu, 08 Oct 2026 05:42:16 +0000</pubDate>
      <link>https://dev.to/samstag/linux-from-scratch-day-one-disaster-5ce8</link>
      <guid>https://dev.to/samstag/linux-from-scratch-day-one-disaster-5ce8</guid>
      <description>&lt;p&gt;So I finally bit the bullet, and decided that I couldn't postpone it any longer I had to build linux from scratch; I thought it was going&lt;br&gt;
to be easy I mean the book was basically a tutorial on how to do just&lt;br&gt;
that but as you can tell from my title there I quickly ran into some &lt;br&gt;
problems;&lt;br&gt;
The first unironically was with the first command I was to run&lt;br&gt;
you see before we could start actually building the system itself,&lt;br&gt;
we had to ensure that the system actually had the tools to do that.&lt;br&gt;
There was a script provided, a bash script where on running it would tell you whether you had all the tools installed; so I spent the rest of my time running the script hitting sudo dnf install(am a fedora&lt;br&gt;
guy bythaway). Everything seemed ok until I hit the last error, &lt;br&gt;
the infamous "Error: yacc is not Bison" I was like yeah I know that &lt;br&gt;
yacc isn't bison; problem was instead of consulting the book, I ran &lt;br&gt;
like a geek to papa Google for answers and after just 7 mins in&lt;br&gt;
I was ready to call it quits; on stack overflow, there were lots of &lt;br&gt;
people like me who had encountered the same problem.&lt;br&gt;
Problem is; either they didn't get good answers at all or the answers &lt;br&gt;
they got didn't help much for my problem, after going about this&lt;br&gt;
for like four hours I was ready to throw in the towel, but I &lt;br&gt;
quickly decided against it. Instead I decided to take a break and come back and hack some more into it after a half an hour.&lt;/p&gt;

&lt;p&gt;During my break, I don't know how it came to be maybe I thought &lt;br&gt;
that the script was a bluff or something but I started getting thoughts of abandoning the error and just moving on, but when I came &lt;br&gt;
back to my laptop, I decided to go back to the book; maybe they had the answer and sure enough they did(indirectly).&lt;br&gt;
It reads&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Bison-2.7 (/usr/bin/yacc should be a link to bison or a small script that executes bison)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I simply had to jump into /bin and add yacc as a link to bison,&lt;br&gt;
a simple command that cost me 5 hours at that point&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ln bison yacc&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Anyways I ran that and the script gave me a big ok and I was back &lt;br&gt;
on this wretched path again but then I got to the partition part&lt;br&gt;
and once again I held my breath, there was a lot of stuff to do &lt;br&gt;
and when I ran &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;cfdisk /dev/sda&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;down below I got an error screaming at me saying that the system was running blah blah blah which got me worried; was it possible &lt;br&gt;
that I could actually permanently make my rom obsolete ? I still don't know; still I had to make the partition and that is where I &lt;br&gt;
got another problem, they said that 30G was enough but when I looked at their example and actually counted the amount of storage they allocated, it was more than 82G. &lt;br&gt;
I was confused and didn't know what to do, I soon abandoned cfdisk &lt;br&gt;
for GParted; a software from Gnome that came with KDE, and the GUI &lt;br&gt;
actually made things less scary, but still I kept on deleting &lt;br&gt;
and creating new partitions, so I called it quits and finally &lt;br&gt;
decided to consult a master of this craft, the guy from&lt;br&gt;
the &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;channel kernotex on Youtube&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and then begun my handholding, it was great just following what the &lt;br&gt;
guy was doing; I mean copying commands when he did, &lt;br&gt;
he led me well; especially at that part with the wget file&lt;br&gt;
where you were supposed to wget the file first before running the &lt;br&gt;
command&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;wget --input-file=wget-list-systemd --continue --directory-prefix=$LFS/sources&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;but I soon realized that I should have followed his tutorial from the start truthfully, and not jumped in after I got tired of the LFS&lt;br&gt;
book especially &lt;br&gt;
not running &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo ...&lt;br&gt;
instead of running as the root user&lt;br&gt;
it caused me problems when I finally got to actually building the&lt;br&gt;
system at chapter 5, where the lfs user didn't have permisions to &lt;br&gt;
some of the files and so the &lt;/p&gt;

&lt;p&gt;make install&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;command would output permission denied errors. I soon quit, I couldn't continue with a broken system, I deleted the partition, which was not the smartest move out there since when I powered on&lt;br&gt;
my laptop today I realised the user lfs was still there. This is &lt;br&gt;
probably because I didn't actually remove the user; anyways guys&lt;br&gt;
wish me luck as I try it again today.&lt;br&gt;
At least I learned about the&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;sudo bash command&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;so that's something. Wish you all luck too as you do the challenge.&lt;br&gt;
Have a nice day y'all&lt;/p&gt;

&lt;p&gt;Here's something I read this morning&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Luke 11:9-13&lt;br&gt;
9 “So I say to you: Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. 10For everyone who asks receives; the one who seeks finds; and to the one who knocks, the door will be opened.&lt;br&gt;
11 “Which of you fathers, if your son asks for a fish, will give him a snake instead? 12Or if he asks for an egg, will give him a scorpion? 13If you then, though you are evil, know how to give good gifts to your children, how much more will your Father in heaven give the Holy Spirit to those who ask him!”&lt;/p&gt;

&lt;p&gt;The Holy Bible, New International Version® NIV®&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.®&lt;/p&gt;

&lt;p&gt;Used by Permission of Biblica, Inc.® All rights reserved worldwide.&lt;/p&gt;

</description>
      <category>bash</category>
      <category>learning</category>
      <category>linux</category>
    </item>
    <item>
      <title>GOT snobbed by my local bin</title>
      <dc:creator>sam</dc:creator>
      <pubDate>Thu, 17 Sep 2026 04:57:12 +0000</pubDate>
      <link>https://dev.to/samstag/got-snobbed-by-my-local-bin-n14</link>
      <guid>https://dev.to/samstag/got-snobbed-by-my-local-bin-n14</guid>
      <description>&lt;h2&gt;
  
  
  Hello devs,
&lt;/h2&gt;

&lt;h2&gt;
  
  
  How's everyone doing ?
&lt;/h2&gt;

&lt;p&gt;So I wrote the following script&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F365ceyyl82108bgxroyd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F365ceyyl82108bgxroyd.png" alt="A screenshot of the C script" width="552" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I had open-typer downloaded and just wanted a shorter way to run the AppImage. I made it an executable. That's when I wrote the script above coz the name was too long. I'm not a fun of long names.&lt;/p&gt;

&lt;p&gt;I then moved the executable to bin, &lt;br&gt;
so that I could run it from anywhere without the './' thingies&lt;br&gt;
(video down below)&lt;/p&gt;

&lt;p&gt;But when I tried to run it &lt;br&gt;
Nothing happenned.&lt;br&gt;
The executable was fine but bin didn't actually seem to care about it&lt;br&gt;
I mean the other ones worked just fine.&lt;br&gt;
So here I am, I need your help techies or whoever you are,&lt;br&gt;
Also he ate the pixels&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/hAaVYEbU0pE" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>help</category>
      <category>linux</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
