it has a philosophy of having things disabled by default
That is not really true. Yes for services, but that is because you normally want to configure them before starting them. But for application config it's philosophy is to be as close to upstream as possible. So if upstream leaves something turned off then Arch will, if something upstream defaults to on them Arch will leave it on. Why upstream projects leave things off by default is another matter. I wish more things would use sane default for things.
Not fully, not alone. chrooting is not that secure a sandbox, there are known ways to break out of it without too much effort. There are better sandboxing technologies out there now with the advent of cgroups - which docker, flatpack and I believe snaps use under the hood. These are also not perfect, but much better than only sandboxing the filesystem which is all chrooting really does (it does not sandbox networking, or processes, or anything else).
fstrim is only useful on SSDs, which the cells will degrade in write performance over time and need to be reset periodically. It should have no effect on a HDD.
You will need to complete that installation - chroot into the system from a liveusb and try a pacman -Su - it should reuse the packages it downloaded before (note no -y as that will want to refresh teh pacman database which requires internet access). You may need to delete the pacman lock file and you will likely need to tell it to overwrite various files that would have been partially updated. You may or may not need to reinstall various packages - which to get a minimally bootable system would be to follow the install instructions again for core things required.
This is for user files and programs - stuff the user wants to use and not have the system admin have to manage.
/usr/local/
This is for locally built and managed system packages - things that admin wants globally installed or all users to have access to but that are not managed by the system package manager.
/usr/
Is for system files managed by the package manager - anything you install with apt/dnf/yum/pacman etc for the most part ends up here. At least anything that follows the standard unix convensions for where it stores stuff.
/opt/
Is for things that don't follow the unix filesystem conversions and so would make a mess of /usr/ Things get put in their own directory here so they don't mess with the files of other things. Both things managed by your package manger and manually manged software can be in here - if it sort of a free for all location. Not many thing the packagemanager manages end up here though.
But for a web server you might also be interested in
/srv/
For files that are served by things like fileserver, webserver (so things like html, css, php etc).
Also, personally these days I would just containerize your webservice and only run containers on your host system. I find this gives you much nicer mechanisms for building, distributing and running your server applications. Then it really does not matter that much where inside the container you install your app to.
Also, I've seen some people creating separate users just for one application. If this is a common practice, in what kind of situations should I use this in?
If the application is a long lived service then yes, it is common practice to run it as a separate user so it does not have access to your whole system. But only the files it needs.
These days quite a lot of Windows games just work on Linux with proton - but not all. Especially those with anti cheat in them. Check protondb for each game you care about to see if it will work well or not.
Also - you can always try it and see. There is nothing stopping you from going back to windows if you find something you cannot do on it.
ext4 actually has other mechanisms to protect against this - notably reserving part of the disk so that only root can write to it once it gets so full. Typically I think that is 5% of the disk?
But if you are monitoring your disk usage then it is also not a problem - so the biggest issue is for people that just want to use their system for whatever and not have to worry about micro-managing partition sizes. There a bigger combined volume with some root only reserved space is IMO much better.
Yup, same. See soo many people complain about running out of space on their root partition or their home partition because they have not been able to correctly size them - for what benefit? In case they need to reinstall? (Where you can just opt to not formatting the drive and keep any files you need).
To be honest I don't see that many people using any portable gaming device out in the wild. I don't really think it is something you will see people just walking down the street using. Or even going to a cafe shop...
I have heard from quite a few people that they actually prefer it to their computer as it lets the lounge on their couch to play games as they don't like sitting at their desk all day at work to come home to sit at their desk some more.
And I suspect that it is possibly also popular during longer travel sessions (train or planes etc) and while you are away from your home for extended periods of time.
I would also guess you might see more around uni or similar places where people need to hang out with lots of time to kill.
But I think most places people go to they are not going to bring it to or at least be using it if they do.
The Debian family is the clear winner of this with PC desktops
Is it though? For instance the steam hardware survey shows Arch Linux, then Ubuntu, then Manjaro then Mint. Which is one completely biased bit of information that paints a completely different picture.
All of these methods of counting are flawed but all paint a completely different picture. So we just don't know the answer to this question.
steamdeck is not a PC desktop
That is highly debatable. You can easily use it as desktop system - and there are a number of people that do. But it is something that a lot of people have now used directly.
Most used GNU/Linux OS on PC: probably Ubuntu and then Linux Mint, then either Debian or Fedora, I'm not sure.
These are just complete guesses. There are a lot of workstation computers out there running all sorts of different Linux distros - there are whole companies, universities, schools or even cities out there running thousands of workstations based on all sorts of distros (more than a few were based on gentoo). There is also the steamdeck (which is basically a computer) that is running one based on arch - that alone is millions.
Most used GNU/Linux OS for servers: Debian ?
Again, a complete guess. There are a lot of RHEL and RHEL based servers out there. AWSs own OS is RHEL based and a huge share of AWS instances will be running that. But then in containers there is a huge amount of alpine being run.
This question is I think impossible to tell for sure as there is nothing that can track that information accurately. It is also not a very well defined question. Do you mean number of installs? Number of hours running? Number of times someone interacts with it? Number of people that interact with it? There are lots of ways to count this and each will give a different answer, if you could even count them at all.
However you might be surprised by the answer to some as some OSs are on a lot of things that you don't even think about. For instance MINIX is an OS that runs on every Intel CPU, alongside your normal OS. There are a lot of embedded OSs and servers out there as well.
Has the partition actually been changed at all? Or did windows just remove the efi boot menu option? EFI applications/bootloaders have an entry stored in the UEFI firmware and most often that order is changed or entries are dropped from it. Check it to see if it is actually the case. Unlike MBR systems you can have as many bootloaders as you want on an EFI system and I have never seen one delete the actual files files for another.
You can generlly create a new entry in the UEFI setup screen, or by using efibootmgr on a live USB or just by reinstalling the bootloader if you really want to.
Arch Linux is a DIY, KISS and rolling release distro. Which are the main reasons people like it so much. It does not impose much on you and lets you pick basically everything you want to install yourself (which is not as daunting as it sounds).
But it also follows upstream packages very closely and does not add lots of extra fluff in the way. Its design tends to be quite simple and there is not as much that can go wrong in it compared to other distros. And if something does then it is often easier to fix (both because you will have more familiar with stuff as you had to pick what you installed and because there are fewer things to get in the way).
For instance, ubuntu has a lot of wrapper and helper scripts that are meant to make it easier to do things - but also complicate it quite a bit. Things like the update-alternatives mean it is not just simple binaries in the /usr/bin location for everything but instead it has a layer of symlinks as well. Arch does not have these things which tends to mean less layers you need to understand when something is not working as expected.
It is also a rolling release distro so packages are generally very up to date with the latest upstream releases. No 6month+ old packages that only contain security fixes. Yet despite this it does not often suffer from instability or breakages from upgrades.
People also like the AUR (arch user repository) a third party source repo that anyone can upload packages to. So even if the arch main repos do not contain something you want (and I find they contain far more things that I want to use than Ubuntu and other distros do - despite have fewer overall packages) you will almost certainly find it in the AUR. And if not creating packages for Arch I find to be way simpler than trying to create a DEB or RPM.
And also it has one of the best Wikis around - that is even helpful for other distros as well with minor modifications to the commands (like changing the package manager and packages you need to install).
However the official Arch Linux only has support for x86_64 architecture - no ARM. Though there is a third party archlinuxarm fork of it that rebuilds all the packages for ARM.
But despite all that if you main use is a server OS I would not recommend it. Generally for that you want something that does not update as often nor something that any update can include some breaking change for libraries you might be using.
And if you are just using containers on a server I would instead look at some of the container focused distros like coreos instead.
Old linux package mangers were way ahead of their time and for the longest time were far a far better system that when the other OSs had to offer. But like most first adopters they have been stuck on this first implementation for far too long and others have managed to innovate in this space to far surpass what the original design had to offer.
I don't think traditional package managers are fit for purpose on a desktop system any more. And have a large number of drawbacks for such a environment.
I think the android/IOS models are a far better approach to the problem (though not specifically their implementations). More so the ability to have a single packaging format for all devices and a much more robust permissions model. You can without root install a package and have it not have full access to all your files and documents or other applications data. This is both far nicer experience and far better for security.
Now, they had a clean slate to start with which desktop Linux does not. But I do think flatpack and similar tools are the first steps towards this. We are also seeing far more immutable OSs around more separation between system and user applications in general. Which are all moving us towards a more mobile like experience.
Your original argument read that AppImages are bad because developers are using it to create things with bad build systems. Which IMO is a bad argument. They would do this with or without AppImages, that is just the tech they have chosen to use for their bad practices. It is like arguing that water is bad because people use it to drown others.
AppImage does encourage using old, opaque toolchains, especially if their own AppImageKit is taken as an example of how best to build an AppImage. If AppImages are built with too new libraries, they might not work on older distros. There are now cases of projects shipping multiple AppImages because of this (eg, Cura).
I don't think any of that is AppImages fault though. It is developers that don't care creating things that are hard to build then using AppImages as a crutch for their project. This was a problem before AppImages existed.
It might have other issues, but at least stick to those and don't blame the tool for people using it as a crutch for other problems.
It wasn't initially designed to be anything other than a replacement init system
It was designed to replace init with something more that just a init system. Even in his initial blog post he describes largely what the core systemd service does today, managing process, filesystems socket debus events etc. All things the init system never did.
But that is all the core service really does. The other optional components that the systemd project now includes were added over time as they realized how much of the system could benefit from a more holistic approach. But these are still optional services and complaining that systemd include multiple optional components is a bit facetious when coreutils does the same thing. Lots of separate components that work well together.
The Unix way is that a program can work by itself, but is capable of using the output from another program, try doing that with a systemd component.
This works well for commands you execute in a shell. But does not work for daemon services that are always running (or even that need to be started on demand like systemd lets you do). Stringing the whole system together with a bunch of bash scripts is one thing systemd wanted to break - as they are slow and brittle.
And there are plenty of old components that you cannot pipe the output into other programs - even the init process itself, no pipeing that. Cron you cannot pipe to other programs either. Same with network managers or anything else that is designed to be a service instead of just a cli tool.
But systemd does still offer a lot of cli utilities for controlling its daemons that you can pipe to other programs.
So the only real thing here is that systemd has brought together a bunch of daemons under the same broad project to better integrate them together. You can still optionally use them or use other one.
That sounds more like a gnome or your chosen distro issue than a flatpak one. They chose to use it. I have not yet used a single flatpak package on my main systems. Though i also don't really see why having them would be an issue either.
There is no need to go down personal attacks here.
It is okay as an init system (which is what it was supposed to be)
It is not just an init system though. It was designed from the beginning to be a system event manager that includes the init system. And IMO that is a good thing as it is far more capable that the old init systems it replaced. The fact that every major distro has opted for it shows that it is doing a lot of things right. Yes it has problems - all software has problems, especially ones that are trying to solve complex issues.
luckily you can turn off most of these extraneous services.
Which just shows that it is multiple components working together, each responsible for different things. How is that not following the unix way?
You seem to have a lot of hatred for it - but why? Yes it has some issues, but do does all software. But are these issues enough to warrant such hatred for it rather than working to fix and solve the issues it does have? Or at least putting your effort into something that can actually rival it? These attacks on systemd are not going to change anyones mind - proving an alternative or working towards fixing issues it has might actually change something. But they are both a lot more work.
"One thing" is incredibly subjective. And IMO useless on its own. The bigger benefit to the unix philosophy was that services compose well together. And honesty, UNIX is dead. With the three big OSs, Windows is not UNIX, and neither is Linux. MacOS is the only thing that is UNIX but what makes it UNIX is just a shadow of what the OS has become. IMO systemd is a system event manager - which is one, complex, thing. And it does that job well. Yes it is far more complex that just an init system but for the better, it can handle far more complex cases that old init systems could not as it was never designed for the number of services nor the dynamic nature of modern hardware.
But still, I don't understand how flatpack has violated that principal at all - it is a package manager that manages packages in a distro agnostic way. IMO that is the one thing that it does. You only complain about dependencies - but every package manager has to deal with them. Why is apt or dnf or pacman not a problem for you if it has to deal with dependencies? How does any of that violate the one thing principal?
That is not really true. Yes for services, but that is because you normally want to configure them before starting them. But for application config it's philosophy is to be as close to upstream as possible. So if upstream leaves something turned off then Arch will, if something upstream defaults to on them Arch will leave it on. Why upstream projects leave things off by default is another matter. I wish more things would use sane default for things.
Not fully, not alone. chrooting is not that secure a sandbox, there are known ways to break out of it without too much effort. There are better sandboxing technologies out there now with the advent of cgroups - which docker, flatpack and I believe snaps use under the hood. These are also not perfect, but much better than only sandboxing the filesystem which is all chrooting really does (it does not sandbox networking, or processes, or anything else).
fstrim is only useful on SSDs, which the cells will degrade in write performance over time and need to be reset periodically. It should have no effect on a HDD.
You will need to complete that installation - chroot into the system from a liveusb and try a
pacman -Su- it should reuse the packages it downloaded before (note no-yas that will want to refresh teh pacman database which requires internet access). You may need to delete the pacman lock file and you will likely need to tell it to overwrite various files that would have been partially updated. You may or may not need to reinstall various packages - which to get a minimally bootable system would be to follow the install instructions again for core things required.This is for user files and programs - stuff the user wants to use and not have the system admin have to manage.
This is for locally built and managed system packages - things that admin wants globally installed or all users to have access to but that are not managed by the system package manager.
Is for system files managed by the package manager - anything you install with apt/dnf/yum/pacman etc for the most part ends up here. At least anything that follows the standard unix convensions for where it stores stuff.
Is for things that don't follow the unix filesystem conversions and so would make a mess of /usr/ Things get put in their own directory here so they don't mess with the files of other things. Both things managed by your package manger and manually manged software can be in here - if it sort of a free for all location. Not many thing the packagemanager manages end up here though.
But for a web server you might also be interested in
For files that are served by things like fileserver, webserver (so things like html, css, php etc).
https://web.mit.edu/rhel-doc/5/RHEL-5-manual/Deployment_Guide-en-US/s1-filesystem-fhs.html describes what all the folders are for in more detail. And https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/ talks about why some files are now just symlinks to places in /usr/.
Also, personally these days I would just containerize your webservice and only run containers on your host system. I find this gives you much nicer mechanisms for building, distributing and running your server applications. Then it really does not matter that much where inside the container you install your app to.
If the application is a long lived service then yes, it is common practice to run it as a separate user so it does not have access to your whole system. But only the files it needs.
Killing Floor 2, Freedom Planet 2, DOOM Eternal are all gold rate on protondb - so should mostly just work.
These days quite a lot of Windows games just work on Linux with proton - but not all. Especially those with anti cheat in them. Check protondb for each game you care about to see if it will work well or not.
Also - you can always try it and see. There is nothing stopping you from going back to windows if you find something you cannot do on it.
ext4 actually has other mechanisms to protect against this - notably reserving part of the disk so that only root can write to it once it gets so full. Typically I think that is 5% of the disk?
But if you are monitoring your disk usage then it is also not a problem - so the biggest issue is for people that just want to use their system for whatever and not have to worry about micro-managing partition sizes. There a bigger combined volume with some root only reserved space is IMO much better.
Yup, same. See soo many people complain about running out of space on their root partition or their home partition because they have not been able to correctly size them - for what benefit? In case they need to reinstall? (Where you can just opt to not formatting the drive and keep any files you need).
To be honest I don't see that many people using any portable gaming device out in the wild. I don't really think it is something you will see people just walking down the street using. Or even going to a cafe shop...
I have heard from quite a few people that they actually prefer it to their computer as it lets the lounge on their couch to play games as they don't like sitting at their desk all day at work to come home to sit at their desk some more.
And I suspect that it is possibly also popular during longer travel sessions (train or planes etc) and while you are away from your home for extended periods of time.
I would also guess you might see more around uni or similar places where people need to hang out with lots of time to kill.
But I think most places people go to they are not going to bring it to or at least be using it if they do.
But that is true of all portable gaming devices.
They passed 1 million units in October 2022 and have only been increasing in production since then: https://www.vgchartz.com/article/455068/report-steam-deck-ships-over-1-million-units/
Is it though? For instance the steam hardware survey shows Arch Linux, then Ubuntu, then Manjaro then Mint. Which is one completely biased bit of information that paints a completely different picture.
This site claims Unknown, Ubuntu, Debian, Centos.
Distrowatch claims MX Linux, EndeavourOS, Mint, Manjaro, Pop!_OS.
All of these methods of counting are flawed but all paint a completely different picture. So we just don't know the answer to this question.
That is highly debatable. You can easily use it as desktop system - and there are a number of people that do. But it is something that a lot of people have now used directly.
These are just complete guesses. There are a lot of workstation computers out there running all sorts of different Linux distros - there are whole companies, universities, schools or even cities out there running thousands of workstations based on all sorts of distros (more than a few were based on gentoo). There is also the steamdeck (which is basically a computer) that is running one based on arch - that alone is millions.
Again, a complete guess. There are a lot of RHEL and RHEL based servers out there. AWSs own OS is RHEL based and a huge share of AWS instances will be running that. But then in containers there is a huge amount of alpine being run.
This question is I think impossible to tell for sure as there is nothing that can track that information accurately. It is also not a very well defined question. Do you mean number of installs? Number of hours running? Number of times someone interacts with it? Number of people that interact with it? There are lots of ways to count this and each will give a different answer, if you could even count them at all.
However you might be surprised by the answer to some as some OSs are on a lot of things that you don't even think about. For instance MINIX is an OS that runs on every Intel CPU, alongside your normal OS. There are a lot of embedded OSs and servers out there as well.
Has the partition actually been changed at all? Or did windows just remove the efi boot menu option? EFI applications/bootloaders have an entry stored in the UEFI firmware and most often that order is changed or entries are dropped from it. Check it to see if it is actually the case. Unlike MBR systems you can have as many bootloaders as you want on an EFI system and I have never seen one delete the actual files files for another.
You can generlly create a new entry in the UEFI setup screen, or by using efibootmgr on a live USB or just by reinstalling the bootloader if you really want to.
Arch Linux is a DIY, KISS and rolling release distro. Which are the main reasons people like it so much. It does not impose much on you and lets you pick basically everything you want to install yourself (which is not as daunting as it sounds).
But it also follows upstream packages very closely and does not add lots of extra fluff in the way. Its design tends to be quite simple and there is not as much that can go wrong in it compared to other distros. And if something does then it is often easier to fix (both because you will have more familiar with stuff as you had to pick what you installed and because there are fewer things to get in the way).
For instance, ubuntu has a lot of wrapper and helper scripts that are meant to make it easier to do things - but also complicate it quite a bit. Things like the update-alternatives mean it is not just simple binaries in the /usr/bin location for everything but instead it has a layer of symlinks as well. Arch does not have these things which tends to mean less layers you need to understand when something is not working as expected.
It is also a rolling release distro so packages are generally very up to date with the latest upstream releases. No 6month+ old packages that only contain security fixes. Yet despite this it does not often suffer from instability or breakages from upgrades.
People also like the AUR (arch user repository) a third party source repo that anyone can upload packages to. So even if the arch main repos do not contain something you want (and I find they contain far more things that I want to use than Ubuntu and other distros do - despite have fewer overall packages) you will almost certainly find it in the AUR. And if not creating packages for Arch I find to be way simpler than trying to create a DEB or RPM.
And also it has one of the best Wikis around - that is even helpful for other distros as well with minor modifications to the commands (like changing the package manager and packages you need to install).
However the official Arch Linux only has support for x86_64 architecture - no ARM. Though there is a third party archlinuxarm fork of it that rebuilds all the packages for ARM.
But despite all that if you main use is a server OS I would not recommend it. Generally for that you want something that does not update as often nor something that any update can include some breaking change for libraries you might be using.
And if you are just using containers on a server I would instead look at some of the container focused distros like coreos instead.
Have you rebooted the system since the problem appeared?
I believe you can specify different folders where libvirt manages it's VMS.
Old linux package mangers were way ahead of their time and for the longest time were far a far better system that when the other OSs had to offer. But like most first adopters they have been stuck on this first implementation for far too long and others have managed to innovate in this space to far surpass what the original design had to offer.
I don't think traditional package managers are fit for purpose on a desktop system any more. And have a large number of drawbacks for such a environment.
I think the android/IOS models are a far better approach to the problem (though not specifically their implementations). More so the ability to have a single packaging format for all devices and a much more robust permissions model. You can without root install a package and have it not have full access to all your files and documents or other applications data. This is both far nicer experience and far better for security.
Now, they had a clean slate to start with which desktop Linux does not. But I do think flatpack and similar tools are the first steps towards this. We are also seeing far more immutable OSs around more separation between system and user applications in general. Which are all moving us towards a more mobile like experience.
Your original argument read that AppImages are bad because developers are using it to create things with bad build systems. Which IMO is a bad argument. They would do this with or without AppImages, that is just the tech they have chosen to use for their bad practices. It is like arguing that water is bad because people use it to drown others.
That is a far better argument against it.
I don't think any of that is AppImages fault though. It is developers that don't care creating things that are hard to build then using AppImages as a crutch for their project. This was a problem before AppImages existed.
It might have other issues, but at least stick to those and don't blame the tool for people using it as a crutch for other problems.
What projects are doing this? I have never encountered one.
It was designed to replace init with something more that just a init system. Even in his initial blog post he describes largely what the core systemd service does today, managing process, filesystems socket debus events etc. All things the init system never did.
But that is all the core service really does. The other optional components that the systemd project now includes were added over time as they realized how much of the system could benefit from a more holistic approach. But these are still optional services and complaining that systemd include multiple optional components is a bit facetious when coreutils does the same thing. Lots of separate components that work well together.
This works well for commands you execute in a shell. But does not work for daemon services that are always running (or even that need to be started on demand like systemd lets you do). Stringing the whole system together with a bunch of bash scripts is one thing systemd wanted to break - as they are slow and brittle.
And there are plenty of old components that you cannot pipe the output into other programs - even the init process itself, no pipeing that. Cron you cannot pipe to other programs either. Same with network managers or anything else that is designed to be a service instead of just a cli tool.
But systemd does still offer a lot of cli utilities for controlling its daemons that you can pipe to other programs.
So the only real thing here is that systemd has brought together a bunch of daemons under the same broad project to better integrate them together. You can still optionally use them or use other one.
That sounds more like a gnome or your chosen distro issue than a flatpak one. They chose to use it. I have not yet used a single flatpak package on my main systems. Though i also don't really see why having them would be an issue either.
There is no need to go down personal attacks here.
It is not just an init system though. It was designed from the beginning to be a system event manager that includes the init system. And IMO that is a good thing as it is far more capable that the old init systems it replaced. The fact that every major distro has opted for it shows that it is doing a lot of things right. Yes it has problems - all software has problems, especially ones that are trying to solve complex issues.
Which just shows that it is multiple components working together, each responsible for different things. How is that not following the unix way?
You seem to have a lot of hatred for it - but why? Yes it has some issues, but do does all software. But are these issues enough to warrant such hatred for it rather than working to fix and solve the issues it does have? Or at least putting your effort into something that can actually rival it? These attacks on systemd are not going to change anyones mind - proving an alternative or working towards fixing issues it has might actually change something. But they are both a lot more work.
"One thing" is incredibly subjective. And IMO useless on its own. The bigger benefit to the unix philosophy was that services compose well together. And honesty, UNIX is dead. With the three big OSs, Windows is not UNIX, and neither is Linux. MacOS is the only thing that is UNIX but what makes it UNIX is just a shadow of what the OS has become. IMO systemd is a system event manager - which is one, complex, thing. And it does that job well. Yes it is far more complex that just an init system but for the better, it can handle far more complex cases that old init systems could not as it was never designed for the number of services nor the dynamic nature of modern hardware.
But still, I don't understand how flatpack has violated that principal at all - it is a package manager that manages packages in a distro agnostic way. IMO that is the one thing that it does. You only complain about dependencies - but every package manager has to deal with them. Why is apt or dnf or pacman not a problem for you if it has to deal with dependencies? How does any of that violate the one thing principal?