Skip to content

Latest commit

Β 

History

History

arch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

contents

pacman

  • to generate a list of installed packages
pacman -Qqen > pkglist.txt
pacman -Qqem > pkglist_aur.txt

in troubleshooting x11vnc i'm running x11vnc -findauth, but the switch/option could not complete due to my system missing netstat.

Q how would i know which package provided by pacman or aur would install netstat

pacman -F netstat
yay -F netstat

arch/macbook 11.x specific

systemd / slow reboot , poweroff

long story short, my computer ie. macbook pro 2013 & 2015 were taking forever to restart πŸ€¦β€β™‚οΈ, ended up masking the below systemd service and things seem to be rebooting and powering off much quicker now. πŸ‘οΈ

sudo systemctl status systemd-udev-settle.service
sudo systemctl mask systemd-udev-settle.service

i checked in the $PWD/etc/default/grub to source control for helping me remember adding acpi_mask_gpe=0x06 to the GRUB_CMDLINE_LINUX_DEFAULT argument. after adding this arg to above such line the computer went from idling at ~ 70C πŸ”₯ to idling around ~ 40C ~= 100F πŸ₯Ά

networking

for my particular use case, i want to setup a bridge interface with my wired ethernet via my thunderbolt adapter, and give the interface a static ip address of 10.0.1.111

see troubleshooting section for my notes related to networking

there are multiple ways and utilities for assigning static ip addresses within archlinux, for my needs i'm using a combination of NetworkManager along with netctl to create a static ip address, a bridge interface br0 along with a tap0 interface.

networking / useful links

sometime the stock broadcom 4260 network card in the mbp 11,3 has issues connecting to routers at higher 5GHz frequiences. see the below link for more info to getting the card to work

i3

i wanted to display RPM speed of both the left and right fans inside my i3status bar.

i3status doesn't directly support calling/running shell scripts from what i understand, so i implemented a script that calls i3status and prints the fan speeds while running i3status at the same time.

troubleshooting

troubleshooting / blank, black screen on boot

today (monday aug 19th 2024) i decided to use my laptop on the go. (imagine that). little did i know i probably should have updated the x11 display configuration after disconnecting my external monitor. so when it came time to boot my computer away from my house i was presented with a nice black screen. the keybinding to access the the virtual tty's ie. ctrl+alt+f2 was not working unfortunately. so the quick fix (after a couple of searches), edit the grub command line and add the below settings.

nomodeset 3

those 2 settings for the kernel boot params allowed my laptop to once again use the internal display, and i am able to manually boot lightdm, and resume things as normal. note adding just the 3 did not work as various posts / answers suggested, both nomodeset and 3 were required.

troubleshooting / joining a guest network

after getting my computer to a working graphical target i wanted to connect to the guest network but was never redirected to the TOS page that one usually is directed to when just visiting a website after connecting to the guest network. the quick is to visit a domain ie. http://neverssl.com, after attempting to connect to that domain, i was properly redirected to the login page. πŸ‘οΈ

troubleshooting / bluetooth, circa july 2024

for reasons i do not understand, the bluetooth on my macbook can become non workable until the computer (macbook pro 2015) is completely shutdown, and best to unplug power cord and leave powered off for say 30 seconds or longer if available. a reboot seems to not resolve the problem πŸ€·β€β™‚οΈ. a complete power off / down is required

https://forums.linuxmint.com/viewtopic.php?p=2163026#p2163026

troubleshooting / i3

for another reason i fully do not understand if i have my ethernet to dp broadcom adapter pluggedin when i startup my computer i have to wait ~ 2 minutes and 30 seconds until i can interact with i3, and my polybar loads. however if poweroff then startup my computer with the network cable (ethernet adapter unplugged) then i3 does not load with a delay. πŸ€·β€β™‚οΈ

troubleshooting / upgrades

