Here is how to call it with an example which creates two entries in the remote /etc/hosts (if used through Remoto-IT):
common/tools/map-hostname-to-interface-ip.sh bhub eth0 common/tools/map-hostname-to-interface-ip.sh bhub.sample.com eth0
common/tools/map-hostname-to-interface-ip.sh bhub eth0 common/tools/map-hostname-to-interface-ip.sh bhub.sample.com eth0
: invalid optionIf you open that file in Linux with some editors like vi you see ^M characters (corresponding to CR+LF) whenever a new line happens. With vim you are less successful but using ":set" command it shows the file format is "dos". Another way to look at the file is just using the file command:
$ file myscript.sh myscript.sh: Bourne-Again shell script, ASCII text executable, with CRLF line terminatorsAnd we all know you can correct that file in various ways like:
$ dos2unix myFileRunning again the file command will not state it uses CRLF because now the file is converted to use just line feed or ^N as line terminator.
org.quartz.JobPersistenceException: Couldn't retrieve job because a required class was not foundSo if you make changes in a scheduled job class do remember to provide migration plans before your release. For sure you will need to rename in the database the class name in case it changes before you use the Quartz API. This is true even if you are trying to delete the job and triggers like I have posted before.
do-release-upgradeAfter running this command, going through some questions and restarting the box the system was upgraded to natty (11.04), not precise (12.04). Right there the problems started, mysql won't start, couchdb service would not listen and more. Running the command again did some progress and as you can see below after repeating the procedure 3 times I finally got the version I wanted (albeit several services will need to be tweaked to correctly work):
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.10 DISTRIB_CODENAME=maverick DISTRIB_DESCRIPTION="Ubuntu 10.10" $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.04 DISTRIB_CODENAME=natty DISTRIB_DESCRIPTION="Ubuntu 11.04" $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.10 DISTRIB_CODENAME=oneiric DISTRIB_DESCRIPTION="Ubuntu 11.10" $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"So this upgrade in phases, restarting again and again the machine, responding to questions etc demands too much human intervention for my taste, too much place for errors. Granted this would not be as bad if coming from 10.10LTS but yet ...
$ sudo /usr/local/etc/init.d/couchdb stop * Stopping database server couchdb [ OK ] $ sudo -u couchdb couchdb Apache CouchDB 1.1.1a1187836 (LogLevel=info) is starting. =CRASH REPORT==== 29-Nov-2012::16:35:18 === crasher: initial call: application_master:init/4 pid: <0.31.0> registered_name: [] exception exit: {bad_return, {{couch_app,start, [normal, ["/usr/local/etc/couchdb/default.ini", "/usr/local/etc/couchdb/local.ini"]]}, {'EXIT', "libicuuc.so.42: cannot open shared object file: No such file or directory"}}} in function application_master:init/4 ancestors: [<0.30.0>] messages: [{'EXIT',<0.32.0>,normal}] links: [<0.30.0>,<0.7.0>] dictionary: [] trap_exit: true status: running heap_size: 987 stack_size: 24 reductions: 176 neighbours: =INFO REPORT==== 29-Nov-2012::16:35:18 === application: couch exited: {bad_return,{{couch_app,start, [normal, ["/usr/local/etc/couchdb/default.ini", "/usr/local/etc/couchdb/local.ini"]]}, {'EXIT',"libicuuc.so.42: cannot open shared object file: No such file or directory"}}} type: temporaryAt that point I bet you can correct a lot of stuff but I save time in this cases with a fresh installation using a POB recipe remotely through the help of remoto-IT. Here is such recipe.
#!/bin/bash -e # common/tomcat/p6spy-install.sh TOMCAT_SETENV_PATH=/opt/tomcat/bin/setenv.sh ARTIFACTORY_P6SPY_JAR=http://artifactory-server/ext-releases-local/p6spy/p6spy/1.1/p6spy-1.1.jar SVN_P6SPY_PROPERTIES=http:/my.path.to.svn.spy.properties/spy.properties curl -o /opt/tomcat/lib/psspy.jar $ARTIFACTORY_JAR common/tools/export-from-svn.sh /opt/tomcat/lib/ SVN_P6SPY_PROPERTIES sed -i 's/\(jdbc.*driverClassName\).*/\1=com.p6spy.engine.spy.P6SpyDriver/g' /opt/tomcat/lib/sample-app.properties sed -i "/JAVA_OPTS -Dp6.home/d" $TOMCAT_SETENV_PATH echo "JAVA_OPTS=\"\$JAVA_OPTS -Dp6.home=/opt/tomcat/lib/\"" >> $TOMCAT_SETENV_PATHBreakpoints do not help when troubleshooting concurrency issues. Real world goes beyond the development box and so only hitting your application with a stress test (read JMeter for example) can prove that you have no issues that will later come back to your plate. At a minimum run those stress tests in Integration environment every so often.
$ security dump-keychain | grep $usernameThen I realized I really had too many entries so I started going through them using:
$ security dump-keychain | moreI ended up then verifying I had a lot of old entries with expired passwords (I went back to KeyChain.app and searched for the specific key named "srvr" in the CLI output). Some of those key/attribute/srvr names I found were having interesting Access Control names like "localhost/Address Book", "https/exchange", "IISupport/Mail,Mail,iSync" (note the multiple access control values).
HAS_CONDITIONAL_OUTPUTS="true"In Talend by default when you use a flow from a main template and you don't assign anything to the output connector the result will be an empty record unless you set HAS_CONDITIONAL_OUTPUTS="true".
#!/bin/bash -e # common/ubuntu/xrdp-reinstall.sh apt-get -q -y remove xrdp apt-get -q -y update apt-get -q -y clean apt-get -q -y purge xrdp apt-get -q -y install xrdpAfter you have done so the Ubuntu Desktop will then be available via RDP so you can use any RDC to connect to it on default port 8309. You must login with an existing linux user so make sure the user you are trying to connect with is in /etc/passwd
Nestor Urquiza is a hands-on technologist, security-first thinker and results-oriented business executive. An Electronics Engineer dealing with hardware, embedded/web software development, security, compliance and full business funnel process engineering. Keeping things simple and innovating top-down, from Marketing to Accounting.