Lxde DE Module Build
Moderator: M. Eerie
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
LXDE (help)
For those interested, some time ago I added: pkexec-add-application
This little script adds apps to pkexec.
This little script adds apps to pkexec.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
LXDE (help)
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
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Lxde DE Module Build
merged this topic with "Lxde DE Module Build"..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
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.
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Lxde DE Module Build
so you need to remove "dbus-launch --exit-with-session"from the Exec= line in /usr/share/applicastions/su-pcmanfm.desktopncmprhnsbl wrote: ↑28 Feb 2018, 01:092.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..
(and you don't have to reboot to test it)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
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.
- francois
- Contributor
- Posts: 6499
- 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
@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?
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.
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
@francois,
That is my latest version right now but I'm working on one now. I will post it when I get it done.
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.
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
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?
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.
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Lxde DE Module Build
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:
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..
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"
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
Reason: .xm to .xzm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
I did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.ncmprhnsbl wrote: ↑10 Mar 2018, 20:591. 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:place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"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"
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 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.
-
- Contributor
- Posts: 1955
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
Lxde DE Module Build
@francois,
It be some time before I have another release. I ran in to some problems.
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.
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Lxde DE Module Build
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- francois
- Contributor
- Posts: 6499
- 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
@jack:
No hurry, no pressure. You will get it fix ncmprhnsbl is there.
No hurry, no pressure. You will get it fix ncmprhnsbl is there.

Prendre son temps, profiter de celui qui passe.