You are not logged in.
Pages: 1
Hello there. I am trying to enable automatic startup of GDM (or KDM) on my liveiso built with Archiso. I was able to do this before using initscripts, but now when the systemd is a way to go I don't know how to achieve this. Any hints?
Last edited by tuxtard (2012-11-15 10:30:00)
Offline
Look for the service file, which is reponsible for starting gdm, should be in /usr/lib/systemd/system, then look into the install section to see, where you have to create symlinks for this file. See also man systemd, the part where the enable command is explained.
Offline
I tried to manually create this symlink:
/etc/systemd/system/display-manager.service -> /usr/lib/systemd/system/gdm.service
but it did not work. Symlink appeared in the proper location on the live iso, but it had no effect.
Offline
nano releng/root-image/root/customise-root.sh
s/multi-user.target/graphical.target gdm.service/
When I do it this way, I also comment out the autologin getty service.
np
I am hilariously insane. yup. you won't notice though.. I promise...I think.
Offline
on a side note.... system files including your own custom ones should be placed in /usr/lib/systemd/system
so when you *enable* them, systemd automatically creates a symlink IN /etc/systemd/system lol
Not the other way round.
I am hilariously insane. yup. you won't notice though.. I promise...I think.
Offline
It worked, thank you. I tried before to enable gdm.service and disable autologin, but I forgot to switch to graphical.target. My systemctl line in customize_root_image.sh now looks like this:
systemctl enable graphical.target gdm.service pacman-init.service dhcpcd.service
Offline
sounds good. By enabling gdm.service it automatically links to default.target (or is meant to)... however, perhaps some of the scripts have defined default.target already or so.. worth playing around with.
I am hilariously insane. yup. you won't notice though.. I promise...I think.
Offline
Pages: 1