recently upgrading to linux kernel 6.4.1 broke my nvidia proprietary driver installation, and also rendered my bluetooth controller on my builtin bmc 4360 broadcom dual wifi/bluetooth card to stop appearing as a bluetooth controller πŸ€·β€β™‚οΈ

long story short, this whole issue probably warrants some form of blog post, but unfortunately i don't have an active blog going at the moment, so i'll just type my frustations here.

the quickest fix i came up with was

  1. rebuild the nvidia properitary driver aur package for the cache dir stored within my home dir.
  2. downgrade linux to the last 6.3.x series kernel using the downgrade package provided by AUR

NOTE be sure to downgrade both linux and linux-headers or the dkms modules will not build, thus rendering the system pretty much useless.

troubleshooting / pacman or yay

if the below error arrises when trying to upgrade an arch based GNU+Linux system

error: runc: signature from "Frederik Schwan <[email protected]>" is unknown trust

the below command should clear issues related key ring issues

sudo pacman -Sy archlinux-keyring

troubleshooting / networking

i am using network manager via the nmcli tool to configure the ethernet adapter for the macbook, and am NOT using netctl. so when a new router is introduced to the network and the ip ranges change from 10.0.1.x to 192.168.0.x use the interactive nmcli tool to update the setting for the bridge interface.

in short, i have the 3 three most recent major versions of macos working with qemu and kvm on my arch mbp box. (yay me). now my current limitation is being able to use a bridge/tap interface with all 3 virtual machines running at the same time. previously i had been using netctl to manage a static ip address for the arch box, ie. 10.0.1.111.

did a little digging this afternoon, and think i'll give nmcli a try for managing the network interfaces on this archbox mbp. nmcli is a confusing little cli utility for creating network devices and connections and becomes more confusing the more you use it (ugggggh).

the foxlet/macos-simple-kvm repo provides a decent guide for setting up bridge networking for a macos vm running under KVM. however, when one wants to start tweaking the settings with little knowledge of network manager & nmcli things can get confusing.

nmcli can be used to create a static ip address for an interface, for my use case, i created a bridge interface similar to the one in the foxlet guide, but tweaked some nmcli settings to give it a static ip of 10.0.1.111. thus allowing to not have to fiddle with dhcp and all the third party apps running on the box, and also makes the box a tad bit easier to reach from misc devices.

the two basic nmcli commands one should know are,

nmcli con show
nmcli dev st

think of the DEVICE as the old networking names ie. en0 and what not. whereas the NAME refers to the connection name an arbitrary string assigned by nmcli.

also another thing to remember that nmcli allows editing/modifying the current settings for a network connection, so before you go deleting everything it may behoove you to edit some settings before blowing everything up. after editing settings using nmcli, use the apply sub command, and possibly bring down then up the interface that is actively being edited.


and while mucking with all my network related settings i managed to break my vnc viewer, so manually connecting the archbox is presently required.

troubleshooting / networking / vnc

i'm using x11vnc to allow me to connect to my archbox via vnc viewer.app on macos to view my std X11 desktop. however after mucking around with my networking settings, vnc viewer is not wanting to connect.

Q howto troubleshoot not being able to connect to /usr/bin/Xvnc

troubleshooting / zfs

from time to time i've run into issues upgrading zfs dkms kernel modules using yay learn more

the quick fix,

yay -Sa --nodeps zfs-dkms zfs-utils

i've run into several instances where i attempt to mount my ext USB drive using zfs import and am i presented with something similar to zfs module not loaded etc. etc.

hypothesis i've run a system update yay and have updated all packages on the system, but have yet to reboot the system. for whatever reason i think this is preventing the zfs module from loading. ...will attempt to restart computer after all pkg installations have been completed.

correct βœ… rebooting my archlinux box, followed by running, sudo -E /sbin/modprobe zfs loaded the zfs modules for my running kernel.

troubleshooting / fail to boot 😭

my rant, boot failures always suck and happen at the worst time 🀦

TL;DR ❗️ make sure /boot partition is writable when upgrading linux & linux-headers, for me, my HFS /boot partition was mounted as read-only. Install yay -S hfsutils to support RW of hfs partitions. if the partition is mounted ro more than likely the system was shutdown abruptly and running a file system check fschk on the HFS partition will allow mounting the partition with RW after the check is completed.

my most recent boot failure happened after upgrading all system packages on my arch linux install using yay -Syu. to make matters worse i'm running arch on a macbook without an internal display, and FWR the typical hold the option key during boot is not displaying any bootable disks or even displaying the boot menu

fortunately resetting the nvram wait for 2 chimes and the grub menu entry displays arch linux and advanced options

use tab for a list of cmds & completions

  • press c to enter into the grub console.
  • enable the pager set pager=1

next, either attempt to boot from existing linux image and ramdisk or use the ones provided by an iso ie. a archlinux install disk

  1. determine partition layouts of disks
grub> ls
  1. set the root partition

numbers will vary depending up partition layout

set root (hd0,3)
  1. set the path the linux kernel and the root partition

  1. set the path the initrd

if attempting to boot from an arch ISO, set this to the path of the ISO file??? [double check]

initrd /boot
  1. finally tell grub to boot the linux kernel and system
boot

A good reference/explanation of the above procedure


todos

  • spend a little ⏳ sifting through the systemd logs to figure out why my archbox is taking so long to reboot/boot
    • see the following commit for fix to above item d901970f
  • add a link / reference for installing an older version of a package ie. nss-mdns

useful links

useful links / todos / followup

scratchpad

setting up macos virtual machines on arch linux for github actions / notes

  • i setup three 3 virtual machines in hopes for building bottles related to freecad

    • mojave
    • catalina
    • big sur

i'm trying my best to use the actions provided my macos homebrew to build and publish bottles

i also want to protect the vm's as they are self-hosted runners, as github only provides a macos environment for catalina.

using mac homebrew in a mulit user env is somewhat convoluted, and becomes even more annoying when interfacing it with github actions.

there have been several solutions posted in this stackoverflow q/a i'd say pokidyshev's answer is probably the best suited for using a multi user install with github actions, ie. my use case.

if macos homebrew install is all jacked up, (and it will) go here for instructions on how to remove a homebrew installation on macos.

macos kvm / networking / static ip's

i am unable to assign a static ip to a tun device using nmcli in my host OS archlinux however, macos does provide a utility to use DHCP with a manual address, and qemu does allow controlling the ID of the MAC adddress. so i set a specific MAC address for each macos VM based on the major version of the OS, ie. mojave is 10.14, and thus giving mojave a 10.0.1.114 ip address. and it appears that the VM will grab that IP address in future reboots (if it isn't taken by another device on the network).

experimenting with libvirt/libvirtd

  • with my current arch linux install there is no /etc/network/interfaces file.

  • archlinux does not use the above mentioned file, as that is a debianism, network manager can used used to setup a bridge with tun/tap learn more

  • while experimenting with libvirtd to manage vms, when using systemctl to status libvirtd, the following error msg appeared libvirtd cannot check dnsmasq binary /usr/bin/dnsmasq: no such file or directory install dnsmasq

  • next error, cannot find 'dmidecode' in path: no such file or directory

  • setup pollkit, install dmidecode, no fiddlig with a pollkit agent so far.

  • next error, upon launching virt-manager

    virt-manager unable to connect to libvrit qemu:///system authentication unavailable
    

    answer, add $USER launching virt-manager to the libvirt user group

  • next error,

    virt-manager error starting domain: requested operation is not valid: network 'default' is not active
    

    answer, the default network has to be defined using an XML file learn more

    sudo virsh net-define /etc/libvirt/qemu/networks/default.xml
    sudo virsh net-autostart default
    sudo virsh net-start default
    sudo virsh net-list --all
  • next error, useful link bbs.archlinuxr.og

    error starting domain: cannot access storage file as uid gid permission denied
    

    answer, edit /etc/libvirt/qemu.conf