User:Inkyfingers/tips

From Sugar Labs
Jump to navigation Jump to search

One or two ideas collected for testing for tutorial page?

OLPC/Sugar as Webserver

  • Open Terminal and type the following to install Boa (approx. 100k)
su -
yum -y install boa
  • Now put your index.html in /var/www
  • Find your Sugar Computer/XO's IP Address. Still as root user (having entered su- already), enter into Terminal:
ifconfig
  • Look next to eth0 for 192.168.whatever (for example)
  • Go to another machine on your LAN and type your Sugar Computer/XO's IP Address into your browser. There's your Sugar computer serving up a web page!

Taking Screen Shots

To take a screen shot, typing Alt+1 at the same time will take one and store it in your journal.

Changing the "XO Guy"

Development_Team/Almanac/Making_Icons Save yourself some time. Don't make the mistake I made. Before you make an icon, see if it's already on the laptop!

/usr/share/icons/sugar/scalable on the laptop contains a bunch of icons for your use. Also, svg-grabber is a python script that will download ~800 non-sugar svg's for you to work from.


To change the XO Guy, the symbol in the middle of the Home view (with applications opening around him/her), you have to follow a few steps:

  • Create An Icon - You first have to make an icon image and save it as an SVG (Scalable Vector Graphics) file with the name computer-xo.svg. Probably on your Mac or Windows machine. There are instructions on how to do this on the OLPC wiki.
  • Transfer It To Your Computer - Copy computer-xo.svg to a USB or SD card and plug it into your OLPC or computer.
  • Install it - Open Terminal and type the following commands to back-up the original icon and copy your new icon into the correct location:
su -l
cp /usr/share/icons/sugar/scalable/device/computer-xo.svg /usr/share/icons/sugar/scalable/device/computer-xo.svg.bak
cp /media/<your usb or sd>/computer-xo.svg /usr/share/icons/sugar/scalable/device/computer-xo.svg
  • Now close terminal and press Ctrl,Alt,Erase.


Restoring Icon To Original

To restore computer-xo.svg back to the original, open terminal and type:

su -l
cp /usr/share/icons/sugar/scalable/device/computer-xo.svg.bak /usr/share/icons/sugar/scalable/device/computer-xo.svg
rm /usr/share/icons/sugar/scalable/device/computer-xo.svg.bak

Source: http://olpcnews.com/forum/index.php?topic=2157.0