start Wheezy without X window  Topic is solved

Post your Debian questions here.

start Wheezy without X window  Topic is solved

Postby ccc » February 13th, 2013, 6:27 pm

Hi

I have Wheezy with Gnome Desktop installed.
Howto start Wheezy without X window, to have just commad line?
ccc
 
Posts: 74
Joined: March 2nd, 2011, 11:24 am

Re: start Wheezy without X window

Postby golinux » February 13th, 2013, 8:16 pm

At the login prompt ctrl + alt + F1 gets me to a terminal where I can login as user and then root if necessary. As for a more permanent solution . . . uninstall the login manager?
May the FORK be with you!
User avatar
golinux
 
Posts: 882
Joined: July 23rd, 2011, 4:45 pm
Location: the dying blue planet

Re: start Wheezy without X window

Postby v_evets » February 14th, 2013, 12:19 am

look in /etc/inittab. You can change the default runlevel here, or by passing the runlevel on the kernel command line @ boot.
Can't recall which runlevels start gdm/kdm/etc. but have a look at: http://www.debian.org/doc/manuals/debian-reference/ch03.en.html. Should all become clear ;-)
v_evets
 
Posts: 18
Joined: October 17th, 2012, 5:22 am

Re: start Wheezy without X window

Postby cynwulf » February 14th, 2013, 10:49 pm

Run levels are not the way to manage this in Debian as run levels 2 - 5 are the same.

The less subtle approach is to just uninstall the display manager.

The "correct" method is
Code: Select all
# update-rc.d gdm3 disable

Code: Select all
# update-rc.d gdm3 enable


Other methods, e.g. deleting symbolic links or chmod'ing the script so that's it's not executable, will probably not survive an upgrade of the package.
cynwulf
 
Posts: 1971
Joined: April 26th, 2011, 2:46 pm

Re: start Wheezy without X window

Postby jheaton5 » February 15th, 2013, 12:48 pm

cynwulf wrote:Run levels are not the way to manage this in Debian as run levels 2 - 5 are the same.

The less subtle approach is to just uninstall the display manager.

The "correct" method is
Code: Select all
# update-rc.d gdm3 disable

Code: Select all
# update-rc.d gdm3 enable


Other methods, e.g. deleting symbolic links or chmod'ing the script so that's it's not executable, will probably not survive an upgrade of the package.

I usually just do
Code: Select all
# apt-get purge gdm3

How is your way different/better?
desktop: debian Sid / debian kernel 3.16-3 / Gnome
jheaton5
 
Posts: 1633
Joined: February 9th, 2011, 10:25 am
Location: Newnan, GA USA

Re: start Wheezy without X window

Postby cynwulf » February 15th, 2013, 2:36 pm

jheaton5 wrote:How is your way different/better?

"My way" is not better it's just a different way and is a means of disabling the gdm3 (or any) daemon without removing the whole package. It's really up to the end user. If you don't and never will need gdm3 then you can just uninstall it, if however you might need it in the future and want to keep it installed (and updated) then just disabling the daemon is enough.
cynwulf
 
Posts: 1971
Joined: April 26th, 2011, 2:46 pm

Re: start Wheezy without X window

Postby v_evets » February 16th, 2013, 5:44 am

cynwulf wrote:Run levels are not the way to manage this in Debian as run levels 2 - 5 are the same.

The less subtle approach is to just uninstall the display manager.

The "correct" method is
Code: Select all
# update-rc.d gdm3 disable

Code: Select all
# update-rc.d gdm3 enable


Other methods, e.g. deleting symbolic links or chmod'ing the script so that's it's not executable, will probably not survive an upgrade of the package.


True, but they don't _have_ to be the same. Coming from Slackware, I still use 'em :-)
After all, therse's always more than one way to skin any particular cat...
You will generate a warning about start / stop runlevels not matching the LSB defaults when upgrading, but your changes should survive (IME).
v_evets
 
Posts: 18
Joined: October 17th, 2012, 5:22 am

Re: start Wheezy without X window

Postby cynwulf » February 26th, 2013, 11:11 am

I'm also a Slackware user, but due to the way Debian is designed and built, there just does not seem any point in messing with run levels. There are two accepted, tried and tested methods to disable a daemon in Debian - either the one I posted or by just removing the package.
cynwulf
 
Posts: 1971
Joined: April 26th, 2011, 2:46 pm

Re: start Wheezy without X window

Postby Beewolf » March 4th, 2013, 11:40 am

sysv-rc-conf will let you customize your runlevels and the choices won't be overridden on upgrade.
Llewellyn H. Rockwell Jr. wrote:Data points on their own convey no theory, suggest no conclusions, and offer no truths. To arrive at truth requires the most important step that we as human beings can ever take: thinking. Through this thinking, and with good teaching and reading, we can put together a coherent theoretical apparatus that helps us understand.
User avatar
Beewolf
 
Posts: 473
Joined: February 9th, 2011, 4:37 pm

Re: start Wheezy without X window

Postby typhoon » July 25th, 2014, 4:40 am

how do I know which gdm is running ?
typhoon
 
Posts: 5
Joined: July 25th, 2014, 4:37 am

Next

Return to General Questions

Who is online

Users browsing this forum: Google [Bot] and 1 guest

x