Really nice to have an XS on the XO for testing and showing people what they can do with an XS. The easy setup which doesn't even need an access point is really cool.
There are 3 points about XS 0.6 on XO I want to bring up: 1. How to shutdown the XS. I couldn't find the information what is the easiest way to do it. I see to easy options: - Switching off power means the XS shuts down (I have attached an acmon script a workmate wrote some time ago for a webserver on an XO which does that using crontab) - <ctrl>+<alt>+<delete> (on the XO <delete> is <fn>+<erase>) does a reboot at the moment, but I think it could be easily changed to a more useful shutdown. 2. How to change the timezone is missing in the documentation, but probably necessary in most places. 3. Non XO computers can not connect to the school-mesh-0 of the XS on XO. I wanted to do some testing and had just one XO (which was running the XS). To be able to connect from a normal laptop I had to do the following changes on the XS (the specific IP is important since various services are bound to this IP): ifdown lanbond0 iwconfig wmesh0 essid schoolserver iwconfig wmesh0 mode ad-hoc iwconfig wmesh0 channel 6 ifconfig wmesh0 172.18.0.1 Is there an easier way? Cheers, Philipp
#!/bin/bash #****************************************************************** # Script: acmon # Author: matt # Purpose: checks if ac power gone from xo and schedules shutdown. # If the ac power is restored and there is a shutdown in progress # then the shutdown will be cancelled # Should be run from /etc/crontab as follows : # 00,10,20,30,40,50 * * * * root /usr/local/bin/acmon # NOTE the cron interval needs to less than the SHTDWNTIME # so that the server picks up if the power is back down # Versions: # 0.1 04/04/08 Initial Matt # 0.2 05/04/08 added -h switch to shudown Matt #****************************************************************** # Length of time before shutdown SHTDWNTIME=15 # if there is no ac power if [ $(cat /sys/class/power_supply/olpc-ac/online) = 0 ]; then # if there no shutdown in progress then schedule on in 15 mins pgrep shutdown >/dev/null 2>&1 if [ $? -ne 0 ]; then shutdown -h $SHTDWNTIME "power failed" >/dev/null 2>&1 & logger -p info "acmon: Shutting down in $SHTDWNTIME minutes due to ac pwr failure" else logger -p info "acmon: No ac power and shutdown already in progress" fi else # if there is ac power and a shutdown in progress cancel it... pgrep shutdown >/dev/null 2>&1 if [ $? -eq 0 ]; then shutdown -c >/dev/null 2>&1 logger -p info "acmon: Cancelling shutdown due to ac pwr restore" fi fi
_______________________________________________ Server-devel mailing list server-de...@lists.laptop.org http://lists.laptop.org/listinfo/server-devel