Lxde DE Module Build

Arch based Porteus community project

Moderator: M. Eerie

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

LXDE (help)

Post#31 by brokenman » 01 Mar 2018, 00:02

For those interested, some time ago I added: pkexec-add-application

This little script adds apps to pkexec.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

LXDE (help)

Post#32 by ncmprhnsbl » 01 Mar 2018, 01:07

brokenman wrote:
01 Mar 2018, 00:02
For those interested, some time ago I added: pkexec-add-application
in slackware porteus but not nemesis afaics ... i should probably try and see if it ports ok..(edit: it does, no problem)
i'm not 100% sold on pkexec .. seems to have problems with env variables (has it's own limited set) and complicated commands..
but that could be i haven't figured out how to use it properly..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#33 by ncmprhnsbl » 01 Mar 2018, 12:55

merged this topic with "Lxde DE Module Build"..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#34 by Jack » 02 Mar 2018, 20:20

I inserted at ---start--- and ---end--- is then I save it. I reboot and it didn't work.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.policykit.pkexec.activate">
    <description>Activate as root</description>
    <message>Authentication is required to activate</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/activate</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>
  
    <action id="org.freedesktop.policykit.pkexec.deactivate">
    <description>Dectivate as root</description>
    <message>Authentication is required to deactivate</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/deactivate</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>
---start---
  <action id="org.freedesktop.policykit.pkexec.pcmanfm">
    <description>Run su-pcmanfm</description>
    <message>Authentication is required to run pcmanfm</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/pcmanfm</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>
---end---
  <action id="org.freedesktop.policykit.pkexec.dir2xzm">
    <description>Run dir2xzm</description>
    <message>Authentication is required to run dir2xzm</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/dir2xzm</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>
  

  <action id="org.freedesktop.policykit.pkexec.xzm2dir">
    <description>Run xzm2dir</description>
    <message>Authentication is required to run xzm2dir</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/xzm2dir</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>
  

  <action id="org.freedesktop.policykit.pkexec.arc2xzm">
    <description>Run arc2xzm</description>
    <message>Authentication is required to run arc2xzm</message>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/arc2xzm</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
  </action>
  
</policyconfig>
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#35 by ncmprhnsbl » 02 Mar 2018, 21:33

ncmprhnsbl wrote:
28 Feb 2018, 01:09
2.same as above (except pkexec can't handle the "dbus-launch --exit-with-session" part...(look at the .desktop file)
that said, i think it's probably easier/better to just include/use gksu(and link /usr/local/bin/psu to it) since pkexec seems to have some limitations..
so you need to remove "dbus-launch --exit-with-session"from the Exec= line in /usr/share/applicastions/su-pcmanfm.desktop
(and you don't have to reboot to test it)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#36 by Jack » 02 Mar 2018, 21:59

I did what you said in message 34 and 35 they both didn't work so I guess I won't have su-pcmanfm and su-terminal for now.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Lxde DE Module Build

Post#37 by francois » 10 Mar 2018, 17:13

@jack:
Is it possible to provide the latest version of your nemesis lxde module at the head of the first post of this thread. In addition could you post a summary of the bugs or problems that you want to solved for the module to be functional as you would like it?
Prendre son temps, profiter de celui qui passe.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#38 by Jack » 10 Mar 2018, 17:39

@francois,

That is my latest version right now but I'm working on one now. I will post it when I get it done.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Lxde DE Module Build

Post#39 by francois » 10 Mar 2018, 17:41

Great!
Prendre son temps, profiter de celui qui passe.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#40 by Jack » 10 Mar 2018, 19:19

I build a new LXDE today and with ncmprhnsbl new base modules. I try to use update-cache but when I boot up it won't let me boot in to Text mode. What I mean is when I pick Text mode it boots in to LXDE.

What can I do to fixed the problem?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#41 by ncmprhnsbl » 10 Mar 2018, 20:59

1. if you can open a terminal after lxde has started, you can run update-cache then..
if not :
2. make a module which contains: /etc/conf.d/agetty.tty1 with line 8 commented(#)
it should look like this:

Code: Select all

# Set the baud rate of the terminal line
baud="38400"

# set the terminal type
term_type="linux"

# extra options to pass to agetty for this port
#agetty_options="--autologin=guest"

# make agetty quiet
#quiet="no"
place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"
or edit porteus.cfg and add it to the textmode entry..

also, check this post : Lxde DE Module Build (Post by ncmprhnsbl #61700)
this way, you can simply update your module without rebuilding it from scratch each time..
Last edited by Ed_P on 10 Mar 2018, 21:07, edited 1 time in total.
Reason: .xm to .xzm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#42 by Jack » 10 Mar 2018, 22:09

ncmprhnsbl wrote:
10 Mar 2018, 20:59
1. if you can open a terminal after lxde has started, you can run update-cache then..
if not :
2. make a module which contains: /etc/conf.d/agetty.tty1 with line 8 commented(#)
it should look like this:

Code: Select all

# Set the baud rate of the terminal line
baud="38400"

# set the terminal type
term_type="linux"

# extra options to pass to agetty for this port
#agetty_options="--autologin=guest"

# make agetty quiet
#quiet="no"
place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"
or edit porteus.cfg and add it to the textmode entry..

also, check this post : Lxde DE Module Build (Post by ncmprhnsbl #61700)
this way, you can simply update your module without rebuilding it from scratch each time..
I did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#43 by Jack » 10 Mar 2018, 23:27

@francois,

It be some time before I have another release. I ran in to some problems.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#44 by ncmprhnsbl » 11 Mar 2018, 00:56

Jack wrote:
10 Mar 2018, 22:09
i did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.
worked for me.. maybe check your ownerships:
(extract the module)

Code: Select all

ls -aRl textmode
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Lxde DE Module Build

Post#45 by francois » 11 Mar 2018, 01:34

@jack:
No hurry, no pressure. You will get it fix ncmprhnsbl is there. ;)
Prendre son temps, profiter de celui qui passe.

Post Reply