In an earlier post I had shown how I got the Xplat agent running on Ubuntu. I perfected the technique over time, and what follows is a step-by-step process on how to convert and change the RedHat package to run on Debian/Ubuntu. Of course this is still a hack… but some people asked me to detail it a bit more. At the same time, the cross platform team is working to update the the source code on codeplex with extra bits that will make more straightforward to grab it, modify it and re-compile it than it is today. Until then, here is how I got it to work. I assume you have already copied the right .RPM package off the OpsMgr server’s /AgentManagement directory to the Linux box here. The examples below refer to the 32bit package, but of course the same identical technique would work for the 64bit version. We start by converting the RPM package to DEB format:root# alien -k scx-1.0.4-258.rhel.5.x86.rpm --scriptsscx_1.0.4-258_i386.deb generated Then we need to create a folder where we will extract the content of the package, modify stuff, and repackage it: root# mkdir scx_1.0.4-258_i386root# cd scx_1.0.4-258_i386root# ar -x ../scx_1.0.4-258_i386.debroot# mkdir debianroot# cd debianroot# mkdir DEBIANroot# cd DEBIAN root# cd ../.. root# rm debian-binaryroot# mv control.tar.gz debian/DEBIAN/root# mv data.tar.gz debian/root# cd debianroot# tar -xvzf data.tar.gzRead more: musc@> $daniele.work.ToString()
0 comments:
Post a Comment