Refracta Development, Scripts, etc.
Post a reply

Re: Uploaded daily (weekly?) build

Mon Jan 02, 2012 5:30 pm

In the installer,

Code:
sed -i 's:/dev/.*::'g /path/to/installation_partition/etc/pmount.allow


should put it back to Debian defaults (or, like you say, comment it out) If you put pmount.allow in excludes, it will disappear altogether!

In an installed system, fixed mounts normally go in fstab, users with a reason to do things differently normally edit their own configs.

Re: Uploaded daily (weekly?) build

Sun Jan 08, 2012 1:38 pm

No new iso yet, but here are the changes I made in my build system. Installer and Snapshot debs have been updated in github. Add the line to pmount.allow and install the new debs, and install/purge packages as described below, and you'll have the main changes.

installed pmount fuseiso pv mbr
added '/dev/sd[a-z][0-9]*' to /etc/pmount.allow
purged nfs-common portmap librpcsecgss3
added flashfire launcher to the panel
updated snapshot and installer debs to deal with pmount.allow




DONE:

Add to installer, near "Re-enable updatedb":
Code:
# Disallow mounting of all fixed drives with pmount
sed -i 's:/dev/sd\[a-z\]:#/dev/sd\[a-z\]:' /target/etc/pmount.allow


Add to snapshotter, right after "Copy the filesystem":
Code:
# Allow all fixed drives to be mounted with pmount
sed -i 's:#/dev/sd\[a-z\]:/dev/sd\[a-z\]:' "$work_dir"/myfs/etc/pmount.allow

Re: Uploaded daily (weekly?) build

Sun Jan 08, 2012 4:56 pm

Uploaded snapshot-20120108_1042.iso with aforementioned changes plus one - refractasnapshot now defaults to naming the iso with date/time instead of just numbering them sequentially.

Re: Uploaded daily (weekly?) build

Sun Jan 08, 2012 10:17 pm

coolbeans, good to hear you are still tweaking it along

Re: Uploaded daily (weekly?) build

Tue Jan 10, 2012 2:01 am

Latest build tests fine here on usb. Locales/tzdata working flawlessly. I can mount partitions and isos as user. Some custom scripts I use now work without changing anything on the system! Thanks for these recent tweaks, it all makes Refracta more versatile.

It might have been better to use a live-config script for mounts but it works fine as it is

Anyone using refracta as a "kiosk" system would probably want pmount disabled for fixed disks (as well as root password and sudo) I just tested that using a simple 3-liner "live-hook" script, works fine, no mounts or root access possible.

Any reasons why "click to focus" is set "false" ( ~/.config/xfce4/xfconf/xfce-percannel-xml/xfwm4.xml ) ? Caused a few mishaps here with open text files, when doing something else on the keyboard and the mouse gets moved unintentionally!

BTW Not tried the newest snapshot or installer yet but the previous snapshot worked on sid last week.

Re: Uploaded daily (weekly?) build

Tue Jan 10, 2012 11:49 am

Thanks for testing and for helping to make Refracta better. The only changes to snapshot and installer are the lines listed above to deal with pmount.allow.

'Focus under mouse' is a preference I picked up long ago (fvwm2 under suse 7.2.) Anything that reduces the number of mouse clicks is good. And sometimes it's helpful to be able to type into a window that's partially obscured by a window that I need to read while I type.

I'd be interested to see what a live-config script for mounts would look like.

Re: Uploaded daily (weekly?) build

Thu Jan 19, 2012 1:52 am

Observation using pmount for fixed disks:

I needed to fix the grub in another system. Chroot failed with "Permission denied: /bin/bash" errors. I can only chroot using a manual or fstab mount Same result on pmounted parts from other Debian systems.

Re: Uploaded daily (weekly?) build

Fri Jan 20, 2012 1:12 am

Well, if you're using chroot, then it's fitting to be a manly man and use mount, as root, the old fashioned way.

pee-mount is for sissies. ;)

Re: Uploaded daily (weekly?) build

Sun Jan 22, 2012 2:09 pm

Yea I guess it depend on what I am doing. I never thought about it much. If I just want to grab some junk off my data partition or try to find something on another partition then pmount sda# from a terminal or even a alt+f2 run box is quick, easy, and orderly with automagically created folders in /media all nice and neat. Whereas if I am going to chroot or other 'heavy' stuff then I su and mount /dev/xxx /mnt since I know the mount point is already there, it is out of the way and pretty much unused anymore.

I think all that relates to me being lazy more than anything else... :D

Re: Uploaded daily (weekly?) build

Sun Jan 22, 2012 4:25 pm

I just click on the desktop icons for the volumes I want to mount, and they get mounted at /media/disk, /media/disk-1, etc.
Post a reply