Talk:Sugar on a Stick/deja-dup

From Sugar Labs
< Talk:Sugar on a Stick
Revision as of 05:32, 20 May 2010 by Satellit (Talk | contribs) (How to Sugarize deja-dup: change links)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Deja-dup Backup soas-v2-Blueberry


Déjà Dup provides a nice graphical interface for backing up your SoaS live USB/SD installation

Déjà Dup is a simple backup tool. It hides the complexity of doing backups the 'right way' (encrypted, off-site, and regular) and uses Duplicity as the backend.


  • Support for local or remote backup locations, including Amazon S3
  • Securely encrypts and compresses your data
  • Incrementally backs up, letting you restore from any particular backup
  • Schedules regular backups
  • Integrates well into your GNOME desktop


  • Boot Blueberry CD
  • Download rpm :
yum install duplicity
(insert 8GB USB fat 32)
 /boot ext4 200
 /     ext4 7000
 exit partitioner (X) at top of window
 -> continue
 pick root
 pick boot
 skip swap
  • shut down running Blueberry CD
  • Boot USB
rpm -Uvh deja-dup-11.1-1.fc12.i686.rpm

How back up your soas-v2-Blueberry installation

  • Insert a 2nd USB storage device (formatted fat32)
  • In the Terminal Activity
  • Graphical application starts

Initial Configuration

  • edit/Preferences (on top bar of window)
  • Backup location: other / places /<your 2nd USB device> <open> (scroll up to find your device)
  • Include /home
  • exclude /tmp
  • Close


  • in the Terminal (as the default liveuser account)
  • Graphical application starts
  • Backup

Restore to a new replacement SoaS live USB device

  • In the Terminal Activity
    yum install duplicity deja-dup
  • Repeat initial configuration (listed above)
  • Insert 2nd USB device with backup done previously
  • In Terminal
  • Graphical application starts
  • Restore


  • Use a dedicated USB device for Backups for EACH Live USB device you are working with.
  • Keep and mark them in pairs.
  • Backs up and restores
  • Does Not back up the Sugar Journal
  • Use the same soas.iso to make a replacement USB device for Restoration.


How to Sugarize deja-dup

DO this when running a live USB SOAS

  • Locations of activities in sugar versions:
soas-1-strawberry           /home/liveuser/Activites
soas-v2-Blueberry           /home/liveuser/Activities
soas-i386-Nightly composes: /usr/share/sugar/activities
soas-v3-Mirabelle:          /usr/share/sugar/activities
F12-EDU-spin:               /home/xxxx/Activities
  • in sugar-terminal
 yum install gedit                    


copied from:

"Sugarize an X terminal program (SOURCES: [1], [2],[3],[4] and CatMoran)

I know that this works for firefox, I can't vouch for any other program. I know that it does not work for mc. It also doesn't work for roto's current mplayer configuration, because only programs that use the same command every time (ie, no input file name, in this case) can be set up to run this way.

To setup (one time):

Start a Terminal activity. Enter the following commands. (They log you in as root, gets a copy of Albert Cahalan's compiled libsugarize file, and gets the script I created.)

chmod 755
chmod 755 sug

Optional, if you want to use the icons I've already 'created':

>*the script "sug" needs to be edited to reflect the location of activities in different versions of SUGAR:

*Edit the line :"CREATEPATH"= at begining of script "sug"
(use gedit command in terminal)


To run:

Locate an icon you want to use/reuse. You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg >(SEE NOTE AT TOP OF PAGE)<

Or you can use one of the icons I've created. (wget commands above.) plain.svg is a plain circle, ff.svg is a circle with FF (for firefox) inside, l.svg is a circle with L

inside. ff.svg and l.svg can easily be edited for any two or one character(s). Open the file in any text editor. Each letter is in plain text just before the </tspan> tags,

replace them and save the file.

Enter the following commands, to log in as root and execute the sug script. >(SEE NOTE AT TOP OF PAGE and edit script for your version of sugar)<

su ./sug

You'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime or Firefox.

You'll be prompted for an icon file to copy into the new task. You can enter the full path and filename of any .svg file. If the icon is in the same directory as the sug file, you can enter just the filename.

You'll be prompted for the command to start the program. This is the command you entered from Terminal to start the program, such as firefox.

You'll be prompted for an organization path, such as org.mozilla If you don't know what this is, just enter org.x

(If at any of the prompts you want to quit the script, just enter nothing at the prompt.)

The script will give you a success message. Reboot sugar to see the new task in the sugar taskbar."

Alternate Download Locations: without .txt after download)

References and Download Mirrors: