The officially official Devuan Forum!

You are not logged in.

#26 2018-08-12 18:51:50

fsmithred
Administrator
Registered: 2016-11-25
Posts: 790  

Re: Installation without Session management and policykit backends

Since I do not know, nor did I find anywhere else, another method to start the desktop, I wrote that the only solution possible is to modify the "xfce4-session" package.

The command you're looking for is startx. That's a generic command that will start an xsession with your default window manager. In this case, xfwm. You'd probably need to start the panel or other parts of xfce separately. I don't know exactly what limitations there would be, and I've been mostly away from the computer and unable to try it myself.

I can second the recommendation for openbox. I use it in some installations along with lxpanel. (tint2 is another popular panel.)

Offline

#27 2018-08-13 06:28:36

campus
Member
Registered: 2017-04-26
Posts: 12  

Re: Installation without Session management and policykit backends

Thank you, fsmithred, for your post. I really appreciate your desire to help me but it seems you have not read all the previous posts.

Since I have not installed a DM, of course I use "startx" to start X server, but to start the desktop, in the .Xsession file there must be "startxfce4". That I know, this is the only method to start xfce. Unfortunately, "startxfce4" is installed with xfce4-session.

I know very well Openbox and lxpanel, I used them for a long time before moving to xfce4.

I'm in no hurry to migrate to Ascii. In Jessie Xfce it works great without consolekit, policykit-1 and even gvfs and udisks2. There are still two years before jessie is no longer supported. I hope that during these two years, the installation of consolekit/elogin will be modified and/or that it is possible to remove it. Software freedom is one of the principles for which Devuan was born.

I take this opportunity to thank you for creating refractasnapshot/installer. I use it for a long time (I still keep and use an Ubuntu-12.04 snapshot!). In these years it was really very helpful and saved me so much effort! really many thanks!

Last edited by campus (2018-08-13 06:30:36)

Offline

#28 2018-08-16 14:08:52

fsmithred
Administrator
Registered: 2016-11-25
Posts: 790  

Re: Installation without Session management and policykit backends

Sorry about that. I did read all your posts, but I didn't re-read them every time I returned.

Anyway, I did get xfce running without any *kits and without xfce4-session in ascii. There may be better ways to do this, but this is mostly working. I doubt that there will be any changes in xfce4-session in ascii, but it might be possible for beowulf. If you start testing beowulf, you could file a bug report against xfce4-session to get things moving.

I started with a refracta-nox install in virtualbox. (standard system utilities plus some extras, no X)
Added the following packages (without Recommends):

xorg xinit xserver-xorg-legacy xfwm4 xfwm4-themes xfconf xfce4-panel xfce4-settings xfdesktop xfce4-terminal thunar thunar-volman

Added needs_root_rights=yes to /etc/X11/Xwrapper.config

Put the following (exactly as posted) in /etc/X11/Xsession.d/31nokit

xfwm4 &
xfce4-panel &
xfdesktop

Start the xsession as user with startx /etc/X11/Xsession

To end the xsession, I've been dropping to console and running 'init 1' as root. I'm sure there are better ways to do this, but this is convenient for testing.

Offline

#29 2018-08-16 16:08:22

campus
Member
Registered: 2017-04-26
Posts: 12  

Re: Installation without Session management and policykit backends

Thank you very much, fsmithred, for you reply.

You did a great job to help me, but it was enough to tell me that it was possible to start the XFCE desktop using the instructions:

xfwm4 &
xfce4-panel &
xfdesktop

instead of "xfce4-session". I put these instructions in  ~/.Xsession file and the desktop starts without problems. Unfortunately some features are not present due to the absence of the session manager (xfce4-session).

These days I'm learning to edit .deb packages because it's my intention edit the Ascii xfce4-session.deb package to make it identical to Jessie's package, eliminating consolekit/elogind dependencies.

Yesterday, instead of XFCE4, I installed openbox and lxpanel: everything works fine. Although consolekit/elogind is installed with lxpanel, then it can be removed because, for lxpanel, it is a recommended not mandatory package.

So, in my opinion, it is sufficient to make the consolekit/elogind package recommended for "xfce4-session" instead of mandatory. I hope I can do it.

I will keep you informed of the result.

Still many thanks for your help.

Last edited by campus (2018-08-17 06:33:56)

Offline

#30 Yesterday 10:04:19

campus
Member
Registered: 2017-04-26
Posts: 12  

Re: Installation without Session management and policykit backends

I inform interested parties how I solved the problem submitted to the forum a few weeks ago. It seems to me that the solution found is acceptable as well as the one proposed by fsmithred a few days ago.

After installing the XFCE4 components that interest us and that do not contain dependencies from consolekit/elogind, proceed as follows for "xfce4-session" package (that depends on consolekit/elogind):

  • Download the packages (or altenatively the i386 version):
           a) xfce4-session_4.12.1-3+devuan1_amd64.deb
           b) libpolkit-gobject-consolekit-1-0_0.105-18+devuan2.11_amd64.deb

  • Edit the xfce4-session package above downloaded, remove the dependency from libpolkit-gobject-1-0 and save it with the same name.

  • Edit the libpolkit-gobject-consolekit-1-0 above downloaded, remove the dependency from consolekit and save it with the same name.

  • Install the two packages modified with the command: dpkg -i .

Now it is possible to start XFCE4 with the "startxfce4" command. The desktop works normally like in Jessie, obviously without the features provided by consolekit and policykit-1.

There is an inconvenience: Because the two packages do not conform to the contents of apt-cache, if you upgrade the system them will be updated with those of the Devuan depository (which contain consolekit).

To remedy this problem: before upgrading, remove them (dpkg -r) and install them again after the upgrade (dpkg -i).

There is certainly a better and more elegant solution. But we need to have some knowledge and experience that, unfortunately, I do not have!

Who is capable, wants and can, signals to the developers of Devuan the impossibility for how the libpolkit-gobject-1-0 package is built, to use XFCE4 without installing consolekit/elogind. It is against the software freedom principle: we must not force anyone to use unwanted software! I hope they take this into account and that the next release (beowulf) no longer presents the problem!

That's all folks!

Last edited by campus (Yesterday 10:14:57)

Offline

#31 Yesterday 15:09:24

golinux
Administrator
Registered: 2016-11-25
Posts: 1,181  

Re: Installation without Session management and policykit backends

Congrats!  I knew you could eventually get this worked out.

campus wrote:

Who is capable, wants and can, signals to the developers of Devuan the impossibility for how the libpolkit-gobject-1-0 package is built, to use XFCE4 without installing consolekit/elogind. It is against the software freedom principle: we must not force anyone to use unwanted software! I hope they take this into account and that the next release (beowulf) no longer presents the problem!

Why don't you plead your case to the developers directly by submitting your comments/solution to bugs.devuan.org.  Or better yet, explore how you yourself could provide a package(s) that would allow for the removal of these components.   We're all in this together so we welcome more hands on deck.

Online

#32 Yesterday 15:20:48

fsmithred
Administrator
Registered: 2016-11-25
Posts: 790  

Re: Installation without Session management and policykit backends

A simple solution would be to move those dependencies to Recommends. Then anyone who wanted a minimalist xfce could install without recommends. (Many of them already do this.)

campus, can you list the functions that are lost by installing without consolekit?

Offline

Board footer