User:Bjordan/XOdev: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(19 intermediate revisions by 7 users not shown) | |||
Line 2: | Line 2: | ||
Shell commands I've used to make testing/debugging on the XO possible/more tolerable: |
Shell commands I've used to make testing/debugging on the XO possible/more tolerable: |
||
sudo yum install git |
|||
sudo yum install emacs # Though vi and nano are included in builds, I learned emacs in COMP211 at Wesleyan |
sudo yum install emacs # Though vi and nano are included in builds, I learned emacs in COMP211 at Wesleyan |
||
sudo yum install lsof # Used |
sudo yum install lsof # Used to slim down [[Elements]] into [[Physics]] |
||
sudo yum install screen # used for mirroring ssh on your computer and the XO |
|||
strace date # [http://linux.die.net/man/1/strace Learn to watch programs work!] |
|||
sugar-control-panel -s radio off # [[Airplane mode]]... thanks Henry! |
|||
grep -v # Inverse grep (don't show these lines) |
|||
strace -eopen # (or e trace=open, trace only system open call) |
|||
sudo dhclient eth1 # DHCP work it |
|||
find -name "*.pyc" -delete # Delete all pyc files |
|||
chmod 0600 ~/.ssh/id_rsa # Proper permissions, 0667 or 0660 no worky |
|||
ctrl+r then a number: BASH history |
|||
depmod after reboot... then reboot |
|||
Restarting Sugar/X: ctrl + alt + erase |
|||
==Screen== |
|||
<pre> |
|||
Journal 1724 olpc 1w REG 31,0 0 66703 /home/olpc/.sugar/default/logs/org.laptop.JournalActivity-1.log |
|||
Journal 1724 olpc 2w REG 31,0 0 66703 /home/olpc/.sugar/default/logs/org.laptop.JournalActivity-1.log |
|||
bash 1756 olpc cwd DIR 31,0 0 30033 /home/olpc/Activities/Physics.activity |
|||
bash 1783 olpc cwd DIR 31,0 0 43713 /home/olpc/Activities/Physics.activity/elements/elements |
|||
python 1983 olpc cwd DIR 31,0 0 43713 /home/olpc/Activities/Physics.activity/elements/elements |
|||
python 1983 olpc mem REG 31,0 1401064 43833 /home/olpc/Activities/Physics.activity/elements/elements/elements/box2d/box2d_linux32/_Box2D2.so |
|||
lsof 1992 olpc cwd DIR 31,0 0 30033 /home/olpc/Activities/Physics.activity |
|||
grep 1993 olpc cwd DIR 31,0 0 30033 /home/olpc/Activities/Physics.activity |
|||
lsof 1994 olpc cwd DIR 31,0 0 30033 /home/olpc/Activities/Physics.activity |
|||
Developing ON the XO with screen.. |
|||
</pre> |
|||
# Set up [[User:Bjordan/SSH]] |
|||
# ON THE XO: <pre>sudo yum install screen</pre> |
|||
# ON THE XO: <pre>screen</pre> |
|||
# ON YOUR DESKTOP (having SSH'd in) <pre>screen -x</pre>. Your screens will be synced up. COOL! It's like a ghostwriter is on your XO! |
|||
# Run your activity by <pre>sugar-launch activityname</pre>. activityname is the name you put in activity/activity.info |
|||
# Bonus round: open up another SSH session for [[User:Bjordan/vim]]-ing out |
Latest revision as of 22:57, 16 July 2008
I use my XO to test and debug my projects for a few reasons, (1) XO processor speed is a limiting factor while working on Physics, (2) I set up a good development environment using FusionFS, and (3) I never got around to compiling/SWIG wrapping Box2D and figuring out the Elements build process on my Mac.
Shell commands I've used to make testing/debugging on the XO possible/more tolerable:
sudo yum install git sudo yum install emacs # Though vi and nano are included in builds, I learned emacs in COMP211 at Wesleyan sudo yum install lsof # Used to slim down Elements into Physics sudo yum install screen # used for mirroring ssh on your computer and the XO strace date # Learn to watch programs work! sugar-control-panel -s radio off # Airplane mode... thanks Henry! grep -v # Inverse grep (don't show these lines) strace -eopen # (or e trace=open, trace only system open call) sudo dhclient eth1 # DHCP work it find -name "*.pyc" -delete # Delete all pyc files chmod 0600 ~/.ssh/id_rsa # Proper permissions, 0667 or 0660 no worky ctrl+r then a number: BASH history depmod after reboot... then reboot
Restarting Sugar/X: ctrl + alt + erase
Screen
Developing ON the XO with screen..
- Set up User:Bjordan/SSH
- ON THE XO:
sudo yum install screen
- ON THE XO:
screen
- ON YOUR DESKTOP (having SSH'd in)
screen -x
. Your screens will be synced up. COOL! It's like a ghostwriter is on your XO! - Run your activity by
sugar-launch activityname
. activityname is the name you put in activity/activity.info - Bonus round: open up another SSH session for User:Bjordan/vim-ing out