This is where I post snippets of information about Information Technology. It is mostly for my own reference but I hope that others will find it useful and comments are welcome.
Wednesday, August 29, 2012
Tuesday, August 28, 2012
Wednesday, August 22, 2012
patch diff rpm
http://bradthemad.org/tech/notes/patching_rpms.php
Summary:
Next, add the patch to the specfile, so it will be applied when building the package. There may be other patches already, and they are applied in order of their number in the specfile, so number yours appropriately. Add to %_topdir/SPECS/package.spec, in the top section where the name, version, and source lines are:
Patch0: package-1.0-my.patch
Farther down, there will be a section that deals with preparing for the build. Add a patch command that corresponds with the patch line above, typically right after %setup:
%prep
%setup ...
%patch0 -p1
Summary:
% diff -uNr package-1.0/ package-1.0p/ > ../SOURCES/package-1.0-my.patch
- Adding the patch to the package
Next, add the patch to the specfile, so it will be applied when building the package. There may be other patches already, and they are applied in order of their number in the specfile, so number yours appropriately. Add to %_topdir/SPECS/package.spec, in the top section where the name, version, and source lines are:
Patch0: package-1.0-my.patch
Farther down, there will be a section that deals with preparing for the build. Add a patch command that corresponds with the patch line above, typically right after %setup:
%prep
%setup ...
%patch0 -p1
Friday, August 17, 2012
puppet mirror
write software that integrates visible systems and generates puppet manifest for them as best as can be done.
Saturday, August 11, 2012
Missing Info from Android Building Your First App Tutorial
The android tutorial for "Build Your First App" (http://developer.android.com/training/basics/firstapp/index.html) is excellent, but they leave a couple of things out that I had to figure out for myself. I am developing on ubuntu linux and following the command line version of the tut. When I got to this part of the tut:
http://developer.android.com/training/basics/firstapp/running-app.html
I ran into the error "could not find javac" when I ran "ant debug".
I had to install javac like so ...
$ sudo apt-get install openjdk-6-jdk
The next problem was that I kept getting ...
error: device not found
- waiting for device -
red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk
... I found out that I need to start the "server" like so ....
red@ubuntu:~/android/workspace/MyFirstApp$ adb kill-server
red@ubuntu:~/android/workspace/MyFirstApp$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk
100 KB/s (37439 bytes in 0.363s)
pkg: /data/local/tmp/MyFirstApp-debug.apk
Success
http://developer.android.com/training/basics/firstapp/running-app.html
I ran into the error "could not find javac" when I ran "ant debug".
I had to install javac like so ...
$ sudo apt-get install openjdk-6-jdk
The next problem was that I kept getting ...
error: device not found
- waiting for device -
... when I executed:
red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk
... I found out that I need to start the "server" like so ....
red@ubuntu:~/android/workspace/MyFirstApp$ adb kill-server
red@ubuntu:~/android/workspace/MyFirstApp$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk
100 KB/s (37439 bytes in 0.363s)
pkg: /data/local/tmp/MyFirstApp-debug.apk
Success
Friday, August 10, 2012
nsupdate increments the zone's serial number for you
redcricket@rpz-tx1-1-l:~$ dig +short rpz.red-cricket-blog.com soa @localhost
rpz-tx1-1-l.red-cricket-blog.com. csirt.red-cricket-blog.com. 1344659785 3600 900 2592000 7200
redcricket@rpz-tx1-1-l:~$ sudo /usr/bin/nsupdate
> server localhost
> update del rbc.red-cricket-blog.com.rpz.red-cricket-blog.com 300 CNAME redcricket-lnx.red-cricket-blog.com
> send
>
> quit
redcricket@rpz-tx1-1-l:~$ dig +short rpz.red-cricket-blog.com soa @localhost
rpz-tx1-1-l.red-cricket-blog.com. csirt.red-cricket-blog.com. 1344659786 3600 900 2592000 7200
Subscribe to:
Posts (Atom)