WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Snap2usb a screenshot addition  (Read 8536 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Snap2usb a screenshot addition
« on: October 11, 2013, 02:24:09 PM »


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.





current status:  extension submitted


script attached
« Last Edit: October 21, 2013, 10:24:25 AM by coreplayer2 »

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: Snap2usb a screenshot addition
« Reply #1 on: January 20, 2014, 11:21:29 PM »


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.





current status:  extension submitted


script attached

hi,

Please list deps?

eltone

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: Snap2usb a screenshot addition
« Reply #2 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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Snap2usb a screenshot addition
« Reply #3 on: January 20, 2014, 11:56:21 PM »
My guess would be imlib2-bin.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Snap2usb a screenshot addition
« Reply #4 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: Snap2usb a screenshot addition
« Reply #5 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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Snap2usb a screenshot addition
« Reply #6 on: January 21, 2014, 09:16:20 AM »
Thank you

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: Snap2usb a screenshot addition
« Reply #7 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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Snap2usb a screenshot addition
« Reply #8 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


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
« Last Edit: January 21, 2014, 04:38:10 PM by coreplayer2 »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Snap2usb a screenshot addition
« Reply #9 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).


 
« Last Edit: January 21, 2014, 05:16:11 PM by coreplayer2 »

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: Snap2usb a screenshot addition
« Reply #10 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

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Snap2usb a screenshot addition
« Reply #11 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.

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: Snap2usb a screenshot addition
« Reply #12 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: Snap2usb a screenshot addition
« Reply #13 on: January 22, 2014, 06:03:28 AM »
Having a swap partition on a usb stick is probably not recommended

Offline eltone

  • Full Member
  • ***
  • Posts: 137
Re: Snap2usb a screenshot addition
« Reply #14 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