Difference between revisions of "Running Linux Applications Under Sugar"
Jump to navigation
Jump to search
(formatting) |
(more cleanup) |
||
Line 30: | Line 30: | ||
<li>Locate an icon you want to use/reuse.</li> | <li>Locate an icon you want to use/reuse.</li> | ||
*You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg | *You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg | ||
− | *Or you can use one of the icons | + | *Or you can use one of the icons CatMoran created--and downloaded using thewget commands listed above. plain.svg is a plain circle, ff.svg is a circle with the letters FF (for Firefox) inside, l.svg is a circle with the single letter L inside. Both of the latter files can be easily edited using any text editor and one or both character(s) changed.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. | + | <li>Enter the following commands, to log in as root and execute the sug script.</li> |
su | su | ||
./sug | ./sug | ||
− | You'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime or | + | You'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime, Firefox, or MC. |
− | You'll be prompted for an icon file to copy into the new task. | + | You'll be prompted for an icon file to copy into the new task. Enter the [[Glossary|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 the command to start the program. This is the command you entered from Terminal to start the program, such as firefox. |
Revision as of 20:50, 22 May 2008
Note: This article is about running Linux applications inside Sugar, not launching them in Terminal.
To run standard Linux program under Sugar (i.e. making them to run in the Sugar interface, without the collaboration and other Sugar integration programmed into them), read these instructions.
A woman named CatMoran created a script that automates most of the steps of Sugar Coating Linux applications to run under Sugar.
- The process has be confirmed to work with Firefox, Seamonkey, Midnight Commander and Totem.It it presumed to work with many other Linux programs.
- It 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: su wget http://www.catmoran.com/olpc/libsugarize.so chmod 755 libsugarize.so wget http://www.catmoran.com/olpc/sug chmod 755 sug (What do those commands do? They log you in as root, gets a copy of Albert Cahalan's compiled libsugarize file, and gets the script CatMoran created.) Optional, if you want to use one of the icons CatMoran created: wget http://www.catmoran.com/olpc/plain.svg wget http://www.catmoran.com/olpc/ff.svg wget http://www.catmoran.com/olpc/l.svg
To Run:
- Locate an icon you want to use/reuse.
- You can copy any .svg file located in /usr/share/activities/*.activity/activity/*.svg
- Or you can use one of the icons CatMoran created--and downloaded using thewget commands listed above. plain.svg is a plain circle, ff.svg is a circle with the letters FF (for Firefox) inside, l.svg is a circle with the single letter L inside. Both of the latter files can be easily edited using any text editor and one or both character(s) changed.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. su ./sug You'll be prompted for an activity name. Enter a short, descriptive name with no spaces or punctuation, such as BibleTime, Firefox, or MC. You'll be prompted for an icon file to copy into the new task. 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.
Sugarize Mirror Servers
- Main Page - http://www.archive.org/details/Sugarize
- The HTTP - http://ia341002.us.archive.org/3/items/Sugarize
- The FTP - ftp://ia341002.us.archive.org/3/items/Sugarize