Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
soc:2009:pravin:notes:start [2009/06/14 16:35] mdc |
soc:2009:pravin:notes:start [2009/12/27 06:18] (current) less1 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Pravin Shinde: boot.kernel.org - Universal remote network booting for the masses ====== | + | ====== place to log useful random commands ====== |
| + | |||
| + | Useful to find the dependency of given executable on other shared libraries. | ||
| + | <code> | ||
| + | ldd | ||
| + | </code> | ||
| + | |||
| + | ===== Useful information ===== | ||
| + | AndyTim: By the way, if you ever get the ^M problem again. | ||
| + | Try following it by a ^J | ||
| + | |||
| + | |||
| + | ===== Links to watch-out ===== | ||
| + | - [[http://unit.aist.go.jp/itri/knoppix/http-fuse/index-en.html|HTTP-FUSE-KNOPPIX]] someone has done if before also. | ||
| + | - [[http://paste.etherboot.org/?page=view&id=1239849078]] script to create automatic gpxe bootable USB | ||
| + | |||
| + | ===== For Shell script ===== | ||
| + | If you want to terminate execution of a shell script on encounter any error then | ||
| + | <code> | ||
| + | #!/bin/bash | ||
| + | set -e | ||
| + | </code> | ||
| + | |||
| + | ===== Useful git commands ===== | ||
| + | To create | ||
| + | <code> | ||
| + | git clone --bare git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git syslinux.git | ||
| + | </code> | ||
| + | The "--bare" means you don't need a working tree, only the internal .git/ files. Since you'll never been working directly in this directoy on rom, it makes sense not to have a working tree. | ||
| + | |||
| + | ==== creating blank repository on remote server ==== | ||
| + | <code> | ||
| + | git init --bare | ||
| + | </code> | ||
| + | |||
| + | Adding remote head to cloned repository | ||
| + | <code> | ||
| + | git remote add master git+ssh://pravin@git.etherboot.org//pub/scm/people/pravin/BKO.git | ||
| + | </code> | ||
| + | |||
| + | For pushing the local master repository from local to remote server repository, it can be done with | ||
| + | <code> | ||
| + | git push master master | ||
| + | </code> | ||
| + | |||
| + | Where you are pushing local branch called "master" onto remote branch called "master" | ||
| + | |||
| + | ===== git submoduling ===== | ||
| + | |||
| + | to register the git submodules | ||
| + | <code> | ||
| + | git submodule init | ||
| + | git submodule update | ||
| + | </code> | ||
| + | |||
| + | ==== git bisect ==== | ||
| + | This command is quite useful for finding broken commit. | ||
| + | Here is the [[http://jbowes.wordpress.com/2007/02/18/git-bisect-a-practical-example-with-yum/|blog]] which mentions how to use it. | ||
| + | |||
| + | ===== useful commands for qemu ===== | ||
| + | One can use qemu monitor for debugging.\\ | ||
| + | Here is the [[http://en.wikibooks.org/wiki/QEMU/Monitor|wikibook]] for using monitor with qemu. | ||
| ===== Notes ===== | ===== Notes ===== | ||