Uncategorized

Building a custom CentOS 5 kickstart disc

Posted on January 22, 2009. Filed under: Uncategorized |

Reference:

http://smorgasbork.com/linux/35-linux/58-building-a-custom-centos-5-kickstart-disc-part-1

http://smorgasbork.com/linux/35-linux/59-building-a-custom-centos-5-kickstart-disc-part-2

http://smorgasbork.com/linux/35-linux/60-building-a-custom-centos-5-kickstart-disc-part-3

http://smorgasbork.com/linux/35-linux/61-building-a-custom-centos-5-kickstart-disc-part-4

Some bugs in the documents:

1. Author’s system is x64 system, so the commands are

~/kickstart_build/parse_comps.pl ~/kickstart_build/comps.xml ~/kickstart_build/all_rpms x86_64

~/kickstart_build/follow_deps.pl ~/kickstart_build/all_rpms x86_64

if you’re using 32bits system, use “i386” replace the x86_64

2. in the script parse_comps.pl, line 13

change the $comps_file to $rpm_path

3. in perl, if install XML::Simple fail, it will give a solution to install another package, then reinstall XML::Simple again.

Read Full Post | Make a Comment ( None so far )

Useful linux commands: readelf, ldd, od

Posted on June 8, 2007. Filed under: Uncategorized | Tags: , , , , , |

readelf

readelf displays information about the contents of one or more ELF format object files.   The options control what particular information to display.  elf files are the object files to be examined.  32-bit and 64-bit ELF files are supported, also archives containing ELF files.  This program performs a similar function to objdump but it goes into more detail and it exists independently of the BFD library, so if there is a bug in BFD then readelf will not be affected.

BFD – Binary File Descriptor.  Is a package which allows applications to use the same routines to operate on object files whatever the object file format (http://www.gnu.org/).

http://linux.about.com/library/cmd/blcmdl1_readelf.htm

ldd

ldd prints the shared libraries required by each program or shared library specified on the command line

http://linux.about.com/library/cmd/blcmdl1_ldd.htm

http://linux.byexamples.com/archives/409/how-to-list-shared-library-dependencies-used-by-an-application/

od

od will dump files in octal and other formats.  Write an unambiguous representation, octal bytes by default, of a FILE to standard output.  With more than one FILE argument, concatenate them in the listed order to form the input.  With no FILE, or when FILE is -, read standard input.

http://linux.die.net/man/1/od

Others:

nm, objdump, objcopy,size, strings

reference:

http://www.tenouk.com/Module111linuxutility1.html

http://www.tenouk.com/Module000linuxnm3.html

http://www.tenouk.com/Module111.html

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...