<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>GNUcode.me</title><id>https://gnucode.me/feeds/tags/chimera linux talosII guix.xml</id><subtitle>Tag: chimera linux talosII guix</subtitle><updated>2024-05-01T13:21:27Z</updated><link href="https://gnucode.me/feeds/tags/chimera linux talosII guix.xml" rel="self" /><link href="https://gnucode.me" /><entry><title>Setting up Chimera Linux</title><id>https://gnucode.me/setting-up-chimera-linux.html</id><author><name>Joshua Branson</name><email>jbranso@dismail.de</email></author><updated>2023-08-09T11:59:00Z</updated><link href="https://gnucode.me/setting-up-chimera-linux.html" rel="alternate" /><content type="html">&lt;p&gt;My friend ownes a &lt;a href=&quot;https://www.raptorcs.com/TALOSII/&quot;&gt;Talos II&lt;/a&gt;, and he wanted some help setting it up.  We have
decided on setting up &lt;a href=&quot;https://chimera-linux.org/&quot;&gt;Chimera Linux&lt;/a&gt;.  Since Chimera Linux is new, we also installed the guix package manager as well.  This blog post today is more of documentation and less story telling.  You have been warned.&lt;/p&gt;&lt;h1&gt;upgrading chimera linux&lt;/h1&gt;&lt;pre&gt;&lt;code&gt;doas apk update

doas apk upgrade&lt;/code&gt;&lt;/pre&gt;&lt;h1&gt;DONE Getting X applications and gdm to run on chimera&lt;/h1&gt;&lt;p&gt;All Talos II machines have trouble running X, when a discrete GPU is installed.
Basically the Talos II has an on board GPU, which when combined with an AMD GPU,
X does not know which GPU to use. &lt;a href=&quot;https://wiki.raptorcs.com/wiki/Troubleshooting/GPU#Xorg_will_not_start_.2F_crashes_when_a_discrete_GPU_is_installed&quot;&gt;click here&lt;/a&gt; to read more on the raptor wiki.&lt;/p&gt;&lt;p&gt;I did have trouble getting my friend’s Talos II to start gdm and X, but an
update to chimera linux fixed the gdm issue.  The below sections are for others
that are using a Talos II with an AMD GPU.  You do need to configure X to
disable the onboard GPU and/or tell GDM to select a GPU at runtime.&lt;/p&gt;&lt;h2&gt;raptor pdf user’s guide:&lt;/h2&gt;&lt;p&gt;&lt;a href=&quot;https://wiki.raptorcs.com/w/images/e/e3/T2P9D01_users_guide_version_1_0.pdf&quot;&gt;https://wiki.raptorcs.com/w/images/e/e3/T2P9D01_users_guide_version_1_0.pdf&lt;/a&gt;&lt;/p&gt;&lt;h3&gt;raptor wiki ways to fix this&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Tell GDM to ignore a GPU&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;In this case ignore the crappy onboard GPU.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;    lspci | grep VGA

    0005:02:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
    0030:01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon Pro WX 7100]

    cat /etc/udev/udev.conf

    # see udev.conf(5) for details
    #
    # udevd is also started in the initrd.  When this file is modified you might
    # also want to rebuild the initrd, so that it will include the modified configuration.
    
    #udev_log=info
    #children_max=
    #exec_delay=
    #event_timeout=180
    #timeout_signal=SIGKILL
    #resolve_names=early
    TAG-=&amp;quot;seat&amp;quot;, ENV{ID_FOR_SEAT}==&amp;quot;drm-pci-0005_02_00_0&amp;quot;
    TAG-=&amp;quot;seat&amp;quot;, ENV{ID_FOR_SEAT}==&amp;quot;graphics-pci-0005_02_00_0&amp;quot;

    Do this to re-generate the initramfs.
    `doas apk fix linux-lts`&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;Xorg will not start / crashes when a discrete GPU is installed&lt;/p&gt;&lt;p&gt;We chose to do the workaround 2: select a desired GPU at runtime, which means
that if we change the slot of the GPU, then we will have to re-create the Xorg
configuration file.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;lspci | grep VGA

0005:02:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
0030:01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon Pro WX 7100]

cat /etc/X11/xorg.conf.d/21-gpu-driver.conf

# AST2500
Section &amp;quot;Device&amp;quot;
    Identifier     &amp;quot;GPU0&amp;quot;
    Driver         &amp;quot;modesetting&amp;quot;
    BusID          &amp;quot;PCI:2@5:0:0&amp;quot;
    VendorName     &amp;quot;ASpeed Corporation&amp;quot;
EndSection
    
# WX7100
Section &amp;quot;Device&amp;quot;
    Identifier     &amp;quot;GPU1&amp;quot;
    Driver         &amp;quot;modesetting&amp;quot; # or amdgpu if you have xf86-video-amdgpu installed
    BusID          &amp;quot;PCI:1@48:0:0&amp;quot;
    VendorName     &amp;quot;AMD Corporation&amp;quot;
EndSection
    
# this is absolutely necessary, it tells xorg which GPU to use for the screen
Section &amp;quot;Screen&amp;quot;
    Identifier     &amp;quot;Screen0&amp;quot;
    Device         &amp;quot;GPU1&amp;quot;
