August 25, 2006

rpm build from RPM source package

Filed under: Unix Admin — HanaDaddy @ 12:10 am

find .spec file in /usr/src/redhat/SPECS

rpm -bc xxx.spec : build stage
rpm -bi xxx.spec : install stage

rpm -bb xxx.spec : build binary package
rpm -bs xxx.spec : build source package
rpm -ba xxx.spec : build binary & source package

first install source rpm package using rpm command

goto /usr/src/SPECS folder

edit httpd.spec

for example you may want to edit configure part of the httpd.spec file

and then

You can create binary rpm package (redhat 8 & up)

rpmbuild -bb httpd.spec

compiled files will be written in /usr/src/BUILD folder

Then you can use rpm -ivh command to install it.

MySQL Adding user & privileges

Filed under: Unix Admin — HanaDaddy @ 12:09 am
grant all privileges on MYDBNAME.* to user@localhost identified by 'somepass' with grant option;
 
flush privileges;

How to stickybit, setuidbit

Filed under: Unix Admin — HanaDaddy @ 12:07 am

1.sticky bit : regardless of directory’s access, only directory’s owner can delete files.
(only for directories)

$> chmod 01755 dirname
drwxr-xr-t

2.setuid bit: when you execute the program effective uid becomes as progams owner’s uid (such as passwd). Therefore , if execute bit is not set, this is meaningless

$> chmod 02755 exefile
rwxr-sr-x 
$> chmod 04755 exefile  
rwsr-xr-x

Free Activity Indicator Images for AJAX

Filed under: Links to note — HanaDaddy @ 12:06 am

There are few cool and FREE animated GIFs that can be used for AJAX activity indication.

Very Cool.

http://mentalized.net/activity-indicators/

Another one , but not sure if free to use.
http://www.sanbaldo.com/wordpress/1/ajax_gif/

And here is my implementation. Ajax

Extract a single file from the tar file.

Filed under: Programming — HanaDaddy @ 12:05 am
tar --extract --file 20060506.edidataff.tar /edidata/IN/S_NIS/customer/20060506/050629H0.GTN
Page 15 of 22« First...«1314151617»...Last »
 

43 queries. 0.385 seconds. Powered by WordPress