Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Xinit without startDM.sh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 4:46 pm    Post subject: [SOLVED] Xinit without startDM.sh Reply with quote

Hi, I'm installing a new machine and cannot get XDM with Slim to start. I found out that emerging "xinit" installs the script "/etc/X11/startDM.sh.1" and XDM does not like that.


I'm pretty lost at the moment


Last edited by erzapito on Fri May 17, 2019 8:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri May 17, 2019 5:18 pm    Post subject: Reply with quote

You followed the relative guide https://wiki.gentoo.org/wiki/SLiM#Boot_service?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 5:20 pm    Post subject: Reply with quote

Yes, for OpenRC
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri May 17, 2019 5:30 pm    Post subject: Reply with quote

erzapito wrote:
Yes, for OpenRC

Ok and what is exactly the problem? You can start x without a login manager? you can post some logs?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 7:25 pm    Post subject: Reply with quote

Code:

#/etc/init.d/xdm start
 * Setting up slim ...
/etc/init.d/xdm: línea 180: /etc/X11/startDM.sh: No existe el fichero o el directorio


Code:

#ls -l /etc/X11/
total 6
-rwxr-xr-x 1 root root 1192 may 17 20:42 chooser.sh
drwxr-xr-x 2 root root 1024 may 17 20:42 Sessions
-rwxr-xr-x 1 root root  821 may 17 20:42 startDM.sh.1
drwxr-xr-x 3 root root 1024 may 17 20:42 xinit
drwxr-xr-x 2 root root 1024 may 17 22:02 xorg.conf.d
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri May 17, 2019 7:35 pm    Post subject: Reply with quote

Strange x11-apps/xinit install correct /etc/X11/startDM.sh file.
You can post equery b /etc/X11/startDM.sh.1 output command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 7:38 pm    Post subject: Reply with quote

Code:
# equery b /etc/X11/startDM.sh.1
 * Searching for /etc/X11/startDM.sh.1 ...
x11-apps/xinit-1.4.0-r1 (/etc/X11/startDM.sh.1)


Also...

Code:

# ls -l /usr/portage/x11-apps/xinit/files/
total 14
-rw-r--r-- 1 root root  255 ago  9  2015 00-xhost
-rw-r--r-- 1 root root 1192 feb 28  2017 chooser.sh
-rw-r--r-- 1 root root  865 may 15 21:09 startDM.sh
-rw-r--r-- 1 root root  821 may 15 21:09 startDM.sh.1
-rw-r--r-- 1 root root 1494 may 21  2018 xinit-1.3.3-gentoo-customizations.patch
-rw-r--r-- 1 root root  740 mar 10  2018 xinit-1.4.0-startx-current-vt.patch
-rw-r--r-- 1 root root  745 may 15 21:09 xinit-1.4.1-move-serverauthfile-into-tmp.patch
-rw-r--r-- 1 root root  143 nov 28 00:09 xserverrc.2
-rw-r--r-- 1 root root 2187 ago  9  2015 Xsession
-rw-r--r-- 1 root root  229 ago  9  2015 Xsession.desktop


And that's the same on different PCs
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri May 17, 2019 7:52 pm    Post subject: Reply with quote

Try to rebuild x11-apps/xinit
Code:
# emerge -1 x11-apps/xinit

because ebuilld install startDM.sh in correct way
xinit-1.4.0-r1.ebuild:

...
newexe "${FILESDIR}"/startDM.sh.1 startDM.sh
...

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 7:59 pm    Post subject: Reply with quote

I don't see that line, this is my ebuild file:

Code:

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit xorg-2

DESCRIPTION="X Window System initializer"

LICENSE="${LICENSE} GPL-2"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
IUSE="+minimal"

RDEPEND="
   !<x11-base/xorg-server-1.8.0
   x11-apps/xauth
   x11-libs/libX11
"
DEPEND="${RDEPEND}"
PDEPEND="x11-apps/xrdb
   !minimal? (
      x11-apps/xclock
      x11-apps/xsm
      x11-terms/xterm
      x11-wm/twm
   )
"

PATCHES=(
   "${FILESDIR}/${PN}-1.3.3-gentoo-customizations.patch"
   "${FILESDIR}/${PN}-1.4.0-startx-current-vt.patch"
)

src_configure() {
   XORG_CONFIGURE_OPTIONS=(
      --with-xinitdir="${EPREFIX}"/etc/X11/xinit
   )
   xorg-2_src_configure
}

src_install() {
   xorg-2_src_install

   exeinto /etc/X11
   doexe "${FILESDIR}"/chooser.sh "${FILESDIR}"/startDM.sh.1
   exeinto /etc/X11/Sessions
   doexe "${FILESDIR}"/Xsession
   exeinto /etc/X11/xinit
   newexe "${FILESDIR}"/xserverrc.2 xserverrc
   exeinto /etc/X11/xinit/xinitrc.d/
   doexe "${FILESDIR}"/00-xhost

   insinto /usr/share/xsessions
   doins "${FILESDIR}"/Xsession.desktop
}

pkg_postinst() {
   xorg-2_pkg_postinst

   if ! has_version 'x11-apps/xinit'; then
      ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
      ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
      ewarn "any executable. When you run startx, it will run this as the login session."
      ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
      ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
      ewarn "Here's an example of setting it for the whole system:"
      ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
      ewarn "    env-update && source /etc/profile"
   fi
}
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23553
Location: here

PostPosted: Fri May 17, 2019 8:05 pm    Post subject: Reply with quote

Itàs now clear see commit
Code:
commit 52023c1c6853f292c3bafe95b95c630dbd8d5103
Author: Matt Turner <mattst88@gentoo.org>
Date:   Fri May 17 09:10:31 2019 -0700

    x11-apps/xinit: Fix installation of startDM.sh
   
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

re-sync your tree and reinstall xinit package
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 105

PostPosted: Fri May 17, 2019 8:11 pm    Post subject: Reply with quote

That was it! Thank you very much!

What a coincidence as I just started installing gentoo on this system yesterday,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum