<?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 codenomad on Medium]]></title>
        <description><![CDATA[Stories by codenomad on Medium]]></description>
        <link>https://medium.com/@codenomad?source=rss-3ed6acc6286b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v6XnnzjHZs5VmdlPm_-w4w.jpeg</url>
            <title>Stories by codenomad on Medium</title>
            <link>https://medium.com/@codenomad?source=rss-3ed6acc6286b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:07:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codenomad/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[My Dune-Inspired AI Art Homelab (Part 3): Services]]></title>
            <link>https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-3-services-697acc896da6?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/697acc896da6</guid>
            <category><![CDATA[podman]]></category>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[dune]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Tue, 27 May 2025 23:32:14 GMT</pubDate>
            <atom:updated>2025-05-27T23:37:58.104Z</atom:updated>
            <content:encoded><![CDATA[<p>In the deserts of centralized AI, where corporate clouds hoard computational spice, your homelab is a Fremen stronghold — a decentralized oasis of creation.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5etWclPMB7yDtTdP4U%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FWBPictures-5etWclPMB7yDtTdP4U&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExajd4OGhyamdzbjR1dWo4OGc4aDdyY2ZodjA5YjI0ZGt1c2t5a3d2MiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F5etWclPMB7yDtTdP4U%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecad93a39446177c64f291e6beaa345c/href">https://medium.com/media/ecad93a39446177c64f291e6beaa345c/href</a></iframe><p>This <em>Dune</em>-inspired series has guided you through building an AI art homelab. <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-1-bad4efff07a7">Part 1</a> forged the hardware foundation, and <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891">Part 2</a> unleashed Stable Diffusion with Podman. Now, in this final chapter, we scale the vision with podman-compose, a tool that simplifies and extends your AI empire. The spice must flow — let’s make it happen.</p><h3>From Containerfile to Compose: A Fremen Upgrade</h3><p>In <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891">Part 2</a>, a <a href="https://github.com/thecodenomad/ai-homelab/blob/part-2/Containerfile">Containerfile</a> launched an instance of the Stable Diffusion WebUI, a crysknife for AI art. To scale efficiently, I refined it into a multi-stage build, creating a reusable base image with CUDA (NVIDIA’s GPU framework), PyTorch (a machine learning library), and Rust (pinned to version 1.18 for stability). This base supports heavier AI dependencies, avoiding library duplication across services like music generation or chatbots.</p><p>Yet, a Containerfile alone is like a lone Fremen in the desert — effective but limited. Managing multiple containers, networks, and parameters becomes a slog. Enter podman-compose, the spice melange of orchestration, offering ease, readability, and extensibility for your homelab.</p><h3>Podman-Compose: The Spice of Scalability</h3><p>In the <em>Dune</em> universe, spice brings clarity and connection. For AI homelabs, podman-compose does the same, outshining Containerfiles in cloud-native workflows.</p><ul><li><strong>Ease</strong>: A single podman-compose up can spin up your entire service stack, no need for the ancient scrolls of bash history. It’s a stillsuit, conserving effort for streamlined deployments.</li><li><strong>Readability</strong>: A single file clearly defines services, ports, and volumes. Teams can grasp a setup at a glance and, for me, is self-documenting. It’s a navigator’s holomap.</li><li><strong>Extensibility</strong>: A compose file supports multiple services in a single file. Its pod architecture and Docker Compose compatibility make it a bridge to cloud platforms like OpenShift or AWS. It’s your Desert Power.</li></ul><p>Here’s a simplified podman-compose.yml for Stable Diffusion’s WebUI built using the updated project structure (note the dockerfile line pointing to a new Containerfile location and the addition of bind mounts):</p><pre>version: &#39;3.8&#39;<br>services:<br>  webui:<br>    build:<br>      context: .<br>      dockerfile: podman/Containerfile<br>      target: webui<br>      pull_policy: never<br>    image: webui:latest<br>    ports:<br>      - &quot;7860:7860&quot;<br>    volumes:<br>      - ./mounts/models:/app/models:Z<br>      - ./outputs:/app/outputs:Z<br>    environment:<br>      - PYTHONUNBUFFERED=1<br>      - COMMANDLINE_ARGS=--opt-sdp-attention --xformers --api<br>    deploy:<br>      resources:<br>        reservations:<br>          devices:<br>            - driver: nvidia<br>              count: 1<br>              capabilities: [gpu]</pre><p>Run podman-compose up and your AI art studio is live! Additionally, services like <a href="https://ollama.com/">Ollama</a> (with <a href="https://github.com/open-webui/open-webui">Open WebUI</a>) can be added by simply extending the file with a new named service section:</p><pre>  ollama:<br>    image: ghcr.io/open-webui/open-webui:ollama<br>    ports: &quot;8080:8080&quot;<br>    volumes:<br>      - ./mounts/ollama:/root/.ollama:Z<br>      - ./mounts/ollama-data:/app/backend/data:Z<br>    deploy:<br>      resources:<br>        reservations:<br>          devices:<br>            - driver: nvidia<br>              count: 1<br>              capabilities: [gpu]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6H05dRiwI_Ybc2LqbL4u7A.png" /><figcaption>Screenshot of the Open WebUI running on Ix</figcaption></figure><p>You can see my full <a href="https://github.com/thecodenomad/ai-homelab/blob/main/podman-compose.yml">podman-compose.yml</a> showing the addition of ComfyUI and ACE-Step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ef7LjUV4TWffYpg_mC6_Q.png" /><figcaption>Screenshot of ComfyUI running the prompt from Part 2.</figcaption></figure><h3>Deploying Your Homelab</h3><p>Ensure your system meets the requirements from <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891">Part 2</a> (Podman and CUDA). Clone the repo:</p><pre>git clone https://github.com/thecodenomad/ai-homelab<br>cd ai-homelab<br>podman-compose up &lt;service to spin up&gt;</pre><p>If you don’t already have a model, you’ll need one before you can start generating pictures. <em>AI art generation requires significant storage — the </em><em>webui service builds a ~9GB base image, combined with models like Stable Diffusion (~4GB) and ACE-Step (~2GB, if used), you’ll need ~20GB total. Ensure you have sufficient disk space!</em></p><p>We’ll modify the curl command from <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891">part 2</a> to fit the new folder structure updates to the repo:</p><pre>curl -Lo mounts/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors</pre><p>Once that completes you can run podman-compose up webui to get a running Stable Diffusion service. If the download fails, retry the curl command after freeing up space (check with df -h)</p><p><em>Note: If you choose to run ACE-Step it will automatically start downloading the music generation model during its first generation if it’s not found.</em></p><p>You can view the full code for this project at <a href="https://github.com/thecodenomad/ai-homelab">https://github.com/thecodenomad/ai-homelab</a>.</p><h3>Managing GPU Resources</h3><p>Running multiple services (e.g., WebUI and ACE-Step) on a single GPU may cause Out of Memory Errors, especially with less than 8GB of VRAM. To avoid this, run one service at a time (e.g., podman-compose up webui ). If errors persist, restart the service with podman-compose restart &lt;service name&gt;. The <a href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html">nvidia-container-toolkit</a>, included as part of the <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-1-bad4efff07a7">uCoreOS install in Part 1</a>, helps manage GPU resources to help avoid these issues.</p><p><em>Note: I’ve been able to generate music with ACE-Step and images from Stable Diffusion’s WebUI with my RTX 3060 12G concurrently, but your mileage may vary.</em></p><h4>Additional Troubleshooting Tips</h4><ul><li><strong>Model download fails</strong>: Retry the curl command after freeing up space (df -h).</li><li><strong>GPU errors</strong>: Verify nvidia-container-toolkit (nvidia-ctk --version) and drivers (nvidia-smi) per <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-1-bad4efff07a7">Part 1</a>.</li><li><strong>Service fails</strong>: Check logs with podman-compose logs &lt;service&gt;.</li></ul><h3>The Spice Must Flow</h3><p>Podman-compose transforms your homelab into a scalable AI stronghold, uniting services with Fremen-like precision. As you wield this tool, your creations — art, music, or chatbots — flow freely, unbound by corporate clouds. Try podman-compose in your homelab, share your setups on X with #AIHomelab, and let the spice of decentralized AI fuel your journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=697acc896da6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Dune-Inspired AI Art Homelab (Part 2): How to Set Up Stable Diffusion]]></title>
            <link>https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee4831923891</guid>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[podman]]></category>
            <category><![CDATA[dune]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Wed, 14 May 2025 23:58:25 GMT</pubDate>
            <atom:updated>2025-05-15T16:00:45.481Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*yV2Fk6bXE-TNbTqhkOTeDQ.png" /></figure><p>Welcome back to my homelab journey, where we’re building a powerful AI art setup inspired by the epic dunes of <em>Dune</em>! <a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-1-bad4efff07a7">In Part 1</a>, we set up a lightweight uCore instance on our homelab machine. Now, in Part 2, we’ll enable remote access, configure persistent containers, and summon the spice of AI art with Stable Diffusion. Whether you’re a homelab veteran or a curious beginner, this guide will help you harness <em>desert power</em> to create stunning AI-generated art. Let’s dive in!</p><h3>Step 1: Pinning the Homelab and Configuring SSH</h3><p>To ensure my homelab machine, dubbed <em>Ix</em>, is always reachable, I assigned it a static IP (192.168.100.42) in my router’s DHCP settings. This prevents IP changes after reboots, making remote access reliable.</p><p>Next, I simplified SSH access by creating a configuration file. Here’s how:</p><p><strong>1 — Create </strong>(or edit)<strong> </strong>$HOME/.ssh/config<strong> </strong>on your local machine:</p><pre>Host ix<br>    Hostname 192.168.100.42<br>    User core<br>    IdentityFile $HOME/.ssh/homelab</pre><p><strong>2 — Set Permissions </strong>on<strong> </strong>$HOME/.ssh/config :</p><pre>chmod 600 $HOME/.ssh/config</pre><p><strong>3 — Test SSH </strong>replacing ix with your homelab machine’s name:</p><pre>ssh ix</pre><p><em>Now, typing ssh ix connects me instantly — no need to remember IPs or keys!</em></p><p><strong>4 — Enable Cockpit Service</strong> (useful for managing remote systems):</p><pre>sudo systemctl enable --now cockpit.service</pre><p><strong>Pro Tip</strong>: If you use <a href="https://flatpak.org/">flatpak</a>, install the <a href="https://flathub.org/apps/org.cockpit_project.CockpitClient">Cockpit Client</a> with:</p><pre>flatpak install flathub org.cockpit_project.CockpitClient</pre><p>Open up the Cockpit Client, enter your machine name in the host field, and you’re in!</p><figure><img alt="Screenshot of Cockpit dashboard showing system overview for homelab machine Ix" src="https://cdn-images-1.medium.com/max/1024/1*3XuZSSWmH2_FNu7kiGVBWg.png" /></figure><h3>Step 2: Making Containers Persist Like Fremen Sietches</h3><p>To run AI services like Stable Diffusion, Ollama, and ComfyUI as persistent containers, we need them to survive reboots and logouts. Here’s how I set that up with Podman:</p><p><strong>1 — Enabled user-level container restarts:</strong></p><pre>mkdir -p $HOME/.config/systemd/user<br>cp /lib/systemd/system/podman-restart.service $HOME/.config/systemd/user<br>systemctl --user enable podman-restart.service<br></pre><p><strong>2 — Verified the service is enabled:</strong></p><pre>systemctl --user list-unit-files | grep podman-restart</pre><p><em>I looked for podman-restart.service to be marked as enabled, and it was.</em></p><p><strong>3 — Enabled linger for session persistence:</strong></p><pre>loginctl enable-linger $UID</pre><p><strong>4 — Enabled system-level restarts </strong>(for services running as root):</p><pre>sudo systemctl enable podman-restart.service</pre><p>Now I can spin up containers as the core user during my ssh sessions and know that they’ll stay up after I logout. After some tweaking, these containers may be better suited as system level services, and ix is now ready for that.</p><h3>Step 3: Taming the Sandstorm (Troubleshooting NVIDIA Drivers)</h3><p>When I logged into Cockpit the first time, I hit a snag: the ublue-nvctk-cdi.service failed, indicating an issue with my NVIDIA eGPU setup (a Sonnet Breakaway Box 750ex with an RTX 3060). Here’s how I debugged it:</p><p><strong>1 — Checked if the NVIDIA driver was loaded</strong>:</p><pre>lsmod | grep nvidia</pre><p><em>This came back empty, so I knew the driver wasn’t loaded.</em></p><p><strong>2 — Tried manually loading the driver</strong>:</p><pre>sudo modprobe nvidia</pre><p><em>This failed with a “Key was rejected by service” error, pointing to kernel driver signing with Secure Boot being the culprit.</em></p><p><strong>3 — Verified the eGPU hardware:</strong></p><pre>rpm-ostree install -A bolt<br>boltctl | grep -i status</pre><p><em>I wanted to rule out any issues with the eGPU since I hadn’t used this hardware before, and some Thunderbolt devices require authorization. The above </em><em>boltctl command produced the following output:</em></p><pre>├─ status: authorized<br>├─ status: authorized</pre><p><em>Seeing two authorized statuses ruled out issues specific to the eGPU.</em></p><p><strong>4 — Fixed the NVIDIA drivers by enrolling uCore MOK for Secure Boot</strong></p><pre>sudo mokutil --import /etc/pki/akmods/certs/akmods-ublue.der</pre><p><em>NOTE: The </em><a href="https://github.com/ublue-os/ucore?tab=readme-ov-file#secureboot-w-kmods"><em>akmods-ublue.der</em></a><em> file above needs to be enrolled because Secure Boot doesn’t allow pre-built kmods (drivers) to load without being signed. uCore signs these, but the system needs to be aware of the uCore key. This is a good thing.</em></p><p><em>The above command will prompt for a password and require a reboot. As the system comes up you will need to enter the password you just assigned to complete the key enrollment process, and then the system can continue booting. Once the system came up, a quick spot check showed that the driver was loaded:</em></p><pre>[core@ix ~]$ lsmod|grep nvidia<br>nvidia_uvm           3997696  0<br>nvidia_drm            151552  0<br>nvidia_modeset       1830912  1 nvidia_drm<br>nvidia              97161216  2 nvidia_uvm,nvidia_modeset<br>drm_ttm_helper         16384  3 nvidia_drm,xe<br>video                  81920  3 xe,i915,nvidia_modeset</pre><p><strong>5 — Confirmed podman has access to the GPU</strong></p><pre>podman run --rm --device nvidia.com/gpu=all \<br>           --privileged nvidia/cuda:11.0.3-base-ubuntu20.04 \<br>             nvidia-smi</pre><p><em>If you run the command above, you should see something similar:</em></p><figure><img alt="Output from the nvidia-smi command showing the NVIDIA driver version 570.144" src="https://cdn-images-1.medium.com/max/914/1*78mgHAhU4bRPt4Tvc_Is6g.png" /></figure><p><em>Success! Driver version </em><em>570.144 was listed along with the RTX 3060 device. The system was finally ready to power AI workloads.</em></p><h3>Step 4: Summoning the Spice with Stable Diffusion</h3><p>Now for the main event: running Stable Diffusion to generate <em>Dune</em>-inspired AI art. I cloned my <a href="https://github.com/thecodenomad/ai-homelab">ai-homelab repository</a> and built a container image (if you are following the series please use branch <a href="https://github.com/thecodenomad/ai-homelab/tree/part-2">part-2</a> for this article):</p><pre>git clone git@github.com:thecodenomad/ai-homelab.git<br>cd ai-homelab<br>podman build . -t sd-ix</pre><p>For the curious there were some <strong>key highlights</strong> that came out of the Containerfile construction (otherwise skip to the Firewall Configuration):</p><p><strong><em>Base Image</em></strong><em> </em><em>nvidia/cuda:12.8.1-base-ubuntu22.04 for GPU support</em></p><p>Why? Ubuntu 22.04 uses python 3.10 by default. This is preferred because a Stable Diffusion requirement, pytorch, is finicky with versions beyond 3.10. Using NVIDIA’s container also helped minimize issues with installing CUDA.</p><p><strong><em>Rust Installation</em></strong></p><pre>RUN curl --proto &#39;=https&#39; --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable<br>ENV PATH=&quot;/home/1000/.cargo/bin:${PATH}&quot;</pre><p>Why? The rust compiler is required for Stable Diffusion’s <a href="https://github.com/huggingface/transformers"><strong>transformers</strong></a> dependency.</p><p><strong><em>Stable Diffusion Setup</em></strong></p><p>Nothing in this section should be too surprising. There is a little magic to pin a stable commit ensuring a working environment. The most notable part of this section is bumping transformers to version 4.51.3 to <a href="https://github.com/huggingface/transformers/issues/29576">address a bug</a>.</p><pre>RUN sed -i &#39;s/transformers==4.30.2/transformers==4.51.3/&#39; requirements.txt</pre><h4><strong>Firewall Configuration</strong></h4><p><em>NOTE: Stable Diffusion runs on port </em><em>7860, so make sure to allow </em><strong><em>TCP traffic to port 7860</em></strong><em>. This can easily be done via the Cockpit Client in the Network tab. Click on the </em><em>Edit rules and zones button, and then the </em><em>Add Services button to enter the specifics:</em></p><figure><img alt="Cockpit firewall add custom services page filled in with port 7860 using TCP with a custom name and description." src="https://cdn-images-1.medium.com/max/1024/1*xq-K__7L_hHyWNa6J0RlZA.png" /></figure><h4>Downloading a Model and Running the Container</h4><p>Stable Diffusion needs a pre-trained model to work its magic — it’s essentially the “recipe book” filled with patterns the AI has learned to turn your text prompts into images. Before we can do anything with the install, we will need to have a model.</p><p>From within the ai-homelab folder, download the basic v1–5-pruned-emaonly.safetensors model from <a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/main">huggingface</a>:</p><pre>curl -Lo models/Stable-diffusion/v1-5-pruned-emaonly.safetensors https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors</pre><p>Once that finishes, start the container with the following:</p><pre>podman run --privileged --rm -it \<br>  --device nvidia.com/gpu=all \<br>  --volume ./models:/app/models:z \<br>  --volume ./outputs:/app/outputs:z \<br>  -p 7860:7860 \<br>  localhost/sd-ix:latest</pre><p>Once you see the line “Model loaded” in the output, you should be able to access the Stable Diffusion WebUI from your homelab’s IP (e.g., <a href="http://192.168.100.42:7860).">http://192.168.100.42:7860)</a> and be presented with a similar UI:</p><figure><img alt="A screenshot of the Stable Diffusion WebUI showing the prompts and settings on the default txt2img tab." src="https://cdn-images-1.medium.com/max/1024/1*F1r2G04Fs2SfoKlEK6-JqQ.png" /></figure><h3>The Dunes of Arrakis</h3><blockquote><em>A crysknife, once drawn, must taste blood before it can be sheathed. — Dune, Frank Herbert</em></blockquote><p>Using the WebUI, I entered these prompts to generate a <em>Dune</em>-themed masterpiece:</p><blockquote><strong><em>Prompt</em></strong><em>: Vast desert of Arrakis under a blazing twin sun, endless dunes with swirling spice deposits glowing orange, distant Fremen sietch carved into a rocky cliff, sandworm emerging from the sand, cinematic lighting, hyper-detailed, 8K resolution.</em></blockquote><blockquote><strong><em>Negative Prompt</em></strong><em>: blurry, low quality, cartoonish, oversaturated, distorted, extra limbs, unnatural colors, text artifacts, watermark, low resolution, pixelated, unrealistic proportions, modern buildings, non-desert elements, crowded composition</em></blockquote><blockquote><strong><em>Settings</em></strong><em>: Schedule Type = Karas, CFG = 8.0, Steps = 30, and used defaults for everything else.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VxI8ij6_NTCJp6eOjdooAQ.png" /></figure><p><strong>The Result</strong>: Like the unpredictable winds of Arrakis shaping its dunes, Stable Diffusion doesn’t always follow your prompt— it creates an artistic interpretation based on its underlying model and training data. My output captured the essence of Arrakis with a vast desert, a blazing sun, and glowing orange spice, but some details (like the Fremen sietch and a sandworm emerging from the sand) are nonexistent. These are most likely due to gaps in the training data and could be addressed better in more advanced models.</p><figure><img alt="AI-generated image of Arrakis desert with a blazing sun and glowing orange dunes, created using Stable Diffusion" src="https://cdn-images-1.medium.com/max/512/1*dZNxMx15HhwZbkAtzyp3Zw.png" /></figure><p>This is variation is normal in AI art: the model’s creativity (ie training) adds a layer of surprise, much like the spice itself! To get closer to your vision, you should experiment with different prompts, settings, and models (check huggingface for more).</p><p><strong><em>Note</em></strong><em>: To explore this specific output, set the seed value to </em><em>3704657981. Seeds help you understand how settings affect results, but results may vary slightly due to the model’s probabilistic nature.</em></p><p>What <em>Dune</em>-inspired art would you create? Share your prompts or results in the comments!</p><h3>Key Takeaways: Your Fremen Journey</h3><ul><li>Established an SSH Config for easy management of my homelab machine</li><li>Setup podman to restart services on boot</li><li>Basic troubleshooting for eGPU</li><li>First Stable Diffusion art generation with a basic model!</li></ul><h3>What’s Next</h3><p>In Part 3, we’ll explore using podman-compose to set up <a href="https://www.comfy.org/">ComfyUI</a> (an alternate, node-based UI for Image Generation), <a href="https://ollama.com/">Ollama</a>, and maybe even generate a sandworm or two. Follow me on Medium for Part 3, and let’s keep the spice flowing!</p><p>Have questions? Drop them below — We can figure them out together!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee4831923891" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Dune-Inspired AI Art Homelab (Part 1)]]></title>
            <link>https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-1-bad4efff07a7?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bad4efff07a7</guid>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[dune]]></category>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Fri, 09 May 2025 01:00:08 GMT</pubDate>
            <atom:updated>2025-05-15T00:19:41.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Crafting AI-generated art feels like harvesting spice on Arrakis — precise, powerful, and brimming with potential. But slow generation times in my early Stable Diffusion experiments felt like trudging through endless dunes. With an $800 budget, I set out to summon desert power for my homelab, building a setup to fuel my Fremen-inspired visions. Here’s my journey.</p><figure><img alt="A Stable Diffusion generated image of a Fremen in a neon Arrakis desert." src="https://cdn-images-1.medium.com/max/768/1*8nF9MaUpPSYAvcTN-cfK6g.png" /></figure><h3>From Sietch Tabr: The Hardware</h3><p>Last year I upgraded my Framework Gen 1 motherboard to a Ryzen 7 7840U, leaving a highly capable Intel Core i7–1165G7 with 64GB RAM and a 1TB NVMe for a work machine, but it just wasn’t enough to fuel my Fremen-inspired visions.</p><p>To summon desert power within an $800 budget, I added a **Sonnet Breakaway 750ex** eGPU enclosure (about $300) and an **MSI GeForce RTX 3060** ($350-$450), which provided CUDA support.</p><p>The 3060’s 12GB VRAM and CUDA cores supercharge Stable Diffusion, generating complex AI art faster than servers with less than 8GB VRAM costing over $1,000. Using my existing Framework motherboard, I kept costs under $800 with the enclosure and 3060.</p><p>The enclosure’s Thunderbolt connection can also pair with my upgraded Framework laptop for future projects, keeping costs low and options open.</p><h3>Why uCore Over Fedora Workstation?</h3><p>I chose <strong>uCore</strong> over Fedora Workstation for its lightweight, secure container system, ideal for my remote AI art projects. Here’s how I set it up and why uCore shines. <em>Be sure to check out my corresponding </em><a href="https://github.com/thecodenomad/ai-homelab"><em>GitHub repo</em></a><em> to follow along.</em></p><p>My homelab needed a headless-capable OS with remote management, rootless Podman containers, and native NVIDIA support. <strong>uCore was the optimal choice</strong>. It’s based on immutable Fedora, which I’m familiar with, and has NVIDIA images that allowed me to <a href="https://www.techpowerup.com/167855/nvidia-is-the-single-worst-company-weve-ever-dealt-with-linus-torvalds">avoid annoyances with driver support</a>. Tools like <a href="https://cockpit-project.org/">Cockpit</a> and <a href="https://tailscale.com/">Tailscale</a> enable seamless remote management, and first-class <a href="https://podman.io/">Podman</a> support ensures secure, efficient containerized workflows. Unlike Fedora Workstation’s ~1GB RAM desktop overhead, uCore’s ~500MB footprint and Docker-free Podman future-proofs my setup for cloud scaling when I need more power.</p><figure><img alt="A gif showing Shai-Halud emerging from the sand in front of startled Sardaukar." src="https://cdn-images-1.medium.com/max/480/0*VVEFB7ZxtZImPv-_.gif" /></figure><p><em>uCore belongs to the Universal Blue community and like all their other images, it is implemented and deployed by industry experts. I highly recommend looking into their </em><a href="https://universal-blue.org/"><em>ecosystem</em></a><em> for ‘batteries included’ OSes or checking out </em><a href="https://www.youtube.com/@JorgeCastro"><em>Jorge’s channel</em></a><em> for more info.</em></p><h3>The Axlotl Tanks: Setting up the Ix Machine</h3><p>With a fresh NVMe SSD, I used the Fedora CoreOS 41 ISO (uCore is avoiding the rawhide kernel in the Fedora 42 release per <a href="https://github.com/ublue-os/ucore?tab=readme-ov-file#20250430---ucore-delaying-fedora-42-update">April 30, 2025</a> guidance). uCore’s setup needed two computers: my homelab machine and another machine to host the ignition configuration file, which is my current Framework laptop.</p><p>I modified the <a href="https://github.com/ublue-os/ucore/blob/main/examples/ucore-autorebase.butane">example butane file</a>, adding my password, public ssh key, and the hostname. Note that your password must be added as a hash. You can create a hash using openssl:</p><pre>openssl passwd -6 &quot;SuperSecret&quot;<br>$6$9Tj8L5xc6Tiiiu9M$PiNlgHm55fQow1AhbJCkt5gDM6rSi8bJxa2keFUPm/9dNir8E6R..EFA9mWMSgt5wIks/fXUpJbkpPBddWOjy1</pre><p>I decided to use the <strong>ucore-hci:stable-nvidia</strong> image for its flexibility in adding VMs, but those with an NVIDIA card can use the <strong>ucore:stable-nvidia </strong>to keep things minimal.<strong> </strong>My full butane file, sans ssh key, looked like this:</p><pre>variant: fcos<br>version: 1.4.0<br>passwd:<br>  users:<br>    - name: core<br>      ssh_authorized_keys:<br>        - &lt;your public key goes here&gt;<br>      password_hash: $6$GvB3GexVymfsuEI3$LgvBk08EWPCwa6.FIof6h5Blq3EcWbJBuvgVu9HDS3lwRrKVeaWEeh8qxbDtaw4n7KOtvAsOvHIxSiuxa3qBy0<br>storage:<br>  files:<br>    - path: /etc/hostname<br>      mode: 0644<br>      contents:<br>        inline: ix<br>  directories:<br>    - path: /etc/ucore-autorebase<br>      mode: 0754<br>systemd:<br>  units:<br>    - name: ucore-unsigned-autorebase.service<br>      enabled: true<br>      contents: |<br>        [Unit]<br>        Description=uCore autorebase to unsigned OCI and reboot<br>        ConditionPathExists=!/etc/ucore-autorebase/unverified<br>        ConditionPathExists=!/etc/ucore-autorebase/signed<br>        After=network-online.target<br>        Wants=network-online.target<br>        [Service]<br>        Type=oneshot<br>        StandardOutput=journal+console<br>        ExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-unverified-registry:ghcr.io/ublue-os/ucore-hci:stable-nvidia<br>        ExecStart=/usr/bin/touch /etc/ucore-autorebase/unverified<br>        ExecStart=/usr/bin/systemctl disable ucore-unsigned-autorebase.service<br>        ExecStart=/usr/bin/systemctl reboot<br>        [Install]<br>        WantedBy=multi-user.target<br>    - name: ucore-signed-autorebase.service<br>      enabled: true<br>      contents: |<br>        [Unit]<br>        Description=uCore autorebase to signed OCI and reboot<br>        ConditionPathExists=/etc/ucore-autorebase/unverified<br>        ConditionPathExists=!/etc/ucore-autorebase/signed<br>        After=network-online.target<br>        Wants=network-online.target<br>        [Service]<br>        Type=oneshot<br>        StandardOutput=journal+console<br>        ExecStart=/usr/bin/rpm-ostree rebase --bypass-driver ostree-image-signed:docker://ghcr.io/ublue-os/ucore-hci:stable-nvidia<br>        ExecStart=/usr/bin/touch /etc/ucore-autorebase/signed<br>        ExecStart=/usr/bin/systemctl disable ucore-signed-autorebase.service<br>        ExecStart=/usr/bin/systemctl reboot<br>        [Install]<br>        WantedBy=multi-user.target</pre><p>I then generated the ignition file by running butane from a podman container:</p><pre>podman run --interactive --rm quay.io/coreos/butane:release \<br>       --pretty --strict &lt; ucore-autorebase.butane &gt; ucore-autorebase.ign</pre><p>Ignition file was at the ready, and I set a thumper to summon Shai-Hulud!</p><figure><img alt="A gif of Paul Atreides hooking onto a sandworms flaps in an effort to control it." src="https://cdn-images-1.medium.com/max/480/0*dRVPULK9URCYRLpP.gif" /></figure><p><em>(You can find my butane example at </em><a href="https://github.com/thecodenomad/ai-homelab/blob/part-1/example-autorebase.butane">https://github.com/thecodenomad/ai-homelab/blob/part-1/example-autorebase.butane</a><em>)</em></p><h4>Reborn — The Base Image</h4><p>After the great worm arrived, I needed to get my homelab machine booted with a CoreOS image.</p><p>I grabbed an ISO from the <a href="https://fedoraproject.org/coreos/">CoreOS website</a>, threw it on a spare USB drive, and booted the homelab machine. <em>Note I had to fumble a bit with the function keys to find the boot selection menu, it’s F12 if you are using a Framework Gen 1.</em></p><p>Next, from my laptop, I spun up a container inside the folder containing my <strong>ucore-autorebase.ign </strong>and used podman to map the current directory inside the container:</p><pre>podman run -d --rm -v &quot;$(pwd):/workdir:Z&quot; -w /workdir -p 8000:8000 python:3-slim python -m http.server 8000</pre><p><em>Since I’m doing this in my homelab, there’s little concern about using the insecure http (I’d suggest using HTTPS in production for secure ignition file deliveries, but setting up SSL certificates is a bit beyond the scope of this simple tutorial, </em>see <a href="https://letsencrypt.org/docs/certificates-for-localhost/"><em>Let’s Encrypt</em></a> for <em>more information).</em></p><p>Remember to enable port 8000 in your firewall settings:</p><pre>sudo firewall-cmd --add-port=8000/tcp</pre><p>I took note of my laptop’s IP address (<strong>192.168.100.42</strong>) and after booting the CoreOS image on the homelab machine I initiated the installation process:</p><pre>coreos-installer install /dev/nvme0n1 --insecure-ignition --ignition-url http://192.168.100.42:8000/./ucore-autorebase.ign</pre><p>You will likely need to adjust <strong>/dev/nvme0n1 </strong>to point to your installation device. <strong><em>This is an install and</em> <em>the desert will reclaim its water. Be certain you are using the correct device</em>.</strong></p><figure><img alt="A screenshot of the terminal showing the CoreOS installer completing." src="https://cdn-images-1.medium.com/max/549/1*RcpZVSF6bgMYXeZyf4MFyA.png" /></figure><p>With an NVMe, it didn’t take long to install so when the command completed, I rebooted the box and removed my USB drive. During the first boot, the machine will automatically rebase the CoreOS install to the uCore image in the ignition file (assuming networking was autodetected). I knew this was going to take a bit so I made sure to stop serving the ignition file on my laptop, and disabled the 8000/tcp port.</p><p><em>On your homelab machine, if you see a </em><strong><em>uCore autorebase to unsigned OCI</em></strong><em>, know that it is expected as it needs to first establish the uCore base image. It will then establish the signed OCI layer right after to guarantee you are using the correct uCore upstream images.</em></p><p>I monitored the rebasing process using watch and a systemctl command:</p><pre>watch systemctl status ucore-unsigned-autorebase</pre><figure><img alt="A screenshot of the terminal output from systemctl showing the status of the uCore rebasing." src="https://cdn-images-1.medium.com/max/1024/1*t0VKODJfMLZ6-KFwK5Msgg.png" /></figure><p>This took a little bit of time, but atop Shai-Halud, we traveled vast distances.</p><h3>Automated Script</h3><p>If you clone the <a href="https://github.com/thecodenomad/ai-homelab">https://github.com/thecodenomad/ai-homelab</a> repo, you’ll find a <a href="https://github.com/thecodenomad/ai-homelab/blob/part-1/create_ignition.sh">create_ignition.sh</a> script (if following along with this series please reference <a href="https://github.com/thecodenomad/ai-homelab/tree/part-1"><strong>part-1</strong></a> branch).</p><p>This script helps construct and serve an ignition configuration from another computer. I ran the script on my laptop, booted up my homelab machine with CoreOS, and then executed a coreos-install command. <em>The create_ignition.sh script will give you the command to execute on your homelab machine if you choose to serve it, but you may need to tweak the install device for your setup.</em></p><p><em>Please let me know if you have any suggestions or issues with the script in the comments below (or on github)!</em></p><figure><img alt="A screencast of the create_ignition.sh script being executed showing the prompts as well as it’s usage to install uCore on a VM." src="https://cdn-images-1.medium.com/max/640/1*GTktdC4zGqvL46G2LuZ2zQ.gif" /></figure><h3>What’s Next for Ix?</h3><p>I’ve created a repo for this series to help aid in your adventure at <a href="https://github.com/thecodenomad/ai-homelab">https://github.com/thecodenomad/ai-homelab</a>.</p><p>In this repo’s <strong>part-1 </strong>branch you will find a create_ignition.sh script that will handle manipulating the <a href="https://github.com/ublue-os/ucore/blob/main/examples/ucore-autorebase.butane">example butane</a> file that uCore provides. It will also spin up a container to serve the resulting ignition file. Please let me know how you like it!</p><p>The Ix homelab machine is going to be my future<em> Dune</em> spice refinery, used to craft AI art like the warrior image above. Stay tuned for the next part of this AI Art journey:</p><ul><li><a href="https://medium.com/@codenomad/my-dune-inspired-ai-art-homelab-part-2-how-to-set-up-stable-diffusion-ee4831923891"><strong>Part 2</strong></a>: Setting up Podman and Cockpit in uCore, with a rootless podman run for Stable Diffusion</li><li><strong>Part 3</strong>: Creating a podman-compose.yml for easy Stable Diffusion deployment, with volume mapping for models and outputs</li></ul><p>Got a homelab or AI ideas? Share in the comments — I’d love to hear your journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bad4efff07a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GNOME Builder: Using Python, Libadwaita and Blueprint]]></title>
            <link>https://medium.com/@codenomad/gnome-builder-using-python-libadwaita-and-blueprint-c9c3e138801e?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9c3e138801e</guid>
            <category><![CDATA[gnome]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[blueprint]]></category>
            <category><![CDATA[libadwaita]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 23:31:04 GMT</pubDate>
            <atom:updated>2023-12-04T23:31:04.206Z</atom:updated>
            <content:encoded><![CDATA[<p>Now that I <a href="https://medium.com/@codenomad/silverblue-setting-up-my-environment-19597dd030f9">got my environment setup</a>, I wanted to learn how to build an app for <a href="https://www.gnome.org/">GNOME</a> using <a href="https://www.python.org/">Python</a>. I decided I wanted to use <a href="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/">Blueprint</a> so I could avoid defining a UI with XML, and I wanted to use <a href="https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/">LibAdwaita</a> widgets because… pretty 😍.</p><blockquote>I’m picking up right where I left off in <a href="https://medium.com/@codenomad/silverblue-setting-up-my-environment-19597dd030f9">my previous post</a>, so if you are following along this should ‘just work’.</blockquote><p>First, I’m going to create a sample project. I opened up GNOME Builder, and created a new Python project using the GNOME Application template:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*zcnmmYmOV2RQ1lx1g-2GYg.png" /></figure><p>If I build the template application right now I get a basic HelloWorld. Do it. I dare you — if only to make sure GNOME Builder is working in your environment…</p><p>Now, I need to set up <a href="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/">Blueprint</a> so I can start defining my UIs.</p><blockquote>Of course I’d prefer a drag-and-drop / RAD utility, but I haven’t found one that is stable enough. Users coming from OS X (Interface Builder) or Windoze (Visual Studio) will probably have a similar annoyance, but this is where we are. 🙈</blockquote><blockquote>Given this, I find Blueprint is a more pleasant way of defining a UI than XML. <strong>Bias alert:</strong> I hate working with XML files.</blockquote><p>From a terminal at the root of my project, I created a few new folders:</p><pre>mkdir -p subprojects src/view src/model</pre><blockquote>I’ve seen folks put the .blp files in a data/ui dir, but for now I’d like to keep them near my code. In the src/view folder they go…</blockquote><blockquote>You could also avoid using XML and Blueprint altogether by defining your widgets in code. However, keeping the definition outside of the logic code helps mitigate breakage when future library versions are released. Consider… Maybe an alternative to LibAdwaita is released that you want to use, or maybe you have a UX person building a UI for you to consume, or maybe Gtk 5 changes so much that you need a utility to regenerate your UI files altogether. The separation is good practice; it’s <a href="https://developer.mozilla.org/en-US/docs/Glossary/MVC">MVC</a>.</blockquote><h3>Code it up</h3><p>Now, I need to create a configuration file for grabbing the Blueprint compiler when meson kicks off. Per <a href="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/setup.html">Blueprint’s documentation</a>, I create a wrapper in the subprojects folder:</p><pre>cat &lt;&lt;EOT &gt;&gt; subprojects/blueprint-compiler.wrap<br>[wrap-git]<br>directory = blueprint-compiler<br>url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git<br>revision = main<br>depth = 1<br><br>[provide]<br>program_names = blueprint-compiler<br>EOT</pre><p>I don’t want to include this folder in my source control so I added it to my .gitignore:</p><pre>echo &quot;/subprojects&quot; &gt;&gt; .gitignore</pre><blockquote>I know I’ll need to re-evaluate this when I decide to use a build pipeline, but for now I’m just trying to figure things out.</blockquote><p>Next, I created a new Blueprint file src/view/window.blp and added the following contents:</p><pre>using Gtk 4.0;<br>using Adw 1;<br><br>template SampleWindow : Adw.ApplicationWindow {<br>  default-width: 600;<br>  default-height: 300;<br>  title: _(&quot;Hello, Blueprint!&quot;);<br><br>  Adw.ToolbarView {<br>    [top]<br>    Adw.HeaderBar {}<br><br>    content: Label label {<br>      label: &quot;Yay, blueprint is setup!&quot;;<br>    };<br>  }<br>}<br></pre><p>I moved src/window.pyto view/window.py. For reference it should look like:</p><pre>from gi.repository import Adw<br>from gi.repository import Gtk<br><br>@Gtk.Template(resource_path=&#39;/org/template/sample/window.ui&#39;)<br>class SampleWindow(Adw.ApplicationWindow):<br>    __gtype_name__ = &#39;SampleWindow&#39;<br><br>    label = Gtk.Template.Child()<br><br>    def __init__(self, **kwargs):<br>        super().__init__(**kwargs)</pre><blockquote>I’m noting the path in the decorator: /org/template/sample. I presume this is referencing the root of the flatpak so I need to generate a window.ui file at the root of my project for Builder to find.</blockquote><h3>Build Configuration</h3><p>The build tool, meson, needs to know that I’m using the blueprint compiler to convert .blp into .ui files. I’ll also need a list of blueprint_files to convert. I modify mysrc/meson.build file right above the gnome.compile_resources line adding the following:</p><pre># Add a reference to the compiler to use<br>blueprint_compiler = find_program(&#39;blueprint-compiler&#39;)<br><br># The blueprint files to be converted<br>blueprint_files = files(<br>    &#39;view/window.blp&#39;<br>)</pre><blockquote>As you might expect, this list should grow as additional .blp files are created…</blockquote><p>Now that I established which files meson should convert, I need to tell it how to convert them. I added this bit of configuration right below the blueprint_files variable:</p><pre># The list of the converted .ui files to inject into the build<br>ui_files = []<br><br>foreach blueprint_file : blueprint_files<br>  path_as_string = &#39;@0@&#39;.format(blueprint_file)<br>  filename = path_as_string.split(&#39;/&#39;)[-1]<br><br>  ui_file = custom_target(path_as_string.underscorify(),<br>    input: blueprint_file,<br>    output: filename.replace(&#39;.blp&#39;, &#39;.ui&#39;),<br>    command: [blueprint_compiler, &#39;compile&#39;, &#39;--output&#39;, &#39;@OUTPUT@&#39;, &#39;@INPUT@&#39;])<br>  ui_files += ui_file<br>endforeach</pre><p>This build magic will populate the ui_files variable with filepaths that can be injected as dependencies during the build process. In the gnome.compile_resources call, I added the argument dependencies: [ui_files]. It now looks like this:</p><pre>gnome.compile_resources(&#39;sample&#39;,<br>  &#39;sample.gresource.xml&#39;,<br>  gresource_bundle: true,<br>  install: true,<br>  install_dir: pkgdatadir,<br>  dependencies: [ui_files]<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETNvDKChDf5biFAOPrD4dA.png" /></figure><p>Finally, I need to add the path to my window.py so Builder can include it in the final build. I updated the sample_sources list to include view/window.py:</p><pre>sample_sources = [<br>  &#39;__init__.py&#39;,<br>  &#39;main.py&#39;,<br>  &#39;view/window.py&#39;,<br>]</pre><p>That’s it for setting up Blueprint within GNOME Builder. I can now build my LibAdwaita app. I hit the play button in the Builder menu and the hamsters started running. Not long after I was greeted with my sample app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*kkqsrUBBo57USgxRK40-WQ.png" /></figure><blockquote>This guide doesn’t really show much Blueprint, so be sure to check out the <a href="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/">Blueprint documentation page</a> to see a list of applications built using it. Those apps continue to be excellent examples for me, hopefully they are for you too.</blockquote><blockquote>Other notes:</blockquote><blockquote>There is a fantastic <a href="https://github.com/workbenchdev/Workbench">Workbench</a> tool to help visualize your .blp or .ui files. I highly recommend it for learning the widgets. It’s available on <a href="https://flathub.org/apps/re.sonny.Workbench">flathub</a>.</blockquote><blockquote><a href="https://gitlab.gnome.org/jpu/cambalache">Cambalache</a> is also helpful for learning. It doesn’t support exporting to Blueprint and it had some issues refreshing my widgets in real time, but I found it helpful when tinkering. It’s available on <a href="https://flathub.org/apps/ar.xjuan.Cambalache">flathub</a>.</blockquote><h3>What’s next?</h3><p>More likely than not I’ll need to add additional python libraries if I want to do anything cool. I’ve been using <a href="https://python-poetry.org/">Poetry</a> in other personal and work projects, so I’d like to figure out how I can use it to manage my python dependencies within GNOME Builder.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9c3e138801e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Silverblue: Setting Up My Environment]]></title>
            <link>https://medium.com/@codenomad/silverblue-setting-up-my-environment-19597dd030f9?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/19597dd030f9</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[distro-hopping]]></category>
            <category><![CDATA[setup-guide]]></category>
            <category><![CDATA[fedora-linux]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Sun, 03 Dec 2023 22:57:21 GMT</pubDate>
            <atom:updated>2023-12-07T00:35:20.758Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@codenomad/nixos-to-silverblue-2fb9f572122d">I made a decision to move away from NixOS</a> and continue puddle jumping in search of my perfect OS. I doubt I’ll ever find the perfect OS, but I continue to keep an open mind. After all, there are always new and <a href="https://serpentos.com/">interesting OSes popping up</a>, but I digress. Silverblue is at bat.</p><p>The install for Silverblue is pretty much like any other modern Linux installation: a few clicks and you are done. On reboot you are greeted with a setup that walks you through enabling location services, third-party repositories, setting up user accounts and linking any online accounts.</p><h3>Post Install</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PIekPmrNOJ7vs_Cdp7q9mQ.png" /></figure><p>I turned off location services, enabled 3rd party repos, setup my main account, and skipped additional online accounts. Now I need to get my environment going. As a rule of thumb after installing a new distro, I check for updates before attempting environment configurations.</p><blockquote>Full Disclosure: I have a rolling update bias for my workstation so I (irrationally??) question when there aren’t upgrades during or post install…🙊</blockquote><p>After the updates completed, I was prompted to reboot. This is <a href="https://coreos.github.io/rpm-ostree/background/">rpm-ostree</a> inside Silverblue at work: host level changes require reboots, it’s what enables immutability — <a href="https://theevilskeleton.gitlab.io/2021/03/24/my-experience-with-fedora-silverblue-so-far.html#reboots"><em>you don’t always have to reboot</em></a><em> (especially if you use </em><em>-A)</em>, but I don’t mind, yet…</p><h3>Environment: The Goal</h3><p>What are my current needs in 2023? Well, I want to use my computer as a developer workstation to create and distribute GNOME applications, a creative workstation where I could use <a href="https://lmms.io/">lmms</a> and <a href="https://www.pitivi.org/">pitivi</a> to make music and movies, and a general computing device for web browsing, minor gaming, office work, and movie watching. The major requirements I have for my system are:</p><ul><li>Must be appliance like (think iOS or Android) — easy application install</li><li>Must limit super user operations</li><li>Must have a base system that is immutable with rollbacks</li><li>Must be easy to develop and distribute apps with</li></ul><p>Additionally, a family member may want to use this machine, and those users should have control over the applications they want to install. They might want their own icon or cursor theme or do their own development or content creation and need access to gitand ffmpeg.</p><blockquote>I ask a simple question of myself: What would I be pissed off about not having access to when I remote (vnc/rdp/ssh) into a machine that isn’t connected to the internet with non-sudo user? Those are the apps I’ll install globally. Probably not the most security-centric approach, but it’s good enough for my workstation.</blockquote><p>My family members and I can install whatever is available in the “App Store,” without using sudo guaranteeing we don’t bork each other or the system. For shared applications, I install via rpm-ostree keeping a base system immutable with rollback capability if I screw something up. Between the App Store (flatpaks) and rpm-ostree, I have satisfied some of my requirements:</p><ul><li>✅ Must be appliance like</li><li>✅ Must limit super user operations</li><li>✅ Must have a base system that is immutable with rollbacks</li><li>❓Must be easy to develop and distribute apps with</li></ul><h3>Install</h3><p>I started with the system wide packages. This included themes and a handful of cli utilities, libraries to support content creation and python development, and <a href="https://gitlab.gnome.org/GNOME/gnome-tweaks">gnome-tweaks</a> so users can customize their environment.</p><blockquote>Notes: Fedora has a <a href="https://docs.fedoraproject.org/en-US/fedora-silverblue/_attachments/silverblue-cheatsheet.pdf">cheatsheet</a>, and I don’t need <a href="https://discussion.fedoraproject.org/t/is-it-normal-for-rpm-ostree-command-tonot-require-sudo-super-user-privileges-to-run/76173/2">sudo for a ‘global’ install</a>. This is my first pass at Silverblue, so I will likely reassess this selection in the future as I get more acquainted with the OS and it’s philosophies.</blockquote><pre>rpm-ostree install flatpak-builder git blackbox-terminal \<br>python3-virtualenv arc-theme  blackbox-terminal breeze-icon-theme \<br>breeze-icon-theme-devel elementary-icon-theme sweet-gtk-theme \<br>gnome-tweaks ffmpeg-free perl-Image-ExifTool intel-opencl \<br>gstreamer1-vaapi gstreamer1-plugin-openh264 cairo-gobject \<br>cairo-devel cairo-gobject-devel cairo-tools</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyifQ3u-SDs_7txu1K3cFA.png" /></figure><p>Host changes are done for now, so I reboot…</p><blockquote>Using <em>rpm-ostree install -A</em> avoids rebooting. I didn’t use it, so I’ll just do what I’m told and reboot.</blockquote><p>Now, I setup <em>my</em> user environment applications. Since I’m installing via flatpak, I compiled a list of Application IDs and separated by categories that I can squirrel away until I consume them in a script or something. I found the application IDs using the following command:</p><p>flatpak list — columns=name,application | grep -i &lt;app name&gt;</p><blockquote>After about 5 app ids I considered writing a shell script, but I was watching TV and the mindlessness was fine… maybe next time…</blockquote><p>For those interested, here’s my breakdown:</p><p><strong>Media creation:</strong></p><pre>flatpak install fr.handbrake.ghb io.lmms.LMMS org.inkscape.Inkscape \<br>org.pitivi.Pitivi org.pitivi.Pitivi.Codecs org.gimp.GIMP \<br>nl.hjdskes.gcolor3 com.obsproject.Studio com.makemkv.MakeMKV</pre><p><strong>General Computing:</strong></p><pre>flatpak install md.obsidian.Obsidian org.gnome.Recipes org.gnome.Todo \<br>org.videolan.VLC org.signal.Signal com.slack.Slack dev.alextren.Spot \<br>org.gnome.DejaDup org.gabmus.gfeeds com.brave.Browser \<br>com.discordapp.Discord com.github.alexhuntley.Plots \<br>org.libreoffice.LibreOffice</pre><p><strong>Development:</strong></p><pre>flatpak install app.drey.Biblioteca ar.xjuan.Cambalache \<br>org.zealdocs.Zeal re.sonny.Workbench org.gnome.Boxes \<br>org.gnome.Builder com.github.marhkb.Pods io.podman_desktop.PodmanDesktop \<br>com.vscodium.codium</pre><p>Last, I need to make a quick kernel args update. On other distros I had issues with sleep on my <a href="https://frame.work/">framework</a> laptop. To avoid any of those issues I added mem_sleep_default=deep to the arg list.</p><p>To get an editor for modifying the args run:</p><p>rpm-ostree kargs --editor</p><p>Now that everything is installed, I fired up <a href="https://apps.gnome.org/DejaDup/">Deja Dup</a> and restored my home directory <a href="https://medium.com/@codenomad/nixos-to-silverblue-2fb9f572122d">from last week</a>. With my data copied over I’m now ready to dive in…</p><p><strong>Next up:</strong></p><p>Getting my feet wet by building a simple GNOME application using <a href="https://pygobject.readthedocs.io/en/latest/">PyGObject</a>, <a href="https://wiki.gnome.org/Apps/Builder">GNOME Builder</a>, and <a href="https://gitlab.gnome.org/jwestman/blueprint-compiler">Blueprint</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19597dd030f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Still a Distro Hopper: NixOS to Silverblue]]></title>
            <link>https://medium.com/@codenomad/nixos-to-silverblue-2fb9f572122d?source=rss-3ed6acc6286b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fb9f572122d</guid>
            <category><![CDATA[nixos]]></category>
            <category><![CDATA[fedora-linux]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[immutable]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[codenomad]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 01:21:05 GMT</pubDate>
            <atom:updated>2023-12-02T21:26:07.425Z</atom:updated>
            <content:encoded><![CDATA[<p>I loved the idea of NixOS where I could declare my entire setup once, and never have to worry about reinstalls because it would literally take me 10 minutes to get a freshly-baked, new-electronic-smell OS with all my configurations and oddities the way I like them (yes, I still use “Unnatural” scrolling with my trackpad, <em>gasp</em>… and no, I don’t want fprintd enabled when the laptop lid is closed…). I could also distribute the same config to any other computer at my disposal knowing it will result in the same experience. It was like having the benefits of dockerfiles and ansible baked into my installation process.</p><p>But… I guess I hit a point where I just wanted a setup to work for development, media creation, and general computing… more easily. In an age of iOS and Android, I didn’t want to have to think about how to install an application or get a service running. I know I’ve got some OCD tendencies, and I’ve found that to learn something new I need to treat my workstation as a tool. I didn’t need it to be a never-ending pool of distractions. I needed my OS to be a tad more opinionated at the expense of control.</p><p>I felt it was time for a mixup. This surprised me because I thought my distro hopping days were over when I found Nix… Whenever I get this itch, however, I immediately start a backup in prep for the inevitable disruption. This gave me some time to think.</p><p>Nostalgically, I remembered my path… For Gentoo, I ultimately decided spending 2 days to emerge world with -O3 wasn’t a good use of computer resources when I had CS assignments due — though it helped with java performance! From there I hopped to Debian where stability was at odds with ancient versions of everything. Ubuntu was the new kid on the block at that time and fixed the version issues with Debian but had stability issues. I moved on to Slackware, then on to Arch, and then onto a few Arch-based distros like Manjaro and Antergos. Arch stuck for a while and became my go-to install for all machines until I hopped to Nix.</p><h3>The Journey</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*To0ffyZCUvUlcmlYFm2hgA.png" /></figure><p>Sadly, my honeymoon with <a href="https://nixos.org/">NixOS</a> was over, it lasted right up until I wanted to learn <a href="https://www.rust-lang.org/">rust</a>. After many failed attempts trying to get my flake.nix files working, I got frustrated and shelved the adventure for a month. I came back refreshed, and fell into the same trap, though a little better off having done a deep dive into <a href="https://nixos.wiki/wiki/Home_Manager">home manager</a>. But alas, no go.</p><p>Recently, I gave it another shot and after getting a very basic gtk-rs HelloWorld app up and running I ran into environment issues around additional tooling. I wanted to install <a href="https://gitlab.gnome.org/jpu/cambalache">Cambalache</a> to start getting familiar with the GNOME UI development. Unfortunately, the <a href="https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/">Libadwaita</a> widgets I wanted to use (from tutorials) weren’t in the version of Cambalache available in NixOS stable/unstable. I wanted bleeding edge and that required me to build an overlay. It’s not that hard to build an overlay, but I was tired of the process. Final straw met camel’s back when I installed the flatpak for Cambalache and it had what I needed. Which got me thinking…</p><p>I didn’t want to create flakes for new projects, I didn’t want to do the documentation binge, source code plunge, or ask on forums to figure something out any more.</p><p>While I love NixOS, I felt every time I tried to start learning something new it was a yak shaving event.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAbSehcT19u0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAbSehcT19u0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAbSehcT19u0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ac9b1ca459b1e56987ab12f9ea2869a/href">https://medium.com/media/2ac9b1ca459b1e56987ab12f9ea2869a/href</a></iframe><p>It wasn’t for naught, the declarative nature of Nix meant if my config solved a problem it solved it for good. The experience was enlightening, and I learned something about myself in the process. I’m not a Nix magician and I didn’t want to have to become one to function efficiently inside my OS. Nix gave me the power, I just didn’t want to fully wield it. Nor did I want to take the time to start using <a href="https://mynixos.com/">mynixos</a>. It’s not Nix’s fault, it’s mine.</p><p>I just wanted to be able to use some random tutorial online and figure out a new language/service/utility without having to tinker with my environment.</p><p>Being pragmatic, I know documentation isn’t always the greatest, and you typically need to scour the web for other projects to get examples of how things work or for a better way to do things. That’s the investment I’m willing to make for tinkering because researching is a great way to learn by forcing experimentation… For me, using Nix added another research layer — an additional cognitive load — before I began a project. I found myself not wanting to learn rust/gtk-rs because I couldn’t escape doing another deep dive refresher in Nix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrUpM0pAhAe9mLpmEYQiwg.png" /></figure><h3>What next?</h3><p>It was about 7pm on a Monday night when the deflation started to set in: I’m not the OS tinkerer I thought I was and NixOS might not be for me.</p><blockquote>If only my brain worked like a multi staged Dockerfile…</blockquote><p>I could do away with my home-manager setup and move to flatpaks for everything in my user environment, but that didn’t quite resolve my core issues and it felt heretical in Nix. Regardless, a flatpak move would still be disruptive to my whole setup so why not try something new. I guess I’m a masochistic, distro purest. When I find myself gravitating away from a distro’s philosophy I almost instantly favor switching. So now I find myself back to distro hopping.</p><blockquote>Is distro hopping considered tinkering in 2023? Are there levels of tinkerer now? I rolled a D18 and got a 4...</blockquote><p>My immediate thought was that I could go back to Arch, but damnit I loved the immutability and rollback capabilities that NixOS gave me. In addition, the journey trained me to be a better administrator of my system so I wanted some separation between user and host. Abstracting the host system from a user environment meant a level up in security. Putting some effort into understanding that separation reinforced what I was willing to deal with on my personal box.</p><p>On the technology side, the nix store guaranteed me getting versions of applications just as its author/build-bot intended. Additionally, I could easily rollback updates that broke my system when I decided to mess with the kernel. Cleanup guaranteed a <em>true</em> cleanup, but it also required removing the cache of dangling libraries after a few weeks to reclaim space (Nix can be space hungry if you don’t <a href="https://nixos.wiki/wiki/Storage_optimization">optimize your store</a>).</p><p>By 8pm, a backup of my home directory was complete, and I at least knew an OS with immutability was a core requirement for my next puddle jump.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*iSwIhzsL_4ibXlhiT__vbg.gif" /></figure><p>By 9pm, I decided on my distro dealbreakers:</p><ul><li>Must support Full Disk Encryption</li><li>Must be immutable (Bonus points for Out-of-box Secure Boot Support)</li><li>Must have rollback</li><li>Must be easy for a family member to install apps (aka flatpak)</li><li>Must not be a PITA to make a host wide change</li></ul><p>I limited myself to 4 browser tabs: <a href="https://www.endlessos.org/">Endless OS</a>, <a href="https://vanillaos.org/">VanillaOS</a>, <a href="https://blendos.co/">Blend OS</a>, and <a href="https://fedoraproject.org/silverblue/">Fedora Silverblue</a> and downloaded ISOs for each.</p><blockquote>Dear distro’s that don’t have front and center download links or torrents… Don’t you know I’m re-evaluating a part of my life by choosing a different OS? Don’t you want me to love you by showing me the path? Don’t you want me to be able to contribute?? If I’m here don’t you know I’m going through something???</blockquote><blockquote><strong>Yes I’m sad</strong>, I thought I was <strong>done</strong> distro hopping… sniffle…</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26ufcVAp3AiJJsrIs%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F26ufcVAp3AiJJsrIs%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F26ufcVAp3AiJJsrIs%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="299" frameborder="0" scrolling="no"><a href="https://medium.com/media/861b6cb672cf56125884afb80894d500/href">https://medium.com/media/861b6cb672cf56125884afb80894d500/href</a></iframe><p>Anyhow… <a href="https://blendos.co/">BlendOS</a> was out because it didn’t look like it supported full disk encryption via the installer (at the time of this writing). A distro based on Ubuntu didn’t intrigue me much, and I hadn’t touched anything based on Fedora/Redhat in a while. I’m wondering if I’m just addicted to distro hopping…</p><p>9:05p — I decided on Silverblue. I was okay with reboots for host level changes and I was okay with the duplication of libraries across flatpaks. I wasn’t thrilled moving to a system that didn’t allow me to audit applications’ dependent libraries (re. flatpaks), but I also don’t remember that issue directly impacting me on my personal workstation. If this were a production system I might feel differently… We’ll see how this goes…</p><h3>Takeaway: Once a distro hopper always a distro hopper</h3><p>NixOS is a fantastic declarative OS and I will continue using it for my infrastructure. Who can beat a one time config that allows me to quickly re-image a broken or upgraded server and be back up and running in less than a half-an-hour? It’s slick. Unfortunately, I don’t feel like it is the right tool for my personal workstation.</p><p>My Nix adventure offered me some insights on what I would like out of a distro in 2023. I want more of an appliance-like distro (think iOS or Android) with super powers. Time will tell what type of super powers I require… On to the next OS.</p><blockquote><a href="https://fedoraproject.org/silverblue/">Fedora Silverblue</a> is batter up and <a href="https://blendos.co/">Blend OS</a> is ondeck until they get FDE going.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-9V3gzET5W6ioFgkyoW2ig.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fb9f572122d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>