Ask your questions here.
Post a reply
figlfdev

- figlfdev
- Posts: 116
- Joined: Tue May 31, 2016 6:23 pm

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 9:54 am

for context: fig os 1.7 (based on icewm and latest 32bit refracta)
* cant run gparted from the menu IF INSTALLED, but
* can running live
* or frugal (same as running live basically.)
if run from icewm menu (installed with refractainstaller, yay) it says it cant run gparted as user root... but CAN if im root in a term and enter "gparted".
regarding detective work: if you can always boot a fresh refracta (live or frugal-- for the latter, have grub installed to /dev/sdx and copy the /live folder from refracta to /mnt/sdx1/live and change the grub entry to boot /live/vmlinuz with /live/initrd.img live) and automate (script) all changes, this has one major advantage over a manual remaster:
you can check out the latest working version of the script (via diffs/git, or just releases) and normally pinpoint the line(s) where you went wrong. other than that, its the same detective process-- but the trail is entirely documented.
once changes are made with your script you can run refractasnapshot or whatever you do, and voila.
thwak

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 7:17 pm

> figlfdev wrote:if run from icewm menu (installed with refractainstaller, yay) it says it cant run gparted as user root... but CAN if im root in a term and enter "gparted".

sounds like all ya gotta do now is edit the exec entry for gparted within the iceWM menu file
thwak

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 7:33 pm

> greenjeans wrote:@ thwak: If you wanted to go that route, wouldn't it be easier and less likely to break anything just to make a pin file in etc/apt/preferences and pin Synaptic?

thanks, pinning has been one of my coping strategies, along with using a script to rsync back-into-place copies of my customized files.
another coping strategy:
man debconf
sudo dpkg-reconfigure debconf
Not all packages utilize debconf, but setting "ignore questions with a priority less than: LOW"
provides a lot more opportunity (more often) to intercept potential overwrites.
edit: fixed typo ( defconf -} debconf )
Last edited by thwak on Sat Sep 24, 2016 7:26 am, edited 1 time in total.
greenjeans

- greenjeans
- Posts: 68
- Joined: Tue Sep 06, 2016 10:57 pm
- Location: inna woods
- Website

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 8:52 pm

Well if I was just rolling one up for myself it wouldn't be a big deal, and truly it's not anyway, to be honest I prefer being able to mount other partitions with just a click and not having to gksu first, and synaptic and gparted are easy enough to deal with and if I was trying to make my own distro that's what i'd do, but i'm not really trying to do that, since there's no livecd as yet for Devuan I was wanting to make that available so more folks would try it, and i'm really into the whole minimalism thing insofar as starting out with a nice clean basic system to build from. So i'm trying to preserve the basic Devuan set-up as much as possible. Really appreciate you guys helping me with this, I think there's definitely groups of folks out there who would really like what i'm trying to do.
That's how I got started and really got into linux, there was a guy with the handle Siamer that was doing a very similar minimal version of Pclinuxos with gnome 2, and at the time it was the only one like it that I could find anywhere, cool guy, really learned a lot from him, I think he's into Arch these days.
So, I know there's a line in the snapshot.conf about using etc/pmount.allow to let the livecd mount automatically, and another line in the installer.conf that removes it, i'm assuming that changing that choice in snapshot.conf has been tried? If not I can run a snapshot here and give it a whirl.
thwak

- thwak
- Posts: 174
- Joined: Tue Nov 20, 2012 3:58 am

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 9:15 pm

> greenjeans wrote:prefer being able to mount other partitions with just a click and not having to gksu first

policy absolutely can be set to permit that, but I can't recite from memory what steps are involved.

> line in the snapshot.conf about using etc/pmount.allow to let the livecd mount automatically, and another line in the installer.conf that removes it, i'm assuming that changing that choice in snapshot.conf has been tried? If not I can run a snapshot here and give it a whirl.

pmount only deals with removable devices though
greenjeans

- greenjeans
- Posts: 68
- Joined: Tue Sep 06, 2016 10:57 pm
- Location: inna woods
- Website

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 9:34 pm

> thwak wrote:pmount only deals with removable devices though

Hmmm....well do you know what the mechanism is that's allowing the livecd to mount the harddrive partitions automatically by any chance? Because that's not the case in the default settings of the Devuan setup i'm building from, it has pretty hardcore permissions, root to mount and root again to view other than read-only.
Edit: It even asks for the root password to shut down if I have used the "open as administrator" function to edit any system files, like the root user is still logged in even after I close the file manager after editing. And that's just downright annoying, would like to find a way to turn that off. Probably comes from me using su instead of sudo, but I just don't like sudo and don't see a need for it.
figlfdev

- figlfdev
- Posts: 116
- Joined: Tue May 31, 2016 6:23 pm

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Fri Sep 23, 2016 10:31 pm

> thwak wrote:sounds like all ya gotta do now is edit the exec entry for gparted within the iceWM menu file

