You are not logged in.

#1 2012-11-06 14:30:35

ismaelvc
Member
From: México, D.F.
Registered: 2012-02-26
Posts: 136

[SOLVED] How to autostart 'Trinity kdm' with systemd?

Hello guys!

I have been trying to look at a kdm.service file with the locate command but it seems this is not yet implemented for trinity, in the wiki the only explained method is old inittab, I'm still inthe process of learning systemd, if you have a hint I'll apreciate it!

Last edited by ismaelvc (2012-11-06 18:16:28)


Laptop: LG LM70 Express                                                  Kernel: 3.14.2-1-ARCH   
CPU: Intel Pentium M processor @1.86GHz                  Hard Drive: 80G
Video: Mobility Radeon X600                                            X Driver: xf86-video-ati
Memory Size: 1.5G + zramswap: 384M + swap: 3G

Offline

#2 2012-11-06 15:09:03

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,895

Re: [SOLVED] How to autostart 'Trinity kdm' with systemd?

What you you mean with the locate command? kdm.service is a very simple service file and should adapt very easily to most display managers. Give us a little more info on what you're trying to do and what problems you're encountering and we might be able to help you more.

Offline

#3 2012-11-06 16:41:36

ismaelvc
Member
From: México, D.F.
Registered: 2012-02-26
Posts: 136

Re: [SOLVED] How to autostart 'Trinity kdm' with systemd?

Thanks Scimmia:

For 'locate' I'm actually refering to; 'mlocate', wich provides 'updatedb' and 'locate' commands.

