{"id":819,"date":"2010-06-10T23:27:53","date_gmt":"2010-06-10T16:27:53","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=819"},"modified":"2010-06-10T23:27:53","modified_gmt":"2010-06-10T16:27:53","slug":"autologin-as-root-on-konsole","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=819","title":{"rendered":"Autologin as root on konsole"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/06\/root-privileges.png\" rel=\"lightbox[819]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-876\" title=\"root-privileges\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/06\/root-privileges.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>Many friends on car pc forum ask how to perform auto login for their Linux box in console mode. I never solve it until this day during packaging mingetty for klixs and read the man page. Ooh boy, it&#8217;s already there for so long and never realize it can be solve using mingetty.<\/p>\n<p>Let\u2019s get started.<\/p>\n<p><strong>Step 1: Install mingetty<\/strong><\/p>\n<p>The first step is to install the a program called <a title=\"mingetty\" onclick=\"javascript:pageTracker._trackPageview('\/outbound\/article\/http:\/\/packages.debian.org\/lenny\/mingetty');\" href=\"http:\/\/packages.debian.org\/lenny\/mingetty\" target=\"_blank\">mingetty<\/a> which we will use instead of the regular  \u201cgetty\u201d which is responsible for generating the login console. If you we&#8217;re on KLIXs there are no easier steps than launching synaptic and grab mingetty. Once it installed you are no longer need getty package.<\/p>\n<p><strong>Step 2: Edit inittab file<\/strong><\/p>\n<p>Now we will edit the inittab file:<\/p>\n<p><code># nano \/etc\/inittab<\/code><\/p>\n<p>and change the line<\/p>\n<p><code>1:2345:respawn:\/sbin\/getty 38400 tty1<\/code><\/p>\n<p>to<\/p>\n<p><code>1:2345:respawn:\/sbin\/mingetty --autologin &lt;user-name&gt;\u00a0  --noclear tty1<\/code><\/p>\n<p>You can replace &lt;user-name&gt; with either \u201croot\u201d or with your own  user-name, and of course you can omit the noclear option if you don&#8217;t want to see a boot message.<\/p>\n<p>Example:<br \/>\n<code>1:2345:respawn:\/sbin\/mingetty --autologin root --noclear tty1<\/code><\/p>\n<p><strong>Note:<\/strong> <em>It\u2019s a good idea to make a backup of inittab file first<\/em>.<\/p>\n<p>save and quite the file.<\/p>\n<p><strong>Step 3: Restart your system<\/strong><\/p>\n<p><code># shutdown -r now<\/code><\/p>\n<p>Simply restart your system and will be automatically taken to the  bash shell prompt without entering the username and password.<\/p>\n<p><strong>Step 4: Make other tty autologin also (optional)<br \/>\n<\/strong><\/p>\n<p>You must have notice that by default Debian Linux generate 6 tty  based login console which you can switch to with \u201cAlt-F2\u2033, \u201cAlt-F3\u2033,  \u201cAlt-F4\u2033, etc.<\/p>\n<p>So far we have just made tty1 console (default) autologin enabled.  What if you want to make all ttys or some ttys autologin just like tty1?  It\u2019s very simple. Edit the <strong>\/etc\/inittab<\/strong> file and to  make tty2 autologin:<\/p>\n<p>replace the line<br \/>\n<code>2:23:respawn:\/sbin\/getty 38400 tty2<\/code><\/p>\n<p>with<\/p>\n<p><code>2:23:respawn:\/sbin\/mingetty --autologin root --noclear tty2<\/code><\/p>\n<p>And similarly you can do for tty3, tty4, and so on.<\/p>\n<p>Happy Autologin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many friends on car pc forum ask how to perform auto login for their Linux box in console mode. I never solve it until this day during packaging mingetty for klixs and read the man page. Ooh boy, it&#8217;s already there for so long and never realize it can be solve using mingetty. Let\u2019s get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":876,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17,9],"tags":[47,149],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/819"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=819"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/876"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}