I used to run OpenWRT on a router, so the difference naturally was... there IS no regular distro for a router. Embedded device, rare architecture, extremely tight resources (very few MB flash storage and RAM), ... this is only possible with a minimal kernel compiled for that hardware and space-optimized binaries and whatnot. All custom tailored to fit the device.
On a "real PC" or even a raspberry with plenty of resources (both ram and storage counted in gigabytes) then you can use whatever. The only advantage might be that again a router distro is preconfigured whereas any regular distro you have to do it yourself.
sorting is locale dependent ( locale, LC_COLLATE ). so it can sort to "0 1 A B C a b c Ä ä" or "0 1 a A ä Ä b B c C". Both are correctly sorted, just according to different locale. So what you need to find is a locale for LC_COLLATE that will reflect the order you prefer.
Unfortunately I'm not sure what Windows sorts to.
You can experiment like this:
locale
ls
LC_COLLATE=C ls
For other locale they have to be built on your system first ( /etc/locale.gen if you have it )
Short of cutting internet completely and turning it into intranet experience, the thing you ask for does not exist. And even then there is still porn in it (offline wikipedia comes with explicit pictures, too).
Give the child the root password (on their own PC in their own room with some privacy) and just let it go. Internet is everywhere, kids come with smartphones to school, it's completely outside of your control.
"You can't stop him, Stoick. You can only prepare him. I know it seems hopeless, but you won't always be around to protect him. He's going to get out there again. He's probably out there now." (how to train your dragon)
on a sidenote, with true randomness it is after all possible to pick the same wallpaper twice (or even more times) in a row. so maybe you want to remember the last wallpaper and exclude it from the selection in the next round. or build a full random order list and go through it one by one (this is how MP3 players usually work when selecting "random"; they do not repeat songs until it went through the playlist once).
my favorite player can be started from command line, configured with a text file, controlled with the keyboard. no GUI, no mouse. so for a long time that was mplayer, now it's mpv.
I use it for everything and I also script it. Four instances in a four-way splitscreen as a security camera viewer, easy and works perfect.
How do you replace the core system while running it?
Well, it's complicated. But (in theory) not impossible, I mean, you do something similar when hibernating (suspend to disk) and resuming after all, the kernel boots anew and then travels back in time to restore an older memory state. And all sorts of crazy things can go wrong with that.
Anyway, I don't do this, because so far all desktops and servers - if I really needed them to run a newer kernel, so reboot, so what. It's good practise to reboot once in a while, after all - at some point the machine will go down unexpectedly and then it has to be able to boot, too.
And no machine is so important that it can't be rebooted during a planned maintenance window.
If you really have machines that cannot be rebooted no matter what you should rethink some design choices cause sooner or later it will go down regardless.
There are servers with uptimes measured in years not days, obviously they don't reboot, but in such an event they might boot a new kernel then. So there can be kernel updates, followed by more kernel updates, without ever actually booting those kernels since it never lost power between those updates.
But of course, this has to be supported by whatever distro you're using.
pvresize is not involved here either ( if you don't know what you are doing it's better to not do anything at all, otherwise you lose all your data )
and yeah sure the LVM must be available first so cryptsetup open, vgchange -a y is a matter of course (if you are doing this from a live environment)
but that's the same as if you only wanted to mount it, not resize it, so it's not specifically resize-related, just a normal procedure
lvresize and resize2fs
please be careful.
also about the order of things: when shrinking you have to shrink the filesystem first (resizefs /dev/vg/lv size) and then lvresize to match it (lvresize -Lsize vg/lv)
size should be identical for both, e.g. 42G - careful this stops working if the filesystem is on a different device after all, but fine in your case
please don't use shit like 9.8G if you have to use that write it as 9800M or something.
actually lvresize has two aliases, lvreduce and lvextend, for shrinking and growing specifically.
some people say you should use those instead, I say lvresize is fine, and for all three you have to understand what you're doing or kiss your data goodbye
My first SSD was 64GB (hey - they were expensive, some years back) and it was large enough for me to fit both root and home onto it.
It's amazing how little space you need once you don't count media movies music and such stuff (all that to stay on HDD). Or rather, 64G is already a lot of space, we just tend to forget it over 10+TB hard drives...
However, I don't suggest you actually buy a 64G SSD. It's far from the sweet spot. If you're happy with that little space it might make more sense to spend $0 and shrink your windows filesystem a bit.
sounds like obscurity... most php sites clearly state so in the http headers anyway
it makes good sense to not have .php extension simply because ugly
not security related
it depends
https://en.wikipedia.org/wiki/Linux or https://en.wikipedia.org/wiki/Linux.html ? obviously the former
if you don't need it, then do away with it
but I'd keep it for other filetypes (images and the like) even if not strictly required, things get confusing quickly
the slash is special, it makes all URLs point to a different place unless you make all links and references absolute
useless slash really hurts, it duplicates all your urls, etc.
encrypting data is good enough for me
/boot I don't really care about
even so, I protect it by carrying it along with me (boot on usb)
I used to run OpenWRT on a router, so the difference naturally was... there IS no regular distro for a router. Embedded device, rare architecture, extremely tight resources (very few MB flash storage and RAM), ... this is only possible with a minimal kernel compiled for that hardware and space-optimized binaries and whatnot. All custom tailored to fit the device.
On a "real PC" or even a raspberry with plenty of resources (both ram and storage counted in gigabytes) then you can use whatever. The only advantage might be that again a router distro is preconfigured whereas any regular distro you have to do it yourself.
Some Wiki articles on the topic, maybe they explain better than I do
http://wiki.debian.org/Locale
https://www.thomas-krenn.com/en/wiki/Configure_Locales_in_Ubuntu
sorting is locale dependent (
locale, LC_COLLATE ). so it can sort to "0 1 A B C a b c Ä ä" or "0 1 a A ä Ä b B c C". Both are correctly sorted, just according to different locale. So what you need to find is a locale for LC_COLLATE that will reflect the order you prefer.Unfortunately I'm not sure what Windows sorts to.
You can experiment like this:
For other locale they have to be built on your system first ( /etc/locale.gen if you have it )
you got an error message so it's not silent anymore
silent bit rot is no error just wrong data in your file
what you had looked like a filesystem problem, possibly after power loss or not umounting correctly
you should also check your storage media SMART and run selftest
if you cant trust your package manager then any package could contain a backdoor/rootkit even if it's just something harmless like a font or theme
so you either trust it or use something else entirely
Short of cutting internet completely and turning it into intranet experience, the thing you ask for does not exist. And even then there is still porn in it (offline wikipedia comes with explicit pictures, too).
Give the child the root password (on their own PC in their own room with some privacy) and just let it go. Internet is everywhere, kids come with smartphones to school, it's completely outside of your control.
"You can't stop him, Stoick. You can only prepare him. I know it seems hopeless, but you won't always be around to protect him. He's going to get out there again. He's probably out there now." (how to train your dragon)
you don't have a LVM recovery problem
you have a RAID recovery problem
big problem
https://unix.stackexchange.com/questions/131915/should-i-use-mdadm-create-to-recover-my-raid
on a sidenote, with true randomness it is after all possible to pick the same wallpaper twice (or even more times) in a row. so maybe you want to remember the last wallpaper and exclude it from the selection in the next round. or build a full random order list and go through it one by one (this is how MP3 players usually work when selecting "random"; they do not repeat songs until it went through the playlist once).
using ls for anything is never a good idea
note that RANDOM is only 0-32767 so this is geared to a low number of files.
my favorite player can be started from command line, configured with a text file, controlled with the keyboard. no GUI, no mouse. so for a long time that was mplayer, now it's mpv.
I use it for everything and I also script it. Four instances in a four-way splitscreen as a security camera viewer, easy and works perfect.
glad to know linux will be around for another 900 years
lots of performance problems reported with 5.0 kernel
sometimes below 1MB/s throughput
I/O scheduling is a mess and no single kernel developer sees through it all
solve by going back to old / lts kernel, cross fingers and hope for the mess to be sorted soon
Well, it's complicated. But (in theory) not impossible, I mean, you do something similar when hibernating (suspend to disk) and resuming after all, the kernel boots anew and then travels back in time to restore an older memory state. And all sorts of crazy things can go wrong with that.
Anyway, I don't do this, because so far all desktops and servers - if I really needed them to run a newer kernel, so reboot, so what. It's good practise to reboot once in a while, after all - at some point the machine will go down unexpectedly and then it has to be able to boot, too.
And no machine is so important that it can't be rebooted during a planned maintenance window.
If you really have machines that cannot be rebooted no matter what you should rethink some design choices cause sooner or later it will go down regardless.
Uhhm, it depends.
well, of course you can load them
unless you uninstalled them
as archlinux is wont to do
There are servers with uptimes measured in years not days, obviously they don't reboot, but in such an event they might boot a new kernel then. So there can be kernel updates, followed by more kernel updates, without ever actually booting those kernels since it never lost power between those updates.
But of course, this has to be supported by whatever distro you're using.
anyway:
don't do this without backup
practise first (rebuild this scenario in a VM and then see how it works)
pvresize is not involved here either ( if you don't know what you are doing it's better to not do anything at all, otherwise you lose all your data )
and yeah sure the LVM must be available first so cryptsetup open, vgchange -a y is a matter of course (if you are doing this from a live environment)
but that's the same as if you only wanted to mount it, not resize it, so it's not specifically resize-related, just a normal procedure
please be careful.
also about the order of things: when shrinking you have to shrink the filesystem first (resizefs /dev/vg/lv size) and then lvresize to match it (lvresize -Lsize vg/lv)
size should be identical for both, e.g. 42G - careful this stops working if the filesystem is on a different device after all, but fine in your case
please don't use shit like 9.8G if you have to use that write it as 9800M or something.
actually lvresize has two aliases, lvreduce and lvextend, for shrinking and growing specifically.
some people say you should use those instead, I say lvresize is fine, and for all three you have to understand what you're doing or kiss your data goodbye
luks is not even involved here
you are resizing logical volumes
works the same way as without LUKS
My first SSD was 64GB (hey - they were expensive, some years back) and it was large enough for me to fit both root and home onto it.
It's amazing how little space you need once you don't count media movies music and such stuff (all that to stay on HDD). Or rather, 64G is already a lot of space, we just tend to forget it over 10+TB hard drives...
However, I don't suggest you actually buy a 64G SSD. It's far from the sweet spot. If you're happy with that little space it might make more sense to spend $0 and shrink your windows filesystem a bit.
busybox has weird bugs
you don't really want to use it outside of embedded systems where nothing else is available
that said, it should be easy enough to fixer-upper permissions
I have over a dozen LUKS containers they all open with a single password on boot
however this is distro specific so ask your distro community how to handle multiple LUKS containers
or just try with identical password and it might work (systemd supports reusing passwords but it not enabled everywhere)
yes, if you want it encrypted, each PV has to be encrypted
if you had encrypted LV instead it would be different but then you have the same problem for each new LV you created
since your flavor of fakeraid seems to be supported by mdadm, uninstall dmraid first
with dmraid deinstalled and rebooted (and no /dev/mapper /dev/dm raid devices present), what does mdadm --assemble (--scan) actually say?
/dev/md devices will be created only after the assemble so not having them before is normal