The pulseaudio replacement is called pipewire-pulse. Pipewire itself is more than just a pulseaudio replacement, it's also used for screen-sharing and such which is why OBS and telegram need it.
Mirror 1 says the latest version of thunderbird is 91
Mirror 2 says the latest version of thunderbird is 78
Local database is synced to mirror 1
If you switch from mirror 1 to mirror 2 and ask pacman to install thunderbird, it will try to download thunderbird 91 from mirror 2 and will return a 404 error because mirror 2 only has version 78.
However, this scenario is very rare because a) mirrors are generally no further than a couple hours out of sync with each other and b) where they are out of sync, it's only ever a handful of packages at a time.
So until this happens, or something is corrupted, I would not bother with -yy. And if this scenerio does happen the best options are to either: wait until mirror 2 catches up or use -Syyuu because you don't want to install the old version of thunderbird only to realize it is incomparable with the newer versions of the libraries you have installed.
The pacstrap script runs pacman with certain flags. The default looks something like:
pacman -r /mnt -Sy --cachedir=/mnt/var/cache/pacman/pkg --noconfirm base linux linux-firmware
(Run head /var/log/pacman.log and see for yourself.)
The -r / --root tells pacman to treat /mnt as / so a package that has a file in /usr/bin now has that file placed in /mnt/usr/bin.
--cachedir tells pacman to save the downloaded package tarballs on /mnt rather than on the ArchISO.
And pacstrap does a couple other things like copying your mirror list to the new root, but a lot of the heavy lifting is done via pacman and its flags.
I tried getting Avahi to work, and got some success, but I couldn't get it set up 100% to my liking. I think I couldn't figure out how to get it enabled on-boot for my network device.
So then I tried systemd-resolved and that was a lot easier to set up for me.
chroot and by extension arch-chroot does not set environment variables the way that, for example, sudo does.
I would try either doing arch-chroot ... bash -c 'export HOME="/home/$username/" && ... (set the variable manually) or maybe use sudo -u $username in your script. Or if your script is only going to be used by that one user, you can put export HOME="/home/$username/" at the top of it.
I learned a lot by just looking around my own files.
For instance, take a .pkg.tar.zst file. That's a tarball so it can be extracted or you can use tar tf <filename> to list the file contents. Let's take a small package. You can do
cp /var/cache/pacman/pkg/zstd-1.4.9-1-x86_64.pkg.tar.zst /tmp
cd /tmp
tar tf zstd-1.4.9-1-x86_64.pkg.tar.zst
to copy zstd-1.4.9-1-x86_64.pkg.tar.zst to /tmp and list what files it contains. You'll see three files:
.BUILDINFO
.MTREE
.PKGINFO
followed by a bunch of stuff in /usr. Then you can use tar xf to extract the archive and check out what's inside those three dot-files.
Now let's find out something else. If you do pacman -Ql pacman you will see a list of files owned by the pacman package. Everything in /usr is static and if you do pacman -Ql pacman | grep -v /usr to get every other file, you will see this:
These are all the non-static files and directories owned by pacman. You might be wondering now: what about /etc/pacman.d/? Try using pacman -Qo to find out what's up about that.
So you may already have some familiarity with /etc/makepkg.conf and /etc/pacman.conf and /var/cache/pacman/. But what about /var/lib/pacman/? What's in there? Have a look for yourself.
Some helpful commands:
file <file> find out what kind of file something is.
zcat <gzipped file> unzips a file and outputs it to stdout (several files in /var/lib/pacman/ are gzipped). See also zless, zgrep, etc.
Either commit to using the package manager or install texlive manually. Do not create a Frankensteinian monster which is half official packages and half manual tinkering.
If you want to figure out which one you need to install to get a certain LaTeX package, use for example pacman -F bbm.sty. You will need to run pacman -Fy once if you have never used pacman -F at all.
Have you tried the built-in NetworkManager dhcp client? Dhcpcd used to be flat out incompatable with NetworkManager until a recent (today) fix https://bugs.archlinux.org/task/66231 Even so, dhcp clients tend to conflict with NetworkManager's built in one unless you set it up correctly.
Polybar is a simple task bar (well, status bar, it doesn't display a list of tasks but it can display the active program's name). It displays the time, the current workspace number, display brightness, volume, things like that.
It's not that simple to resize towards the front of the disk because you first have to shift everything 400 GB to the front. Think of it as a glass of water. If you were to extend the glass upwards there would be no issue, it's just a simple matter of saying "there's more space here now." But if you want to extend the bottom of the glass downwards, the water needs to move with it.
This operation can be done but the partition cannot be mounted at the time, meaning you have to be booted off a USB or something.
I'm not sure about moving the boot partition. You probably will need to reinstall/configure GRUB because I think when GRUB installs itself, it writes a bit of data in the partition table saying "here's where the bootloaders are stored." Now if you move the bootloader, you probably need to update what is written in the partition table. I don't know GRUB well enough to advise.
To "install it" probably 30 minutes (meaning partition disks, mkfs, pacstrap. To configure it properly, make sure it boots, set password, locale, reboot, realize you forgot to install networkmanager/iwd/whatever, have to reboot the USB, reboot the machine again, get logged in, connect to the internet, and finally finally install a desktop environment? Probably another hour or more.
There is an option called XferCommand in pacman.conf. By default it is /usr/bin/curl -L -C - -f -o %o %u. You can find out what all those options do by reading man curl and man pacman.conf.
Curl cannot handle rsync, so if you want to use rsync mirrors you would need to change the XferCommand to rsync + appropriate arguments and you would need to read the man page(s) to figure out what those appropriate arguments are.
The fish shell provides a nice colourful shell experience out-of-the-box. You might want to try that first. Zsh and Bash can be configured to be more colourful but they need to be configured.
If you press l or w during bootup, the bootloader will put you into Linux and Windows respectively. It might be worth setting a positive timeout if this is something you are doing frequently.
F11 sounds like you are using your motherboard's EFI menu rather than using systemd-boot. You should be able to see the systemd-boot menu by just holding the spacebar to cancel the timeout=0 (again, it might be worth setting the timeout to 1). If you use F11 to boot windows instead of systemd-boot then that becomes the new default bootloader to the motherboard. If you don't use F11 and instead use systemd-boot then the default entry will be persistent.
Does the RFC summary say "switch to x86 v3, dropping support for v2 and lower"? or does it say "provide a second Arch Linux port using -march=x86-64-v3 in the build flags."?
That sounds like a terrible solution.
The pulseaudio replacement is called
pipewire-pulse. Pipewire itself is more than just a pulseaudio replacement, it's also used for screen-sharing and such which is why OBS and telegram need it.Is thunderbird using gtk 4 now? Because if so you might need to copy the gtk-3.0 directory to gtk-4.0.
So you can have a situation like this:
Mirror 1 says the latest version of thunderbird is 91 Mirror 2 says the latest version of thunderbird is 78 Local database is synced to mirror 1
If you switch from mirror 1 to mirror 2 and ask pacman to install thunderbird, it will try to download thunderbird 91 from mirror 2 and will return a 404 error because mirror 2 only has version 78.
However, this scenario is very rare because a) mirrors are generally no further than a couple hours out of sync with each other and b) where they are out of sync, it's only ever a handful of packages at a time.
So until this happens, or something is corrupted, I would not bother with
-yy. And if this scenerio does happen the best options are to either: wait until mirror 2 catches up or use-Syyuubecause you don't want to install the old version of thunderbird only to realize it is incomparable with the newer versions of the libraries you have installed.pacman -S posix?Also https://wiki.archlinux.org/title/Zsh#pacman_-F_%22command_not_found%22_handler or similar
The pacstrap script runs pacman with certain flags. The default looks something like:
(Run
head /var/log/pacman.logand see for yourself.)The
-r / --roottells pacman to treat/mntas/so a package that has a file in/usr/binnow has that file placed in/mnt/usr/bin.--cachedirtells pacman to save the downloaded package tarballs on/mntrather than on the ArchISO.And pacstrap does a couple other things like copying your mirror list to the new root, but a lot of the heavy lifting is done via pacman and its flags.
https://git.archlinux.org/mkinitcpio.git/tree/
Arch generally keeps upstream defaults: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/main.conf#n242
I can't speak for them, but I guess the Bluez developers want Bluetooth devices powered off by default to save power on systems that don't use it.
Outlook not so good on this one, I'm afraid:
https://bugs.archlinux.org/task/66953
https://github.com/ValveSoftware/steam-for-linux/issues/7201
I tried getting Avahi to work, and got some success, but I couldn't get it set up 100% to my liking. I think I couldn't figure out how to get it enabled on-boot for my network device.
So then I tried systemd-resolved and that was a lot easier to set up for me.
Right, ok. But it should also be pointed out that
tar xfortar tfwill work for compressed archives so long as it isn't reading from stdin.No it doesn't
tar xfwill extract most tar archives (gz, bz2, zstd, xz) as well.chrootand by extensionarch-chrootdoes not set environment variables the way that, for example,sudodoes.I would try either doing
arch-chroot ... bash -c 'export HOME="/home/$username/" && ...(set the variable manually) or maybe usesudo -u $usernamein your script. Or if your script is only going to be used by that one user, you can putexport HOME="/home/$username/"at the top of it.I learned a lot by just looking around my own files.
For instance, take a
.pkg.tar.zstfile. That's a tarball so it can be extracted or you can usetar tf <filename>to list the file contents. Let's take a small package. You can doto copy
zstd-1.4.9-1-x86_64.pkg.tar.zstto/tmpand list what files it contains. You'll see three files:followed by a bunch of stuff in
/usr. Then you can usetar xfto extract the archive and check out what's inside those three dot-files.Now let's find out something else. If you do
pacman -Ql pacmanyou will see a list of files owned by the pacman package. Everything in/usris static and if you dopacman -Ql pacman | grep -v /usrto get every other file, you will see this:These are all the non-static files and directories owned by pacman. You might be wondering now: what about
/etc/pacman.d/? Try usingpacman -Qoto find out what's up about that.So you may already have some familiarity with
/etc/makepkg.confand/etc/pacman.confand/var/cache/pacman/. But what about/var/lib/pacman/? What's in there? Have a look for yourself.Some helpful commands:
file <file>find out what kind of file something is.zcat <gzipped file>unzips a file and outputs it to stdout (several files in/var/lib/pacman/are gzipped). See alsozless,zgrep, etc.Either commit to using the package manager or install texlive manually. Do not create a Frankensteinian monster which is half official packages and half manual tinkering.
There are several texlive packages:
If you want to figure out which one you need to install to get a certain LaTeX package, use for example
pacman -F bbm.sty. You will need to runpacman -Fyonce if you have never usedpacman -Fat all.Have you tried the built-in NetworkManager dhcp client? Dhcpcd used to be flat out incompatable with NetworkManager until a recent (today) fix https://bugs.archlinux.org/task/66231 Even so, dhcp clients tend to conflict with NetworkManager's built in one unless you set it up correctly.
https://wiki.archlinux.org/title/NetworkManager#DHCP_client
I rewrote mine by hand replacing all those options by
defaultsPolybar is a simple task bar (well, status bar, it doesn't display a list of tasks but it can display the active program's name). It displays the time, the current workspace number, display brightness, volume, things like that.
It's not that simple to resize towards the front of the disk because you first have to shift everything 400 GB to the front. Think of it as a glass of water. If you were to extend the glass upwards there would be no issue, it's just a simple matter of saying "there's more space here now." But if you want to extend the bottom of the glass downwards, the water needs to move with it.
This operation can be done but the partition cannot be mounted at the time, meaning you have to be booted off a USB or something.
I'm not sure about moving the boot partition. You probably will need to reinstall/configure GRUB because I think when GRUB installs itself, it writes a bit of data in the partition table saying "here's where the bootloaders are stored." Now if you move the bootloader, you probably need to update what is written in the partition table. I don't know GRUB well enough to advise.
To "install it" probably 30 minutes (meaning partition disks, mkfs, pacstrap. To configure it properly, make sure it boots, set password, locale, reboot, realize you forgot to install networkmanager/iwd/whatever, have to reboot the USB, reboot the machine again, get logged in, connect to the internet, and finally finally install a desktop environment? Probably another hour or more.
There is an option called
XferCommandin pacman.conf. By default it is/usr/bin/curl -L -C - -f -o %o %u. You can find out what all those options do by readingman curlandman pacman.conf.Curl cannot handle rsync, so if you want to use rsync mirrors you would need to change the XferCommand to rsync + appropriate arguments and you would need to read the man page(s) to figure out what those appropriate arguments are.
The fish shell provides a nice colourful shell experience out-of-the-box. You might want to try that first. Zsh and Bash can be configured to be more colourful but they need to be configured.
If you press
lorwduring bootup, the bootloader will put you into Linux and Windows respectively. It might be worth setting a positive timeout if this is something you are doing frequently.F11 sounds like you are using your motherboard's EFI menu rather than using systemd-boot. You should be able to see the systemd-boot menu by just holding the spacebar to cancel the
timeout=0(again, it might be worth setting the timeout to 1). If you use F11 to boot windows instead of systemd-boot then that becomes the new default bootloader to the motherboard. If you don't use F11 and instead use systemd-boot then the default entry will be persistent.https://man.archlinux.org/man/systemd-boot.7#KEY_BINDINGS
Does the RFC summary say "switch to x86 v3, dropping support for v2 and lower"? or does it say "provide a second Arch Linux port using -march=x86-64-v3 in the build flags."?
It's the ones that say "supported." I don't know what "searched" means.
https://gitlab.archlinux.org/archlinux/rfcs/-/merge_requests/2/diffs#6c1c77b31944bc81c853d88a810e7fe7f4e31994_0_48