Changes

Jump to navigation Jump to search
report of success with Sugar 0.96.2
Line 1: Line 1: −
<noinclude>{{ GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show }}</noinclude>
   
'''Note:''' This article is about running standard GNU/Linux applications inside Sugar by using the Activities icon panel rather than starting them from the Terminal.
 
'''Note:''' This article is about running standard GNU/Linux applications inside Sugar by using the Activities icon panel rather than starting them from the Terminal.
    +
== Running GNU/Linux Applications Under Sugar ==
    +
There are two ways to run GNU/Linux applications as Activities under Sugar (meaning you don't need to use Terminal to load them):
 +
*'''Sugar Coating''' - Making Linux apps run under Sugar, but not modifying them to take advantage of Sugar's collaborative capabilities
 +
*'''Sugarizing''' - A fully integrated Linux application, re-engineered to take advantage of Sugar's advanced collaboration abilities
 +
*: See these instructions: How to sugarize an application: [http://people.sugarlabs.org/Tgillard/sugarize/wiki-sugarize.txt]
 +
=== Sugar Coating Activities ===
 +
 +
To run Linux apps 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 on [[Running Linux Applications Under Sugar]].
 +
 +
In the future, we hope that Sugar will be able to run Linux applications natively without these steps.
 +
 +
=== Sugarizing Activities ===
 +
 +
See [[Activity Team]] for information on porting regular applications to run as native Sugar Activities.
    
==Sugar Coating==
 
==Sugar Coating==
Line 13: Line 26:  
*only works with programs that use the same command every time (i.e., a single command with no qualifiers). It doesn't work for roto's current mplayer configuration, because the mplayer command requires an input file name to start the program.
 
*only works with programs that use the same command every time (i.e., a single command with no qualifiers). It doesn't work for roto's current mplayer configuration, because the mplayer command requires an input file name to start the program.
    +
{{Note/warning|NOTE:|The procedure outlined below may not work for some versions of Sugar and Fedora. For example on F11 / S0.84 and newer activities sugarized this way crash X.org in some conditions with a BadWindow error. '''A workaround <!-- the solution is to fix X to not crash so easily, is this logged anywhere as a denial of service? -->''' is to obtain the source to libsugarize.c and build libsugarize.so from it -- see http://dev.laptop.org/git/users/albert/sugarize/ . Also recommended: the shell version of 'sugarize', at http://lists.laptop.org/pipermail/devel/2008-January/009387.html
 +
:Some tests with Sugar 0.96.2 were successfull (see [[{{TALKPAGENAME}}#It works!|this comment]]).}}
    
===To setup (one time):===
 
===To setup (one time):===
Line 18: Line 33:  
<li>Start a Terminal activity.</li>  
 
<li>Start a Terminal activity.</li>  
 
<li>Enter the following commands:</li>  
 
<li>Enter the following commands:</li>  
  su
+
  mkdir sugarize
  wget http://www.catmoran.com/olpc/libsugarize.so
+
  wget http://dl.dropbox.com/u/1203534/sugarize/libsugarize.so
 
  chmod 755 libsugarize.so
 
  chmod 755 libsugarize.so
  wget http://www.catmoran.com/olpc/sug
+
  wget http://dl.dropbox.com/u/1203534/sugarize/sug
 
  chmod 755 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.)
+
(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, modified by akiwiguy.)
Please update this. CatMoran site is down from more 1 year. -- alejandro.lavarello (at) gmail (dot) com
+
 
 +
Next, run this:
 +
vi sug
 +
and change the CREATEPATH variable to /home/$yourusernamehere/Activities
 +
 
 
Optional, if you want to use one of the icons 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://ia341002.us.archive.org/3/items/Sugarize/plain.svg
  wget http://www.catmoran.com/olpc/l.svg
+
  wget http://ia341002.us.archive.org/3/items/Sugarize/ff.svg
 +
  wget http://ia341002.us.archive.org/3/items/Sugarize/l.svg
 
</ol>
 
</ol>
   Line 40: Line 60:  
<li>Enter the following commands, to log in as root and execute the sug script. T quit the script at any time, just enter nothing at the prompt and hit the Enter button.</li>
 
<li>Enter the following commands, to log in as root and execute the sug script. T quit the script at any time, just enter nothing at the prompt and hit the Enter button.</li>
   −
su
+
*** In Uruguay, the XO laptops do not allow you to login as root because LATU have blocked this.
 +
Please offer a alternative way, maybe using a Linux PC.
 +
-- alejandro.lavarello (at) gmail (dot) com ***
 +
Fixed, don't need root privleges now. [[User:Akiwiguy|Akiwiguy]] 06:39, 18 September 2010 (EDT)
 +
 
 
  ./sug
 
  ./sug
   Line 53: Line 77:  
The script will give you a success message. Reboot Sugar by pressing Ctrl-Alt-Erase (the Control, Alt and Erase buttons) at the same time. When Sugar restarts you will now see the new icon in the Sugar taskbar. A simple click on the icon will start the newly Sugar Coated program, like any other Sugar Activity.
 
The script will give you a success message. Reboot Sugar by pressing Ctrl-Alt-Erase (the Control, Alt and Erase buttons) at the same time. When Sugar restarts you will now see the new icon in the Sugar taskbar. A simple click on the icon will start the newly Sugar Coated program, like any other Sugar Activity.
 
</ol>
 
</ol>
  −
      
===Sugar Coat Script Mirror Servers===
 
===Sugar Coat Script Mirror Servers===
Line 63: Line 85:       −
 
+
*'''See also: - [http://wiki.sugarlabs.org/go/Category_talk:Live_USB#Sugarize_an_application_for_use_in_a_SoaS_USB Sugarize_an_application_for_use_in_a_SoaS_USB]'''
'''Source''' - [http://olpcnews.com/forum/index.php?topic=1555.0 http://olpcnews.com/forum/index.php?topic=1555.0]
+
*'''Alternate Instructions: [http://people.sugarlabs.org/Tgillard/sugarize/wiki-sugarize.txt wiki-sugarize.txt]'''
 +
::Local storage of needed files:http://people.sugarlabs.org/Tgillard/sugarize/ with permission from Albert Cahalan.
 +
*'''Source''' - [http://olpcnews.com/forum/index.php?topic=1555.0 http://olpcnews.com/forum/index.php?topic=1555.0]
 +
*http://dev.laptop.org/git/users/albert/sugarize/
    
===Comments===
 
===Comments===
Line 129: Line 154:  
CREATEPATH=/home/liveuser/Activities/
 
CREATEPATH=/home/liveuser/Activities/
 
</pre>
 
</pre>
 +
 +
==Useful GNU/Linux Applications==
 +
 +
===VLC Media Player===
 +
The VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, flv, avi, ogg, ...) as well as DVDs, VCDs, and various streaming protocols.  It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network.; the VLC Player is considered to be better by some users then MPlayer because it offer more settings, options and features. There is also no need to run it from Terminal. Read [[Activities/VLC]] to learn how to install it.
 +
 +
===Seamonkey===
 +
SeaMonkey has inherited the successful all-in-one concept of the original Netscape Communicator and continues that product line based on the modern, cross-platform architecture provided by the Mozilla project.
 +
 +
* The Internet browser at the core of the SeaMonkey suite uses the same rendering engine as its sibling Mozilla Firefox, with popular features like tabbed browsing, popup blocking, find as you type and a lot of other functionality for a smooth web experience.
 +
* SeaMonkey's Mail and Newsgroups client shares lots of code with Mozilla Thunderbird and features adaptive Junk mail filtering, labels and mail views, multiple accounts, S/MIME, address books with LDAP support and is ready for both private and corporate use.
 +
* Additonal components include an easy-to-use HTML Editor, the ChatZilla IRC chat application and web development tools like a DOM Inspector and a JavaScript debugger.
 +
* If that's still not enough, SeaMonkey can be extended with numerous Add-Ons that provide additional functionality and customization for a complete Internet experience.
 +
 +
Seamonkey can be Sugar-coated.
 +
 +
===Midnight Commander===
 +
Midnight Commander is a text-mode file manager and visual command shell. It is easily Sugar-coated for access from the Activities panel. [http://www.ibiblio.org/mc/images/mc-panels.png Screenshot] You can also run it directly in Terminal. ([http://www.research-service.com Paper Writers])
 +
 +
===Totem Media Player===
 +
The Totem media player is already installed in the OLPC XO-1. It is the engine that supports media on the system. Out of the box it does not support MP3 music or MPEG-4 video. A free driver can be downloaded to add MP3 compatability. A Sugar-coating can be applied to easily access the program from the Activities panel.
 +
 +
===[http://tux4kids.alioth.debian.org/ Tux4Kids]===
 +
;TuxType2: [http://tuxtype.sourceforge.net/ TuxType] is a touch typing tutorial/game than can be installed on the OLPC XO-1 using the yum command. A Sugar-coating can be applied to easily access the program from the Activities panel.
 +
;TuxMath: [http://tux4kids.alioth.debian.org/tuxmath.php TuxMath] is an arcade game that helps kids practice their math facts. A Sugar-coating can be applied to easily access the program from the Activities panel.
 +
;TuxPaint: [http://www.tuxpaint.org/ Tux Paint] is a  drawing program for children ages 3 to 12. It combines an easy-to-use interface, fun sound effects, and an encouraging cartoon mascot who guides children as they use the program. A Sugar-coating can be applied to easily access the program from the Activities panel.
 +
 +
===UCBLogo===
 +
 +
Logo was [[OLPC:Seymour Papert|Seymour Papert's]] language from the 1960s for children, originally providing Turtle Graphics by controlling a robot turtle. There is a large literature on using Logo to teach programming to children.
 +
 +
Turtle Art can produce [[Activities/TurtleArt/Tutorials/Turtle_Art_and_Logo|Logo output]], but we do not have a Logo activity in Sugar. UCBLogo is available in many Linux distributions, and can be installed (with yum on XOs, yum or apt tools on other Linuces) and run in Terminal. The command window opens a graphic window that the user can drag around. Entering turtle graphic commands at the command line then causes graphic output in the Logo window.
 +
 +
===J===
 +
 +
J is Turing Award winner Ken Iverson's last version of [[OLPC:APL|APL]], his language for describing computers and algorithms, designed originally for human use, not as a programming language. In order to avoid the controversy that surrounded the APL character set and keyboard layouts, J uses only ASCII. J Software, Iverson's company, [http://replacingtextbooks.wordpress.com/2011/07/26/another-programming-language-for-sugar/ put a version of J under GPL3] in March 2011. It can be installed and run from the command line. A Debian package is in preparation.
 +
 +
Iverson successfully used APL to teach arithmetic to first-graders on a loaned IBM 360 with Selectric printing terminals using APL typeballs. He wrote a book on teaching ''Arithmetic'', published by APL Press but now out of print. [[User:Mokurai|Mokurai]] is preparing to add it to the [[Replacing Textbooks]] server.

Navigation menu