XMonad, because the mental model for how workspaces and screens work makes so much more sense to me than what i3 or awesome does. I have 22 virtual desktops mapped onto 5 virtual screens mapped onto 4 physical screens (one of the physical screens is ultrawide, and so I split it into two virtual screens).
sox is primarily for converting audio files from one format to another? It says it also does filters (like adding echo?) but that seems like a pretty niche use case. I can already convert between audio formats with ffmpeg. Can any fans of sox give some more usecases for why I might want to check out sox?
Sometimes I do have computers where I would want to install an OS and use it and maybe put it away and use it later whenever I want to.
Sure, and that's fully within your rights. The point is, on such computers, you should probably not use Archlinux.
I use Archlinux on the computers I use every day. On computers I use less than once a month, I use Ubuntu instead.
You're, of course, free to install Archlinux on computers you only use once every couple of years, but we're trying to provide you with practical advice here, and the relevant practical advice is that this will probably cause you a lot of pain, and you'd be better off with a different distro for that kind of usage pattern.
I update about once a week (not a strict schedule, I might miss a weak here and there), and I don't really have any GPG issues that require manual intervention. Like sometimes pacman will prompt me "Update GPG keys?" and I'll respond with yes, and everything will work out fine.
Not sure if or why my experience is so different from /u/moviuro 's.
Turns out the issue was with a wrapper script I wrote.
I've set up some systemd-slice https://www.freedesktop.org/software/systemd/man/systemd.slice.html to limit the memory usage of individual Brave processes and I wrote a wrapper script in Ruby that would try to detect whether an existing instance of Brave was running, and either redirect URLs to the existing instance, or launch a new instance in the slice:
#!/usr/bin/env ruby
BRAVE_LOCATION="/usr/bin/brave"
if BRAVE_LOCATION.empty? # TODO: Check if file exists and is executable.
puts "Could not find brave."
exit 1
end
system('pgrep -x brave > /dev/null')
if $?.exitstatus == 0
puts "Found existing brave instance; redirecting request to that instance..."
Process.detach(fork do
[$stdout, $stderr].each { |s|
s.reopen(File.new('/dev/null', 'w'))
}
exec(BRAVE_LOCATION, *ARGV)
end)
else
puts "Starting new instance of brave in web-browsers.slice cgroup..."
Process.detach(fork do
[$stdout, $stderr].each { |s|
s.reopen(File.new('/dev/null', 'w'))
}
exec("systemd-run", "--user", "--slice=web-browsers.slice", "--working-directory=#{Dir.getwd}", BRAVE_LOCATION, *ARGV)
end)
end
This is likely what was returning the error code 141. When I rewrote the script in bash, I consistently get an exit code of 0 and when I ctrl-click on links in Obsidian, the links correctly open in Brave.
#!/usr/bin/env bash
BRAVE_LOCATION="/usr/bin/brave"
if [ ! -f "$BRAVE_LOCATION" ]; then
echo "Could not find brave at $BRAVE_LOCATION"
exit 1
fi
pgrep -x brave > /dev/null
if [ $? -eq 0 ]; then
echo "Found existing brave instance; redirecting request to that instance..."
exec $BRAVE_LOCATION $@
else
echo "Starting new instance of brave in web-browsers.slice cgroup..."
WORKING_DIR=$(pwd)
exec systemd-run --user --slice=web-browsers.slice --working-directory="$WORKING_DIR" $BRAVE_LOCATION $@
fi
I traced it to something about the behavior of Brave itself.
In the source code for xdg-open, there's a function search_desktop_file which searches through all the .desktop files, and tries to execute the relevant one
Once xdg-open finds the right desktop file, it does this:
env "$command" "$@"
if [ $? -eq 0 ]; then
exit_success
fi
Where I've confirmed that $command is brave and $@ is the URL to open.
When I run xdg-open https://example.com/ from the command line, the exit code is 0, and so xdg-open is satisfied and stops here, performing the exit_success function.
But when I click on a link in Obsidian, the exit code is 141, and so xdg-open doesn't exit, and proceeds to execute some fallback logic, which eventually leads to running Firefox.
I have no idea why Brave is returning 0 in one case and 141 in the other case, but either way, the problem seems to be with Brave, and not with xdg-open.
the Person making the Tutorial Puts their own subjective opinions in, and you're Most certainly going to end Up with a broken system.
To be fair, the wiki is also written by humans, who also have subjective opinions about what information to emphasize, and how to present it.
For example, at the time of writing, the install guide's "Install essential packages" gives the command pacstrap -K /mnt base linux linux-firmware. They subjectively decided not to include a dhcp client in there, e.g. pacstrap -K /mnt base linux linux-firmware dhcpcd, even though the vast, vast, vast majority of users will need a dhcp client installed to make use of their system (the wiki even admits this when they say "other packages may be necessary for a fully functional base system").
I understand why they omitted this package, but I think they made the wrong choice. Still, my primary point is that subjectivity is unavoidable here.
No idea why I have a .desktop entry in both my ~/.local/share/applications override and in the /usr/share directory. I've now deleted the entry in ~/.local/share/applications but that hasn't seemed to fix the issue either.
I'm assuming you installed by booting from a USB key with the install media flashed onto it.
If you reboot into the USB key's environment again, does the internet work there? For example, are you able to ping www.google.com in that environment?
One key insight that makes understanding the Arch process easier is that the install environment is an Arch environment too, but it's distinct from the Arch environment that will eventually become your permanent one. The install environment may have certain drivers and network programs installed in it, and if you want those programs to also exist in your permanent environment, you need to install them there as well.
For example, the installation environment has dhcpcd and systemd-networkd installed in it, so if you may want to install those into your permanent environment as well, assuming the internet works when you're in the installation environment.
For those suggesting rEFInd, how do I completely remove GRUB from my system and replace it with rEFInd without having to reinstall? Is this possible?
Yes it's possible, because the mechanism through which GRUB, rEFInd, etc. work only involves having files on the EFI partition. The partitions where the OS's are installed are not involved (except for the fact that the programs you use to produce the correct files are probably going to live on the OS partitions).
Do I have to reformat and install both again or can I wipe just my Arch drive and install as normal?
You can wipe just your arch drive. Not sure what you mean by "install as normal" -- the arch install is very manual, so there's an expectation that you understand what each step is doing, and whether it makes sense for you to perform that step. For example, if you would normally completely wipe out the harddrive, you should not do that step since it would destroy your Windows partition.
Note that depending on how you wipe your arch drive, some (but not necessarily all) of its identifiers might change. And then, depending on how your GRUB files refer to partitions, you may or may not need to update those files.
I installed GRUB as my bootloader and plan on keeping it as my bootloader on the new install. Will GRUB replace/overwrite the GRUB files that exist on the EFI partition or do I need to remove them first?
GRUB will not replace/overwrite the files on the EFI partition unless you instruct GRUB to do that. That's part of what I mean by the Arch install process being very manual, and your needing to understand what each step does and why it's doing it.
Why do so many posts asking about the number of distros exists when 99% of them are almost identical rephrasings that feel like they haven't searched for previous answers to this question?
I guess you made yet another post like this because:
You weren't happy with the existing posts.
You didn't do an extensive search the existing posts to see if somebody already made one that suits your needs.
It's pretty easy to make a new post, so why not? It's fun.
You don't like the idea of somebody stopping you from making your own post, even if similar posts already exist.
You think making a new post like this is harmless. If people don't like your post, those people can just ignore it.
The idea that your post might be "cluttering up" Reddit and preventing people from finding quality posts is ridiculous. There's a ranking system, and a search feature, so people can easily find what they want.
Anyway, here are the answers I can think of why someone might make yet another distro:
They weren't happy with the existing distros.
They didn't do an extensive search the existing distros to see if somebody already made one that suits your needs.
It's pretty easy to make a new distro, so why not? It's fun.
They don't like the idea of somebody stopping them from making their own distro, even if similar distros already exist.
They think making a new distro like this is harmless. If people don't like their distro, those people can just ignore it.
The idea that their distro might be "cluttering up" Distrowatch and preventing people from finding quality distros is ridiculous. There's a ranking system, and a search feature, so people can easily find what they want.
Why waste time learning non-posix syntax? Zsh can be made to function like it / better.
Why waste time learning how to configure Zsh to function like Fish? If your goal is a shell that behaves like Fish, then Fish is indisputably the best shell for that particular use case.
In the near future, seeing video of the gameplay might be enough for an LLM to reimplement it from scratch.
XMonad, because the mental model for how workspaces and screens work makes so much more sense to me than what i3 or awesome does. I have 22 virtual desktops mapped onto 5 virtual screens mapped onto 4 physical screens (one of the physical screens is ultrawide, and so I split it into two virtual screens).
I find the manual (by which I mean the archwiki) to be informative and usually solves most of the issues I encounter.
It's been 7 hours, so here's a friendly reminder.
soxis primarily for converting audio files from one format to another? It says it also does filters (like adding echo?) but that seems like a pretty niche use case. I can already convert between audio formats withffmpeg. Can any fans ofsoxgive some more usecases for why I might want to check outsox?I use Etterna (AUR 6 votes) as an alternative to Stepmania (AUR 27 votes).
Out of curiosity, why wouldn't you want to chroot in this situation? I thought the repair would work either way.
Sure, and that's fully within your rights. The point is, on such computers, you should probably not use Archlinux.
I use Archlinux on the computers I use every day. On computers I use less than once a month, I use Ubuntu instead.
You're, of course, free to install Archlinux on computers you only use once every couple of years, but we're trying to provide you with practical advice here, and the relevant practical advice is that this will probably cause you a lot of pain, and you'd be better off with a different distro for that kind of usage pattern.
I update about once a week (not a strict schedule, I might miss a weak here and there), and I don't really have any GPG issues that require manual intervention. Like sometimes
pacmanwill prompt me "Update GPG keys?" and I'll respond with yes, and everything will work out fine.Not sure if or why my experience is so different from /u/moviuro 's.
Turns out the issue was with a wrapper script I wrote.
I've set up some systemd-slice https://www.freedesktop.org/software/systemd/man/systemd.slice.html to limit the memory usage of individual Brave processes and I wrote a wrapper script in Ruby that would try to detect whether an existing instance of Brave was running, and either redirect URLs to the existing instance, or launch a new instance in the slice:
This is likely what was returning the error code 141. When I rewrote the script in bash, I consistently get an exit code of 0 and when I ctrl-click on links in Obsidian, the links correctly open in Brave.
I traced it to something about the behavior of Brave itself.
In the source code for xdg-open, there's a function
search_desktop_filewhich searches through all the.desktopfiles, and tries to execute the relevant onehttps://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-open.in?id=8ae02631a9806da11b34cd6b274af02d28aee5da#n268
Once xdg-open finds the right desktop file, it does this:
Where I've confirmed that
$commandisbraveand$@is the URL to open.When I run
xdg-open https://example.com/from the command line, the exit code is 0, and so xdg-open is satisfied and stops here, performing theexit_successfunction.But when I click on a link in Obsidian, the exit code is 141, and so xdg-open doesn't exit, and proceeds to execute some fallback logic, which eventually leads to running Firefox.
I have no idea why Brave is returning 0 in one case and 141 in the other case, but either way, the problem seems to be with Brave, and not with xdg-open.
To be fair, the wiki is also written by humans, who also have subjective opinions about what information to emphasize, and how to present it.
For example, at the time of writing, the install guide's "Install essential packages" gives the command
pacstrap -K /mnt base linux linux-firmware. They subjectively decided not to include a dhcp client in there, e.g.pacstrap -K /mnt base linux linux-firmware dhcpcd, even though the vast, vast, vast majority of users will need a dhcp client installed to make use of their system (the wiki even admits this when they say "other packages may be necessary for a fully functional base system").I understand why they omitted this package, but I think they made the wrong choice. Still, my primary point is that subjectivity is unavoidable here.
I don't have
locateinstalled, so I usedfindinstead; not sure if it's equivalent to what you're testing:No idea why I have a
.desktopentry in both my~/.local/share/applicationsoverride and in the/usr/sharedirectory. I've now deleted the entry in~/.local/share/applicationsbut that hasn't seemed to fix the issue either.This is the output I get:
I wrote up an explanation at https://nebu.substack.com/p/how-to-fix-no-internet-after-arch?sd=pf
I'm assuming you installed by booting from a USB key with the install media flashed onto it.
If you reboot into the USB key's environment again, does the internet work there? For example, are you able to
ping www.google.comin that environment?One key insight that makes understanding the Arch process easier is that the install environment is an Arch environment too, but it's distinct from the Arch environment that will eventually become your permanent one. The install environment may have certain drivers and network programs installed in it, and if you want those programs to also exist in your permanent environment, you need to install them there as well.
For example, the installation environment has
dhcpcdandsystemd-networkdinstalled in it, so if you may want to install those into your permanent environment as well, assuming the internet works when you're in the installation environment.Are you sure?
iwddoesn't seem to be installed on my system, and I don't think I ever uninstalled it.Thank you!
Based on https://wiki.archlinux.org/title/Arch_boot_process#Feature_comparison it looks like rEFInd does not support booting from ext4 with encryption, whereas GRUB doesl.
Yes it's possible, because the mechanism through which GRUB, rEFInd, etc. work only involves having files on the EFI partition. The partitions where the OS's are installed are not involved (except for the fact that the programs you use to produce the correct files are probably going to live on the OS partitions).
You can wipe just your arch drive. Not sure what you mean by "install as normal" -- the arch install is very manual, so there's an expectation that you understand what each step is doing, and whether it makes sense for you to perform that step. For example, if you would normally completely wipe out the harddrive, you should not do that step since it would destroy your Windows partition.
Note that depending on how you wipe your arch drive, some (but not necessarily all) of its identifiers might change. And then, depending on how your GRUB files refer to partitions, you may or may not need to update those files.
GRUB will not replace/overwrite the files on the EFI partition unless you instruct GRUB to do that. That's part of what I mean by the Arch install process being very manual, and your needing to understand what each step does and why it's doing it.
Do you think Zsh is better at acting like Fish than Fish? If so, what deviations from Fish make it more like Fish?
Why do so many posts asking about the number of distros exists when 99% of them are almost identical rephrasings that feel like they haven't searched for previous answers to this question?
I guess you made yet another post like this because:
Anyway, here are the answers I can think of why someone might make yet another distro:
Why waste time learning how to configure Zsh to function like Fish? If your goal is a shell that behaves like Fish, then Fish is indisputably the best shell for that particular use case.
yum