LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2014, 03:41 PM   #1
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Question /etc/X11/default-display-manager keep content nulled after updates && grades


Hi.
/etc/X11/default-display-manager text file has one line /usr/sbin/lightdm in it for GUI-login-screen so I delete that contents to get CLI on logins then If need GUI can use startx... I want to keep Lightdm installed and made a backup of the original default-display-manager.

As time goes on (updates to it I'd guess) the text finds it's way back so on start no CLI only GUI (until I delete it again.)

Is there a line of code I could replace /usr/sbin/lightdm with to keep it from coming back or add a separate Bash script to empty it; I also assume I can just 'sudo rm /etc/X11/default-display-manager' all together as-well but then updates* put it back?

Thanks In advances for any thought...

Last edited by jamison20000e; 01-28-2014 at 08:32 PM.
 
Old 01-28-2014, 08:28 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I tried deleting the file /etc/X11/default-display-manager and oddly enough it put me to the GUI login window so I must just find a way to just keep text out of there?
 
Old 01-28-2014, 08:44 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
What distribution is this? You should never have to delete anything to get to a non GUI login.

It is relatively trivial to get to multi-user mode without the GUI being invoked. For non-systemd based systems it is trivially just setting the initdefault to 3 in the /etc/inittab. For systemd based systems you have to use the command "systemctl set-default multi-user.target".
 
Old 01-28-2014, 09:16 PM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Hi. Thanks for the reply.
Code:
:~$ uname -a
Linux debian 3.12-1-amd64 #1 SMP Debian 3.12.8-1 (2014-01-19) x86_64 GNU/Linux
The command systemctl set-default multi-user.target doesn't work for me:
Code:
systemctl set-default multi-user.target
Unknown operation 'set-default'.
I edited /etc/inittab to 3 and now on booting it asks me for run-level but all levels take me to GUI unless I remove the text from default-display-manager...
 
Old 01-28-2014, 11:42 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Debian is not a distro that comes with systemd by default, therefore systemctl will not work. Furthermore, on Debian and most derived systems runlevels 2-5 are the same. To start the system into CLI mode you have to prevent lightdm from being started on the standard runlevel. You can do this with
Code:
update-rc.d lightdm stop 2
to disable lightdem for runlevel 2.
 
Old 01-29-2014, 09:55 AM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Code:
~$ update-rc.d lightdm stop 2
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (none) do not match lightdm Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match lightdm Default-Stop values (0 1 6)
 
Old 02-05-2014, 10:53 AM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I want to keep an empty file but on any updates wipe it empty again, so far I keep using manually:
Code:
cat /dev/null > /etc/X11/default-display-manager
Just found the post using /dve/null http://www.linuxquestions.org/questi...5/#post5048328
http://www.linuxquestions.org/questi...ml#post5065993 and "highjacked" another sorry I kinda realize now ways around this and will try to do so in the future.

Last edited by jamison20000e; 02-05-2014 at 09:22 PM.
 
Old 02-05-2014, 09:28 PM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
So, what is the best way to invoke a start up script or command in Linux i.e. a script or command for Linux to run on every start?
 
Old 02-06-2014, 04:27 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The best way would be to put the command in rc.local or use the autostart mechanism or your DE/WM. But why don't you just use the advice given to you in the other thread, make the file immutable?
 
1 members found this post helpful.
Old 02-06-2014, 12:23 PM   #10
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888

Original Poster
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I put above it doesn't work unless I've missed something, removing the file brings me to GUI and command outputs are posted. I've used rc.local and autostart before and probably should have searched that, Thank you.
 
  


Reply

Tags
/etc/x11/, /usr/sbin/lightdm, cli, default-display-manager, login


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
X11 Windows Manager for Windows7 & 8 Predatorian General 4 09-07-2013 11:55 AM
xfe (lightweight file manager for X11) & debian AleLinuxBSD Debian 3 01-19-2010 05:06 AM
Downloaded Updates now can't connect to Web & am getting errors about package manager Annoula420 Linux - Laptop and Netbook 2 01-05-2010 05:14 AM
phpnuke - can you display only the nuke module & not the framing content? BrianK Programming 0 03-06-2009 12:31 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 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
Open Source Consulting | Domain Registration