Copy to and from the Journal

From OLPC

Jump to: navigation, search
This page is part of the XO Support FAQ.     Support Index | Print This Page
Getting startedSupport FAQChatOther support
community support pages

[edit] Copy to Journal Script

This Python script by Reinier Heeres and Phil Bordelon seems to do the trick.

This allows you to copy files from Linux to the Journal Activity filesystem.

To use it, save it using the name copy-to-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

python copy-to-journal.py FILENAME -m MIMETYPE -t TITLE
  • FILENAME is the name you saved in the filesystem,
  • MIMETYPE is the Mimetype (eg txt or pdf).
  • TITLE is the name you want in the journal.

PS: A minor patch that makes it unnecessary to specify the MIMETYPE (it figures it out from the file extension) has been proposed by User:Vorburger on devel mailing list. Here is the enhanced copy-to-journal.py script, and the diff for it

[edit] Copy from Journal script

This Python script allows you to copy files from the 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

python copy-from-journal.py -t NAME

But replace NAME with the name you saved in the Journal.

[edit] Links

You can find another version of these scripts at http://xoexperience.blogspot.com/2008/02/copy-files-to-and-from-journal.html .

Personal tools
  • Log in / create account
About OLPC
About the XO
Projects
OLPC wiki
Toolbox