Tuesday, April 28, 2026

Bring CachyOS Cosmic 1.0.11 DE along with kernel 7.0.1 to Arch Linux (VENV)

 Following below is procedure which allows to install on Arch Linux CachyOS v3 repositories along with pacman fork belongs to CachyOS. Due to rolling style of both distros sequence of steps would be slightly different the one that was proposed in earlier posts described the same procedure. Issues during migration  CachyOS's ( as of 04/26/26  ) Cosmic to Arch  may also depends on your physical location. You may obtain different repos lists generated by cachyos-rate-mirrors due to WAN routing  might be updated since your the most recent attempt to succeed with procedure mentioned in the header. Due to stabilizing of Cosmic DE 1.0.10/11 I believe that getting Cosmic DE ported to Arch Linux from CachyOS is worth efforts undertaken below .

 $ cat SignCachyos.sh
sudo rm -rf /etc/pacman.d/gnupg/
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key F3B607488DB35A47
sudo rm -R /var/lib/pacman/sync

$ ./SignCachyos.sh

Next Step

 $ curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz
$ tar xvf cachyos-repo.tar.xz && cd cachyos-repo

Following  step in particular installs pacman's fork belongs to CachyOS
$ sudo ./cachyos-repo.sh
$ cd
Scp binary cachyos-rate-mirrors  from native CachyOS box to target one.

$ vim .bashrc
Add at bottom of .bashrc function u() :-
u() {
    # Check if pacman is locked by another process
    if [ -f /var/lib/pacman/db.lck ]; then
        echo "Pacman is locked. Attempting to remove stale lock file..."
        sudo rm /var/lib/pacman/db.lck
    fi
    # 1. Refresh mirrors and update system via yay
    sudo cachyos-rate-mirrors && yay --noconfirm
    # 2. Clear pacman cache (keep only the last 3 versions of each package)
    # Using 'yes' to automate the prompt safely
    yes | sudo paccache -rk3
    # 3. Remove orphaned packages (unused dependencies)
    # The 'if' check prevents errors if no orphans are found
    ORPHANS=$(pacman -Qtdq)
    if [ -n "$ORPHANS" ]; then
        sudo pacman -Rns $ORPHANS --noconfirm
    else
        echo "No orphaned packages to remove."
    fi
}

:wq

In my case following setup gives the most stable results:

$ source ~/.bashrc ;  $ rate-mirrors cachyos && yay
$ u  # which is supposed to invoke cachyos-rate-mirrors

and allows to avoid running procedure

#!/bin/bash
# A script to fix PGP signature errors on Arch/CachyOS
echo "--- Syncing system clock (Required for GPG) ---"
sudo timedatectl set-ntp true
echo "--- Clearing old keyring data ---"
sudo rm -rf /etc/pacman.d/gnupg
echo "--- Initializing new keyring ---"
sudo pacman-key --init
echo "--- Populating Arch and CachyOS keys ---"
sudo pacman-key --populate archlinux cachyos
echo "--- Force-updating keyring packages ---"
sudo pacman -Sy archlinux-keyring cachyos-keyring --noconfirm
echo "--- Success! You can now run 'sudo pacman -Syu' ---"
 
 

 Right after successful u() completion install Cachyos kernel and reboot Arch Linux VM into CachyOS kernel

$ sudo pacman -S linux-cachyos linux-cachyos-headers

$ sudo grub-mkconfig -o /boot/grub/grub.cfg

$ sudo reboot

 On Arch VM rebooted into Cachyos kernel

$ u 

Attempt to run `sudo pacman -Syyu` is supposed to perform final repositories synchronization .

ssh boris@192.168.0.150
boris@192.168.0.150's password:  
[boris@ArchCosmic290426 ~]$ fastfetch
                 -`                     boris@ArchCosmic290426
                  Host: KVM/QEMU Standard PC (Q35 + ICH9, 2009) (pc-q35-11.0)
             `+oooooo:                  Kernel: Linux 7.0.1-1-cachyos
             -+oooooo+:                 Uptime: 38 mins
           `/:-:++oooo+:                Packages: 650 (pacman)
          `/++++/+++++++:               Shell: bash 5.3.9
         `/++++++++++++++:              Display (QEMU Monitor): 1920x1080 in 15", 60 Hz
        `/+++ooooooooooooo/`            Terminal: /dev/pts/1
       ./ooosssso++osssssso+`           CPU: 10 x Intel(R) Xeon(R) E5-2690 v3 (10) @ 2.59 GHz
      .oossssso-````/ossssss+`          GPU: RedHat Virtio 1.0 GPU
     -osssssso.      :ssssssso.         Memory: 1.52 GiB / 15.24 GiB (10%)
    :osssssss/        osssso+++.        Swap: 0 B / 4.00 GiB (0%)
   /ossssssss/        +ssssooo/-        Disk (/): 8.88 GiB / 74.00 GiB (12%) - btrfs
 `/ossssso+/:-        -:/+osssso+-      Local IP (enp1s0): 192.168.0.150/24
