{"id":392,"date":"2009-06-05T10:03:44","date_gmt":"2009-06-05T15:03:44","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=392"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"how-to-change-red-hat-linux-to-boot-to-command-line-mode-from-gnome","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=392","title":{"rendered":"How to change Red Hat Linux to boot to command line mode from Gnome."},"content":{"rendered":"<p>Changing the default runlevel of the Red Hat Linux server can switch the bootup from Gnome to command line mode.  You can make the changes consitent by editing the \/etc\/inittab file.<\/p>\n<p>Change the line<br \/>\n<strong>id:5:initdefault:<\/strong><\/p>\n<p>to<br \/>\n<strong>id:3:initdefault:<\/strong><\/p>\n<div style=\"float: left;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 336;\ngoogle_ad_height = 280;\ngoogle_ad_format = \"336x280_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>The number 5 specifies the graphical login mode. Changing this value to 3 will boot the system into command line mode on the next reboot.<\/p>\n<p>If you wanted to get back to the graphical mode from the command line, then enter the following command.<br \/>\n<strong>startx<\/strong><\/p>\n<p>Here is etc\/inittab file<\/p>\n<p>#<br \/>\n# inittab       This file describes how the INIT process should set up<br \/>\n#               the system in a certain run-level.<br \/>\n#<br \/>\n# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org><br \/>\n#               Modified for RHS Linux by Marc Ewing and Donnie Barnes<br \/>\n#<\/p>\n<p># Default runlevel. The runlevels used by RHS are:<br \/>\n#   0 \u2013 halt (Do NOT set initdefault to this)<br \/>\n#   1 \u2013 Single user mode<br \/>\n#   2 \u2013 Multiuser, without NFS (The same as 3, if you do not have networking)<br \/>\n#   3 \u2013 Full multiuser mode<br \/>\n#   4 \u2013 unused<br \/>\n#   5 \u2013 X11<br \/>\n#   6 \u2013 reboot (Do NOT set initdefault to this)<br \/>\n#<br \/>\nid:3:initdefault:<\/p>\n<p># System initialization.<br \/>\nsi::sysinit:\/etc\/rc.d\/rc.sysinit<\/p>\n<p>l0:0:wait:\/etc\/rc.d\/rc 0<br \/>\nl1:1:wait:\/etc\/rc.d\/rc 1<br \/>\nl2:2:wait:\/etc\/rc.d\/rc 2<br \/>\nl3:3:wait:\/etc\/rc.d\/rc 3<br \/>\nl4:4:wait:\/etc\/rc.d\/rc 4<br \/>\nl5:5:wait:\/etc\/rc.d\/rc 5<br \/>\nl6:6:wait:\/etc\/rc.d\/rc 6<\/p>\n<p># Trap CTRL-ALT-DELETE<br \/>\nca::ctrlaltdel:\/sbin\/shutdown -t3 -r now<\/p>\n<p># When our UPS tells us power has failed, assume we have a few minutes<br \/>\n# of power left.  Schedule a shutdown for 2 minutes from now.<br \/>\n# This does, of course, assume you have powerd installed and your<br \/>\n# UPS connected and working correctly.<br \/>\npf::powerfail:\/sbin\/shutdown -f -h +2 \u201cPower Failure; System Shutting Down\u201d<\/p>\n<p># If power was restored before the shutdown kicked in, cancel it.<br \/>\npr:12345:powerokwait:\/sbin\/shutdown -c \u201cPower Restored; Shutdown Cancelled\u201d<\/p>\n<p># Run gettys in standard runlevels<br \/>\n1:2345:respawn:\/sbin\/mingetty tty1<br \/>\n2:2345:respawn:\/sbin\/mingetty tty2<br \/>\n3:2345:respawn:\/sbin\/mingetty tty3<br \/>\n4:2345:respawn:\/sbin\/mingetty tty4<br \/>\n5:2345:respawn:\/sbin\/mingetty tty5<br \/>\n6:2345:respawn:\/sbin\/mingetty tty6<\/p>\n<p># Run xdm in runlevel 5<br \/>\nx:5:respawn:\/etc\/X11\/prefdm -nodaemon<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing the default runlevel of the Red Hat Linux server can switch the bootup from Gnome to command line mode. You can make the changes consitent by editing the \/etc\/inittab file. Change the line id:5:initdefault: to id:3:initdefault: The number 5&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=392\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/392"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=392"}],"version-history":[{"count":2,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":996,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/392\/revisions\/996"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}