LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2016, 03:36 AM   #1
Saro
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
debian telinit


Hello all,

during the training once i had to play with telinit, now everytime i start my debian 8 system, it takes me to a shell, i login to the shell and type "telinit 5" then it presents me to graphical desktop login.

How can i set this permannently?

thanks

Last edited by Saro; 01-16-2016 at 03:37 AM.
 
Old 01-16-2016, 06:55 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Depends on which version of debian it is.

If you are using the SysVinit process then the configuration file is in /etc/inittab. There is a default entry there that specifies runlevel 3, just set it to 5.

If you are using a systemd init process then it should be something like "systemctl enable graphical.target".
 
Old 01-16-2016, 08:36 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
edit your grub to telinit 1 that is what I do. debian start up levels are different than mine on slackware.
just edit your /boot/grub/grub.cfg after the vmlinuz add telinit 1. telint 2 took me to tell init three that pushed me to tellinit 4 that is the same as telinit 5. that is the debian way. so I use telinit 1.
Code:
linux	/boot/vmlinuz-3.13.0-74-generic root=UUID=2c9c511c-e2e2-4c23-a19d-24e59d566216 ro   telinit 1 quiet splash $vt_handoff

Last edited by Drakeo; 01-16-2016 at 08:39 AM. Reason: 5
 
Old 01-16-2016, 09:43 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
It is easier to use the configuration file for what it is designed for. Besides, a typographic error in a grub.cfg could render the system unbootable. Easier to set the initdefault level in the /etc/inittab file.

Last edited by jpollard; 01-16-2016 at 09:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
telinit 3 ??? mickeyboa Fedora 1 12-18-2007 03:03 PM
telinit 3 cant go into sixarett Linux - Hardware 2 09-01-2005 05:31 PM
telinit 3 undef00 Linux - Hardware 3 08-13-2005 02:44 PM
Can't telinit 5 kalis_dc Linux - Newbie 3 10-30-2003 08:42 PM
telinit newbie45 Linux - Hardware 2 09-17-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration