{"id":1007,"date":"2013-09-09T01:50:56","date_gmt":"2013-09-09T06:50:56","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=1007"},"modified":"2015-05-10T07:02:00","modified_gmt":"2015-05-10T12:02:00","slug":"setting-the-default-runlevel-in-opensuse-12-3","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=1007","title":{"rendered":"Setting the default runlevel in Opensuse 12.3&#8230;"},"content":{"rendered":"<p>It really shouldn&#8217;t be this hard.\u00a0 Or this silly.<\/p>\n<p>So you want to change your Opensuse machine to default runlevel 3 from runlevel 5, and that&#8217;s all.\u00a0 Seems easy enough.\u00a0 in fact, it used to be as easy as vi \/etc\/inittab, change the 5 to a 3, and save.\u00a0 Easy-peezy.<\/p>\n<p>Do I hate change?\u00a0 No (yes).\u00a0 Do I resist change?\u00a0 Sometimes (always).\u00a0 Can I deal with change?\u00a0 Yes (yes).<\/p>\n<p>Now with all the new <code>systemd<\/code> 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:\u00a0 COMMANDS!<\/p>\n<p>The thing is, the *concepts* behind runlevels are different now; in fact, the equivalents are now called &#8220;targets&#8221;.\u00a0 You need to understand that you basically have two choices by name: 1.) multi-user, and 2.) graphical &#8212; and they are represented by the following two files:<\/p>\n<p><code>\/usr\/lib\/systemd\/system\/multi-user.target<\/code> (a. k. a. runlevel 2, 3, or 4)<\/p>\n<p><code>\/usr\/lib\/systemd\/system\/graphical.target<\/code> (a. k. a. runlevel 5)<\/p>\n<p>In the folder <code>\/etc\/systemd\/system<\/code>, you have a file called <code>default.runlevel<\/code> that points to the appropriate runlevel\/target file.\u00a0 Check it now, with:<\/p>\n<p><code>ls -l \/etc\/systemd\/system\/default.target<\/code><\/p>\n<p>&#8230;to see which target file the default file links.\u00a0 It might point to a <code>runlevelX.target<\/code> file too, which again just links to the same <code>multi-user.target<\/code> and <code>graphical.target<\/code> files.<br \/>\nAnd if it&#8217;s the wrong one, you can follow these commands to change:<\/p>\n<p>To change to boot into the equivalent of runlevel 2, 3, or 4 (the non-graphical, multi-user level):<\/p>\n<pre>ln -sf \/usr\/lib\/systemd\/system\/multi-user.target \/etc\/systemd\/system\/default.target<\/pre>\n<p>To change to boot into the equivalent of runlevel 5 (the graphical, GUI level):<\/p>\n<pre>ln -sf \/usr\/lib\/systemd\/system\/graphical.target \/etc\/systemd\/system\/default.target<\/pre>\n<p>There are other concepts involved, like the equivalents of runlevels 0, 1, and 6, but that&#8217;s for another time.\u00a0 The good news is that they follow the same concepts, so you probably get it by now.\u00a0 But did it have to be that hard?\u00a0 I guess I&#8217;ll get used to it&#8230;<\/p>\n<p>\ud83d\ude0e<\/p>\n<p>&nbsp;<\/p>\n<p>UPDATE, 20150510: See the comments from <strong>RaulTrujillo<\/strong> below for advice on the normal way to make this change.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It really shouldn&#8217;t be this hard.\u00a0 Or this silly. So you want to change your Opensuse machine to default runlevel 3 from runlevel 5, and that&#8217;s all.\u00a0 Seems easy enough.\u00a0 in fact, it used to be as easy as vi&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=1007\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[126],"tags":[127,128,117,129,131,132,130],"class_list":["post-1007","post","type-post","status-publish","format-standard","hentry","category-opensuse12-3","tag-default-runlevel","tag-openesuse-12-3","tag-opensuse","tag-runlevel","tag-runlevel-3","tag-systemctl","tag-target"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-gf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1007"}],"version-history":[{"count":13,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/1007\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}