suggestion which should be included in next version - systemctl related

81 views
Skip to first unread message

joao mendonca

unread,
Jan 31, 2024, 6:34:44 PMJan 31
to slax-...@googlegroups.com
This is a small detail, so here it goes:
 
In Slax based on Debian Linux:
 
In the file "/lib/systemd/system/xorg.service" you should add the following text to the end of that file:
 
     [Install]
     [WantedBy]=graphical.target
 
to be able to execute the following two commands with success:
 
     systemctl disable xorg
 
     systemctl enable xorg
 
---------------------------------------------------
 
Explanation:
 
    Right now the text mentioned on top doesn' t exist inside the mentioned file "/lib/systemd/system/xorg.service" which means when we do:
 
       systemctl disable xorg             (note: here everything' s fine, on the next boot the boot stops in the text-mode not in the graphical-mode)
 
       but when we try to get back to what we had before (the boot ending in graphical-mode) by doing:
         
             systemctl enable xorg        (note: because the text mentioned on top doesn' t exist inside the mentioned file "/lib/systemd/system/xorg.service" it
                                                                           outputs an error and we simply can' t get out from the text-mode at least using the same command
                                                                           "systemctl enable xorg" until we add the mentioned text on top to the end of the mentioned file
                                                                           "/lib/systemd/system/xorg.service")
 
------------------------------------------------------
 
Thanks!

Tomas M

unread,
Feb 1, 2024, 4:47:00 AMFeb 1
to slax-...@googlegroups.com
Thank you very much for suggestion,
implemented by
https://github.com/Tomas-M/linux-live/commit/6db73300fb6e4f08423be6ca91c05e38a66a40a1
will be added in next Slax release, if there is any ;-)

Tomas M
slax.org
> --
> You received this message because you are subscribed to the Google Groups "Slax users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to slax-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/slax-users/trinity-00b7278d-d9b5-438f-a9ed-6648dbbab3a7-1706744081538%403c-app-mailcom-bs02.

joao mendonca

unread,
Feb 29, 2024, 11:28:10 PMFeb 29
to slax-...@googlegroups.com
Attention: last message contains error !!!
 
On day "Wednesday, January 31, 2024 at 11:34 PM" I sent you the message on the bottom with an error and you have updated github.com with the error:
 
 
The error is:
 
     [Install]
     [WantedBy]=graphical.target
 
The right way is:
 
     [Install]
     WantedBy=graphical.target
 
----------------------------------------------------
note1: The problem were the extra square brackets in the first version.
----------------------------------------------------
note2: I will be awaiting for you to update with the right way this time.
----------------------------------------------------
 
Thanks !
 
 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Sent: Wednesday, January 31, 2024 at 11:34 PM
From: "joao mendonca" <sola...@gmx.com>
To: slax-...@googlegroups.com
Subject: suggestion which should be included in next version - systemctl related
Reply all
Reply to author
Forward
0 new messages