Copy to and from the Journal: Difference between revisions
(recommend -g (guess mimetype) option but still explain the -m <mimetype> option) |
(rework the sections to anticipate G1G1v2, which has these scripts installed already, but still contain instructions for getting the scripts for older builds. Otherslight tweaks and tidy-ups.) |
||
Line 1: | Line 1: | ||
{{G1G1 Support FAQ}} |
{{G1G1 Support FAQ}} |
||
==Copy to Journal Script== |
==Copy to Journal Script== |
||
[http://dev.laptop.org/git?p=users/phil/support-scripts;a=blob_plain;f=copy-to-journal |
The [http://dev.laptop.org/git?p=users/phil/support-scripts;a=blob_plain;f=copy-to-journal copy-to-journal.py] script written by Reinier Heeres and Phil Bordelon allows you to copy files from the [[Linux]] filesystem into to the [[Journal Activity|Sugar Journal]]. |
||
Once you've gotten the script (see below), start the [[Terminal Activity]], and type |
|||
⚫ | |||
But replace: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
To use it, save it using the name '''copy-to-journal.py'''. Save it in /home/olpc using the [[Opera]] web browser. |
|||
⚫ | |||
⚫ | |||
To go to the directory you saved the file in. Then type |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* '''-g''' means *guess* the mime-type (via the <tt>file</tt> command) |
|||
⚫ | |||
==Copy from Journal script== |
==Copy from Journal script== |
||
[http://dev.laptop.org/git?p=users/phil/support-scripts;a=blob_plain;f=copy-from-journal |
The [http://dev.laptop.org/git?p=users/phil/support-scripts;a=blob_plain;f=copy-from-journal copy-from-journal.py] script allows you to copy files from the [[Journal Activity|Sugar Journal]] to the [[Linux]] filesystem. |
||
⚫ | |||
To use it, save it using the name '''copy-from-journal.py'''. Save it in /home/olpc using the [[Opera]] web browser. |
|||
⚫ | |||
Go to the [[Terminal Activity]], and type |
|||
cd /home/olpc |
|||
To go to the directory you saved the file in. Then type |
|||
⚫ | |||
But replace '''NAME''' with the name you saved in the Journal. |
But replace '''NAME''' with the name you saved in the Journal. |
||
== Getting these scripts == |
|||
=== 767, G1G1v2, and later === |
|||
Later builds have these scripts already installed in /usr/bin already. You don't need to do anything but just use them, as above. |
|||
=== Older builds === |
|||
For older builds, get the script by starting the Terminal activity and typing: |
|||
⚫ | |||
wget -O copy-to-journal.py http://tinyurl.com/copytojournal |
|||
wget -O copy-from-journal.py http://tinyurl.com/copyfromjournal |
|||
...you can then use them by following the directions in the sections above by typing 'python ' (without the quotes) before the beginning of the line with the script, like this: |
|||
python copy-to-journal.py ... |
|||
python copy-from-journal.py ... |
|||
(the full, non-tinyurl urls are in the links in the previous sections, if you don't trust tinyurl and/or want to cut and paste them (Ctrl-C to copy from Browse's address bar, and Control-Shift-V to paste into the Terminal)) |
|||
== Links == |
== Links == |
Revision as of 22:15, 30 October 2008
Image:Support-banner-square.png|173px|community support pages rect 0 0 135 204 [1] rect 135 0 345 204 Support FAQ rect 0 205 135 408 [2]
- Comment : there's some whitespace here:
rect 135 205 345 408 Other support
- maybe desc none is better. testing.
desc none
</imagemap>Copy to Journal Script
The copy-to-journal.py script written by Reinier Heeres and Phil Bordelon allows you to copy files from the Linux filesystem into to the Sugar Journal.
Once you've gotten the script (see below), start the Terminal Activity, and type
copy-to-journal.py FILENAME -g -t TITLE
But replace:
- FILENAME with the name you saved in the filesystem,
- TITLE with the name you want in the journal.
-g means *guess* the mime-type (via the file command). If you want to specify the mime-type explicitly, just add -m MIMETYPE instead of -g
Copy from Journal script
The copy-from-journal.py script allows you to copy files from the Sugar Journal to the Linux filesystem.
Once you've gotten it (see below), start the Terminal Activity, and type
copy-from-journal.py -t NAME
But replace NAME with the name you saved in the Journal.
Getting these scripts
767, G1G1v2, and later
Later builds have these scripts already installed in /usr/bin already. You don't need to do anything but just use them, as above.
Older builds
For older builds, get the script by starting the Terminal activity and typing:
cd /home/olpc wget -O copy-to-journal.py http://tinyurl.com/copytojournal wget -O copy-from-journal.py http://tinyurl.com/copyfromjournal
...you can then use them by following the directions in the sections above by typing 'python ' (without the quotes) before the beginning of the line with the script, like this:
python copy-to-journal.py ... python copy-from-journal.py ...
(the full, non-tinyurl urls are in the links in the previous sections, if you don't trust tinyurl and/or want to cut and paste them (Ctrl-C to copy from Browse's address bar, and Control-Shift-V to paste into the Terminal))
Links
You can find another version of these scripts at http://xoexperience.blogspot.com/2008/02/copy-files-to-and-from-journal.html .