Ubuntu Runlevel
Des années que je cherchais l'information pour pouvoir changer le runlevel par défaut !
Debian/Ubuntu have switched from sysV to systemd, and systemd has it's own way of managing the boot targets (which was called runlevels) here are the commands used to set the default or switching to another target provided by systemctl:
-
systemctl isolateused to switch between targetssystemctl isolate multi-userswitchs to the multi user targetsystemctl isolate graphicalswitchs to the graphical interface target
-
systemctl get-defaultoutputs the current default target -
systemctl set-defaultchanging the default boot targetsystemctl set-default multi-userwill set the default boot target to the multi user target and this will simple get done by creating a symlink/etc/systemd/system/default.targetpoints to/lib/systemd/system/graphical.targetsystemctl set-default graphicalsetting back the default boot target to the graphical interface
