User:Meeg: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Installing Cerebro==
==To do==
*Hide RTNETLINK message
<!--
===Using Cerebro package===
*Make Debian package
==My profile==
You must have joyride-2130 or newer ("cat /etc/issue" to check).
{"__aid__":[],"__nid__":[0,23,196,5,36,95],"__pic__":0,"__typ__":[],"dorm":"East Campus","name":"Sho Uemura","nick":"Meeg","room":"H303","sex":"male"}

In a terminal:
<pre>
su -
wget http://web.mit.edu/meeg/Public/setup_cerebro.sh
bash setup_cerebro.sh
</pre>
Reboot.

"cerebroui" will start the UI.

===Using install.sh===
-->
In a terminal:
<pre>
su -
yum -y install git python-setuptools-devel.noarch
git clone git://dev.laptop.org/projects/cerebro
cd cerebro
./install.sh
</pre>
Reboot.
<!--
"./cerebroui" from your home directory will start the UI.

==init.d script==
The current init.d script fails to stop Cerebro because the commands in /etc/rc.d/init.d/functions cannot handle the full string "cerebro -p -i msh0 &". The following is a quick fix for this problem:

<pre>
diff newinit cerebro/bin/cerebro.init
31,32c31,32
< if [ -n "`pidof -x ${prog%%\ *}`" ] ; then
< killproc ${prog%%\ *}
---
> if [ -n "`pidfileofproc $prog`" ] ; then
> killproc $prog
</pre>
-->
==Notes==
==Notes==
The Cerebro package in the latest Joyride builds (joyride-2130 or later) is largely equivalent to what you get by manually installing Cerebro from the git repository.
The Cerebro package in the latest Joyride builds (joyride-2130 or later) is largely equivalent to what you get by manually installing Cerebro from the git repository.
Line 54: Line 17:


setup_cerebro.sh in my public is a script based on install.sh (cut out the actions redundant with the package and added the git stuff) that you can use to do this. Note that if you do this, cerebroui will be in your path, whereas install.sh puts it in your home directory.
setup_cerebro.sh in my public is a script based on install.sh (cut out the actions redundant with the package and added the git stuff) that you can use to do this. Note that if you do this, cerebroui will be in your path, whereas install.sh puts it in your home directory.
<!--
===Using Cerebro package===
You must have joyride-2130 or newer ("cat /etc/issue" to check).


In a terminal:
==My keeper.py==
<pre>
su -
wget http://web.mit.edu/meeg/Public/setup_cerebro.sh
bash setup_cerebro.sh
</pre>
Reboot.

"cerebroui" will start the UI.
==keeper.py==
self.buddy['ip'] = os.popen('ifconfig eth0|grep "inet addr"|cut -d: -f2|cut -d\ -f1').readline().strip()
self.buddy['ip'] = os.popen('ifconfig eth0|grep "inet addr"|cut -d: -f2|cut -d\ -f1').readline().strip()
-->

Latest revision as of 06:50, 25 July 2008

To do

  • Hide RTNETLINK message
  • Make Debian package

My profile

{"__aid__":[],"__nid__":[0,23,196,5,36,95],"__pic__":0,"__typ__":[],"dorm":"East Campus","name":"Sho Uemura","nick":"Meeg","room":"H303","sex":"male"}

Notes

The Cerebro package in the latest Joyride builds (joyride-2130 or later) is largely equivalent to what you get by manually installing Cerebro from the git repository.

Version of your installed Cerebro package: "yum info cerebro"

Version in git: in your /root/cerebro folder, "git-log"

Assuming these match, the following things (needed for the study but not for Cerebro functionality) are done by /root/cerebro/install.sh but not by the Cerebro package:

  • Add ypod's ssh key to your authorized_keys
  • Set Cerebro to start at boot
  • Add trackclient.py to your rc.local

setup_cerebro.sh in my public is a script based on install.sh (cut out the actions redundant with the package and added the git stuff) that you can use to do this. Note that if you do this, cerebroui will be in your path, whereas install.sh puts it in your home directory.