Copy to and from the Journal: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 19: Line 19:


==Copy from Journal script==
==Copy from Journal script==
[[http://wiki.laptop.org/images/d/d6/Copy-from-journal.txt This script]] allows you to copy files from the Journal to the linux filesystem.
[http://wiki.laptop.org/images/d/d6/Copy-from-journal.txt This 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.
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]], and type
Go to the [[Terminal Activity]], and type
cd /home/olpc
cd /home/olpc
To go to the directory you saved the file in. Then type
To go to the directory you saved the file in. Then type

Revision as of 10:27, 17 January 2008

This page will document ways of getting files from the Linux file system on the OLPC into the Journal within Sugar.

This page is part of the XO Support FAQ.     Support Index | Print This Page
<imagemap>

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]

  1. Comment : there's some whitespace here:

rect 135 205 345 408 Other support

  1. maybe desc none is better. testing.

desc none

</imagemap>

Copy to Journal Script

This python script http://wiki.laptop.org/images/b/b4/Copy-to-journal.txt 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

chmod a+x copy-to-journal.py

To make the file executable. 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.

Copy from Journal script

This 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

chmod a+x copy-from-journal.py

To make the file executable. Then type

python copy-from-journal.py -t NAME

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