XS Community Edition/0.4/Testing: Difference between revisions
(41 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{xsce}} |
|||
{{TOCright}} |
{{TOCright}} |
||
=XSCE Smoke Test= |
=XSCE Smoke Test= |
||
Line 5: | Line 6: | ||
Tests are run against reference hardware first, generally XO-1.75 and XO-4 Touch and Trim-Slice. We ask your help running against more hardware variations serving global implementers' and contributors' needs. |
Tests are run against reference hardware first, generally XO-1.75 and XO-4 Touch and Trim-Slice. We ask your help running against more hardware variations serving global implementers' and contributors' needs. |
||
Please see our [[../Testing/Results|evolving table of smoke test results]]. |
'''Please see our [[../Testing/Results|evolving table of smoke test results]].''' |
||
=Installation= |
=Installation= |
||
Purpose |
Purpose |
||
# Verify the installation process works correctly. |
# Verify the installation process works correctly. |
||
Prerequisites |
Prerequisites |
||
# A piece of hardware, or a virtualbox hardware simulation running on a bigger machine that has sufficient disk space (virtual schoolserver instances are used by the XSCE team, but are not really supported, tested, "we'll fix it if it's broken"). |
|||
# None |
|||
Steps |
Steps |
||
# Decide which installation technique you want to test. See [[../Installing|INSTALL instructions]]. |
|||
# Perform the Installation process, noting any errors, or documentation improvements (please submit) |
|||
# NOTE please use the command "wget http://xsce.activitycentral.com/repos/xsce-release.repo" to get the current branch. |
|||
# Install using the the [[User:Holt/XS_Community_Edition/0.4/Installing | instructions]] and a fresh OLPC-OS 13.2.0 or Fedora 18 install. |
|||
Results |
Results |
||
# The install should complete without errors. |
# The install should complete without errors. |
||
Line 27: | Line 27: | ||
==External SD Card== |
==External SD Card== |
||
Purpose |
Purpose |
||
# Verify the External SD card used for additional storage is functional. |
# Verify the External SD card used for additional storage is functional. |
||
Prerequisites |
Prerequisites |
||
# The SD card must be inserted into XO before the XSCE install process is started, if it is to be recognized, and incorporated in the disk layout. |
|||
# SD card inserted into XO. |
|||
# Before the "xs-setup" command is run, the "prep-storage" command will prepare the SD card for use by the XSCE. |
|||
Steps |
Steps |
||
# If the SD card is prepared as in step 2 above, it should be recognized automaatially, and become the place where the /library folder is configured. |
|||
# Mount /dev/mmcblk0p1 |
|||
Results |
Results |
||
# |
# The "df -Th" should report a /dev/mmcbk0p1 partition of type "ext4" mounted on /library. |
||
==External USB Drive |
==External USB Drive== |
||
Purpose |
Purpose |
||
# If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional. |
# If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional. |
||
Prerequisites |
Prerequisites |
||
# External drives require a lot of power to spin up correctly, and be recognized. Some testing has shown that a powered USB hub is often necessary (especially with the XO1.5).<br> One Western Digital "my passport" , and no other loads, on a XO1.75, or XO4 seems to work reliably. |
|||
# External drive should be attached to XO via USB cable. |
|||
Steps |
Steps |
||
# A schoolserver will automatically mount an external hard drive, once it is recognized, at '/mnt/usb{1..9}. |
|||
# ??? |
|||
Results |
Results |
||
# Verify that it is mounted successfully with the command "df -h". |
|||
# ??? |
|||
=Core Service= |
=Core Service= |
||
Core service should be tested using a School Server and a 'client' XO running 13.1.0. |
Core service should be tested using a School Server and a 'client' XO running 13.1.0. |
||
==Apache Web Server (httpd)== |
|||
Purpose |
|||
# Verify the web server is functional. |
|||
Prerequisites |
|||
# XO should be connected to XSCE. |
|||
Steps |
|||
# Go to http://schoolserver and http://schoolserver.local. |
|||
Results |
|||
# Both should resolve to the XSCE homepage. |
|||
==Proxy Caching (squid)== |
|||
Purpose. |
|||
#Verify Proxy caching is functional. |
|||
Prerequisites |
|||
#XO should be connected to XSCE. |
|||
Steps |
|||
# On XSCE Check the initial size of the squid cache directory: du -sk /library/cache. |
|||
# On XO open Browse Activity and surf the internet. |
|||
# On XSCE Check the squid cache directory size again. |
|||
Results |
|||
# Cache size should increase. |
|||
==Dynamic Host Configuration (dhcpd)== |
==Dynamic Host Configuration (dhcpd)== |
||
Line 59: | Line 88: | ||
# Verify the dynamic host configuration is functional. |
# Verify the dynamic host configuration is functional. |
||
Prerequisites |
Prerequisites |
||
# None |
# None |
||
Steps |
Steps |
||
# Go to |
# Go to Neighborhood View. |
||
# Click on the name of your Access Point. |
# Click on the name of your Access Point. |
||
Results |
|||
Result |
|||
# After a few seconds the connections status will change to "Connected." |
# After a few seconds the connections status will change to "Connected." |
||
==Network Address Translation/NAT (iptables)== |
==Network Address Translation/NAT (iptables)== |
||
Purpose |
Purpose |
||
# Verify network address translation is functional. |
# Verify network address translation is functional. |
||
Line 76: | Line 105: | ||
# XO should be connected to XSCE. |
# XO should be connected to XSCE. |
||
Steps |
Steps |
||
# In a browser, go to https://mail.google.com (any site with HTTPS). |
# In a browser, go to https://mail.google.com (any site with HTTPS). |
||
Line 83: | Line 112: | ||
==Registration (idmgr)== |
==Registration (idmgr)== |
||
Purpose |
Purpose |
||
# Verify XO registration is functional. |
# Verify XO registration is functional. |
||
Prerequisites |
Prerequisites |
||
# XO should be connected to XSCE. |
# XO should be connected to XSCE. |
||
Steps |
Steps |
||
# Register the XSCE. |
# Register the XSCE. |
||
Results |
Results |
||
# Receive a message that registration was successful. |
# Receive a message that registration was successful. |
||
# Registration creates a directory named the XO's serial number in /library/users. |
# Registration creates a directory named the XO's serial number in /library/users. |
||
==XMPP Server (ejabberd)== |
==XMPP Server (ejabberd)== |
||
Purpose |
Purpose |
||
# Verify that the XMPP server is functional. |
# Verify that the XMPP server is functional. |
||
Prerequisites |
Prerequisites |
||
# XO should be registered. |
# XO should be registered. |
||
Steps |
Steps |
||
# If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood. |
# If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood. |
||
# To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal: |
# To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal: |
||
# ejabberdctl connected-users |
# ejabberdctl connected-users |
||
Results |
Results |
||
# ??? |
# ??? |
||
==XMPP based collaboration (ejabberd)== |
==XMPP based collaboration (ejabberd)== |
||
Purpose |
Purpose |
||
# Verify that the XMPP based collaboration is functional. |
# Verify that the XMPP based collaboration is functional. |
||
Prerequisites |
Prerequisites |
||
# 2 client XOs. |
# 2 client XOs. |
||
Steps |
Steps |
||
# On both XO's click on the same XSCE network |
# On both XO's click on the same XSCE network |
||
# Confirm that both units are on the same network |
# Confirm that both units are on the same network |
||
Line 130: | Line 159: | ||
# Follow the same steps, but starting with the second XO. (see that it works both ways) |
# Follow the same steps, but starting with the second XO. (see that it works both ways) |
||
Results |
Results |
||
# The shared chat activity shows up in the network view of both laptops |
# The shared chat activity shows up in the network view of both laptops |
||
# Whatever one laptop types in the chat window after both are connected is seen by both laptops |
# Whatever one laptop types in the chat window after both are connected is seen by both laptops |
||
Line 136: | Line 165: | ||
=Extended Service= |
=Extended Service= |
||
==Apache Web Server (httpd)== |
|||
Purpose. |
|||
# Verify the web server is functional. |
|||
Prerequisites. |
|||
# XO should be connected to XSCE. |
|||
Steps. |
|||
# Go to http://schoolserver and http://schoolserver.local. |
|||
Results. |
|||
# Both should resolve to the XSCE homepage. |
|||
==Proxy Caching(squid)== |
|||
Purpose. |
|||
#Verify Proxy caching is functional. |
|||
Prerequisites. |
|||
#XO should be connected to XSCE. |
|||
Steps. |
|||
# On XSCE Check the initial size of the squid cache directory: du -sk /library/cache. |
|||
# On XO open Browse Activity and surf the internet. |
|||
# On XSCE Check the squid cache directory size again |
|||
Results. |
|||
# Cache size should increase |
|||
==OLPC-update (rsync)== |
==OLPC-update (rsync)== |
||
Purpose |
Purpose |
||
# Verify OLPC-update is functional. |
# Verify OLPC-update is functional. |
||
Prerequisites |
Prerequisites |
||
# ??? |
# ??? |
||
Steps |
Steps |
||
# ??? |
# ??? |
||
Results |
Results |
||
# ??? |
# ??? |
||
Line 184: | Line 185: | ||
PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0 |
PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0 |
||
Purpose |
Purpose |
||
# Verify OLPC-back is functional. |
# Verify OLPC-back is functional. |
||
Prerequisites |
Prerequisites |
||
# XO should be connected to XSCE. |
# XO should be connected to XSCE. |
||
# XO should be registered. |
# XO should be registered. |
||
Steps |
Steps |
||
# rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists. |
# rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists. |
||
# /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument. |
# /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument. |
||
Results |
Results |
||
# On XO /home/olpc/.sugar/default/ds-backup-done should exist |
# On XO /home/olpc/.sugar/default/ds-backup-done should exist |
||
# On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`. |
# On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`. |
||
Line 202: | Line 203: | ||
==Activity Server (uses httpd)== |
==Activity Server (uses httpd)== |
||
Purpose |
Purpose |
||
# Verify http://schoolserver/activities resolves. |
# Verify http://schoolserver/activities resolves. |
||
Prerequisites |
Prerequisites |
||
# ??? |
# ??? |
||
Steps |
Steps |
||
# Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php. |
# Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php. |
||
# Click on "Choose File" |
# Click on "Choose File" |
||
Line 214: | Line 215: | ||
# Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README |
# Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README |
||
Results |
Results |
||
# Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page. |
# Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page. |
||
==Virtual Private Network ( |
==Virtual Private Network (OpenVPN)== |
||
Purpose |
Purpose |
||
# To permit two machines with internet access to talk to one another, regardless of intervening routers, ISP's, firewalls. |
|||
# Verify VPN is functional. See http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN |
|||
# This is based upon the fact that for internet access to work, a connection can always be created from the inside out, and the response can find its way back to the originator of the exchange. |
|||
Prerequisites |
Prerequisites |
||
# A schoolserver, and OPTIONALLY another schoolserver or another computer with openvpn loaded on it |
|||
# ??? |
|||
Steps |
Steps |
||
# At the schoolserver console, type "xs-vpn test" |
|||
# ??? |
|||
Results |
Results |
||
# After about a minute, the "xs-vpn" script will terminate with the message "vpn tunnel established" |
|||
# ??? |
|||
OPTIONALLY |
|||
# Setup the tunnel for the second machine (if you are using a machine that is not a schoolserver, you may need to copy /etc/openvpn/keys to the appropriate openvpn config location on the second machine) |
|||
# use the "ifconfig" command to discover the ip address for the "tun" (tunnel) device on each machine. It will be on the 10.8.0.x network) |
|||
# The two machines should be able to ping one another's ip 10.8.0.x addresses. |
|||
# You should be able to ssh into the schoolserver with a console command similar to "ssh admin@10.8.0.6 (with the actual address on the remote machine) -- for testing, unless you've changed it, the admin password is "12admin". |
|||
EXTREMELY IMPORTANT: OpenVPN on top of XSCE makes a school server LESS SECURE. It provides connectivity, NOT SECURITY. |
|||
AT THE MINIMUM, you must change /etc/ssh/sshd_config to say "PasswordAuthentication no". To use ssh for remote access to the schoolserver, yum must use public/private key authentication -- see http://en.wikipedia.org/wiki/Ssh-keygen. You will nee to create your own private encryption key-pair, and install them correctly. Additional information is at http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN |
|||
==Tiny Core Linux Customization Stick== |
|||
Purpose -- refer to documentation at http://wiki.laptop.org/go/Tiny_Core_Linux |
|||
# Permit deployments to easily add/remove activities from stock builds of XO software, run scripts as superuser (root) on an classroom XO. |
|||
Prerequisites |
|||
# Working Schoolserver |
|||
# USB stick with at least 50MB of free space by doing the following |
|||
Steps |
|||
# Copy the contents of /usr/share/xs-config/tccustomize/* to the root directory of a USB stick: |
|||
## Put the USB drive in an available schoolserver USB socket |
|||
## On the Schoolserver console, or in a ssh shell, navigate to the tccustomize directory -- "cd /usr/share/xs-config/tccustomize". |
|||
## Copy boot directory and HowTo instructions to USB stick -- "cp -rp * /mnt/usb0". |
|||
## Make sure the copy is complete -- "sync". |
|||
# Put this Customization Stick in an unlocked XO, and turn it on |
|||
Results |
|||
# The Tiny Core Linux should load and be visible on the XO screen |
|||
==Statistics Collection - Pending Santi/Anish== |
==Statistics Collection - Pending Santi/Anish== |
||
Purpose |
Purpose |
||
# Verify Statistics collection is functional. |
# Verify Statistics collection is functional. |
||
Prerequisites |
Prerequisites |
||
# Currently, client side testing can only be performed from DX4. Install the DX4 build from http://build.activitycentral.com/DX4/INTL/build10/ |
|||
# ??? |
|||
# For XO-1 clients only: download and yum localinstall http://build.activitycentral.com/repositories/rrdtool-xo1/rrdtool-1.4.7-9dx4xo1.i686.rpm and http://build.activitycentral.com/repositories/rrdtool-xo1/rrdtool-python-1.4.7-9dx4xo1.i686.rpm |
|||
# Edit /etc/sugar-client.conf from "stats-url = http://stats.sugardextrose.org:8000" to "stats-url = http://schoolserver:8000" |
|||
# Reboot |
|||
Steps |
Steps |
||
# Let the XO client sit for a few minutes, then check /home/olpc/.sugar/default/stats for .rrd files. |
|||
# ??? |
|||
Results |
Results |
||
# Several minutes later, go to /library/sugar-stats/rrd/ on the server, then navigate into the client's directory to check for .rrd files. It should look something like this: |
|||
# ??? |
|||
<pre>[root@schoolserver] ~ >ls /library/sugar-stats/rrd/c2/c2b66da561d5e6370d7bbe84a3250609773b780c/ |
|||
activity.org.laptop.Terminal.rrd journal.rrd network.rrd shell.rrd system.rrd</pre> |
|||
== |
==Pathagar book server - Pending Sameer/Seth== |
||
Purpose |
Purpose |
||
# Verify book server is functional. |
# Verify book server is functional. |
||
Prerequisites |
Prerequisites |
||
# ??? |
# ??? |
||
Steps |
Steps |
||
# Browse to the root directory of the schoolserver and click on the "Pathagar" link . You should see the Pathagar home page displayed. |
|||
# ??? |
|||
Results |
Results |
||
# The login username is "pathagar" and the password is bookserver spelled backwards "revreskoob". |
|||
# ??? |
|||
# The current situation is that the interface between pathagar software and Apache does not permit upload of books (we expect to fix this before 0.4 is finally released). |
|||
==Ejabberd Web Interface ???== |
==Ejabberd Web Interface ???== |
||
Line 273: | Line 310: | ||
In the Basic tab under Login Options, enter the following values: |
In the Basic tab under Login Options, enter the following values: |
||
<pre>Protocol: |
<pre>Protocol: XMPP |
||
Username: |
Username: yourname |
||
Domain: schoolserver.local |
Domain: schoolserver.local |
||
Resource: pidgin |
Resource: pidgin |
||
Line 290: | Line 327: | ||
Now in the Buddy List, you should see the XOs that are currently connected to the XSCE's ejabberd server. |
Now in the Buddy List, you should see the XOs that are currently connected to the XSCE's ejabberd server. |
||
==Internet |
==Internet-in-a-Box== |
||
Purpose |
Purpose |
||
# Test the interface between apache web server and the IIAB dataset. |
|||
# |
|||
Prerequisites |
Prerequisites |
||
# You need an Internet-in-a-Box hard drive |
# You need an Internet-in-a-Box hard drive. |
||
# As an alternative to 650GB on an external hard drive, there is a quick-start download, for testing purposes at http://downloads.internet-in-a-box.org/IIAB_QuickStart_Sampler_20130809.tgz. (Note: we need to document where to place the Sampler so that it will be found). |
|||
Steps -- Verify Internet in Box is functional by doing the following: |
|||
Steps. |
|||
# On a client XO, open the Browse Activity. |
|||
Verify Internet in Box is functional. |
|||
# Click on the home page icon. |
|||
# Browse to the root directory of the schoolserver and click on the "Internet-In-A-Box" link. You should see the IIAB home page displayed. |
|||
# Click on the "school server" |
|||
# Click on the "Internet-In-A-Box" link (The link will be colored blue, if the dataset has been found). You should see the IIAB home page displayed. |
|||
Results |
Results |
||
# You should see the IIAB home page which starts off -- Wikipedia, books, maps, videos, ... |
|||
# ??? |
|||
==PostgresSQL== |
==PostgresSQL== |
Latest revision as of 21:10, 26 September 2013
This IIAB XSCE content does not reflect the opinion of OLPC. These pages were created by members of a volunteer community supporting OLPC and deployments.
XSCE Smoke Test
This set of test cases represents a quick smoke test that a build should pass. Please file bugs at https://sugardextrose.org/projects/xsce/issues
Tests are run against reference hardware first, generally XO-1.75 and XO-4 Touch and Trim-Slice. We ask your help running against more hardware variations serving global implementers' and contributors' needs.
Please see our evolving table of smoke test results.
Installation
Purpose
- Verify the installation process works correctly.
Prerequisites
- A piece of hardware, or a virtualbox hardware simulation running on a bigger machine that has sufficient disk space (virtual schoolserver instances are used by the XSCE team, but are not really supported, tested, "we'll fix it if it's broken").
Steps
- Decide which installation technique you want to test. See INSTALL instructions.
- Perform the Installation process, noting any errors, or documentation improvements (please submit)
Results
- The install should complete without errors.
Hardware
The XSCE can detect and utilize several types of hardware.
External SD Card
Purpose
- Verify the External SD card used for additional storage is functional.
Prerequisites
- The SD card must be inserted into XO before the XSCE install process is started, if it is to be recognized, and incorporated in the disk layout.
- Before the "xs-setup" command is run, the "prep-storage" command will prepare the SD card for use by the XSCE.
Steps
- If the SD card is prepared as in step 2 above, it should be recognized automaatially, and become the place where the /library folder is configured.
Results
- The "df -Th" should report a /dev/mmcbk0p1 partition of type "ext4" mounted on /library.
External USB Drive
Purpose
- If you are using an external USB hard drive, verify the External USB hard drive used for additional storage is functional.
Prerequisites
- External drives require a lot of power to spin up correctly, and be recognized. Some testing has shown that a powered USB hub is often necessary (especially with the XO1.5).
One Western Digital "my passport" , and no other loads, on a XO1.75, or XO4 seems to work reliably.
Steps
- A schoolserver will automatically mount an external hard drive, once it is recognized, at '/mnt/usb{1..9}.
Results
- Verify that it is mounted successfully with the command "df -h".
Core Service
Core service should be tested using a School Server and a 'client' XO running 13.1.0.
Apache Web Server (httpd)
Purpose
- Verify the web server is functional.
Prerequisites
- XO should be connected to XSCE.
Steps
- Go to http://schoolserver and http://schoolserver.local.
Results
- Both should resolve to the XSCE homepage.
Proxy Caching (squid)
Purpose.
- Verify Proxy caching is functional.
Prerequisites
- XO should be connected to XSCE.
Steps
- On XSCE Check the initial size of the squid cache directory: du -sk /library/cache.
- On XO open Browse Activity and surf the internet.
- On XSCE Check the squid cache directory size again.
Results
- Cache size should increase.
Dynamic Host Configuration (dhcpd)
Purpose
- Verify the dynamic host configuration is functional.
Prerequisites
- None
Steps
- Go to Neighborhood View.
- Click on the name of your Access Point.
Results
- After a few seconds the connections status will change to "Connected."
Network Address Translation/NAT (iptables)
Purpose
- Verify network address translation is functional.
Prerequisites
- XO should be connected to XSCE.
Steps
- In a browser, go to https://mail.google.com (any site with HTTPS).
Results
- Site should open correctly.
Registration (idmgr)
Purpose
- Verify XO registration is functional.
Prerequisites
- XO should be connected to XSCE.
Steps
- Register the XSCE.
Results
- Receive a message that registration was successful.
- Registration creates a directory named the XO's serial number in /library/users.
XMPP Server (ejabberd)
Purpose
- Verify that the XMPP server is functional.
Prerequisites
- XO should be registered.
Steps
- If you get a message that registration failed, go to the Sugar Control Panel and in Network, clear out the collaboration server field. Upon successful registration, both XOs will appear in Network Neighborhood.
- To verify that ejabberd is managing collaboration and not the LAN, issue this in a root terminal:
- ejabberdctl connected-users
Results
- ???
XMPP based collaboration (ejabberd)
Purpose
- Verify that the XMPP based collaboration is functional.
Prerequisites
- 2 client XOs.
Steps
- On both XO's click on the same XSCE network
- Confirm that both units are on the same network
- Open chat with one XO
- Share the activity with the neighborhood
- Go to the Network view of that XO
- Go to the Network view of the second XO
- In the network view of the second XO click on the chat activity that the first one just shared
- Type a few lines in the chat activity on each XO
- Close the chat activity on both XOs
- Follow the same steps, but starting with the second XO. (see that it works both ways)
Results
- The shared chat activity shows up in the network view of both laptops
- Whatever one laptop types in the chat window after both are connected is seen by both laptops
- Chat works both ways and on all three networks
Extended Service
OLPC-update (rsync)
Purpose
- Verify OLPC-update is functional.
Prerequisites
- ???
Steps
- ???
Results
- ???
http://dev.laptop.org/git/users/martin/xs-rsync/tree/README
OLPC-backup
PLEASE NOTE: ds-backup is broken client side in 13.1.0 due to problem with ping being prevented. Please test against a client running 13.2.0
Purpose
- Verify OLPC-back is functional.
Prerequisites
- XO should be connected to XSCE.
- XO should be registered.
Steps
- rm /home/olpc/.sugar/default/ds-backup-done #delete the ds-backup-done if it exists.
- /usr/bin/ds-backup.sh nosleep# run backup with the nosleep argument.
Results
- On XO /home/olpc/.sugar/default/ds-backup-done should exist
- On XSCE each successful backup run creates a new directory under `/library/users/<Serial Number>/datastore`.
Please see http://wiki.laptop.org/go/XS_Blueprints:Datastore_Simple_Backup_and_Restore for more information
Activity Server (uses httpd)
Purpose
- Verify http://schoolserver/activities resolves.
Prerequisites
- ???
Steps
- Upload an Activity to the school server by using a browser to navigate to http://schoolserver.local/upload_activity.php.
- Click on "Choose File"
- Use the file chooser to indicate which Activity you would like to upload.
- Create a USB stick with the activities you want to install in a folder called xs-activity-server and create the md5sums as specified at http://dev.laptop.org/git/users/martin/xs-activity-server/tree/README
Results
- Browse to the root directory of the schoolserver and click on the "Download an Activity" link. You should see the activities you uploaded on the resulting page.
Virtual Private Network (OpenVPN)
Purpose
- To permit two machines with internet access to talk to one another, regardless of intervening routers, ISP's, firewalls.
- This is based upon the fact that for internet access to work, a connection can always be created from the inside out, and the response can find its way back to the originator of the exchange.
Prerequisites
- A schoolserver, and OPTIONALLY another schoolserver or another computer with openvpn loaded on it
Steps
- At the schoolserver console, type "xs-vpn test"
Results
- After about a minute, the "xs-vpn" script will terminate with the message "vpn tunnel established"
OPTIONALLY
- Setup the tunnel for the second machine (if you are using a machine that is not a schoolserver, you may need to copy /etc/openvpn/keys to the appropriate openvpn config location on the second machine)
- use the "ifconfig" command to discover the ip address for the "tun" (tunnel) device on each machine. It will be on the 10.8.0.x network)
- The two machines should be able to ping one another's ip 10.8.0.x addresses.
- You should be able to ssh into the schoolserver with a console command similar to "ssh admin@10.8.0.6 (with the actual address on the remote machine) -- for testing, unless you've changed it, the admin password is "12admin".
EXTREMELY IMPORTANT: OpenVPN on top of XSCE makes a school server LESS SECURE. It provides connectivity, NOT SECURITY.
AT THE MINIMUM, you must change /etc/ssh/sshd_config to say "PasswordAuthentication no". To use ssh for remote access to the schoolserver, yum must use public/private key authentication -- see http://en.wikipedia.org/wiki/Ssh-keygen. You will nee to create your own private encryption key-pair, and install them correctly. Additional information is at http://wiki.laptop.org/go/Setting_Up_an_XSCE_VPN
Tiny Core Linux Customization Stick
Purpose -- refer to documentation at http://wiki.laptop.org/go/Tiny_Core_Linux
- Permit deployments to easily add/remove activities from stock builds of XO software, run scripts as superuser (root) on an classroom XO.
Prerequisites
- Working Schoolserver
- USB stick with at least 50MB of free space by doing the following
Steps
- Copy the contents of /usr/share/xs-config/tccustomize/* to the root directory of a USB stick:
- Put the USB drive in an available schoolserver USB socket
- On the Schoolserver console, or in a ssh shell, navigate to the tccustomize directory -- "cd /usr/share/xs-config/tccustomize".
- Copy boot directory and HowTo instructions to USB stick -- "cp -rp * /mnt/usb0".
- Make sure the copy is complete -- "sync".
- Put this Customization Stick in an unlocked XO, and turn it on
Results
- The Tiny Core Linux should load and be visible on the XO screen
Statistics Collection - Pending Santi/Anish
Purpose
- Verify Statistics collection is functional.
Prerequisites
- Currently, client side testing can only be performed from DX4. Install the DX4 build from http://build.activitycentral.com/DX4/INTL/build10/
- For XO-1 clients only: download and yum localinstall http://build.activitycentral.com/repositories/rrdtool-xo1/rrdtool-1.4.7-9dx4xo1.i686.rpm and http://build.activitycentral.com/repositories/rrdtool-xo1/rrdtool-python-1.4.7-9dx4xo1.i686.rpm
- Edit /etc/sugar-client.conf from "stats-url = http://stats.sugardextrose.org:8000" to "stats-url = http://schoolserver:8000"
- Reboot
Steps
- Let the XO client sit for a few minutes, then check /home/olpc/.sugar/default/stats for .rrd files.
Results
- Several minutes later, go to /library/sugar-stats/rrd/ on the server, then navigate into the client's directory to check for .rrd files. It should look something like this:
[root@schoolserver] ~ >ls /library/sugar-stats/rrd/c2/c2b66da561d5e6370d7bbe84a3250609773b780c/ activity.org.laptop.Terminal.rrd journal.rrd network.rrd shell.rrd system.rrd
Pathagar book server - Pending Sameer/Seth
Purpose
- Verify book server is functional.
Prerequisites
- ???
Steps
- Browse to the root directory of the schoolserver and click on the "Pathagar" link . You should see the Pathagar home page displayed.
Results
- The login username is "pathagar" and the password is bookserver spelled backwards "revreskoob".
- The current situation is that the interface between pathagar software and Apache does not permit upload of books (we expect to fix this before 0.4 is finally released).
Ejabberd Web Interface ???
This isn't necessary for testing, but is fun to poke around in:
Register the admin user: ejabberdctl register admin schoolserver.local <password>
In a browser, go to http://schoolserver.local:5280/admin
The username is admin@schoolserver.local and the password is whatever you set above.
Using Pidgin to Monitor Ejabberd
When testing the XSCE, it can be helpful to see at a glance which XO clients have successfully connected to the ejabberd server. Pidgin is a cross platform XMPP client you can use to connect to the schoolserver's ejabberd server from any Windows/Linux/Mac computer. Connected XO clients will appear in the Buddy List.
In the Buddy List window, go to Accounts -> Manage Accounts. Click Add.
In the Basic tab under Login Options, enter the following values:
Protocol: XMPP Username: yourname Domain: schoolserver.local Resource: pidgin Password: yourpassword
Check "Remember password"
In the Advanced tab, enter the following values:
Connection security: Use old-style SSL Connect port: 5223 Connect server: schoolserver.local
At the very bottom of the "Modify Account" window, check "Create this new account on the server." Click Add, then a registration box will pop up. Click Register, then you should get a pop up box that registration was successful. Click close. In the Accounts box, click the tick box in the "Enabled" column next to your username. If a box pops up for the server certificate, click Accept.
Now in the Buddy List, you should see the XOs that are currently connected to the XSCE's ejabberd server.
Internet-in-a-Box
Purpose
- Test the interface between apache web server and the IIAB dataset.
Prerequisites
- You need an Internet-in-a-Box hard drive.
- As an alternative to 650GB on an external hard drive, there is a quick-start download, for testing purposes at http://downloads.internet-in-a-box.org/IIAB_QuickStart_Sampler_20130809.tgz. (Note: we need to document where to place the Sampler so that it will be found).
Steps -- Verify Internet in Box is functional by doing the following:
- On a client XO, open the Browse Activity.
- Click on the home page icon.
- Click on the "school server"
- Click on the "Internet-In-A-Box" link (The link will be colored blue, if the dataset has been found). You should see the IIAB home page displayed.
Results
- You should see the IIAB home page which starts off -- Wikipedia, books, maps, videos, ...