EndSection&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;upgrade the openBMC bios/firmware and disable onboard GPU via&lt;/p&gt;&lt;p&gt;I decided not to do this one.  It's way too complicated.  See the raptor wiki if you don't believe me.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Where to find X logs&lt;/h2&gt;&lt;p&gt;&lt;em&gt;var/log/gdm/greeter.log
/var/lib/gdm&lt;/em&gt;.local/share/xorg/Xorg.1.log&lt;/p&gt;&lt;h2&gt;toggling gdm to use X/wayland&lt;/h2&gt;&lt;p&gt;This does not appear to work.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;cat /etc/gdm/custom.conf | grep 'Wayland'

#WaylandEnable=false
WaylandEnable=true&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;DONE install icewm, and put that in ~/.xinitrc &amp;amp; startx&lt;/h2&gt;&lt;p&gt;Originally this did not work, because X refused to start. But after I upgraded
Chimera linux one day, it worked.&lt;/p&gt;&lt;h1&gt;Setting up Bitcoin knots/bitcoin core&lt;/h1&gt;&lt;p&gt;My friend is an avid bitcoin user. He wanted me to help him set up bitcoin on
his Talos II. If possible, he wanted me to set up bitcoin-knots, which was
forked from bitcoin-core.&lt;/p&gt;&lt;h2&gt;github repo for bitcoin-knots&lt;/h2&gt;&lt;p&gt;The github repo has lots of good information to help me out:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://bitcoinknots.org/#download&quot;&gt;https://bitcoinknots.org/#download&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/bitcoinknots/bitcoin&quot;&gt;https://github.com/bitcoinknots/bitcoin&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/bitcoinknots/bitcoin/tree/23.x-knots/doc&quot;&gt;https://github.com/bitcoinknots/bitcoin/tree/23.x-knots/doc&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-unix.md&quot;&gt;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-unix.md&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-freebsd.md&quot;&gt;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-freebsd.md&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/dependencies.md&quot;&gt;https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/dependencies.md&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I can get help from webchat.freenode.net  #bitcoin-dev&lt;/p&gt;&lt;p&gt;luke-jr says that I can compile bitcoin knots from source fairly easily.&lt;/p&gt;&lt;p&gt;download a release.  Install dependencies:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://download.qt.io/official_releases/qt/&quot;&gt;https://download.qt.io/official_releases/qt/&lt;/a&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;doas apk add libevent &lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;./configure gmake &amp;amp;&amp;amp; gmake check &amp;amp;&amp;amp; gmake install&lt;/code&gt;&lt;/p&gt;&lt;h2&gt;NO Packaging bitcoin knots for chimera linux&lt;/h2&gt;&lt;p&gt;q66 is NOT ok with me packaging bitcoin-coin for chimera linux, because it
depends on qt5, which is soon to be replaced by qt6.  So why bother packaging
qt5 when qt6 is soon to supplant it?&lt;/p&gt;&lt;p&gt;This is the documentation for packaging in chimera.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/chimera-linux/cports&quot;&gt;https://github.com/chimera-linux/cports&lt;/a&gt;
&lt;a href=&quot;https://github.com/chimera-linux/chimerautils&quot;&gt;https://github.com/chimera-linux/chimerautils&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;Alternatively I can package bitcoin knots for guix and install&lt;/h2&gt;&lt;p&gt;guix on chimera linux. And guix already has qt packaged. Do they have
5.15.2 packaged?  Why yes they do: They have qtbase version 5.15.8.&lt;/p&gt;&lt;p&gt;I have not packaged bitcoin-knots for guix yet.  Instead my friend decided to
run bitcoin-core.&lt;/p&gt;&lt;h2&gt;DONE Or I can just install bitcoin-core from guix and run that&lt;/h2&gt;&lt;h1&gt;guix stuff&lt;/h1&gt;&lt;h2&gt;installing guix on chimera linux&lt;/h2&gt;&lt;p&gt;You can install guix via these commands:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
doas chmod u+x guix-install.sh
doas ./guix-install.sh&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Add in the export line so I can use the guix binaries.&lt;/p&gt;&lt;pre&gt;&lt;code&gt;cat ~/.profile

#!/usr/bin/bash

export GUIX_LOCPATH=&amp;quot;$HOME/.guix-profile/lib/locale&amp;quot;

gnome-shell --wayland&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;starting the guix daemon manually&lt;/h2&gt;&lt;pre&gt;&lt;code&gt; ~root/.config/guix/current/bin/guix-daemon &amp;amp;#x2013;build-users-group=guixbuild&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;set up guix daemon via dinit&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;cat /etc/dinit.d/guix-daemon

# guix-daemon service
type = process

# run this command as root
run-as = root
command = /root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
# depends-on = bar
# waits-for = baz

# uncomment this next line once you know this works
# before = login.target
before = network.target&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;a href=&quot;https://davmac.org/projects/dinit/man-pages-html/dinitcheck.8.html&quot;&gt;https://davmac.org/projects/dinit/man-pages-html/dinitcheck.8.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html&quot;&gt;https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So if you cannot get the daemon to autostart, then this will&lt;/p&gt;&lt;p&gt;&lt;code&gt;doas dinitctl start guix-daemon&lt;/code&gt; work.&lt;/p&gt;</content></entry></feed>