Tiny Core Linux

Tiny Core Extensions => TCE News => Topic started by: coreplayer2 on October 11, 2013, 02:24:09 PM

Title: Snap2usb a screenshot addition
Post by: coreplayer2 on October 11, 2013, 02:24:09 PM
(https://db.tt/Ipwc31Wr)

Adding to the screenshot function, here is an extension which saves snapshots (screenshots) to a single directory, primarily this directory is created on an attached USB drive.  In the absence of a USB thumb drive this directory will be created in the users home directory.

The primary function of "snap2usb" is to save desktop snapshots directly to USB drives (usb_device/snapshots/) directory.  Maintaining an organized structure and persistence over reboots.

This tool comes in handy when tc is booted from a USB thumb drive, or when no home persistence is provided.  Or simply used to organize snapshots into a single directory.

(https://db.tt/N38l88s8)



current status:  extension submitted


script attached
Title: Re: Snap2usb a screenshot addition
Post by: eltone on January 20, 2014, 11:21:29 PM
(https://db.tt/Ipwc31Wr)

Adding to the screenshot function, here is an extension which saves snapshots (screenshots) to a single directory, primarily this directory is created on an attached USB drive.  In the absence of a USB thumb drive this directory will be created in the users home directory.

The primary function of "snap2usb" is to save desktop snapshots directly to USB drives (usb_device/snapshots/) directory.  Maintaining an organized structure and persistence over reboots.

This tool comes in handy when tc is booted from a USB thumb drive, or when no home persistence is provided.  Or simply used to organize snapshots into a single directory.

(https://db.tt/N38l88s8)



current status:  extension submitted


script attached

hi,

Please list deps?

eltone
Title: Re: Snap2usb a screenshot addition
Post by: Juanito on January 20, 2014, 11:24:36 PM
As per the apps gui, there are no deps.

You can double check using:
Code: [Select]
$ ldd /usr/local/bin/snap2usb
Title: Re: Snap2usb a screenshot addition
Post by: tinypoodle on January 20, 2014, 11:56:21 PM
My guess would be imlib2-bin.
Title: Re: Snap2usb a screenshot addition
Post by: coreplayer2 on January 21, 2014, 06:19:15 AM
Maybe there should be a dep file..?  obviously imlib2-bin is required, however imlib2-bin is a dep of Xprogs which I believe would be loaded by default with any gui desktop
Title: Re: Snap2usb a screenshot addition
Post by: Juanito on January 21, 2014, 09:13:15 AM
whilst that's true, it's probably better to have imlib2-bin as a dep just in case - dep added to x86/x86_64 repo
Title: Re: Snap2usb a screenshot addition
Post by: coreplayer2 on January 21, 2014, 09:16:20 AM
Thank you
Title: Re: Snap2usb a screenshot addition
Post by: eltone on January 21, 2014, 03:45:12 PM
hi,

'imlib2-bin.tcz' & 'xorg-7.7-bin.tcz' has been installed, to NO avail!

The camera icon might make a subtle gesture, is all.

Please patch.
eltone
Title: Re: Snap2usb a screenshot addition
Post by: coreplayer2 on January 21, 2014, 04:23:37 PM
h'mmmm..

Well I just downloaded the latest tinycore-current.iso and booted to it.
I set the tce directory and loaded snap2usb extension
I selected the snap2usb icon  which launched the script, a snapshot was saved to the attached USB drive

this is a snapshot of that snapshot
(https://db.tt/CpipYsUV)

Since the extension performs as expected without dep's of it's own, this suggests that your system is missing a fundamental required component, agree?

I would start by comparing your loaded extensions with those of tinycore-current.iso
Title: Re: Snap2usb a screenshot addition
Post by: coreplayer2 on January 21, 2014, 05:12:35 PM
eltone,  try comparing installed/loaded extensions with this default list shown in the attached snapshot.

Notice the list of loaded extensions on the far left, these are the default extensions loaded using tinycore-current.iso.   the list ontop (next stats page to the right) shows the list after snap2usb is installed from the repo and loaded (this time the dep's file was also downloaded).

(https://db.tt/9XglNl4d)
 
Title: Re: Snap2usb a screenshot addition
Post by: eltone on January 21, 2014, 07:05:02 PM
eltone,  try comparing installed/loaded extensions with this default list shown in the attached snapshot.

Notice the list of loaded extensions on the far left, these are the default extensions loaded using tinycore-current.iso.   the list ontop (next stats page to the right) shows the list after snap2usb is installed from the repo and loaded (this time the dep's file was also downloaded).

hi,
tinycore-current.iso  loaded extensions == TCP 5.1 loaded extensions

Problem now points to the LiveUSB sdb1 ext4 and sdb2 f32. 

Q: What is the media arrangement of a functional snap2usb?
eltone
Title: Re: Snap2usb a screenshot addition
Post by: coreplayer2 on January 21, 2014, 07:54:34 PM
Ok so the extension does in fact load, cool.

I thought it was reasonable to assume saving a screenshot to a USB would involve only one attached USB stick, either the USB stick tinycore is booted from (which was the original intent) or a USB stick attached for the purpose of transferring screenshots to another PC.

There is a media hierarchy, however this is not a consideration when multiple USB sticks are attached.

Until multiple USB sticks are supported I'll amend the info file to show this limitation


I suggest removing all except one USB stick in the meantime.
Title: Re: Snap2usb a screenshot addition
Post by: eltone on January 22, 2014, 06:01:24 AM



I suggest removing all except one USB stick in the meantime.

hi,

One USB stick is all that is used, Verbatim Store'n'Go 16GB, which has three partitions:

1) ext4_TCP 5.1
2) fat32_data
3) linux_swap

As the system booted up this AM, read errors were noticed, so will run diagnostics:

Code: [Select]
e2fsck -f -p -c -v /dev/sdb1


eltone
Title: Re: Snap2usb a screenshot addition
Post by: Juanito on January 22, 2014, 06:03:28 AM
Having a swap partition on a usb stick is probably not recommended
Title: Re: Snap2usb a screenshot addition
Post by: eltone on January 22, 2014, 09:54:42 AM
Having a swap partition on a usb stick is probably not recommended
hi,

Q: What is recommended for replacement of the 256MB linux-swap USB stick partition?  There is a 'swap' cheatcode, but I failed to get it functional, thus the stick swap.

eltone
Title: Re: Snap2usb a screenshot addition
Post by: gerald_clark on January 22, 2014, 10:08:16 AM
Swap partitions should be on real hard drives.
Otherwise, use the default zswap.
Title: Snap2usb a screenshot addition
Post by: coreplayer2 on January 23, 2014, 02:02:59 PM
When I look back at all the times I couldn't get something to behave, I think that 99% of those times resulted from not doing it right, was almost never a bug.  just takes a little rethinking..

 If you can't get swap disabled try noswap boot code

eg:
INITRD /boot/core.gz
append loglevel=3 noswap waitusb=5:LABEL=xxxxxx
Title: Re: Snap2usb a screenshot addition
Post by: tinypoodle on January 23, 2014, 02:25:20 PM
http://forum.tinycorelinux.net/index.php/topic,15113.msg86858.html#msg86858