`+sso+:-`                 `.-/+oso:     Locale: en_US.UTF-8
`++:.                           `-/+/
.`                                 `/                             
                                                                 
[boris@ArchCosmic290426 ~]$  sudo pacman -Syyu
[sudo] password for boris:  
:: Synchronizing package databases...
cachyos-v3                                                 124.6 KiB   197 KiB/s 00:01 [##################################################] 100%
cachyos-core-v3                                            111.5 KiB   149 KiB/s 00:01 [##################################################] 100%
cachyos-extra-v3                                             4.1 MiB  1645 KiB/s 00:03 [##################################################] 100%
cachyos                                                    524.2 KiB   304 KiB/s 00:02 [##################################################] 100%
core                                                       124.4 KiB   300 KiB/s 00:00 [##################################################] 100%
extra                                                        8.2 MiB  5.92 MiB/s 00:01 [##################################################] 100%
:: Starting full system upgrade...
there is nothing to do
[boris@ArchCosmic290426 ~]$ pacman -Qi pacman
Installed From  : cachyos
Name            : pacman
Version         : 7.1.0.r9.g54d9411-2
Description     : A library-based package manager with dependency support. CachyOS fork.
Architecture    : x86_64
URL             : https://www.archlinux.org/pacman/
Licenses        : GPL-2.0-or-later
Groups          : None
Provides        : libalpm.so=16-64
Depends On      : bash  coreutils  curl  libcurl.so=4-64  gawk  gettext  glibc  gnupg  gpgme  libgpgme.so=45-64  grep  libarchive
                 libarchive.so=13-64  openssl  libcrypto.so=3-64  pacman-mirrorlist  systemd  libmakepkg-dropins
Optional Deps   : base-devel: required to use makepkg [installed]
                 perl-locale-gettext: translation support in makepkg-template
Required By     : appstream-glib  archlinux-keyring  base  base-devel  chwd  libpamac-aur  pacman-contrib  paru  yay
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 10.27 MiB
Packager        : CachyOS <admin@cachyos.org>
Build Date      : Sun 18 Jan 2026 01:58:00 PM MSK
Install Date    : Tue 28 Apr 2026 10:21:41 AM MSK
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
At this point you may also perform a complete upgrade system to CachyOS
$ sudo pacman -S ananicy-cpp
$ sudo pacman -S cachyos-kernel-manager
$ pacman -Qqn | sudo pacman -S -

Verification step
[boris@ArchCosmic290426 ~]$  pacman -Qs cachyos
local/cachyos-kernel-manager 1.17.0-1 (cachyos)
   Simple kernel manager
local/cachyos-keyring 20240331-1 (cachyos)
   CachyOS keyring
local/cachyos-mirrorlist 27-1 (cachyos)
   CachyOS repository mirrorlist
local/cachyos-v3-mirrorlist 27-1 (cachyos)
   CachyOS repository mirrorlist
local/cachyos-v4-mirrorlist 27-1 (cachyos)
   CachyOS repository mirrorlist
local/chwd 1.21.0-1 (cachyos)
   CachyOS Hardware Detection Tool
local/linux-cachyos 7.0.1-1
   The Linux EEVDF + LTO + AutoFDO + Propeller Cachy Sauce Kernel by CachyOS with other patches and improvements. kernel and modules
local/linux-cachyos-headers 7.0.1-1
   Headers and scripts for building modules for the Linux EEVDF + LTO + AutoFDO + Propeller Cachy Sauce Kernel by CachyOS with other patches and
   improvements. kernel
local/pacman 7.1.0.r9.g54d9411-2
   A library-based package manager with dependency support. CachyOS fork.
local/scx-manager 1.15.10-2 (cachyos)
   Simple GUI for managing sched-ext schedulers via scx_loader
 

 

[boris@ArchCosmic290426 ~]$ pacman -Ss cosmic-*
cachyos-extra-v3/cosmic-app-library 1:1.0.11-1.1 (cosmic) [installed]
   Cosmic App Library
cachyos-extra-v3/cosmic-applets 1:1.0.11-1.1 (cosmic) [installed]
   Applets for COSMIC Panel
cachyos-extra-v3/cosmic-bg 1:1.0.11-1.1 (cosmic) [installed]
   COSMIC session service which applies backgrounds to displays
cachyos-extra-v3/cosmic-comp 1:1.0.11-1.1 (cosmic) [installed]
   Compositor for the COSMIC desktop environment
cachyos-extra-v3/cosmic-files 1:1.0.11-1.1 (cosmic) [installed]
   File manager for the COSMIC desktop environment
cachyos-extra-v3/cosmic-greeter 1:1.0.11-1.1 (cosmic) [installed]
   COSMIC greeter for greetd
cachyos-extra-v3/cosmic-idle 1:1.0.11-1.1 (cosmic) [installed]
   Cosmic idle daemon
cachyos-extra-v3/cosmic-initial-setup 1:1.0.11-1.1 (cosmic) [installed]
   COSMIC Initial Setup
cachyos-extra-v3/cosmic-launcher 1:1.0.11-1.1 (cosmic) [installed]
   Layer Shell frontend for Pop Launcher
cachyos-extra-v3/cosmic-notifications 1:1.0.11-1.1 (cosmic) [installed]
   Layer Shell notifications daemon which integrates with COSMIC
cachyos-extra-v3/cosmic-osd 1:1.0.11-1.1 (cosmic) [installed]
   COSMIC On-Screen Display
cachyos-extra-v3/cosmic-panel 1:1.0.11-1.1 (cosmic) [installed]
   XDG Shell Wrapper Panel for Cosmic
cachyos-extra-v3/cosmic-player 1:1.0.11-1.1 (cosmic) [installed]
   WIP COSMIC media player
cachyos-extra-v3/cosmic-randr 1:1.0.11-1.1 (cosmic) [installed]
   Library and utility for displaying and configuring Wayland outputs
cachyos-extra-v3/cosmic-screenshot 1:1.0.11-1.1 (cosmic) [installed]
   Utility for capturing screenshots via XDG Desktop Portal
cachyos-extra-v3/cosmic-session 1:1.0.11-1.1 (cosmic) [installed]
   Session manager for the COSMIC desktop environment
cachyos-extra-v3/cosmic-settings 1:1.0.11-1.1 (cosmic) [installed]
   The settings application for the COSMIC desktop environment
cachyos-extra-v3/cosmic-settings-daemon 1:1.0.11-1.1 (cosmic) [installed]
   Cosmic settings daemon
cachyos-extra-v3/cosmic-store 1:1.0.11-1.1 (cosmic) [installed]
   Cosmic App Store
cachyos-extra-v3/cosmic-terminal 1:1.0.11-1.1 (cosmic) [installed]
   Cosmic Terminal Emulator
cachyos-extra-v3/cosmic-text-editor 1:1.0.11-1.1 (cosmic) [installed]
   Text editor for the COSMIC desktop
cachyos-extra-v3/cosmic-workspaces 2:1.0.11-1.1 (cosmic) [installed]
   Cosmic workspaces
cachyos-extra-v3/xdg-desktop-portal-cosmic 1:1.0.11-1.1 (cosmic) [installed]
   A backend implementation for xdg-desktop-portal for the COSMIC desktop environment
cachyos/cosmic-app-library-git 1.0.0.alpha.7.r14.g8b520ec-1
   An application launcher for the COSMIC desktop
cachyos/cosmic-applets-git 1.0.11.r2.gae3f722-1
   Applets for COSMIC Panel
cachyos/cosmic-applibrary-git 1.0.0.alpha.3.r1.g676656d-1
   An application launcher for the COSMIC desktop
cachyos/cosmic-bg-git 1.0.11.r0.g06970d5-1
   COSMIC session service which applies backgrounds to displays.
cachyos/cosmic-comp-git 1.0.11.r2.gce5ac89-1
   Compositor for the COSMIC desktop environment
cachyos/cosmic-edit-git 1.0.11.r0.g5f96f61-1
   Text editor for the COSMIC desktop
cachyos/cosmic-files-git 1.0.11.r0.gb3af8bf-1
   File manager for the COSMIC desktop environment
cachyos/cosmic-greeter-git 1.0.11.r0.g619910c-1
   libcosmic greeter for greetd, which can be run inside cosmic-comp
cachyos/cosmic-icons-git 1.0.0.beta.1.r0.g70b0758-1
   System76 Cosmic icon theme
cachyos/cosmic-idle-git 1.0.0.alpha.7.r0.g267bb83-1
   Cosmic idle daemon
cachyos/cosmic-launcher-git 1.0.11.r0.g2bdac13-1
   Layer Shell frontend for Pop Launcher.
cachyos/cosmic-notifications-git 1.0.11.r0.gdbd0658-1
   Layer Shell notifications daemon which integrates with COSMIC.
cachyos/cosmic-osd-git 1.0.11.r1.gcbc1e9c-1
   COSMIC On-Screen Display
cachyos/cosmic-panel-git 1.0.11.r0.gd518c7d-1
   XDG Shell Wrapper Panel for COSMIC
cachyos/cosmic-randr-git 1.0.0.beta.1.r0.gbce9cdf-1
   Library and utility for displaying and configuring Wayland outputs
cachyos/cosmic-screenshot-git 1.0.10.r0.g2a8f809-1
   Utility for capturing screenshots via XDG Desktop Portal
cachyos/cosmic-session-git 1.0.0.beta.5.r0.g472db42-1
   Session manager for the COSMIC desktop environment
cachyos/cosmic-settings-daemon-git 1.0.10.r0.g716da6d-1
   Cosmic settings daemon
cachyos/cosmic-settings-git 1.0.11.r5.gfa085f9-1
   The settings application for the COSMIC desktop environment.
cachyos/cosmic-term-git 1.0.10.r2.gc930689-1
   COSMIC Terminal Emulator
cachyos/cosmic-wallpapers-git 1.0.8.r0.g3c59953-1
   Wallpapers for the COSMIC Desktop Environment
cachyos/cosmic-workspaces-git 1.0.10.r0.g4e9c902-1
   Cosmic workspaces
cachyos/xdg-desktop-portal-cosmic-git 1.0.11.r0.g0917743-1
   A backend implementation for xdg-desktop-portal for the COSMIC desktop environment
extra/cosmic-app-library 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Cosmic App Library
extra/cosmic-applets 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Applets for COSMIC Panel
extra/cosmic-bg 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   COSMIC session service which applies backgrounds to displays
extra/cosmic-comp 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Compositor for the COSMIC desktop environment
extra/cosmic-files 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   File manager for the COSMIC desktop environment
extra/cosmic-greeter 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   COSMIC greeter for greetd
extra/cosmic-icon-theme 1:1.0.11-1 [installed]
   Cosmic icon theme
extra/cosmic-idle 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Cosmic idle daemon
extra/cosmic-initial-setup 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   COSMIC Initial Setup
extra/cosmic-launcher 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Layer Shell frontend for Pop Launcher
extra/cosmic-notifications 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Layer Shell notifications daemon which integrates with COSMIC
extra/cosmic-osd 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   COSMIC On-Screen Display
extra/cosmic-panel 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   XDG Shell Wrapper Panel for Cosmic
extra/cosmic-player 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   WIP COSMIC media player
extra/cosmic-randr 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Library and utility for displaying and configuring Wayland outputs
extra/cosmic-screenshot 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Utility for capturing screenshots via XDG Desktop Portal
extra/cosmic-session 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Session manager for the COSMIC desktop environment
extra/cosmic-settings 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   The settings application for the COSMIC desktop environment
extra/cosmic-settings-daemon 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Cosmic settings daemon
extra/cosmic-store 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Cosmic App Store
extra/cosmic-terminal 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Cosmic Terminal Emulator
extra/cosmic-text-editor 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   Text editor for the COSMIC desktop
extra/cosmic-wallpapers 2:1.0.11-1 (cosmic) [installed]
   Wallpapers for the COSMIC Desktop Environment
extra/cosmic-workspaces 2:1.0.11-1 (cosmic) [installed: 2:1.0.11-1.1]
   Cosmic workspaces
extra/xdg-desktop-portal-cosmic 1:1.0.11-1 (cosmic) [installed: 1:1.0.11-1.1]
   A backend implementation for xdg-desktop-portal for the COSMIC desktop environment

Thursday, April 23, 2026

Verification CLT via Python3.14t on top of Arch Linux with CachyOS Kenel and Cosmic 1.0.10 preinstalled

The Central Limit Theorem (CLT) states that if you take sufficiently large random samples from any population
(regardless of its distribution), the distribution of the sample means will approximate a normal distribution (a bell curve). As sample size increases, this normal distribution becomes more accurate, centered around the true population mean 

Setup python3.14t from source per Google's directives  on top of Arch Linux with CachyOS Kenel and Cosmic 1.0.10 preinstalled

Tune ~/.bashrc  adding  to the bottom
export CFLAGS="-march=native -O3 -pipe -fno-plt"
export CXXFLAGS="-march=native -O3 -pipe -fno-plt"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
$ source ~/.bashrc
======================
Install required packages
======================
$sudo pacman -S base-devel openssl xz tk libffi libxcrypt-compat
$ tar -xf Python-3.14.4.tar.xz
$ cd Python-3.14.4

Run configure and build
$ ./configure \
    --enable-optimizations \
    --with-lto \
    --with-computed-gotos \
    --disable-gil \
    --enable-loadable-sqlite-extensions
$ make -j10
$ sudo make altinstall
$ ls -l /usr/local/bin/python3.14t
-rwxr-xr-x 2 root root 36139208 Apr 23 11:07 /usr/local/bin/python3.14t

Setup venv for python in  folder CLTDEMO  

$ python3.14t -m venv .env
$ source .env/bin/activate
 

$ pip install aqtinstall
$ pip install numpy matplotlib cxroots
 

Create python script for testing

cat  multithrCLT01.py
import numpy as np
import matplotlib.pyplot as plt
from concurrent.futures import ThreadPoolExecutor

def generate_means(size):
   # Set a unique seed per thread to ensure randomness isn't duplicated
   rng = np.random.default_rng()  
   return [np.mean(rng.integers(-40, 40, size)) for _ in range(10000)]

sample_sizes = [50, 100, 500, 700, 900, 1200, 1400, 1600]

# Use ThreadPoolExecutor to run the generation in parallel
with ThreadPoolExecutor() as executor:
   # map ensures the results stay in the same order as sample_sizes
   all_sample_means = list(executor.map(generate_means, sample_sizes))

# Plotting (Matplotlib is not thread-safe, so we keep it in the main thread)
fig, axes = plt.subplots(4, 2, figsize=(10, 10))

for ax, means, size in zip(axes.flatten(), all_sample_means, sample_sizes):
   ax.hist(means, bins=20, density=True, alpha=0.75,
           color='blue', edgecolor='black')
   ax.set_title(f"Sample size = {size}")
   ax.set_xlabel("Sample Mean")
   ax.set_ylabel("Density")
   ax.grid(True, linestyle='--', alpha=0.5)

plt.tight_layout()
plt.show() 

Snapshot of desktop been prepared for python's testing along with switching windows style from tiling to floating style and vice versa.























Significance in Statistics
The CLT is fundamental to inferential statistics because it allows for hypothesis testing and creating confidence intervals, even when the underlying data is not normally distributed. It allows researchers to calculate the likelihood that a particular sample mean represents the true population mean.

Another test with  different sample_sizes ( density was changing smoothly ) , also tiling windows style seems to work even better then floating when running python scripts in CLI mode . 




Next version of code above :-

(.env) [boris@cachyos-SVC8664 WORKMTH]$ cat multithrCLT07.py
import numpy as np
import matplotlib.pyplot as plt
from concurrent.futures import ThreadPoolExecutor

# generate_means() updated per Google's AI advice
def generate_means(size):
   rng = np.random.default_rng()
   # Generate all 10,000 samples of 'size' in one block
   samples = rng.integers(-40, 40, (10000, size))
   # Calculate means across the second axis (the 'size' dimension)
   return np.mean(samples, axis=1)

sample_sizes = [50, 100, 500, 700, 800, 900, 1000, 1100]

# Use ThreadPoolExecutor to run the generation in parallel
with ThreadPoolExecutor() as executor:
   # map ensures the results stay in the same order as sample_sizes
   all_sample_means = list(executor.map(generate_means, sample_sizes))

# Plotting (Matplotlib is not thread-safe, so we keep it in the main thread)
fig, axes = plt.subplots(4, 2, figsize=(10, 10))
for ax, means, size in zip(axes.flatten(), all_sample_means, sample_sizes):
   ax.hist(means, bins=20, density=True, alpha=0.75,
           color='blue', edgecolor='black')
   ax.set_title(f"Sample size = {size}")
   ax.set_xlabel("Sample Mean")
   ax.set_ylabel("Density")
   ax.grid(True, linestyle='--', alpha=0.5)
plt.tight_layout()
plt.show() 

This version would spend almost 100% of its time outside the GIL, maximizing your multi-core performance 


 
REFERENCES

https://www.geeksforgeeks.org/python/python-central-limit-theorem/