123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><meta name="keywords" content="GNU, Emacs, Libre Software, Hurd, Guile, Guix" /><meta name="description" content="GNUcode.me is a website focusing on libre software projects, especially the GNU project." /><link type="application/atom+xml" rel="alternate" title="GNUcode.me -- Feed" href="/feed.xml" /><a rel="me" href="https://fosstodon.org/@thegnuguy"></a><link type="text/css" href="css/footer.min.css" rel="stylesheet"></link><link type="text/css" href="css/header.min.css" rel="stylesheet"></link><link type="text/css" href="css/main.min.css" rel="stylesheet"></link><title>Setting up Chimera Linux — GNUcode.me</title></head><body><header><nav><ul><li><a href="index.html">GNUcode.me</a></li><li><a href="services.html">Services</a></li><li><a href="about.html">About</a></li><li><a href="business-ideas.html">Business-ideas</a></li></ul></nav></header><h1>Setting up Chimera Linux</h1><main><section class="basic-section-padding"><article><h3>by Joshua Branson — August 09, 2023</h3><div><p>My friend ownes a <a href="https://www.raptorcs.com/TALOSII/">Talos II</a>, and he wanted some help setting it up. We have
- decided on setting up <a href="https://chimera-linux.org/">Chimera Linux</a>. 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.</p><h1>upgrading chimera linux</h1><pre><code>doas apk update
- doas apk upgrade</code></pre><h1>DONE Getting X applications and gdm to run on chimera</h1><p>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. <a href="https://wiki.raptorcs.com/wiki/Troubleshooting/GPU#Xorg_will_not_start_.2F_crashes_when_a_discrete_GPU_is_installed">click here</a> to read more on the raptor wiki.</p><p>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.</p><h2>raptor pdf user’s guide:</h2><p><a href="https://wiki.raptorcs.com/w/images/e/e3/T2P9D01_users_guide_version_1_0.pdf">https://wiki.raptorcs.com/w/images/e/e3/T2P9D01_users_guide_version_1_0.pdf</a></p><h3>raptor wiki ways to fix this</h3><ol><li>Tell GDM to ignore a GPU</li></ol><p>In this case ignore the crappy onboard GPU.</p><pre><code> 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-="seat", ENV{ID_FOR_SEAT}=="drm-pci-0005_02_00_0"
- TAG-="seat", ENV{ID_FOR_SEAT}=="graphics-pci-0005_02_00_0"
- Do this to re-generate the initramfs.
- `doas apk fix linux-lts`</code></pre><ol><li><p>Xorg will not start / crashes when a discrete GPU is installed</p><p>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.</p><pre><code>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 "Device"
- Identifier "GPU0"
- Driver "modesetting"
- BusID "PCI:2@5:0:0"
- VendorName "ASpeed Corporation"
- EndSection
-
- # WX7100
- Section "Device"
- Identifier "GPU1"
- Driver "modesetting" # or amdgpu if you have xf86-video-amdgpu installed
- BusID "PCI:1@48:0:0"
- VendorName "AMD Corporation"
- EndSection
-
- # this is absolutely necessary, it tells xorg which GPU to use for the screen
- Section "Screen"
- Identifier "Screen0"
- Device "GPU1"
- EndSection</code></pre></li><li><p>upgrade the openBMC bios/firmware and disable onboard GPU via</p><p>I decided not to do this one. It's way too complicated. See the raptor wiki if you don't believe me.</p></li></ol><h2>Where to find X logs</h2><p><em>var/log/gdm/greeter.log
- /var/lib/gdm</em>.local/share/xorg/Xorg.1.log</p><h2>toggling gdm to use X/wayland</h2><p>This does not appear to work.</p><pre><code>cat /etc/gdm/custom.conf | grep 'Wayland'
- #WaylandEnable=false
- WaylandEnable=true</code></pre><h2>DONE install icewm, and put that in ~/.xinitrc & startx</h2><p>Originally this did not work, because X refused to start. But after I upgraded
- Chimera linux one day, it worked.</p><h1>Setting up Bitcoin knots/bitcoin core</h1><p>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.</p><h2>github repo for bitcoin-knots</h2><p>The github repo has lots of good information to help me out:</p><p><a href="https://bitcoinknots.org/#download">https://bitcoinknots.org/#download</a></p><p><a href="https://github.com/bitcoinknots/bitcoin">https://github.com/bitcoinknots/bitcoin</a></p><p><a href="https://github.com/bitcoinknots/bitcoin/tree/23.x-knots/doc">https://github.com/bitcoinknots/bitcoin/tree/23.x-knots/doc</a></p><p><a href="https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-unix.md">https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-unix.md</a></p><p><a href="https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-freebsd.md">https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/build-freebsd.md</a></p><p><a href="https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/dependencies.md">https://github.com/bitcoinknots/bitcoin/blob/23.x-knots/doc/dependencies.md</a></p><p>I can get help from webchat.freenode.net #bitcoin-dev</p><p>luke-jr says that I can compile bitcoin knots from source fairly easily.</p><p>download a release. Install dependencies:</p><p><a href="https://download.qt.io/official_releases/qt/">https://download.qt.io/official_releases/qt/</a></p><pre><code>doas apk add libevent </code></pre><p><code>./configure gmake && gmake check && gmake install</code></p><h2>NO Packaging bitcoin knots for chimera linux</h2><p>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?</p><p>This is the documentation for packaging in chimera.</p><p><a href="https://github.com/chimera-linux/cports">https://github.com/chimera-linux/cports</a>
- <a href="https://github.com/chimera-linux/chimerautils">https://github.com/chimera-linux/chimerautils</a></p><h2>Alternatively I can package bitcoin knots for guix and install</h2><p>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.</p><p>I have not packaged bitcoin-knots for guix yet. Instead my friend decided to
- run bitcoin-core.</p><h2>DONE Or I can just install bitcoin-core from guix and run that</h2><h1>guix stuff</h1><h2>installing guix on chimera linux</h2><p>You can install guix via these commands:</p><pre><code>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</code></pre><p>Add in the export line so I can use the guix binaries.</p><pre><code>cat ~/.profile
- #!/usr/bin/bash
- export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
- gnome-shell --wayland</code></pre><h2>starting the guix daemon manually</h2><pre><code> ~root/.config/guix/current/bin/guix-daemon &#x2013;build-users-group=guixbuild</code></pre><h2>set up guix daemon via dinit</h2><pre><code>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</code></pre><p><a href="https://davmac.org/projects/dinit/man-pages-html/dinitcheck.8.html">https://davmac.org/projects/dinit/man-pages-html/dinitcheck.8.html</a></p><p><a href="https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html">https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html</a></p><p>So if you cannot get the daemon to autostart, then this will</p><p><code>doas dinitctl start guix-daemon</code> work.</p></div></article></section></main><footer><p>© 2020 Joshua Branson. The text on this site is free culture under the Creative Commons Attribution Share-Alike 4.0 International license.</p><p>This website is build with Haunt, a static site generator written in Guile Scheme. Source code is <a href="https://notabug.org/jbranso/gnucode.me">available.</a></p><p>The color theme of this website is based off of the famous <a href="#3f3f3f" target="_blank">zenburn</a> theme.</p></footer></body>
|