yeah, and sometimes it is that easy.
* gparted is an example
* there are surely others
* pkexec seems to work as intended here, not familiar with it
* oh and dont get me started on the menu
no worries, its not insumountably far from "that easy," but its definitely often less easy than it would be reasonable to presume.
these things always start simple, heh...
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Sat Sep 24, 2016 12:25 am

@greenjeans: Uncomment the line in etc/pmount.allow. Pmount will let you mount whatever is in the config file. And you don't even need to type the /dev/ part of it. 'pmount sda4' will work.

Code:
  `/dev/sd[a-z][0-9]*`

I got started the same way. I was using live-build to make my own live-cd, and I tried meandean's xinstallerx and was duly impressed. That was the precursor to refractainstaller, which was originally a python program. So was snapshot. I wanted to write them in bash, and Dean liked the idea, so they'd be more easily hackable. Not long after that, I inherited the entire project.
@fig: damn, getting you started on the icewm menu was exactly what was on my mind yesterday. I just hadn't gotten around to asking you yet. I think I could send you what I did with it in refracta-squeeze. If I can figure out which set of files it was. One of my earlier versions had xfce and icewm, and I was thinking of using it for some ascii builds.
Edit: oh, I just re-read mrgreenjeans' post. All your hard drive partitions are auto-mounting when you boot live media? That shouldn't happen. If you have gvfs-daemons installed, you might see hard drive icons on the desktop, but they shouldn't be mounted. Maybe a mate setting is doing that? (and yes, since wheezy, hard drive partitions show up on the desktop unless they're listed in fstab. How do I list dm-0 in fstab?)
figlfdev

- figlfdev
- Posts: 116
- Joined: Tue May 31, 2016 6:23 pm

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Sat Sep 24, 2016 2:07 am

> fsmithred wrote:getting you started on the icewm menu was exactly what was on my mind yesterday. I just hadn't gotten around to asking you yet. I think I could send you what I did with it in refracta-squeeze.

if you find it cool, if not ive got you covered:

Code:
  `[email protected]
  :~# grep icewm mkfigos* | grep local | grep -v "fig\." | tac | tail -4
  mkfigos13.fig:now "echo 'chmod +x / etc /menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/ etc /menu-methods/icewm-common' >> /mnt/mkrefpup/refractafs/squashfs-root/ etc /rc.local" shell
  mkfigos11.fig:now "echo 'chmod +x / etc /menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/ etc /menu-methods/icewm-common' >> /mnt/mkrefpup/refractafs/squashfs-root/ etc /rc.local" shell
  mkfigos10.fig:now "echo 'chmod +x / etc /menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/ etc /menu-methods/icewm-common' >> /mnt/mkrefpup/refractafs/squashfs-root/ etc /rc.local" shell
  mkfigos09.fig:now "echo 'chmod +x / etc /menu-methods/icewm-common ; /usr/bin/update-menus --menumethod=/ etc /menu-methods/icewm-common' >> /mnt/mkrefpup/refractafs/squashfs-root/ etc /rc.local" shell
  [email protected]
  :~# ls -l mkfigos09.fig | awk '{print $6 " " $7}'
  Jul 28
  `

that was 8 weeks ago. granted i think icewm needs to really be installed if dpkg is going to trigger a menu update.
right now the priority is trying to base more of puppy mode on refracta-- and thats been fun (the original goal of the experiment was to update tahr-- now librepup, which is tahr-based-- with refracta) but now we are at the point where:
either it gets a bit serious now, if updating puppy is a serious thing, or it compromises. or it dumps puppy. or it just starts adding puppy stuff to refracta mode instead.
thats the lazy way to do it, and given that there are still no puppy fans using it, i just may stop going to the trouble of doing it some fancy way. this would be abandoning the original experiment and focusing on a product instead. bet you people show up and ask me to go backwards, support the experiment again (oh, now you care...)
greenjeans

- greenjeans
- Posts: 68
- Joined: Tue Sep 06, 2016 10:57 pm
- Location: inna woods
- Website

## Re: Well I broke pkexec somehow, synaptic opens without a pa

Sat Sep 24, 2016 9:14 pm

@ fsmithred: Well here may be my problem, I don't have an "etc/pmount.allow" in the Devuan installs or my re-masters, turns out pmount is not in the base Devuan install at least when doing a netinstall with the mate-desktop only (I unchecked the "default Devuan desktop" when I did the netinstall and only installed mate).
Wow, it's always something simple, and I just gotta make it harder because it's more fun I guess.
So yeah, the partitions are not automounting in the livecd when you boot, they're just listed in the left pane of the file manager unmounted, but when you click on them they mount without needing password input. Nothing on the livecd needs a password at all to work, it acts basically like Puppy linux does (or used to last time I tried it a few years ago), the main user is 100% root and never needs a password, everything that's normally pkexec, gksu, or su-to-root just opens right up when you click it and you're never asked for a password.
sooooo, heading back to the build partition to install pmount, will report back when I see how that works out.
Really sorry guys, I should have picked up on the pmount deal long ago.....
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.