[ismaelvc@toybox ~]$ locate kdm
/opt/trinity/bin/genkdmconf
/opt/trinity/bin/kdm
/opt/trinity/bin/kdm_config
/opt/trinity/bin/kdm_greet
/opt/trinity/bin/kdmctl
/opt/trinity/bin/kdmtsak
/opt/trinity/lib/trinity/kcm_kdm.la
/opt/trinity/lib/trinity/kcm_kdm.so
/opt/trinity/share/applications/kde/kdm.desktop
/opt/trinity/share/apps/kdm
/opt/trinity/share/apps/kdm/faces
/opt/trinity/share/apps/kdm/pics
/opt/trinity/share/apps/kdm/sessions
/opt/trinity/share/apps/kdm/themes
/opt/trinity/share/apps/kdm/faces/.default.face.icon
/opt/trinity/share/apps/kdm/pics/kdelogo-crystal.png
/opt/trinity/share/apps/kdm/pics/kdelogo.png
/opt/trinity/share/apps/kdm/pics/shutdown.jpg
/opt/trinity/share/apps/kdm/pics/users
/opt/trinity/share/apps/kdm/pics/users/Apple.png
/opt/trinity/share/apps/kdm/pics/users/BeachBall.png
/opt/trinity/share/apps/kdm/pics/users/Blowfish.png
/opt/trinity/share/apps/kdm/pics/users/Bug.png
/opt/trinity/share/apps/kdm/pics/users/Butterfly.png
/opt/trinity/share/apps/kdm/pics/users/Car.png
/opt/trinity/share/apps/kdm/pics/users/Cow.png
/opt/trinity/share/apps/kdm/pics/users/Daemon.png
/opt/trinity/share/apps/kdm/pics/users/Dog.png
/opt/trinity/share/apps/kdm/pics/users/Elephant.png
/opt/trinity/share/apps/kdm/pics/users/Flower.png
/opt/trinity/share/apps/kdm/pics/users/Frog.png
/opt/trinity/share/apps/kdm/pics/users/Ghost.png
/opt/trinity/share/apps/kdm/pics/users/Guitar.png
/opt/trinity/share/apps/kdm/pics/users/Heart.png
/opt/trinity/share/apps/kdm/pics/users/Konqui.png
/opt/trinity/share/apps/kdm/pics/users/Lion.png
/opt/trinity/share/apps/kdm/pics/users/Monkey.png
/opt/trinity/share/apps/kdm/pics/users/Penguin.png
/opt/trinity/share/apps/kdm/pics/users/Pig.png
/opt/trinity/share/apps/kdm/pics/users/Rabbit.png
/opt/trinity/share/apps/kdm/pics/users/Ring.png
/opt/trinity/share/apps/kdm/pics/users/Scream.png
/opt/trinity/share/apps/kdm/pics/users/Shark.png
/opt/trinity/share/apps/kdm/pics/users/Splash.png
/opt/trinity/share/apps/kdm/pics/users/Star.png
/opt/trinity/share/apps/kdm/pics/users/Teddybear.png
/opt/trinity/share/apps/kdm/pics/users/Turtle.png
/opt/trinity/share/apps/kdm/pics/users/arch-kdm.png
/opt/trinity/share/apps/kdm/pics/users/default1.png
/opt/trinity/share/apps/kdm/pics/users/default2.png
/opt/trinity/share/apps/kdm/pics/users/default3.png
/opt/trinity/share/apps/kdm/pics/users/root1.png
/opt/trinity/share/apps/kdm/sessions/9wm.desktop
/opt/trinity/share/apps/kdm/sessions/admin.desktop
/opt/trinity/share/apps/kdm/sessions/aewm++.desktop
/opt/trinity/share/apps/kdm/sessions/aewm.desktop
/opt/trinity/share/apps/kdm/sessions/afterstep.desktop
/opt/trinity/share/apps/kdm/sessions/amaterus.desktop
/opt/trinity/share/apps/kdm/sessions/amiwm.desktop
/opt/trinity/share/apps/kdm/sessions/asclassic.desktop
/opt/trinity/share/apps/kdm/sessions/blackbox.desktop
/opt/trinity/share/apps/kdm/sessions/cde.desktop
/opt/trinity/share/apps/kdm/sessions/ctwm.desktop
/opt/trinity/share/apps/kdm/sessions/cwwm.desktop
/opt/trinity/share/apps/kdm/sessions/enlightenment.desktop
/opt/trinity/share/apps/kdm/sessions/evilwm.desktop
/opt/trinity/share/apps/kdm/sessions/fluxbox.desktop
/opt/trinity/share/apps/kdm/sessions/flwm.desktop
/opt/trinity/share/apps/kdm/sessions/fvwm.desktop
/opt/trinity/share/apps/kdm/sessions/fvwm95.desktop
/opt/trinity/share/apps/kdm/sessions/gnome.desktop
/opt/trinity/share/apps/kdm/sessions/golem.desktop
/opt/trinity/share/apps/kdm/sessions/icewm.desktop
/opt/trinity/share/apps/kdm/sessions/ion.desktop
/opt/trinity/share/apps/kdm/sessions/larswm.desktop
/opt/trinity/share/apps/kdm/sessions/lwm.desktop
/opt/trinity/share/apps/kdm/sessions/matchbox.desktop
/opt/trinity/share/apps/kdm/sessions/metacity.desktop
/opt/trinity/share/apps/kdm/sessions/mwm.desktop
/opt/trinity/share/apps/kdm/sessions/olvwm.desktop
/opt/trinity/share/apps/kdm/sessions/olwm.desktop
/opt/trinity/share/apps/kdm/sessions/openbox.desktop
/opt/trinity/share/apps/kdm/sessions/oroborus.desktop
/opt/trinity/share/apps/kdm/sessions/phluid.desktop
/opt/trinity/share/apps/kdm/sessions/pwm.desktop
/opt/trinity/share/apps/kdm/sessions/qvwm.desktop
/opt/trinity/share/apps/kdm/sessions/ratpoison.desktop
/opt/trinity/share/apps/kdm/sessions/sapphire.desktop
/opt/trinity/share/apps/kdm/sessions/sawfish.desktop
/opt/trinity/share/apps/kdm/sessions/tde.desktop
/opt/trinity/share/apps/kdm/sessions/twm.desktop
/opt/trinity/share/apps/kdm/sessions/ude.desktop
/opt/trinity/share/apps/kdm/sessions/vtwm.desktop
/opt/trinity/share/apps/kdm/sessions/w9wm.desktop
/opt/trinity/share/apps/kdm/sessions/waimea.desktop
/opt/trinity/share/apps/kdm/sessions/wm2.desktop
/opt/trinity/share/apps/kdm/sessions/wmaker.desktop
/opt/trinity/share/apps/kdm/sessions/xfce.desktop
/opt/trinity/share/apps/kdm/sessions/xfce4.desktop
/opt/trinity/share/apps/kdm/themes/circles
/opt/trinity/share/apps/kdm/themes/o2_enterprise
/opt/trinity/share/apps/kdm/themes/circles/GdmGreeterTheme.desktop
/opt/trinity/share/apps/kdm/themes/circles/background.svg
/opt/trinity/share/apps/kdm/themes/circles/circles.xml
/opt/trinity/share/apps/kdm/themes/circles/flower.png
/opt/trinity/share/apps/kdm/themes/circles/help.png
/opt/trinity/share/apps/kdm/themes/circles/options.png
/opt/trinity/share/apps/kdm/themes/circles/screenshot.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/Dialog.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/GdmGreeterTheme.desktop
/opt/trinity/share/apps/kdm/themes/o2_enterprise/enter_normal.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/enter_over.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/enter_pressed.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/enterprise.xml
/opt/trinity/share/apps/kdm/themes/o2_enterprise/preview.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/system_normal.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/system_over.png
/opt/trinity/share/apps/kdm/themes/o2_enterprise/system_pressed.png
/opt/trinity/share/config/kdm
/opt/trinity/share/config/kdm/README
/opt/trinity/share/config/kdm/Xaccess
/opt/trinity/share/config/kdm/Xreset
/opt/trinity/share/config/kdm/Xsession
/opt/trinity/share/config/kdm/Xsetup
/opt/trinity/share/config/kdm/Xstartup
/opt/trinity/share/config/kdm/Xwilling
/opt/trinity/share/config/kdm/backgroundrc
/opt/trinity/share/config/kdm/kdmrc
/opt/trinity/share/doc/kde/HTML/en/kdm
/opt/trinity/share/doc/kde/HTML/en/kcontrol/kdm
/opt/trinity/share/doc/kde/HTML/en/kcontrol/kdm/common
/opt/trinity/share/doc/kde/HTML/en/kcontrol/kdm/index.cache.bz2
/opt/trinity/share/doc/kde/HTML/en/kcontrol/kdm/index.docbook
/opt/trinity/share/doc/kde/HTML/en/kdm/common
/opt/trinity/share/doc/kde/HTML/en/kdm/index.cache.bz2
/opt/trinity/share/doc/kde/HTML/en/kdm/index.docbook
/opt/trinity/share/doc/kde/HTML/en/kdm/kdmrc-ref.docbook
/opt/trinity/share/doc/kde/HTML/en/kdm/tsak.png
/opt/trinity/share/icons/Locolor/16x16/apps/kdmconfig.png
/opt/trinity/share/icons/Locolor/32x32/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/128x128/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/16x16/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/22x22/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/32x32/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/48x48/apps/kdmconfig.png
/opt/trinity/share/icons/crystalsvg/64x64/apps/kdmconfig.png
/opt/trinity/share/icons/kdeclassic/16x16/apps/kdmconfig.png
/opt/trinity/share/icons/kdeclassic/32x32/apps/kdmconfig.png
/opt/trinity/share/icons/kdeclassic/48x48/apps/kdmconfig.png
/opt/trinity/share/icons/kids/32x32/apps/kdmconfig.png
/opt/trinity/share/icons/mono/scalable/apps/kdmconfig.svgz
/opt/trinity/share/icons/slick/16x16/apps/kdmconfig.png
/opt/trinity/share/icons/slick/22x22/apps/kdmconfig.png

