It really shouldn’t be this hard. Or this silly.
So you want to change your Opensuse machine to default runlevel 3 from runlevel 5, and that’s all. Seems easy enough. in fact, it used to be as easy as vi /etc/inittab, change the 5 to a 3, and save. Easy-peezy.
Do I hate change? No (yes). Do I resist change? Sometimes (always). Can I deal with change? Yes (yes).
Now with all the new
systemd nonsense in Opensuse 12.3 (and all of them, for that matter), you need to know how to disable the GUI and use your Linux box like it was *meant* to be used: COMMANDS!
The thing is, the *concepts* behind runlevels are different now; in fact, the equivalents are now called “targets”. You need to understand that you basically have two choices by name: 1.) multi-user, and 2.) graphical — and they are represented by the following two files:
/usr/lib/systemd/system/multi-user.target (a. k. a. runlevel 2, 3, or 4)
/usr/lib/systemd/system/graphical.target (a. k. a. runlevel 5)
In the folder
/etc/systemd/system, you have a file called
default.runlevel that points to the appropriate runlevel/target file. Check it now, with:
ls -l /etc/systemd/system/default.target
…to see which target file the default file links. It might point to a
runlevelX.target file too, which again just links to the same
And if it’s the wrong one, you can follow these commands to change:
To change to boot into the equivalent of runlevel 2, 3, or 4 (the non-graphical, multi-user level):
ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
To change to boot into the equivalent of runlevel 5 (the graphical, GUI level):
ln -sf /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target
There are other concepts involved, like the equivalents of runlevels 0, 1, and 6, but that’s for another time. The good news is that they follow the same concepts, so you probably get it by now. But did it have to be that hard? I guess I’ll get used to it…
UPDATE, 20150510: See the comments from RaulTrujillo below for advice on the normal way to make this change.