Dpuiu Linux: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
cat /nfshomes/dpuiu/.ssh/id_dsa.pub >> /nfshomes/dpuiu/.ssh/authorized_keys | cat /nfshomes/dpuiu/.ssh/id_dsa.pub >> /nfshomes/dpuiu/.ssh/authorized_keys | ||
* Upload key to the Sourceforge server ("Account Maintenance" site) | * Upload key to the Sourceforge server ("Account Maintenance" site) | ||
== Patching == | |||
diff file.old file.new > file.diff | |||
patch file.old file.patch | |||
== CVS == | == CVS == |
Revision as of 01:49, 16 March 2009
Version Control
Sourceforge
shell server: shell.sourceforge.net CVS server: PROJECTNAME.cvs.sourceforge.net Subversion server: PROJECTNAME.svn.sourceforge.net
Authentication:
- KeyGen
- Generate the enw key:
sh-keygen -t dsa -C dxpuiu@shell.sf.net cat /nfshomes/dpuiu/.ssh/id_dsa.pub >> /nfshomes/dpuiu/.ssh/authorized_keys
- Upload key to the Sourceforge server ("Account Maintenance" site)
Patching
diff file.old file.new > file.diff patch file.old file.patch
CVS
- Local CVS
echo $CVSROOT /fs/szdevel/src/cvsroot
/fs/szdevel/src/cvsroot/users/dpuiu/
- Checkout
cvs -z3 -d:ext:dxpuiu@amos.cvs.sourceforge.net:/cvsroot/amos co -P AMOS
- Add a new file
cd src/Utils cp ~/bin/file . cvs add file cvs ci
- Add a new dir
cd src/Utils cp -R ~/bin/dir . cvs add dir cvs ci cd dir cvs add * cvs ci
- Update files
cd src/Utils cvs update
- Check status
cvs status -v | grep Status:
- Tagging a file
cvs tag file.tag file
- Downloading a tagged file
cvs co -r file.tag file
- Options
-l : Local; run only in current working directory, rather than recursing through subdirectories. -R: Recursive (default) -m message
- Keep track of the version in the code :
Add following line: my $VERSION = '$Revision: 1.0 $ '; Revision gets automatically incremented when "cvs ci"; no need to "cvs update"
- View file
http://amos.cvs.sourceforge.net/viewvc/*checkout*/amos/AMOS/src/Utils/seq2amos.pl
- View all files
http://amos.cvs.sourceforge.net/viewvc/amos/
Build
- autoconf extensible package of M4 macros that produce shell scripts to automatically configure software source code packages
- m4 man implementation of the traditional Unix macro processor
- libtool generic library support script. Libtool hides the complexity of using shared libraries behind a consistent, portable interface.
- Application Build
Redirect
- tcsh : STDOUT & STDERR separately
(command >stdout_file ) >&stderr_file
Config
Commands
- ftp
ftp - i : turns interactive mode off > prompt : turns interactive mode off
- diff
diff -rq dir1 dir2 : recursively compares 2 directories
Utils
strip executable # removes debugging info => executable_new gcc -pg prefix.cc -o prefix # -pg: profiling flag ./prefix #=> gmon.out gprof prefix > prefix.out /nfshomes/dpuiu/szdevel/bin/gprof2dot.py prefix.out > prefix.dot dot -Tpng -o prefix.png prefix.dot
Convert profiling to dot format
- http://linux.softpedia.com/progDownload/gprof2dot-py-Download-27166.html
- http://jrfonseca.googlecode.com/svn/trunk/gprof2dot/gprof2dot.py
System info
- Sysstat package
- Processors
/usr/sbin/./x86info cat /proc/cpuinfo
- sycamore (8 processor):
cat /proc/cpuinfo | more vendor_id : AuthenticAMD cpu family : 15 model : 33 model name : Dual Core AMD Opteron(tm) Processor 875 stepping : 0 cpu MHz : 1793.260 cache size : 1024 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2
- walnut (16 processor):
vendor_id : AuthenticAMD cpu family : 15 model : 65 model name : Dual-Core AMD Opteron(tm) Processor 8220 stepping : 3 cpu MHz : 2792.923 cache size : 1024 KB physical id : 2 siblings : 2 core id : 0 cpu cores : 2
- Memory
cat /proc/meminfo