If you use sudo to run something, it gets run as the root user. If that thing is also looking for stuff in ~ (the home directory), it will check the user home directory... The root user home directory. You've given ownership of files in your home dir, not the root home dir. It's looking for files that are somewhere else.
Also maybe don't run npm as root. The point of having it store stuff in the user home is so it doesn't need root access to do it's thing.
I haven't used Godot enough to know what it does. It seems like it should but it may not.
Is the ray casting code yours? If so, is it interrogating the tile map as a sort of array-like data structure? If so, look through the docs for some other functions related to map shape. There may already be a way to let Godot give you a complete polygon that is the tile walls.
It may be possible to decrease the number of iterations -- and thus checks to make -- by merging tiles into larger polygons. A 3 tile thick wall would be 1 check instead of 3. Provided you generate that polygon list only when the tile map changes, this may do some good in improving frame times.
Of course, if you aren't doing ray-polygon checks at all, it's a moot point.
Clustering generally means just having a lot of computers, and one of them schedules tasks that runs on any single one at a time. This gives you nothing for the Minecraft server
There do (did?) exist software mechanisms that can let a single kernel ("single" of sorts) run across several physical machines. With such a thing, the programs on it would have similar mobility. However, the bottlenecking involved with accessing what is though to be RAM over what is actually an Ethernet port is so ungodly high that it is more likely to be a detriment than anything else.
My advice would be to pick the one strong enough to run the server, and set it up as normal. Use another to play your client.
I'm not sure about the kernel, but Gentoo does offer binary packages for particularly large things (like web browsers). So... Gentoo?
Debian, what with aiming to be a fully free distro, has the source repos you can grab with apt, so you could include that.
I imagine others do it, too, I just haven't done much distro hopping for whatever reason.
OP could also be asking about hibernation, which would be a function of the init system (and kernel being able to swap and halt, and un-swap and resume execution, of course)
I tried far too hard to clarify things that made searching for stuff hard for me, and completely missed the point. I was tired. That's my story, and I'm sticking to it!
But seriously, my bad. Way the off topic, and not particularly accurate with it, either.
Tl:dr: yes, use Wayland. But also no, I think X different from what you think it is.
X11 isnt a display manager, it's (actually a lot of things, and X11 is only the most common Linux implementation of the X protocol) a tool that collects commands from programs, and then paints a display accordingly. I've most frequently heard it called a "display server" -- but it also has a client, and the system doesn't function without both ends.
A display manager is usually the name for a program that serves as your login screen. Gnome's GDM, KDE's SDDM, LightDM, etc. The X server starts, and a DM comes up first, yielding to a desktop environment. Why it's called a display manager, even though it doesn't manage your display, I don't know.
Desktop environment is the term for all the things you'd point to and call a desktop. Gnome, KDE, Mate, LXDE, Cinnamon, etc. Gnome also calls this a graphical shell, particularly in their own project.
These applications are all just talking to an X-server, though. If you wanted, you could start the X server, and any X application. the screen casting software is basically just asking for overlapping regions of the display buffer, and copying them out to be serialized and sent to wherever. None of it works of there isnt a display server. Wayland, while it works differently, serves a similar function. If not X, you could use Wayland. But with neither, you don't get graphics. Not unless you're doing custom stuff all the way up (which would be inventing your own display server), or using something else entirely, like Windows (with whatever display architecture it uses under the hood).
If the whole device disappears, it usually means one or both of udev and the kernel driver aren't doing their jobs correctly. Is the driver a specific package you install, or a regular in tree kernel module?
(Also, you should know that Arch only officially supports x86_64. See r/archlinuxarm)
u/Imereny is right on this. It's a font issue. Make sure you have fonts with the correct symbols installed (so, basically just have a font installed). All applications including your DE) will need to be restarted to pick them up correctly. Gnome does funny things with font caches, so look into that if you're using GTK things, and still experiencing problems (Gimp is one). Good luck!
Helps to make sure there are single behaviors without breaking existing scripts and peoples' habits. I heard somewhere they'll eventually remove the aliases, so write your scripts with systemctl {} for future support (or just make the links yourself, and let your script work on non-systemd things, I dunno). shutdown is nicer to type than systemctl poweroff anyway.
The old shutdown scripts have been replaced by various aliases to systemctl calls. In this case, that command is exactly the same as systemctl halt now as op is having problems with.
If your user account doesn't have a home directory, it will try to make one, only to fail because /home is owned by root, and that user can't write there. SDDM (that login screen) will not alert you to such a failure. Go to a TTY and login, and see if you can create a home directory (and chown it to your user).
If the antenna is shared, it would be up to the transceiver IC to handle the difficulties involved in running that. Seems the Linux driver doesn't have feature pairity with the Windows one, so can't tell the WiFi+Bluetooth chip to handle both protocols simultaneously. You might try a newer kernel ( or looking through some patch notes ) to see if the driver has since been improved.
Someone mentioned BTRFS, and I'm gonna throw out another option: LVM. You can set it up so that the HDD is the main storage, and split it into whatever logical volumes you like. Then add the SSD as a cache drive, and it'll do it's best to hold onto hot files so that anything you use frequently gets cached. Instead of only having whatever you happen to have out on the SSD.
This will likely degrade the SSD faster, however. Constant adjustment to the cache info, instead of periodic adjustments to system programs if you were to mount it on / for instance.
Backups and ease of reinstall are another point of concern, and I'm not super sure how to do all that with LVM. It can be done, but it's added complexity you may not want to deal with.
Nah. Doing code doesn't mean you know all the bits along the way. That's kind of the point of interfaces and abstractions. I was mostly just startled that someone was working on something as complex as GPU compute, but didn't already know about Linux's modular drivers.
As far as changing distros, if you want it to more or less 'just work' so you can make your program, you might consider another. But if you're up for the challenge, Arch is fantastic. It has a learning curve, but if you're doing CUDA, I'm sure you can handle it just fine. The bonus for learning the complex bits is that now you know things to help you fix it when it breaks -- and most of that knowledge translates straight across to any distro. The Arch Wiki is your friend, and you will (usually) get useful info here -- even if half of it is to "RTFM" in varying degrees of vulgarity, irritation, and verbosity.
I don't know how I feel about a person trying to do CUDA, but not knowing the term "kernel module". Not exactly required to know how drivers work when you're doing not-kernel programing, though.
Anyway,
1.) The Linux kernel has drivers -- bits of code responsible for driving pieces of hardware. At one point, it was decided that having all drivers for all pieces of hardware just couldn't work. Too much to build, and largely unnecessary on any single platform. Thus, the drivers were broken out into modules that could be built into the kernel, or made as loadable objects after the kernel has started. This let's you build in only what you need, but then also insert others later on if you find it necessary. Similarly, it provided an interface for third party vendors to make their own drivers (these are called "out of tree modules" because they are outside the Linux source code tree). Nvidia makes such a driver, and you must make sure to insert it into your kernel so it may drive your Nvidia GPU's.
2.) In-tree drivers will be baked into the kernel image, or made available as modules -- depending on how your maintainers built the kernel (in this case the Arch maintainers). This means it only requires that you have Linux installed to have all the in-tree drivers. For out of tree drivers, you would (ideally) use the package manager to pick them up as you see fit. If unavailable from the repos, you have to find builds from the vendors (yay, proprietary code :l )
F2FS is a fantastic thing. The idea is that it does many of the things an SSD controller does, but on the host so you can still get those benefits on a flash media that doesn't have such a controller. Like a flash drive, or eMMC, SD card, etc.
Seems like there was data in an IO cache that hadn't been fully flushed to disk. Something broke and fsck can't handle it on its own. If you're lucky, you can do that Ctrl+d and use fsck and it's prompts to repair things. Odds are that there are things that are flat broken, and are required to be deleted. If you can spare the space, make an image of your disk so you can make multiple tries (blindly following fsck will eventually make the disk work again, but it could also take out the whole file tree on it's way. Fiddling with other approaches may yield better results, so: backups! Even of broken volumes)
If the emergency environment that you get from a failed boot is too limited and unfamiliar, get your install media and work from there.
Also make sure you turn on the magic sysreq key. As long as the kernel hasn't frozen (and the USB controller to your keyboard is still working, too) you can make a system call to kill programs, sync disks, unmount, and reboot. Programs interacting with files (should. Afaik) try to cleanly close (SIGTERM) or be killed if they don't (SIGKILL), so anything that can be stopped to avoid corruption will be. Finally, buffers are written out, and the kernel reboots itself.
tl;dr: You can fix the problem with "systemctl enable NetworkManager.service"
[Can't figure out formatting on mobile. RIP]
If you want to learn how to use systemd-networkd, by all means go for it. But if you'd like to fix this behavior (or at least know why it -- probably -- occurs) see the following:
I believe that KDE (or any reasonable DE, for that matter) will make sure that the NetworkManager.service unit is running. This means that Systemd isn't necessarily confgured to start it on boot and instead it's started as a function of KDE's login process. Make sure you enable it, and it should come up at a reasonable time ( I think there's an explicit network.target that happens ahead of the multi-user.target, and subsequently the graphical.target for your KDE session ).
Try looking through the kernel logs with dmesg (for the current boot) and wherever it is that Ubuntu puts its kernel logs from previous boots ( I should really learn how to handle logs better ). See if it complains about errors regarding those disks. If so, you can chase those to see whats wrong. If nothing at all is mentioned, it could be a bit more fuzzy. How are the drives connected? Motherboard SATA ports, or some other adapter? The drivers for something like an HBA might not be loading, thus making the disks never known to the system.
lsblk and blkid are nice commands to know. They list block devices and block ID's, respectively. But they pull their info from the kernel the same way fdisk does, so that shouldn't change anything there.
Before you run down the rabbit hole, I have a counter question: Does the pool mount at all? If it does, but too late, the next block has some ideas about custom unit files. If it DOESNT, you should investigate that. If there's something wrong with the pool that needs fixing, you should probably do that.
Systemd is designed to operate on "targets", which are just steps along the boot process. If the ZFS pool mounts, but after Docker starts, you could modify the Docker unit file to depend on the pool mount target. You might, in turn, need to make a unit file that defines a target for the ZFS pool mount which Docker can depend on.
The reason for the sudden failure is probably some new config files installed through giur package manager. Depending on which distro you are running (some promise super consistency, others the newest shiniest things, etc, etc), it could be that some of the default unit files were changed and no longer do the mount, in which case you need to fix it manually. Which is unfortunate, but not the end of the world. On the other hand, if the configs are fine, and the pool is broken, you could lose (what might be) very important data.
I can't help with how to tell Grub to tell the kernel to load a given module and not another, but I can offer this: The grub config file in /boot/grub/ is meant to be generated by the grub-mkconfig tool, and one may want to avoid handling it directly (you can, it's just extra work). Instead, look into the other (because of course there's another) grub config in /etc/default/grub. This file is meant to control how the other is generated.
The install process happens through a chroot. You could boot on something that does have a display and keyboard, install the bits you need, and then move it over to the other machine. SSH from then on, and just don't break your networking.
If you use
sudoto run something, it gets run as the root user. If that thing is also looking for stuff in~(the home directory), it will check the user home directory... The root user home directory. You've given ownership of files in your home dir, not the root home dir. It's looking for files that are somewhere else.Also maybe don't run npm as root. The point of having it store stuff in the user home is so it doesn't need root access to do it's thing.
I haven't used Godot enough to know what it does. It seems like it should but it may not.
Is the ray casting code yours? If so, is it interrogating the tile map as a sort of array-like data structure? If so, look through the docs for some other functions related to map shape. There may already be a way to let Godot give you a complete polygon that is the tile walls.
It may be possible to decrease the number of iterations -- and thus checks to make -- by merging tiles into larger polygons. A 3 tile thick wall would be 1 check instead of 3. Provided you generate that polygon list only when the tile map changes, this may do some good in improving frame times.
Of course, if you aren't doing ray-polygon checks at all, it's a moot point.
Clustering generally means just having a lot of computers, and one of them schedules tasks that runs on any single one at a time. This gives you nothing for the Minecraft server
There do (did?) exist software mechanisms that can let a single kernel ("single" of sorts) run across several physical machines. With such a thing, the programs on it would have similar mobility. However, the bottlenecking involved with accessing what is though to be RAM over what is actually an Ethernet port is so ungodly high that it is more likely to be a detriment than anything else.
My advice would be to pick the one strong enough to run the server, and set it up as normal. Use another to play your client.
I'm not sure about the kernel, but Gentoo does offer binary packages for particularly large things (like web browsers). So... Gentoo? Debian, what with aiming to be a fully free distro, has the source repos you can grab with
apt, so you could include that. I imagine others do it, too, I just haven't done much distro hopping for whatever reason.OP could also be asking about hibernation, which would be a function of the init system (and kernel being able to swap and halt, and un-swap and resume execution, of course)
I tried far too hard to clarify things that made searching for stuff hard for me, and completely missed the point.
I was tired. That's my story, and I'm sticking to it!But seriously, my bad. Way the off topic, and not particularly accurate with it, either.Tl:dr: yes, use Wayland. But also no, I think X different from what you think it is.
X11 isnt a display manager, it's (actually a lot of things, and X11 is only the most common Linux implementation of the X protocol) a tool that collects commands from programs, and then paints a display accordingly. I've most frequently heard it called a "display server" -- but it also has a client, and the system doesn't function without both ends.
A display manager is usually the name for a program that serves as your login screen. Gnome's GDM, KDE's SDDM, LightDM, etc. The X server starts, and a DM comes up first, yielding to a desktop environment. Why it's called a display manager, even though it doesn't manage your display, I don't know.
Desktop environment is the term for all the things you'd point to and call a desktop. Gnome, KDE, Mate, LXDE, Cinnamon, etc. Gnome also calls this a graphical shell, particularly in their own project.
These applications are all just talking to an X-server, though. If you wanted, you could start the X server, and any X application. the screen casting software is basically just asking for overlapping regions of the display buffer, and copying them out to be serialized and sent to wherever. None of it works of there isnt a display server. Wayland, while it works differently, serves a similar function. If not X, you could use Wayland. But with neither, you don't get graphics. Not unless you're doing custom stuff all the way up (which would be inventing your own display server), or using something else entirely, like Windows (with whatever display architecture it uses under the hood).
If the whole device disappears, it usually means one or both of udev and the kernel driver aren't doing their jobs correctly. Is the driver a specific package you install, or a regular in tree kernel module?
(Also, you should know that Arch only officially supports x86_64. See r/archlinuxarm)
u/Imereny is right on this. It's a font issue. Make sure you have fonts with the correct symbols installed (so, basically just have a font installed). All applications including your DE) will need to be restarted to pick them up correctly. Gnome does funny things with font caches, so look into that if you're using GTK things, and still experiencing problems (Gimp is one). Good luck!
Helps to make sure there are single behaviors without breaking existing scripts and peoples' habits. I heard somewhere they'll eventually remove the aliases, so write your scripts with
systemctl {}for future support (or just make the links yourself, and let your script work on non-systemd things, I dunno).shutdownis nicer to type thansystemctl poweroffanyway.The old shutdown scripts have been replaced by various aliases to
systemctlcalls. In this case, that command is exactly the same assystemctl halt nowas op is having problems with.If your user account doesn't have a home directory, it will try to make one, only to fail because
/homeis owned by root, and that user can't write there. SDDM (that login screen) will not alert you to such a failure. Go to a TTY and login, and see if you can create a home directory (andchownit to your user).If the antenna is shared, it would be up to the transceiver IC to handle the difficulties involved in running that. Seems the Linux driver doesn't have feature pairity with the Windows one, so can't tell the WiFi+Bluetooth chip to handle both protocols simultaneously. You might try a newer kernel ( or looking through some patch notes ) to see if the driver has since been improved.
Someone mentioned BTRFS, and I'm gonna throw out another option: LVM. You can set it up so that the HDD is the main storage, and split it into whatever logical volumes you like. Then add the SSD as a cache drive, and it'll do it's best to hold onto hot files so that anything you use frequently gets cached. Instead of only having whatever you happen to have out on the SSD. This will likely degrade the SSD faster, however. Constant adjustment to the cache info, instead of periodic adjustments to system programs if you were to mount it on
/for instance. Backups and ease of reinstall are another point of concern, and I'm not super sure how to do all that with LVM. It can be done, but it's added complexity you may not want to deal with.Nah. Doing code doesn't mean you know all the bits along the way. That's kind of the point of interfaces and abstractions. I was mostly just startled that someone was working on something as complex as GPU compute, but didn't already know about Linux's modular drivers.
As far as changing distros, if you want it to more or less 'just work' so you can make your program, you might consider another. But if you're up for the challenge, Arch is fantastic. It has a learning curve, but if you're doing CUDA, I'm sure you can handle it just fine. The bonus for learning the complex bits is that now you know things to help you fix it when it breaks -- and most of that knowledge translates straight across to any distro. The Arch Wiki is your friend, and you will (usually) get useful info here -- even if half of it is to "RTFM" in varying degrees of vulgarity, irritation, and verbosity.
I don't know how I feel about a person trying to do CUDA, but not knowing the term "kernel module". Not exactly required to know how drivers work when you're doing not-kernel programing, though.
Anyway,
1.) The Linux kernel has drivers -- bits of code responsible for driving pieces of hardware. At one point, it was decided that having all drivers for all pieces of hardware just couldn't work. Too much to build, and largely unnecessary on any single platform. Thus, the drivers were broken out into modules that could be built into the kernel, or made as loadable objects after the kernel has started. This let's you build in only what you need, but then also insert others later on if you find it necessary. Similarly, it provided an interface for third party vendors to make their own drivers (these are called "out of tree modules" because they are outside the Linux source code tree). Nvidia makes such a driver, and you must make sure to insert it into your kernel so it may drive your Nvidia GPU's.
2.) In-tree drivers will be baked into the kernel image, or made available as modules -- depending on how your maintainers built the kernel (in this case the Arch maintainers). This means it only requires that you have Linux installed to have all the in-tree drivers. For out of tree drivers, you would (ideally) use the package manager to pick them up as you see fit. If unavailable from the repos, you have to find builds from the vendors (yay, proprietary code :l )
Good luck, friend.
F2FSis a fantastic thing. The idea is that it does many of the things an SSD controller does, but on the host so you can still get those benefits on a flash media that doesn't have such a controller. Like a flash drive, or eMMC, SD card, etc.Seems like there was data in an IO cache that hadn't been fully flushed to disk. Something broke and fsck can't handle it on its own. If you're lucky, you can do that Ctrl+d and use fsck and it's prompts to repair things. Odds are that there are things that are flat broken, and are required to be deleted. If you can spare the space, make an image of your disk so you can make multiple tries (blindly following fsck will eventually make the disk work again, but it could also take out the whole file tree on it's way. Fiddling with other approaches may yield better results, so: backups! Even of broken volumes) If the emergency environment that you get from a failed boot is too limited and unfamiliar, get your install media and work from there.
Also make sure you turn on the magic sysreq key. As long as the kernel hasn't frozen (and the USB controller to your keyboard is still working, too) you can make a system call to kill programs, sync disks, unmount, and reboot. Programs interacting with files (should. Afaik) try to cleanly close (SIGTERM) or be killed if they don't (SIGKILL), so anything that can be stopped to avoid corruption will be. Finally, buffers are written out, and the kernel reboots itself.
tl;dr: You can fix the problem with "systemctl enable NetworkManager.service" [Can't figure out formatting on mobile. RIP]
If you want to learn how to use systemd-networkd, by all means go for it. But if you'd like to fix this behavior (or at least know why it -- probably -- occurs) see the following: I believe that KDE (or any reasonable DE, for that matter) will make sure that the NetworkManager.service unit is running. This means that Systemd isn't necessarily confgured to start it on boot and instead it's started as a function of KDE's login process. Make sure you enable it, and it should come up at a reasonable time ( I think there's an explicit network.target that happens ahead of the multi-user.target, and subsequently the graphical.target for your KDE session ).
Strange. Glad you got it fixed. I wish I knew what happened, though.
Try looking through the kernel logs with
dmesg(for the current boot) and wherever it is that Ubuntu puts its kernel logs from previous boots ( I should really learn how to handle logs better ). See if it complains about errors regarding those disks. If so, you can chase those to see whats wrong. If nothing at all is mentioned, it could be a bit more fuzzy. How are the drives connected? Motherboard SATA ports, or some other adapter? The drivers for something like an HBA might not be loading, thus making the disks never known to the system.lsblkandblkidare nice commands to know. They list block devices and block ID's, respectively. But they pull their info from the kernel the same wayfdiskdoes, so that shouldn't change anything there.Before you run down the rabbit hole, I have a counter question: Does the pool mount at all? If it does, but too late, the next block has some ideas about custom unit files. If it DOESNT, you should investigate that. If there's something wrong with the pool that needs fixing, you should probably do that.
Systemd is designed to operate on "targets", which are just steps along the boot process. If the ZFS pool mounts, but after Docker starts, you could modify the Docker unit file to depend on the pool mount target. You might, in turn, need to make a unit file that defines a target for the ZFS pool mount which Docker can depend on.
The reason for the sudden failure is probably some new config files installed through giur package manager. Depending on which distro you are running (some promise super consistency, others the newest shiniest things, etc, etc), it could be that some of the default unit files were changed and no longer do the mount, in which case you need to fix it manually. Which is unfortunate, but not the end of the world. On the other hand, if the configs are fine, and the pool is broken, you could lose (what might be) very important data.
I can't help with how to tell Grub to tell the kernel to load a given module and not another, but I can offer this: The grub config file in /boot/grub/ is meant to be generated by the grub-mkconfig tool, and one may want to avoid handling it directly (you can, it's just extra work). Instead, look into the other (because of course there's another) grub config in /etc/default/grub. This file is meant to control how the other is generated.
The install process happens through a chroot. You could boot on something that does have a display and keyboard, install the bits you need, and then move it over to the other machine. SSH from then on, and just don't break your networking.