After install on new computer, can't shut down or restart?

What about this one?

Or these?


PS.

This should be followed by a sync/refresh/upgrade (pacman -Syu)

Besides what I guess is a typo …
These should not require sudo.
And can be combined into systemctl enable fstrim.timer --now

You probably should not sudo echo.

echo "vm.swappiness=10" | sudo tee /etc/sysctl.d/100-manjaro.conf

Would be better, and would create the file if it does not exist.
But just as with your example … it would clobber any contents.
Use >> or tee -a to only append (add) lines, rather than rewrite the whole thing.

Though if you did expect the file to exist … why use the same file name?
Just create your own.

echo "vm.swappiness=10" | sudo tee /etc/sysctl.d/99-mine.conf

This is sorta fine, but it might be better to use /etc/default/grub.d/custom.conf instead of editing the existing file. Just create it with your lines and done.

sudo mkdir -p /etc/default/grub.d
printf "GRUB_TIMEOUT_STYLE=menu\n GRUB_TIMEOUT_STYLE=menu\n" | sudo tee /etc/default/grub.d/custom.conf
1 Like