Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Uploaded daily (weekly?) build

Refracta Development, Scripts, etc.

Re: Uploaded daily (weekly?) build

Postby dzz » Mon Jan 02, 2012 5:30 pm

In the installer,

Code: Select all
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.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Uploaded daily (weekly?) build

Postby fsmithred » 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: Select all
# 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: Select all
# 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
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Uploaded daily (weekly?) build

Postby fsmithred » 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.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Uploaded daily (weekly?) build

Postby meandean » Sun Jan 08, 2012 10:17 pm

coolbeans, good to hear you are still tweaking it along
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: Uploaded daily (weekly?) build

Postby dzz » 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.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Uploaded daily (weekly?) build

Postby fsmithred » 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.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Uploaded daily (weekly?) build

Postby dzz » 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.
dzz
 
Posts: 647
Joined: Wed Apr 27, 2011 11:53 am
Location: Devon, England

Re: Uploaded daily (weekly?) build

Postby fsmithred » 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. ;)
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: Uploaded daily (weekly?) build

Postby meandean » 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
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: Uploaded daily (weekly?) build

Postby fsmithred » 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.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

PreviousNext

Return to Discuss

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred