90
votes
Accepted
Would an executable need an OS kernel to run?
As someone who has written programs that execute without an OS, I offer a definitive answer.
Would an executable need an OS kernel to run?
That depends on how that program was written and built.
...
59
votes
Allow non-root process to bind to port 80 and 443?
I have a rather different approach. I wanted to use port 80 for a node.js server. I was unable to do it since Node.js was installed for a non-sudo user. I tried to use symlinks, but it didn't work for ...
48
votes
How can I update the kernel in WSL2 kernel to latest release?
There are currently at least three ways to upgrade your WSL2 kernel:
For recent Windows versions (Windows 10 21H2 and Windows 11), wsl --update is typically the best option, but realize that there is ...
45
votes
Allow non-root process to bind to port 80 and 443?
Simplest solution : remove all privileged ports on linux
Works on ubuntu/debian :
#save configuration permanently
echo 'net.ipv4.ip_unprivileged_port_start=0' > /etc/sysctl.d/50-unprivileged-...
40
votes
Would an executable need an OS kernel to run?
The kernel is "just" more code. It's just that that code is a layer that lives between the lowest parts of your system and the actual hardware.
All of it runs directly on the CPU, you just transition ...
34
votes
How to fix and prevent VirtualBox Kernel driver not installed
I met the same issue after VirtualBox upgrade to 5.2.6 r120293
Linux kernel version 4.14.13-041413-generic
The following commands sequence helped for me:
$ sudo apt install --reinstall virtualbox-...
26
votes
Obtain kernel config from currently running Linux system?
Regardless of the distribution, you can run: cat /lib/modules/$(uname -r)/build/.config
Source: proc(5) man page (search for /proc/config.gz).
22
votes
Accepted
Which Linux kernel do I have in WSL?
While WSL2 is the default for new distributions that you install, it appears that your Ubuntu distribution was originally installed as WSL1.
You can confirm this with:
wsl.exe -l -v
When running ...
21
votes
Would an executable need an OS kernel to run?
It depends on the environment. In many older (and simpler!) computers, such as the IBM 1401, the answer would be "no". Your compiler and linker emitted a standalone "binary" that ran without any ...
20
votes
How can I update the kernel in WSL2 kernel to latest release?
For those, who can't update WSL kernel with wsl --update due to strict user update policy in their company, they can install a WSL-kernel manually. Read this
Download the latest kernel from here: ...
18
votes
Problems with mounting HFS+ drives
For anyone else stumbling upon this question while looking for the same error message, note that there is another possible cause for this error.
While the answer provided by mcy should work if the ...
17
votes
Guest additionals: Kernel headers not found for target kernel
On my CentOS 6 VM, the kernel development package was not installed, so I had to do:
yum install kernel-devel
This, however, created a mismatch between the kernel development version (2.6.32-754.31.1....
15
votes
Accepted
How do I list my devices in GRUB?
There is your howto:
https://www.linux.com/learn/how-rescue-non-booting-grub-2-Linux
or here:
https://askubuntu.com/questions/38082/how-do-i-manually-boot-from-the-grub-prompt-after-do-release-...
12
votes
Accepted
No OpenSSL sign-file signing_key.pem leads to error while loading kernel modules
In your linux kernel root folder that you're compiling go to the certs folder and run:
openssl req -new -nodes -utf8 -sha512 -days 36500 -batch -x509 -config x509.genkey -outform DER -out signing_key....
11
votes
Obtain kernel config from currently running Linux system?
If you couldn't find kernel configuration in /boot/ nor in /proc/config.gz, you can try extracting this information from the kernel itself.
Inside any kernel source code there is a script for ...
11
votes
Accepted
How do I disable kernel logging into the systemd journal?
Good Linux/Sysadmin practice would recommend you go with something like fzbd's solution in which you're silencing the specific log you don't need to see rather than disabling kernel messages wholesale....
11
votes
How do I increase the max open files in macOS Big Sur?
/etc/sysctl.conf is no longer supported with Big Sur. To make persistent changes systctl can be issued on boot time using a launch daemon in /Library/LaunchDaemons/com.startup.sysctl.plist
<?xml ...
10
votes
How to save or export a custom Linux kernel configuration?
One option is:
make savedefconfig
which will create a file named defconfig in your current directory. You can now copy this file to arch/<architecture>/configs/my_defconfig (take care that the ...
10
votes
CentOS yum -- pre-existing rpmdb issues
Root Cause
Interruption in the up2date or yum update process caused the installation of multiple versions of the same package.
Resolution
If the system is Red Hat Enterprise Linux 5 or later, the ...
10
votes
How do I list my devices in GRUB?
The grub ls -l command will show all devices and partitions with their UUID-s.
thanks to
10
votes
How to fix and prevent VirtualBox Kernel driver not installed
$ sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev
just this solved the same problem on my Kubuntu 18.4.2
10
votes
Would an executable need an OS kernel to run?
I think many answers misunderstand the question, which boils down to this:
A compiler outputs machine code. Is this machine code executed directly by a CPU, or is it "interpreted" by the kernel?
...
9
votes
Accepted
How do I configure fsnotify's queue size/watch limit on OSX?
For anybody still wanting to do this, I ran this in Terminal in latest Mojave:
sudo sysctl -w kern.maxfiles=524288
This change was related to Webpack not catching changes. My original limit was ...
9
votes
Accepted
How to control CPU Usage of ntoskrnl.exe!MiWalkPageTablesRecursively
The quick answer: Give that routine less work to do. Which I think means either use less virtual address space at one time, or add more RAM.
Details: First, the routine you're seeing, ...
8
votes
IPTables module ip_tables not found for root
TL;DR
Update your kernel: sudo pacman -S linux
Update your bootloader: bootctl --path=/boot install
Reboot
This morning I ran into this same problem when trying to configure iptables:
[root@office-...
8
votes
Compiling the Linux kernel, how much size is needed?
On my recent AMD64 build of 4.4.0-57 on Ubuntu 16.04, I needed about 14.5 GB of space for the build outputs.
That seems a a lot and it seems that is mostly transiently needed files (e.g., .o files ...
8
votes
Accepted
Reading version from vmlinuz using file command
Initial note
My file -bL /vmlinuz returns:
Linux kernel x86 boot executable bzImage, version 3.2.0-4-amd64 ([email protected]) #1 SMP Debian 3., RO-rootFS, swap_dev 0x2, Normal VGA
...
8
votes
How do I increase the max open files in macOS Big Sur?
I have used the following technique with success on Big Sur v11.6
So it seems that there are multiple settings at play here.
The numbers returned by ulimit -Sn and ulimit -Hn for soft and hard per ...
8
votes
Which Linux kernel do I have in WSL?
While the default WSL version is set to 2, the WSL distribution you are running is WSL 1. It does not use a Linux kernel at all.
WSL 1 (Windows 10):
$ uname -a
Linux db-d-18 4.4.0-19041-Microsoft #...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
kernel × 933linux × 584
ubuntu × 131
boot × 80
debian × 64
linux-kernel × 63
drivers × 62
windows × 52
grub × 36
fedora × 35
memory × 33
macos × 30
virtualbox × 29
centos × 28
operating-systems × 27
compile × 26
kernel-module × 26
networking × 25
mac × 25
cpu × 25
usb × 21
arch-linux × 18
windows-10 × 17
linux-mint × 17
process × 15