Reminder to remember to boot from the fallback initramfs on the new PC the first time, and regenerate it once you've booted! The regular initramfs has only the kernel modules necessary for your old hardware, which aren't necessarily the same as necessary for your new hardware. (Messed this up before, spent a few hours trying to figure out why USB wouldn't work)
I've been using Rust for a couple years at this point, and I've been using the official rustup package on multiple machines with no troubles at all. Here's my two cents on the pros and cons of various installation methods:
Official rustc package: (I think that's what it's called, on mobile rn but I'll check later) Installs /usr/bin/{rustc,cargo,...}, /usr/lib/rust/... from pacman
Pros:
Always stable
System-wide installation with no extra steps needed
Cons:
If/when you want other compiler versions, you can't get them
It's more difficult to get other Rust tools, like rustc-src needed for rust-analyzer, and cross-compiling stdlib.
I really only recommend this if you don't actually program Rust on that machine, and you just need an easy installation to be able to compile an AUR package or something.
Official rustup package: Installs /usr/bin/rustup, and installs /usr/bin/{rustc,clippy,...} as symlinks to rustup. You use rustup to install one or more toolchains, targets and all that fun stuff in ~/.rustup, and when you call rustup via a symlink it figures out the right toolchain and calls it.
Pros:
Great toolchain management from rustup
Most people in the Rust community expect you're using Rustup, so there's great support for it
The Arch maintainers are fantastic, so any updates to rustup are super prompt through pacman
Cons:
If you have multiple users on your system that each need Rust, you'll have multiple $HOME/.rustups
You have to rustup update since it's not controlled by pacman
Curl a bash script: Basically the same as the official rustup package but you're installing it by curling a bash script.
Pros: Same as rustup package, except it's not managed by pacman
Cons: same as rustup package, except you're curling a bash script
Honestly I would never use this on an Arch system, just like I would never install any other software that's in the official repos by curl | bash. Yes, it's the official Rust installation method, but I've never had any issues with the rustup package.
Can you arecord -D sysdefault? That might help determine if it's a pulseaudio problem or an alsa problem.
I also want to thank you for such a good question. You described your problem and attempted solutions precisely and concisely, and provided all the relevant info and command output. It's the gold standard that I wish other askers would follow.
Reminder to remember to boot from the fallback initramfs on the new PC the first time, and regenerate it once you've booted! The regular initramfs has only the kernel modules necessary for your old hardware, which aren't necessarily the same as necessary for your new hardware. (Messed this up before, spent a few hours trying to figure out why USB wouldn't work)
I've been using Rust for a couple years at this point, and I've been using the official
rustuppackage on multiple machines with no troubles at all. Here's my two cents on the pros and cons of various installation methods:Official
rustcpackage: (I think that's what it's called, on mobile rn but I'll check later) Installs/usr/bin/{rustc,cargo,...},/usr/lib/rust/...from pacmanPros:
Cons:
rustc-srcneeded forrust-analyzer, and cross-compiling stdlib.I really only recommend this if you don't actually program Rust on that machine, and you just need an easy installation to be able to compile an AUR package or something.
Official
rustuppackage: Installs/usr/bin/rustup, and installs/usr/bin/{rustc,clippy,...}as symlinks to rustup. You use rustup to install one or more toolchains, targets and all that fun stuff in~/.rustup, and when you call rustup via a symlink it figures out the right toolchain and calls it.Pros:
rustuprustupare super prompt through pacmanCons:
$HOME/.rustupsrustup updatesince it's not controlled by pacmanCurl a bash script: Basically the same as the official
rustuppackage but you're installing it bycurling a bash script.Pros: Same as rustup package, except it's not managed by pacman
Cons: same as rustup package, except you're curling a bash script
Honestly I would never use this on an Arch system, just like I would never install any other software that's in the official repos by
curl | bash. Yes, it's the official Rust installation method, but I've never had any issues with therustuppackage.Edit: autocorrect thinks the directory is /use
Here's a great comment explaining the switch from someone who maintained init scripts at the time.
Can you
arecord -D sysdefault? That might help determine if it's a pulseaudio problem or an alsa problem.I also want to thank you for such a good question. You described your problem and attempted solutions precisely and concisely, and provided all the relevant info and command output. It's the gold standard that I wish other askers would follow.
Thanks for that kernel of wisdom, it's GNU to me!
(Also
s/herd/hurd/g?)