http://wiki.zenerves.net/index.php?title=Special:NewPages&feed=atom&hideliu=&hidepatrolled=&hidebots=&hideredirs=1&limit=50&namespace=0ZENotes - New pages [en-gb]2024-03-28T22:58:47ZFrom ZENotesMediaWiki 1.17.0http://wiki.zenerves.net/index.php?title=Asahi_NotesAsahi Notes2024-01-30T18:27:25Z<p>Admin: /* To The Bug */</p>
<hr />
<div>==Install / Reinstall==<br />
<br />
Uninstall according to the Asahi Wiki "partition cheatsheet"<br />
<br />
https://leo3418.github.io/asahi-wiki-build/partitioning-cheatsheet/<br />
<br />
Install with the provided script at<br />
<br />
https://alx.sh|sh<br />
<br />
Pay attention when you must reboot after step 1 into Step 2! It's the part where you hit "enter" for shut down and must wait 30 seconds and then keep the Power Button pressed down to restart with a Prompt about choosing what to boot.<br />
<br />
Now Ardour is a flatpak unfortunately ; there's 2 providers, Fedora and <br />
(seeing the apple or a "macos recovery" splash at this stage is normal ; just wait for the terminal to pop up with instructions)<br />
<br />
Local Policy Update takes time. Please wait.<br />
<br />
Keep ignoring the patronizing apple about the security of your device. enter mac username and password as asked.<br />
<br />
==To The Bug==<br />
<br />
I am trying to reproduce a bug with Ardour that kills the nice sound hack from the asahi people to put the 6 speakers into a combined stereo pair thanks to speakersafetyd. I need Ardour (as a tool), and I need patch to bluetooth and internal too.<br />
<br />
https://github.com/AsahiLinux/speakersafetyd<br />
<br />
1. Fresh install of 39 from "welcome start setup"<br />
<br />
Note: keyboard, possibly language, should be first step here.<br />
<br />
2. Enable 3rd party (I need the Codecs)<br />
<br />
3. Reboot for good measure, accepting the "critical update" request from Gnome Software<br />
<br />
<----------Freshly booted, virgin, updated----------------><br />
<br />
4. Check the wireplumber install with an eye on the arch wiki:<br />
- No pipewire-audio to be found<br />
- Pulseaudio is on pipewire-pulseaudio, installed by default<br />
- Same for pipewire-alsa<br />
- BUT not for jack, where jack-audio-connection-kit is the default<br />
- Asahi-audio is installed and up-to-date<br />
- Lv2-bankstown same, speakersafetyd same<br />
<br />
--> checking out VLC ; Settings now has 2 outputs, "internal" and "macbook" ; "internal" doesn't work.<br />
- VLC set output module to Automatic, Alsa or Pipewire, sound works<br />
<br />
--> Install helvum for visualisation of patch: everything fine, "macbook pro j414" are 2 inputs (and 6 outputs lol)<br />
<br />
So far so good, good sound. But we haven't touched Jack yet - not that I need Jack ; what I need is Ardour with an internal patch<br />
<br />
--> Adding Audacity, default settings ; plays nice with VLC into Helvum ; reset VLC to default which says "default alsa output currently pipewire media server"<br />
<br />
Let's get to Ardour8 now, from Fedora not Flatpak this time (I noticed the issue with both Flatpaks, Fedora and Flathub)<br />
<br />
Ardour Breaks Everything as soon as it is launched ; <br />
<br />
- Volume goes 100% unamanageabe through keyboard, <br />
- Nice 2 inputs "macbook pro speakers" disapears, replaced with everything times 6 wired to "Build-in audio speakers"<br />
- Must Kill everything else that was running on loop (vlc and audacity) to start Ardour in Alsa config ; can't start otherwise<br />
--> notice helvum empty, sound settings on "dummy output"<br />
<br />
The kill is absolute ; a reboot seems needed. This was with Ardour on Alsa (choice is alsa, pulse, jack)<br />
<br />
- Second attempt ; ardour kills the dual input macbook speaker module but speakersafetyd seems to be running<br />
<br />
- Restarting speakersafetyd changes nothing<br />
- stopping in kills sound (used vlc for test ; vlc outputs 6 into the 6 speakers - I'm afraid I'm sending full-spectrum 100% signal into each one of them, at risk of damage). Stil no control over volume.<br />
<br />
- Third attempt ; fresh boot, settings / audio / helvum all good ; last Ardour use was on Pulse ; ardour splashscreen doesn't kill nothing, goes to audio-midi setup step (with pulse preselected) without complaints. Volume keys work, Speakers work, settings on "MacBook Pro J414 Speakers" - opening a new 48khz pulse session now...<br />
<br />
Ardour is up, with nothing in it tho. There's a stereo output to the stereo speakers<br />
--> this is useless, Ardour doesn't see VLC, Helvum doesn't "see" the ardour input tracks<br />
- Crashed when I manually stopped the audio engine to switch to jack, killing volume buttons and resetting all to 6 channels<br />
<br />
- four : jack ; fails with Jack complaining it hasn't got permissions to get a real time session ; sound settings shows "dummy output" only, Ardour crashes it all - note : this is without pipewire-jack, this on default Jack-connection-kit.<br />
Later startup crashes shows other crash info like impossibility to connect to socket.<br />
<br />
- Five : install pipewire-jack now. And now it works :)</div>Adminhttp://wiki.zenerves.net/index.php?title=The_MacOS_MemoThe MacOS Memo2023-12-23T13:05:45Z<p>Admin: </p>
<hr />
<div>To change your terminal prompt (& use bash):<br />
<br />
- switch to bash with <br />
<br />
csh /bin/bash<br />
<br />
- exit terminal & open it again<br />
<br />
- create a .bashrc file with, ie : <br />
<br />
# configure my multi-line prompt<br />
PS1='<br />
$PWD<br />
==> '<br />
<br />
Then macos will superbly ignore it. Go to here to not re-invent the wheeel like I just did :<br />
<br />
https://www.weblife.fr/tutoriels/os-x-terminal-personnalise-avec-le-fichier-bashrc?cn-reloaded=1<br />
<br />
Or set in <br />
<br />
source /Users/regie/.bashrc && clear<br />
<br />
in the terminal settimgs / Profiles / Shell ; uglier but quicker.<br />
<br />
General feeling : shit keyboard, dust and liquid swallowing huge vents, updating process stressfull with many reboots and still progress bars</div>Adminhttp://wiki.zenerves.net/index.php?title=Btrfs_before_install_notesBtrfs before install notes2023-11-29T15:35:01Z<p>Admin: </p>
<hr />
<div>Set up BTRFS ''before install'', according to [https://www.youtube.com/watch?v=maIu1d2lAiI this guide]<br />
<br />
'''FAIL''' Network here is too slow it's infuriating, trying installs is horrible<br />
<br />
(You are booted in the Arch Live environment meant to install Arch on your machine or VM)<br />
<br />
==Before pacstrap (01:50)==<br />
<br />
loadkeys for your keyboard<br />
<br />
Select device with '''fdisk -l''' ; VM devices starts with V here, as in /dev/'''v'''da1 et<br />
<br />
===Partitionning (02:05)===<br />
<br />
fdisk /dev/vda<br />
<br />
* Use '''g''' to create a GPT partition table on /dev/vda1<br />
<br />
* Use '''n''' to create a first EFI partition<br />
<br />
* Use +300M to make it 300M in size<br />
<br />
* Use '''t''' to change its type to '''1''' to make it an EFI partition<br />
<br />
* Use '''n''' to create a second partition for the rest of the disk<br />
<br />
* Use '''p''' to check for values and mistakes<br />
<br />
* Use '''w''' to write the modifications and exit the interactive fdisk prompt <br />
<br />
===Formatting (02:50)===<br />
<br />
* mkfs.fat -F 32 /dev/vda1<br />
* mkfs.btrfs /dev/vda2<br />
<br />
===Start mounting and playing with BTRFS (04:50)===<br />
<br />
* mount /dev/vda2 /mnt<br />
<br />
* create subvolumes with<br />
<br />
btrfs subvolume create /mnt/@<br />
btrfs subvolume create /mnt/@home<br />
btrfs subvolume create /mnt/@snapshots<br />
<br />
* Check your existing subvolumes and their ID :<br />
<br />
btrfs subvolume list /<br />
<br />
(Reminder : subvolumes don't create snapshots of nested subvolumes ; here @ won't contain @home or @snapshots data)<br />
<br />
* Create mountpoints<br />
<br />
mkdir /mnt/efi<br />
mkdir /mnt/home<br />
mkdir /mnt/.snapshots<br />
mkdir /mnt/btrfsroot<br />
<br />
* Then Umount the actual /dev/vda2 to replace by the '''@''' subvolume<br />
<br />
mount /dev/vda2 -o subvolid=256 /mnt<br />
mount /dev/vda2 -o subvolid=257 /mnt/home<br />
mount /dev/vda2 -o subvolid=258 /mnt/.snapshots<br />
mount /dev/vda2 -o subvolid=5 /mnt/btrfsroot<br />
mount /dev/vda1 /mnt/efi<br />
<br />
==It's pactsrap time now (07:00)==<br />
<br />
pacstrap -K /mnt base linux base-devel grub sudo git less nano efibootmgr btrfs-progs snapper snap-pac grub-btrfs tar sudo<br />
<br />
Sodding network here man...<br />
<br />
===And now...===<br />
<br />
* check your mount points list for any misstep with '''mount'''<br />
<br />
create your fstab file when mount is all ok<br />
<br />
genfstab -U /mnt >> /mnt/etc/fstab<br />
<br />
Check again with '''less /mnt/etc/fstab'''<br />
<br />
'''arch-chroot /mnt''' if everything is good<br />
<br />
* you still have to do the usual : vconsole.conf for the keymap, locale-gen for lang etc, see the arch install guide<br />
<br />
* Do the mkinit just in case :<br />
<br />
mkinitcpio -P<br />
<br />
* Install GRUB with this :<br />
<br />
add --removable to the grub install line if necessary<br />
<br />
then do grub-mkconfig<br />
<br />
==then reboot==<br />
<br />
--failed at grub / creating bootable system phase--</div>Adminhttp://wiki.zenerves.net/index.php?title=I_use_ARCH_btwI use ARCH btw2023-11-25T14:16:42Z<p>Admin: </p>
<hr />
<div>Following the [https://wiki.archlinux.org/title/Installation_guide guide] is mostly ok ; A word on something I completely forgot about :<br />
<br />
==Read The FINE Manual==<br />
<br />
(Assuming you have a thumbdrive ready and working)<br />
<br />
* Use F12 on Fatitude to get to the Choose Your Boot Media at startup<br />
* Load correct keymap : <br />
<br />
# loadkeys fr-latin1<br />
<br />
* Network interface probably gonna be wlan0 ; in doubt, do '''ip link'''<br />
<br />
* Use [https://wiki.archlinux.org/title/Iwd#iwctl iwctl] to connect to the wireless network<br />
[iwd]# station wlan0 scan<br />
[iwd]# station device get-networks<br />
[iwd]# station device connect SSID<br />
[iwd]# exit<br />
# ping archlinux.org<br />
<br />
# timedatectl<br />
<br />
* Check [https://wiki.archlinux.org/title/Installation_guide#Partition_the_disks partitions] architecture :<br />
<br />
# fdisk -l<br />
<br />
* Only format your root partition to install a fresh system on it. Add swap if you have swap:<br />
<br />
# mkfs.btrfs -f /dev/sda6 (the -f option is to override former btrfs subvolumes)<br />
# mkswap /dev/sda8<br />
<br />
* Mount the filesystems you're going to use on the /mnt folder of your live system:<br />
<br />
# mount --mkdir /dev/sda2 /mnt/boot/efi<br />
# mount --mkdir /dev/sda7 /mnt/home<br />
# mount /dev/sda6 /mnt/<br />
# swapon /dev/swap_partition<br />
<br />
* Now start reading '''Yes, but'''<br />
<br />
==Yes, but==<br />
- '''Yes, there's probably no need to partition''' if ''there's no need to!'' (esp EFI) You'll run into a permissions nightmare on your /home, but that's better than loosing data :<br />
<br />
When the /home partition is mounted to /mnt/home at 'pacstrap' time, just '''chmod -r 777''' the entire contents of the previous /home folder ; <br />
when you make your new user, be sure to give it another name.<br />
<br />
- '''Only format your system / partition''' (or root partition) with ''makefs.<type of filesystem> -f'' is enough for a fresh re-install.<br />
<br />
- It's ok to mount the EFI partition to /boot/efi and not simply /boot so as to not fill that small partition with everything in /boot, especially numerous kernels<br />
<br />
On my fresh install, the EFI partition is 260MB which is a factory default - and my /boot partition is already 268MB ; <br />
ergo, it wouldn't fit, with just 4 kernels + the windows stub<br />
<br />
==Default install through pacstrap needs a lot more stuff, you'll probably want==<br />
<br />
- base-devel linux-lts os-prober pacman-contrib git grub efibootmgr<br />
<br />
- grep rsync nano tar git iwd less sudo<br />
<br />
- gdm gnome networkmamager gedit - or any of your login manager and desktop environment of choice<br />
<br />
- bluez bluez-utils usbutils git go zip wget<br />
<br />
- firefox vlc smplayer gimp calibre<br />
<br />
- [https://wiki.archlinux.org/title/Snapper snapper] ? if you go this route then snap-pac and grub-btrfs too. The current state of the wiki page there is<br />
such that I should try snapper-gui-git (AUR) and/or btrfs-assistant (AUR). Creating, generating, booting into snapshots mostly work.<br />
Restoring your system to a snapshot does not.<br />
<br />
<br />
When you chroot in, it's normal for os-prober to ''not'' see the M$ partition, even if it is mounted ; you should re-run os-prober, and re-run grub-mkconfig, when you did reboot into the actual, fresh system. os_prober only need to see your EFI partition, where other boot stubs are stored, not the actual system disks<br />
<br />
==don't forget to enable some systemd services, duh==<br />
<br />
- gdm.service<br />
<br />
- NetworkManager.service<br />
<br />
- bluetooth.service <br />
<br />
with <br />
<br />
systemctl enable <name of unit>.service<br />
<br />
If you are already in your graphic environment and instead need it to be enabled and start immediately (like for network), run <br />
<br />
systemctl enable --now <name of unit>.service<br />
<br />
==And make a basic user==<br />
Then create a basic user with <br />
<br />
useradd -m -G %wheel <name of user><br />
<br />
Add it to sudoers with<br />
<br />
EDITOR=nano visudo<br />
<br />
''Now'' you can reboot. Have you installed some '''network software'''? Have you '''enabled a graphic shell''' ? That's the core needs for a ''functional, fresh'' install to be tuned further as needed.<br />
<br />
Set up [https://wiki.archlinux.org/title/Arch_User_Repository aur] or install [https://wiki.archlinux.org/title/Flatpak flatpak] for dropbox and ungoogled-chromium ; add python-gpgme for dropbox.<br />
<br />
<br />
==Other Housechores==<br />
<br />
Uncheck the os-prober-false at the bottom of /etc/default/grub ; generally speaking, tweak the grub file to your liking and re-run grub-mkconfig<br />
Add the user to sudo with ''EDITOR=nano visudo''<br />
setup keyboard in gnome <br />
setup keyboard in GDM with ''localectl set-x11-keymap fr''<br />
<br />
Enable tap to click in gnome<br />
Enable pinch in firefox by adding MOZ_ENABLE_WAYLAND=1 in .bash_profile<br />
Setup wiregard <br />
<br />
Enable the paccache.timer service to get rid weekly of the cruft in /var/cache/pacman/pkg/ ''which will totally eat up your disk if you don't do that!''<br />
<br />
# systemctl enable --now paccache.timer<br />
<br />
Good luck with btrfs, and snapper, and snap-pac, and grub-btrfs, and don't forget to [https://wiki.archlinux.org/title/Snapper#Booting_into_read-only_snapshots hack mkinitcpio] as described. Then try your luck with (no, it didn't work here):<br />
<br />
# snapper rollback --ambit classic <snapshot number to rollback to><br />
<br />
The pyhton script snapper-rollback also doesn't work for me, asks for some cquota definition that is said to be damageable to performance on the root partition ;<br />
note that I nevertheless blindly imputed some commands to enable quota, rescan them and such. sources suse and oracle.<br />
<br />
Trying now in a VM to [https://www.youtube.com/watch?v=maIu1d2lAiI scrupulously follow this guide], will add [[btrfs before install notes]].<br />
<br />
==AND IF YOU FAIL...==<br />
<br />
'''Just re-do the whole install thing ; it is better to loose 20 minutes re-doing it than spending 20 days fixing it'''<br />
<br />
<br />
For reference, and in memoriam of failing to generate a correct one yesterday :<br />
<br />
# Static information about the filesystems.<br />
# See fstab(5) for details.<br />
<br />
# <file system> <dir> <type> <options> <dump> <pass><br />
# /dev/sda6<br />
UUID=38472571-3738-42e4-9561-47facca89d00 '''/''' btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0<br />
<br />
# /dev/sda7<br />
UUID=05d5954f-f948-4d21-9813-aa687a8d4cf4 '''/home''' btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0<br />
<br />
# /dev/sda2 LABEL=SYSTEM<br />
UUID=B651-2AC6 /boot'''/efi''' vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2<br />
<br />
# /dev/sda8<br />
UUID=3845f812-ba5d-4113-8dbe-635448119669 none '''swap''' defaults 0 0<br />
<br />
== Annoyances, gripes and actual issues==<br />
<br />
* Why is os-prober disabled in grub ; why is it not included by default?<br />
* And '''why''' aren't included small stuff like less, nano, grep, wget, rsync - or iwd and pacman-contrib ?!<br />
* Why can I not run Appimages ? They're supposed to work everywhere.<br />
* Why did my last ''genfstab'' fail with only /dev/sda6? Why where there duplicate of everything when I re-mounted the drives genfstab missed?<br />
<br />
'''Why is installing Arch still a 1h30 affair when I know the whole thing practically by heart? The pre-download, pre-pacstrap part was 11 minutes!!</div>Admin