I believe kdm.service is explicitly refering to KDE not TDE (trinity DE) kdm.

[ismaelvc@toybox ~]$ sudo systemctl enable kdm.service
Failed to issue method call: No such file or directory

And since this is a pure systemd install from the most recent arch iso, there is no inittab, so I'm guessing I have to make a custom file somewhere, but don't know where, I'm still trying to understand all the functionality systemd encompases, so any hint is apreciated thanks!


Laptop: LG LM70 Express                                                  Kernel: 3.14.2-1-ARCH   
CPU: Intel Pentium M processor @1.86GHz                  Hard Drive: 80G
Video: Mobility Radeon X600                                            X Driver: xf86-video-ati
Memory Size: 1.5G + zramswap: 384M + swap: 3G

Offline

#4 2012-11-06 17:08:22

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,895

Re: [SOLVED] How to autostart 'Trinity kdm' with systemd?

ah, you just mean you need to know what kdm.service is.

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/kdm -nodaemon

[Install]
Alias=display-manager.service

Doesn't get much simpler, shouldn't take much to adapt to trinity. Stick it in /usr/lib/systemd/system

Last edited by Scimmia (2012-11-06 17:09:11)

Offline

#5 2012-11-06 18:11:19

ismaelvc
Member
From: México, D.F.
Registered: 2012-02-26
Posts: 136

Re: [SOLVED] How to autostart 'Trinity kdm' with systemd?

Thanks I will try with this:

[Unit]
Description=K Display Manager
After=systemd-user-sessions.service
[Service]
ExecStart=/opt/trinity/bin/kdm -nodaemon
[Install]
Alias=display-manager.service

stored in /usr/lib/systemd/system and then:

sudo systemctl enable kdm.service

EDIT:
    @Scimmia:
        Thanks a lot that did the job!

Last edited by ismaelvc (2012-11-06 18:17:54)


Laptop: LG LM70 Express                                                  Kernel: 3.14.2-1-ARCH   
CPU: Intel Pentium M processor @1.86GHz                  Hard Drive: 80G
Video: Mobility Radeon X600                                            X Driver: xf86-video-ati
Memory Size: 1.5G + zramswap: 384M + swap: 3G

Offline

Board footer

Powered by FluxBB