Monday, March 25, 2013

CmdLine --- check boot command line option


$cat /proc/cmdline

Changing default password and build it into RFS




1.       Run passwd – change root password
2.       Run passwd user – change ‘user’ password
3.       Copy /etc/shadow file into root filesystem

Monday, March 4, 2013

SVN Notes

[1] Thegeekstuff svn-command-examples



Ref
Removing files from SVN repo to synch with local folder
svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )
Adding files from local folder into SVN repo for unversioned files
svn add --force * --auto-props --parents --depth infinity
$ svn checkout/co URL PATH
$ svn co https://www.thegeekstuff.com/project/branches/release/migration/data/cfg /home/sasikala/cfg/
A    /home/sasikala/cfg/ftp_user.cfg
A    /home/sasikala/cfg/inventory.cfg
A    /home/sasikala/cfg/email_user.cfg
A    /home/sasikala/cfg/svn-commands
Checked out revision 811.

$ ls /home/sasikala/cfg
.  ..  .svn  email_user.cfg  ftp_user.cfg  inventory.cfg  svn-commands

$ svn commit -m "log messages"

$ cat /home/sasikala/cfg/svn-commands
checkout
commit
add
delete
update
status

$ ls -l /home/sasikala/cfg/svn-commands
-rw-r--r--  1 root root 41 Apr 16 11:15 svn-commands


$ svn commit -m "Making the file empty" svn-commands
Sending        svn-commands
Transmitting file data .
Committed revision 813.

$ svn list --verbose https://www.thegeekstuff.com/project/branches/release/migration/data/bin
 16 sasikala 28361  Apr 16 21:11 README.txt
 21 sasikala  0  Apr 18 12:22 INSTALL
 22 sasikala  Apr 18 10:17 src/
 
$ svn add thegeekstuff
A         thegeekstuff

$ svn commit -m "Adding a file thegeekstuff" thegeekstuff
Adding         thegeekstuff
Transmitting file data .
Committed revision 814.


$ svn delete thegeekstuff
D         thegeekstuff

$ svn commit -m "Removing thegeekstuff file" thegeekstuff
Deleting       thegeekstuff
Committed revision 814.

$ svn diff filename
$ svn -r R1:R2 diff filename

$ svn diff thegeekstuff
Index: thegeekstuff
===================================================================
--- thegeekstuff   (revision 815)
+++ thegeekstuff   (working copy)
@@ -1 +1 @@
-testing
+tester


$ svn status PATH
$ svn status /home/sasikala/cfg
M     /home/sasikala/cfg/ftp_user.cfg
M       /home/sasikala/cfg/geekstuff

$ svn log PATH
$ svn log thegeekstuff
------------------------------------------------------------------------
r815 | sasikala | 2011-04-16 05:14:18 -0700 (Sat, 16 Apr 2011) | 1 line

Adding a file thegeekstuff
------------------------------------------------------------------------


$ svn move src dest
$ svn move thegeekstuff tgs
A         tgs
D         thegeekstuff

$ ls
.#  ..  .svn  email_user.cfg  ftp_user.cfg  inventory.cfg  tgs


$ svn update PATH
$ svn update
A  new/usercfg
A  new/webcfg
Updated to revision 819.