Config inittab » Historie » Version 2
Jeremias Keihsler, 13.01.2017 12:11
| 1 | 1 | Jeremias Keihsler | h1. Configure inittab |
|---|---|---|---|
| 2 | |||
| 3 | h2. Requirements |
||
| 4 | |||
| 5 | To configure InitTab you will need the following: |
||
| 6 | * a installed and supported operating system (e.g. CentOS) |
||
| 7 | * root-access |
||
| 8 | |||
| 9 | h2. Preliminary Note |
||
| 10 | |||
| 11 | While during Setup and Testing it is quite useful to have X and the Gnome-Desktop-Environment at hand in Produktion it is very seldom necessary. |
||
| 12 | |||
| 13 | Therefore we install the graphical environment but disable it by default in production use. |
||
| 14 | |||
| 15 | h2. Configure inittab |
||
| 16 | |||
| 17 | <pre><code class="bash"> |
||
| 18 | vim /etc/inittab |
||
| 19 | </code></pre> |
||
| 20 | Set the default runlevel to "3" and reboot the system. |
||
| 21 | |||
| 22 | h2. Start X/Gnome-Desktop-Environment |
||
| 23 | |||
| 24 | There are 3 possibilities: |
||
| 25 | # change back the default runlevel in inittab to 5 and reboot |
||
| 26 | 2 | Jeremias Keihsler | this requires a restart which is most likely not what you want |
| 27 | 1 | Jeremias Keihsler | # @init 5@, will set the runlevel imediatly |
| 28 | return to runlevel 3 is not possible, the system will stay in runlevel 5 until reboot |
||
| 29 | # log in as a user and @startx@ |
||
| 30 | as soon as you log-out you will return to console and stay in runlevel 3 |