tag:blogger.com,1999:blog-92157592548748961552024-03-12T20:08:16.077-07:00TecnewAuthorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-9215759254874896155.post-38834317552641956402022-04-17T11:06:00.004-07:002022-04-17T11:06:34.417-07:00How to Add or Remove the firewall PORT rules in Ubuntu Linux<p> To allow the port by the following command</p><p>$ sudo ufw allow 80/tcp</p><p>$ sudo ufw allow 443/tcp</p><p><br /></p><p>You can also delete the port by the following command</p><p>$ sudo ufw delete allow 80/tcp</p><p>$ sudo ufw delete allow 443/tcp</p><p><br /></p><p>Other way </p><p>$ sudo ufw status numbered</p><p>$ sudo ufw delete {rule-number-here}</p><p>$ sudo ufw delete 2</p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-39831735331668806642022-04-17T07:16:00.002-07:002022-04-17T07:16:45.304-07:00How to install a Microsoft Office in Linux UbuntuInstalling the Microsoft office in Linux Ubuntu by the following<div><br /></div><div>$ sudo apt install winbind</div><div>$ sudo apt install curl </div><div>$ sudo apt install 7zip-full</div><div>$ sudo apt install playonlinux</div><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-69573881230018264532022-03-31T20:30:00.002-07:002022-03-31T20:30:52.906-07:00How to Configure GitHub in local system<p> </p><p>git config --global user.name "Your name"</p><p>git config --global user.email "youremail@gmail.com"</p><p>to check your configuration by the below command</p><p>git config --list</p><p><br /></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-2583602476876533922022-03-31T10:27:00.004-07:002022-03-31T10:27:46.197-07:00Jenkins Error coming like this below <p> <span style="background-color: white; color: #333333; font-size: var(--font-size-monospace); white-space: pre-wrap;">java.lang.NoSuchMethodError: No such DSL method 'ansiblePlaybook' found among steps [archive, bat, build, catchError, checkout, deleteDir, dir, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, getContext, git, input, isUnix, junit, library, libraryResource, load, lock, mail, milestone, node, parallel, powershell, properties, publishChecks, pwd, pwsh, readFile, readTrusted, resolveScm, retry, script, sh, sleep, stage, stash, step, timeout, timestamps, tm, tool, unarchive, unstable, unstash, validateDeclarativePipeline, waitUntil, warnError, withChecks, withContext, withCredentials, withEnv, withGradle, wrap, writeFile, ws] or symbols [GitUsernamePassword, all, allBranchesSame, allOf, always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, architecture, archiveArtifacts, artifactManager, authorizationMatrix, batchFile, bitbucketServer, booleanParam, branch, brokenBuildSuspects, brokenTestsSuspects, buildButton, buildDiscarder, buildDiscarders, buildRetention, buildUser, buildingTag, builtInNode, caseInsensitive, caseSensitive, certificate, changeRequest, changelog, changeset, checkoutToSubdirectory, choice, choiceParam, cleanWs, clock, command, credentials, cron, crumb, culprits, defaultFolderConfiguration, defaultView, demand, deploy, developers, disableConcurrentBuilds, disableResume, downstream, dumb, durabilityHint, email-ext, envVars, envVarsFilter, environment, equals, expression, extendedEmailPublisher, file, fileParam, filePath, fingerprint, fingerprints, frameOptions, freeStyle, freeStyleJob, fromScm, fromSource, git, gitBranchDiscovery, gitHubBranchDiscovery, gitHubBranchHeadAuthority, gitHubExcludeArchivedRepositories, gitHubExcludeForkedRepositories, gitHubExcludePublicRepositories, gitHubForkDiscovery, gitHubIgnoreDraftPullRequestFilter, gitHubPullRequestDiscovery, gitHubSshCheckout, gitHubTagDiscovery, gitHubTopicsFilter, gitHubTrustContributors, gitHubTrustEveryone, gitHubTrustNobody, gitHubTrustPermissions, gitTagDiscovery, gitUsernamePassword, github, githubProjectProperty, githubPush, glassfish2, glassfish3, glassfish4, gradle, headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, inheriting, inheritingGlobal, installSource, isRestartedRun, jboss3, jboss4, jboss5, jboss6, jboss7, jdk, jdkInstaller, jgit, jgitapache, jnlp, jobBuildDiscarder, jobName, junitTestResultStorage, label, lastDuration, lastFailure, lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, local, location, logRotator, loggedInUsersCanDoAnything, mailer, masterBuild, maven, maven3Mojos, mavenErrors, mavenGlobalConfig, mavenMojos, mavenWarnings, modernSCM, myView, namedBranchesDifferent, node, nodeProperties, nonInheriting, none, not, organizationFolder, overrideIndexTriggers, paneStatus, parallelsAlwaysFailFast, parameters, password, pattern, permanent, pipeline, pipelineTriggers, plainText, plugin, pollSCM, preserveStashes, projectNamingStrategy, proxy, pruneTags, queueItemAuthenticator, quietPeriod, rateLimit, rateLimitBuilds, recipients, requestor, resourceRoot, retainOnlyVariables, run, runParam, sSHLauncher, schedule, scmRetryCount, scriptApproval, scriptApprovalLink, search, security, shell, simpleBuildDiscarder, skipDefaultCheckout, skipStagesAfterUnstable, slave, sourceRegexFilter, sourceWildcardFilter, ssh, sshPublicKey, sshUserPrivateKey, standard, status, string, stringParam, suppressAutomaticTriggering, swapSpace, tag, teamSlugFilter, text, textParam, timestamper, timestamperConfig, timezone, tmpSpace, tomcat4, tomcat5, tomcat6, tomcat7, tomcat8, tomcat9, toolLocation, triggeredBy, unsecured, untrusted, upstream, upstreamDevelopers, userSeed, usernameColonPassword, usernamePassword, viewsTabBar, weather, withAnt, zip] or globals [currentBuild, env, params, pipeline, scm]</span></p><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"> at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:216)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
at sun.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)
at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:158)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at WorkflowScript.run(WorkflowScript:12)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(ModelInterpreter.groovy:137)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage(ModelInterpreter.groovy:666)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:395)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:393)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage(ModelInterpreter.groovy:665)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:288)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(ModelInterpreter.groovy:544)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock(ModelInterpreter.groovy:543)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:276)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(ModelInterpreter.groovy:443)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(ModelInterpreter.groovy:442)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:275)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withCredentialsBlock(ModelInterpreter.groovy:481)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withCredentialsBlock(ModelInterpreter.groovy:480)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:274)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inDeclarativeAgent(ModelInterpreter.groovy:586)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inDeclarativeAgent(ModelInterpreter.groovy:585)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:272)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.stageInput(ModelInterpreter.groovy:356)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.stageInput(ModelInterpreter.groovy:355)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:261)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inWrappers(ModelInterpreter.groovy:618)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inWrappers(ModelInterpreter.groovy:617)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:259)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(ModelInterpreter.groovy:443)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.withEnvBlock(ModelInterpreter.groovy:442)
at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage(ModelInterpreter.groovy:254)
at ___cps.transform___(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:83)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:403)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:97)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:315)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:279)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE</pre><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"><br /></pre><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"><br /></pre><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"><br /></pre><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"><b>Solution is </b></pre><pre class="console-output" style="background-color: white; box-sizing: inherit; color: #333333; font-size: var(--font-size-monospace); margin-bottom: 0px; margin-top: 0px; overflow-wrap: break-word; white-space: pre-wrap;"><b>We need to install the Ansible Plugin in the jenkins it's self to resolve the problem</b></pre>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-75697493369454074742022-03-16T22:06:00.010-07:002022-03-16T23:34:12.839-07:00Python Basic Programming<p>Python Hello World Program</p><p><br /></p><p># Python code for "Hello World"</p><p># nothing else to type...see how simple is the syntax.</p><p>print("Hello World")<span style="white-space: pre;"> </span></p><div><br /></div><div><br /></div><div><b>Output</b></div><div>Hello World</div><div><br /></div><div><br /></div><div><b>Variables and Data Structures</b></div><div><div># Python program to declare variables</div><div>myNumber = 3</div><div>print(myNumber)</div><div><br /></div><div>myNumber2 = 4.5</div><div>print(myNumber2)</div><div><br /></div><div>myNumber ="helloworld"</div><div>print(myNumber)</div></div><div><br /></div><div><b>Output</b></div><div><div>3</div><div>4.5</div><div>helloworld</div><div><br /></div><div><br /></div><div><br /></div></div><div><b><br /></b></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-68718877211654235532022-03-14T03:45:00.004-07:002022-03-21T10:15:58.534-07:00Restarting the apache2 service by using the bash scripting<p>Below Bash script will restart the apache2 service </p><p><br /></p><p>#!/bin/bash</p><p>RESTART="sudo service apache2 restart"</p><p>PGREP="/usr/bin/pgrep"</p><p>APACHE2="apache2"</p><p>$PGREP ${APACHE2}</p><p>if [ $? -ne 0 ]</p><p>then</p><p>$RESTART</p><p>fi</p><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-85762779253782376722022-03-13T23:18:00.010-07:002022-03-16T22:31:57.949-07:00Fibonacci Series Program in Shell script<p> </p><p><br /></p><p>#!/bin/bash</p><p>echo "Enter the number"</p><p>read n</p><p>a=0;b=1</p><p>echo $a</p><p>echo $b</p><p>#c=$(($a+$b))</p><p>while [ `expr $a + $b` -le $n ]<span> </span><span> </span><span> or <span> </span><span> </span><span> </span></span>while [ `expr $((a+b))` -le $n ]</p><p>do</p><p> c=`expr $a + $b`<span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> or<span> </span><span> </span><span> </span></span>c=$((a+b))</p><p>echo $c</p><p>a=$b</p><p>b=$c</p><p>done</p><div><br /></div><div><br /></div><div><b>using For loop</b></div><div><br /></div><div><div>#!/bin/bash</div><div># Program for Fibonacci</div><div># Series</div><div><br /></div><div># Static input fo N</div><div># N=6</div><div>echo enter number:</div><div>read N</div><div><br /></div><div># First Number of the</div><div># Fibonacci Series</div><div>a=0</div><div><br /></div><div># Second Number of the</div><div># Fibonacci Series</div><div>b=1</div><div><br /></div><div>echo "The Fibonacci series is : "</div><div><br /></div><div>for (( i=0; i<N; i++ ))</div><div>do</div><div> echo "$a"</div><div> fn=$((a + b))</div><div> a=$b</div><div> b=$fn</div><div>done</div><div># End of for loop</div><div style="font-weight: bold;"><br /></div></div><div><br /></div><div><br /></div><div><br /></div><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-32919437277988825092022-03-12T20:26:00.007-08:002022-03-16T22:32:16.654-07:00How to Install sar(System Activity Report) in Linux Ubuntu <p> </p><p>sudo apt update</p><p>sudo apt install sysstat -y</p><p>sudo apt start sysstat </p><p>sudo apt ensble sysstat </p><p>And then change the sysstat config file and change the ENABLED status to "true" in /etc/defaults/sysstat location and then restart the service by following command</p><p>sudo systemctl restsrt sysstat</p><p>and then give the commands to show the cpu utilise by </p><p>sar -u</p><p>sar -u 1 3</p><p>sar -r </p><p>sar -r 1 3</p><p><br /></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-9784125635792864312022-03-10T06:13:00.004-08:002022-03-21T10:14:34.156-07:00Write a Bash script to print count of numbers, count of vowels and count of consonants in a given text<p style="text-align: left;">Below Bash script will give the output count of Numbers, Vowels, and Consonants</p><p style="text-align: left;"><br /></p><p style="text-align: left;"> #!/bin/sh<br />echo -n "Enter a line of text: "<br />read string<br />numCount=$(echo $string | grep -o "[0-9]" | wc -l)<br />vowCount=$(echo $string | grep -o -i "[aeiou]" | wc -l)<br />consCount=$(echo $string | grep -o -i "[bcdfghjklmnpqrstvwxyz]" | wc -l)<br />echo "Count of vowels $vowCount, $consCount consonants and $numCount numbers in it."</p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-19543945193902367832022-03-07T21:41:00.003-08:002022-03-07T21:41:29.437-08:00Ansible Playbook for installing the sample HTTPD server in Linux server<p> ---</p><p>- hosts: websrvr</p><p> become: true</p><p> tasks:</p><p> - name: Installing the HTTPD Server</p><p> yum:</p><p><span> </span><span> </span><span> </span><span> name: httpd</span></p><p><span><span> </span><span> </span><span> </span><span> state: present</span><br /></span></p><p><span><span><span> </span><span> - name: Starting the HTTPD Server</span><br /></span></span></p><p><span><span><span> service: </span></span></span></p><p><span><span><span><span> </span><span> </span><span> </span><span> name: httpd</span></span></span></span></p><p><span><span><span><span> </span><span> </span><span> </span><span> state: started</span></span></span></span></p><p><span><span><span><span> </span><span> </span><span> </span><span> enabled: yes</span> </span></span></span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-68408028069600367742022-01-16T06:59:00.004-08:002022-03-07T21:42:27.233-08:00Installing Jenkins through Ansible play book<p> ---</p><p>- hosts: web01</p><p> become: yes</p><p><br /></p><p> tasks:</p><p> - name: install openjdk</p><p> apt:</p><p> name: openjdk-8-jdk</p><p> state: present</p><p><br /></p><p> - name: ensure the jenkins apt repository key is installed</p><p> apt_key:</p><p> url: https://pkg.jenkins.io/debian-stable/jenkins.io.key</p><p> state: present</p><p> become: yes</p><p><br /></p><p> - name: ensure the repository is configured</p><p> apt_repository:</p><p> repo: 'deb https://pkg.jenkins.io/debian-stable binary/'</p><p> state: present</p><p> become: yes</p><p><br /></p><p> - name: ensure jenkins is installed</p><p> apt:</p><p> name: jenkins</p><p> state: present</p><p> update_cache: yes</p><p> become: yes</p><p><br /></p><p> - name: ensure jenkins is running</p><p> service:</p><p> name: jenkins</p><p> state: started</p><p><br /></p><p> - name: init password jenkins</p><p> shell: cat /var/lib/jenkins/secrets/initialAdminPassword</p><p> changed_when: false</p><p> register: result</p><p><br /></p><p> - name: print init password jenkins</p><p> debug:</p><p> var: result.stdout</p><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-17710912197607059032022-01-05T07:21:00.006-08:002022-01-05T07:26:29.912-08:00What is Ansible and Ansible Installation in Linux Ubuntu server<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhLFpOPBL17AnFwxAbVlX8Ums8TtiypRKpzWmBpU2z93Wuk2Fym02kltHduIlnGk06BPa5DnBHL2raA3HYbhem4vMO8zzZmXSH8tiePOmWoLjkxwDzriOOkItU3rOJOkjuGWugXTDD1DL5Ao_cHYQz8XlhE98myehLWWlPFFuer6hksuFVgWsZqc03a=s708" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="434" data-original-width="708" height="196" src="https://blogger.googleusercontent.com/img/a/AVvXsEhLFpOPBL17AnFwxAbVlX8Ums8TtiypRKpzWmBpU2z93Wuk2Fym02kltHduIlnGk06BPa5DnBHL2raA3HYbhem4vMO8zzZmXSH8tiePOmWoLjkxwDzriOOkItU3rOJOkjuGWugXTDD1DL5Ao_cHYQz8XlhE98myehLWWlPFFuer6hksuFVgWsZqc03a=w320-h196" width="320" /></a></div><div class="separator" style="clear: both; text-align: left;"> <b>Ansible:</b></div><p>1. Ansible is an automation configuration management tool it is used for software provisioning and application deployment</p><p>ansible can manage many servers</p><p>No agents (Target machines/services are accessed by </p><p>No databases, </p><p>No Complex setup</p><p>No residual software</p><p> A package is a group of modules </p><p> A module is a group of functions</p><p> 2. Ansible uses YAML data structures </p><p><br /></p><p><b>Connections in Ansible</b></p><p>1.in Linux SSH connection</p><p>2.in Windows WINRM connection</p><p>3.in Cloud API connection</p><p><br /></p><p><b>Ansible Architecture</b></p><p> Playbooks are in the YAML format (are the scripts like having written in bash scripts)</p><p>Inventory file (Define the IP of the target hosts)</p><p>Modules (ansible has the more collection of modules)</p><p>When we execute the playbook, it uses the Ansible configuration to create a python package if the target is a server it pushes their execute and return the output</p><p> Ansible Config (This is the brain and heart of the ansible)</p><p><br /></p><p><b>Create security groups</b></p><p>Create security groups for control machines and host machines </p><p><br /></p><p><b>Installing Ansible</b></p><p>Launch an ec2 instance for the control machine and install the ansible in that machine</p><p>$ sudo apt update</p><p>$ sudo apt install software-properties-common</p><p>$ sudo apt-add-repository --yes --update ppa:ansible/ansible</p><p>$ sudo apt install ansible -y</p><p>Also launch the host ec2 instances and attach in to security groups </p><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-45770174137965813342021-10-06T21:07:00.003-07:002022-03-07T21:42:00.844-08:00Removing the java in linux<h4 style="text-align: left;">Remove the Oracle's Java folder: </h4><div>$ sudo rm -r /usr/lib/jvm/java-11-oracle</div><h4 style="text-align: left;">Install OpenJDK 8 from APT:</h4><div>$ sudo apt install openjdk-8-jdk openjdk-8-jre</div><div><br /></div><h4 style="text-align: left;">Confirm Java version using:</h4><div>$ java -version</div><div><br /></div><div><br /></div><h4 style="text-align: left;">Or you can change the default java version by the following</h4><div>$ sudo update-alternatives --config java</div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-62049468782661121242021-10-05T04:50:00.001-07:002021-10-05T04:50:21.203-07:00Jenkins is not installing and showing the error like below<p> </p><p>Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. </p><p><br /></p><p>In that case, you have to install the $ <b>sudo apt install ca-certificates</b> </p><p>and again reinstall the Jenkins service you will get succeed. </p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-60353289278566898492021-10-02T01:21:00.003-07:002021-10-02T01:24:13.783-07:00Docker Swarm<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFfDbhZeM9whmFLuerK3GOZn0ogUAaHZCT1mkXDa6ZaR7cRV-x0aDDUI8pJA7UTXwZbqwcVKysOUWYCquV7wUmlbsmPd27tE-0urmVANYFwycYU12QyZcFe8Kn4wTV4IJB3OimYex9Bt4/s1207/swarm-diagram.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="566" data-original-width="1207" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFfDbhZeM9whmFLuerK3GOZn0ogUAaHZCT1mkXDa6ZaR7cRV-x0aDDUI8pJA7UTXwZbqwcVKysOUWYCquV7wUmlbsmPd27tE-0urmVANYFwycYU12QyZcFe8Kn4wTV4IJB3OimYex9Bt4/w320-h150/swarm-diagram.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;">Src <a href="https://docs.docker.com/engine/swarm/how-swarm-mode-works/nodes/" target="_blank">https://docs.docker.com/engine/swarm/how-swarm-mode-works/nodes/</a></div><br /><p></p><p><b><u><span style="font-size: 14pt; line-height: 107%;">Docker Swarm</span></u></b><b><span style="font-size: 12pt; line-height: 107%;">:</span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;">Docker swarm is a container orchestration clustering tool in
simple manages multiple containers that running on the group of the docker host<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;">Benefits of running containers in docker in the swarm mode<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">High availability of services<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">Load balancing<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">Scaling the containers<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">Rolling updates<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><u><span style="font-size: 14pt; line-height: 107%;">Swarm Architecture</span></u></b><b><span style="font-size: 12pt; line-height: 107%;">:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">One node will be acting as a Manager
Node can add any no of nodes but primary task manages the cluster<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">worker node will run actual load<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">containers will be running in form of
services</span></p><p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;"><br /></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 14pt; line-height: 107%;">Creating the docker swarm cluster<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">going to create a cluster of 3 nodes
one is manager, worker1 and worker2 in docker swarm can create any no of
manager nodes and any no of worker nodes<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">If you want to add a node as a
manager by the command before that you can start docker on all the nodes<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;">Docker swarm init --advertise-addr ipAddress</span></b><span style="font-size: 12pt; line-height: 107%;"> --it acts as a manager it will start the
cluster to add workers to this swarm<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;">It gives the command like token <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;">Docker swarm join \<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;"> --token swatkljsjkas
-1-2ashhjkashkalkslksajlkjklasjkljsakfasf \<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;">10.142.2.1:2377<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">this command will run on other nodes
it will become worker nodes if you want to retrieve back to the command it
means to add worker nodes type <b>docker swarm join-token worker </b>it will
give the command use this command as any node to become a worker node <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span style="font-size: 12pt; line-height: 107%;">docker node ls</span></b><span style="font-size: 12pt; line-height: 107%;"> --it
shows the list of clusters and its status<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">If you want to become a any node as a
manager to run this <b>docker swarm join-token manager </b>it gives the command
and it run on node to become a manager <b> <o:p></o:p></b></span></p><p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-size: 12pt; line-height: 107%;"><b><br /></b></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><u><span style="font-size: 14pt; line-height: 107%;">Creating containers in docker swarm cluster</span></u></b><b><span style="font-size: 14pt; line-height: 107%;">:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">creating container in docker swarm in
the form of service by the following command<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;">Docker service create -p 8001:80 --name websvc nginx </span></b><span style="font-size: 12pt; line-height: 107%;"> --it
starts the container from the image nginx and it exposes a port on 8001 and it can
access the service on all the worker nodes and manager node also because all
are in the same cluster, they are open for <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span style="font-size: 12pt; line-height: 107%;">docker service ls </span></b><span style="font-size: 12pt; line-height: 107%;"> --to
see the service is running or not<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span style="font-size: 12pt; line-height: 107%;">docker ps webservice</span></b><span style="font-size: 12pt; line-height: 107%;">(serviceName) --it shows the details and where it is running if the load
is running on the manager node you can change the load into the worker node by
draining the manager node by the command <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span style="font-size: 12pt; line-height: 107%;">docker node update --availability
drain manager </span></b><span style="font-size: 12pt; line-height: 107%;">to
drain no-load take the manager node <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span style="font-size: 12pt; line-height: 107%;">docker service ps webservice </span></b><span style="font-size: 12pt; line-height: 107%;"> --to show the service running on the worker node you go to
that worker node and give the command docker ps it will show the service
running get the ip address followed by the port mapping it will show the
service on any of the nodes it may be worker node or manager node because that
port is open any for cluster-wide<b>
<o:p></o:p></b></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;">If you want to do the maintenance of
worker 1 it will shut down or drain worker 1 the services are running on the
worker 1 is shifted into worker 2 nodes by achieving the <b>High availability</b>
of the service<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-size: 12pt; line-height: 107%;">Secalling up the service:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm;"><b><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span></b><b><span style="font-size: 12pt; line-height: 107%;">docker service scale webservice=10</span></b><span style="font-size: 12pt; line-height: 107%;"> --it
means it increase the resources to 10 to show <b>docker service ls </b>and see where
it is running by the <b>docker service ps webservice </b>to show the whare it
is running <o:p></o:p></span></p>
<span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ansi-language: EN-IN; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-char-type: symbol; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><b><span face=""Calibri",sans-serif" style="font-size: 12pt; line-height: 107%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">docker node update --availability active manager</span></b><span face=""Calibri",sans-serif" style="font-size: 12pt; line-height: 107%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"> --it
means the manager node is ready to take the load it is an active state<b></b></span><div><span face=""Calibri",sans-serif" style="font-size: 12pt; line-height: 107%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"><br /></span></div><div><br /></div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-80503951077078230232021-05-31T22:56:00.003-07:002021-05-31T22:56:36.247-07:00WinRm Installation in Windows Host Machine in Ansible<p> <span style="font-family: "Liberation Mono", serif; font-size: 10pt;">1. Go to the below website and clone the script from the git URL or otherwise manually copy and past in to your target windows machine with name extension ConfigureRemotingForAnsible.ps1</span></p><pre class="western" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; direction: ltr; font-family: "Liberation Mono", serif; font-size: 10pt; margin-bottom: 0.5cm;"><a href="https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup" style="color: navy;">https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-setup</a>
<a href="https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" style="color: navy;">https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1</a>
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
2.Then run the below command in windows powershell
$powershell.exe -ExecutionPolicy ByPass -File .\ConfigureRemotingForAnsible.ps1
it complets the WinRm execution in windows then check the connection through the ansible module by allowing the port address in the security group of the windows instance WinRm_HTTPS = 5986 and WinRm_HTTP = 5985
then enter the inventory by the below format
windows1 ansible_host=15.206.72.103 ansible_password=!oC(.WN&UDZ?YhY.Pse%CVa39Z?iKKC ansible_connection=winrm ansible_port=5986 ansible_user=Administrator ansible_winrm_server_cert_validation=ignore
Then run the ping module command for checking the target windows machine connection by the below command
$ansible -i inventory -m win_ping windows1
Install pywinrm in ansible control machiine
apt install python-pip
pip install pywinrm </pre>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-35803370939164833792021-05-09T23:30:00.003-07:002021-05-10T19:31:19.117-07:00Installing Minikube on Ubuntu 20.04/18.04<p><b></b></p><div class="separator" style="clear: both; text-align: center;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikOyBAZz8L6PE0rUCPLq7HiafAxnos_TZILQoMgzHEouaYRufCEGjwxPKrmZXt9RSvT93veC8fJBf0FowSv-SGVW6M2QfDvRFWH6vc0UpdJXa1rNZZKDOj4hcMNQZARoAsQuBflahUj3U/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="127" data-original-width="397" height="102" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikOyBAZz8L6PE0rUCPLq7HiafAxnos_TZILQoMgzHEouaYRufCEGjwxPKrmZXt9RSvT93veC8fJBf0FowSv-SGVW6M2QfDvRFWH6vc0UpdJXa1rNZZKDOj4hcMNQZARoAsQuBflahUj3U/" width="320" /></a></b></div><p></p><p></p><p><b><span style="color: black; font-size: 13.5pt;">Installing Minikube on Ubuntu
20.04/18.04</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Updating the system</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo apt-get update<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo apt-get install apt-transport-https<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo apt-get upgrade<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Install KVM or VirtualBox Hypervisor</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo apt install virtualbox
virtualbox-ext-pack<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Download Minikube</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">You need to download the minikube binary
and it should be palce it on <i>usr</i>local/bin location it is in side
the <b>$PATH</b><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ chmod +x minikube-linux-amd64<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo mv minikube-linux-amd64
/usr/local/bin/minikube<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">For Conforming the version</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ minikube version<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Install Kubectl in Ubuntu/Debian</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl
-s <a href="https://storage.googleapis.com/kubernetes-release/release/stable.txt"><span style="color: navy;">https://storage.googleapis.com/kubernetes-release/release/stable.txt</span></a>`/bin/linux/amd64/kubectl<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">Make the binary to be executible.<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ Chmod +x ./kubectl<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">Move the binary in to that path location<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ sudo mv ./kubectl <i>usr</i>local/kubectl<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">Check the Version:<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ kubectl version -o json<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Starting minikube</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ minikube start<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><b><span style="color: black; font-size: 13.5pt;">Minikume basic operations</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">To check the cluster status<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ kubectl cluster-info<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">Fo viewing config<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ kubect config view<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">For checking the running nodes<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ kubectl get nodes<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;"><o:p> </o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">Accessing the minikube vm<o:p></o:p></span></p>
<p style="-webkit-text-stroke-width: 0px; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-variant-caps: normal; font-variant-ligatures: normal; margin-bottom: 0cm; mso-line-height-alt: .75pt; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-decoration-thickness: initial; widows: 2; word-spacing: 0px;"><span style="color: black; font-size: 13.5pt;">$ minkube ssh<o:p></o:p></span></p><br /><p></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-21123377473710219982021-02-06T09:56:00.006-08:002021-02-06T09:58:46.835-08:00Ansible - host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method<p><span style="font-family: Calibri; font-size: medium;"> First you run the following command<b> ansible -i inventory -m ping web01 -vvvv</b> it will shows the bellow details </span></p><p><span style="font-family: Calibri; font-size: medium;"><br /></span></p><p><span style="font-family: Calibri; font-size: medium;">[host_list declined parsing /root/bluewhale/inventory as it did not pass its verify_file() method</span></p><p><span style="font-family: Calibri; font-size: medium;">script declined parsing /root/bluewhale/inventory as it did not pass its verify_file() method</span></p><p><span style="font-family: Calibri; font-size: medium;">auto declined parsing /root/bluewhale/inventory as it did not pass its verify_file() method</span></p><p><span style="font-family: Calibri; font-size: medium;">Parsed /root/bluewhale/inventory inventory source with ini plugin</span></p><p><span style="font-family: Calibri; font-size: medium;">Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/]</span></p><p><span style="font-family: Calibri; font-size: medium;"><br /></span></p><p><span style="font-family: Calibri; font-size: medium;">--> First you check the instance type Linux is exactly mentioned or not ex. ubuntu, centos</span></p><p><span style="font-family: Calibri; font-size: medium;">-->Then you check the 22 port is for control machine allowed or not</span></p><p><span style="font-family: Calibri; font-size: medium;">--> you should check the correct IP address is entered </span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-40701713653945893002020-12-26T08:59:00.011-08:002022-03-31T11:54:50.487-07:00How to Install Jenkins <p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrKnCjvQ-SlIfHTsmhBJtLChLxVFYaHzNyTERE5L3Z6iCswX5JxdH5cSqb8q1M86Co1NKE0Rt9wXH-Gq6Awi24nhTDh4qgrXPQODDc80qbborCtZptqpkJN9wKRh-FMkqWbWAi8fmGfig/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="411" data-original-width="676" height="195" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrKnCjvQ-SlIfHTsmhBJtLChLxVFYaHzNyTERE5L3Z6iCswX5JxdH5cSqb8q1M86Co1NKE0Rt9wXH-Gq6Awi24nhTDh4qgrXPQODDc80qbborCtZptqpkJN9wKRh-FMkqWbWAi8fmGfig/" width="320" /></a></div><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Jenkins
Installation Req:<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst" style="mso-list: l1 level1 lfo1; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-size: 12pt; line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">Java, JRE, JDK<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo1; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-size: 12pt; line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">2.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">Ubuntu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">Installation:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">Link adder </span><a href="https://pkg.jenkins.io/debian-stable/">Debian Jenkins Packages</a><o:p></o:p></p>
<p class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">1.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">sudo apt update <o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">2.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">sudo apt install openjdk-8-jdk -y<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">3.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">wget -q -O -
https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add –<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle"><span style="font-size: 12pt; line-height: 107%;">then add the below content to sources list<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">4.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">echo ‘deb </span><a href="https://pkg.jenkins.io/debian-stable%20binary/"><span style="font-size: 12pt; line-height: 107%;">https://pkg.jenkins.io/debian-stable binary/</span></a><span style="font-size: 12pt; line-height: 107%;">’ >> /etc/apt/sources.list<o:p></o:p></span></p><p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"> or</p><p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"> sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stablebinary/ > /etc/apt/sources.list.d/jenkins.list'</p>
<p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">5.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">apt update</span></p><p class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><span style="font-size: 12pt; line-height: 107%;"> su</span><span style="text-indent: -18pt;">do apt install ca-certificates</span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 12.0pt; mso-bidi-theme-font: minor-latin;">6.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span></span><span style="font-size: 12pt; line-height: 107%;">sudo apt install Jenkins -y<o:p></o:p></span></p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><span style="font-size: 12pt; line-height: 107%;"> sudo apt install start jenkins</span></p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><span style="font-size: 12pt; line-height: 107%;"> sudo apt enable jenkins</span></p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><span style="font-size: 12pt; line-height: 107%;"> systemctl status jenkins</span></p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"> open the browser http://your-ip or domain:8080</p><p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu2mLlaayW4r3RGahy04YahcBDyE7A5EwKrKZcmk8AgPd4_Q585-iaY1DlnXCSWOx3gI0JNqtGd-1ft7HDawi6V70W4_FuQlDtRm04-fGipu7S-DkmL00WMxlbUSj7cf6nL0ycE7M9o0I/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="732" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu2mLlaayW4r3RGahy04YahcBDyE7A5EwKrKZcmk8AgPd4_Q585-iaY1DlnXCSWOx3gI0JNqtGd-1ft7HDawi6V70W4_FuQlDtRm04-fGipu7S-DkmL00WMxlbUSj7cf6nL0ycE7M9o0I/" width="309" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"> sudo cat /var/lib/jenkins/secrets/initialAdminPassword</div><div class="separator" style="clear: both; text-align: left;"> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBfoGt8AJSqBVveF6n3ARyd2EXYUYsHjOOYEfqlSpzesFGSI9ryRUMmZsEQa01-HXFXNFI2eAMOt3VvJepOZA5vHWntNL2yZIQG_NRuGjr1Qd9VDfmSLWDsj1zX3IDEJTqEc7B7Vb-OYg/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="732" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBfoGt8AJSqBVveF6n3ARyd2EXYUYsHjOOYEfqlSpzesFGSI9ryRUMmZsEQa01-HXFXNFI2eAMOt3VvJepOZA5vHWntNL2yZIQG_NRuGjr1Qd9VDfmSLWDsj1zX3IDEJTqEc7B7Vb-OYg/" width="309" /></a></div><div class="separator" style="clear: both; text-align: left;"> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ5bAmIgDL-SGjmt1Jzk_7byKEeklg589rdvKrLeUqu5S4Nd5VGsMKyaFxkupkwnRHQkRBKW0MmrnOCyDlBHwtdiH81mafu95fbXhMbfz3Zt0vUpS9Xsz7lV5o_PxdJm0PPPnAVN7NYfo/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="732" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ5bAmIgDL-SGjmt1Jzk_7byKEeklg589rdvKrLeUqu5S4Nd5VGsMKyaFxkupkwnRHQkRBKW0MmrnOCyDlBHwtdiH81mafu95fbXhMbfz3Zt0vUpS9Xsz7lV5o_PxdJm0PPPnAVN7NYfo/" width="309" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyz9rlpBsbfqWuTLIAZnAyUfQCoP08AXHffTnfkhjyAnqLqb5ud9H0RMVe_JNOqq2YvDAyxV-HHcVgCsodSufXhvfiIRHN1rAOiL7xy_N0oRn3Cw5zWIDGWncFLuyiM9_oJOLAyPPzTeg/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="732" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyz9rlpBsbfqWuTLIAZnAyUfQCoP08AXHffTnfkhjyAnqLqb5ud9H0RMVe_JNOqq2YvDAyxV-HHcVgCsodSufXhvfiIRHN1rAOiL7xy_N0oRn3Cw5zWIDGWncFLuyiM9_oJOLAyPPzTeg/" width="309" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTSHId7FkM-XFmG2eAChjV7yI9DHIe8JewQjtFFGw20JSB6tcJUpZEAp9JQO0WMdH8Dm6ATFHn9WT5EX0sxxrLmZkpQ4fOz6FPEmxsY-Z7NRV0ytf_estdNRZVsPX4N8oarHBlVXwWrdk/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="569" data-original-width="732" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTSHId7FkM-XFmG2eAChjV7yI9DHIe8JewQjtFFGw20JSB6tcJUpZEAp9JQO0WMdH8Dm6ATFHn9WT5EX0sxxrLmZkpQ4fOz6FPEmxsY-Z7NRV0ytf_estdNRZVsPX4N8oarHBlVXwWrdk/" width="309" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEjsAn22ikotS-09sd_lJR9WxSoKLGqN4nY_ymdOUBPVuOx7V7TBaUNUOoBIEP8FfJB5aLxEmtIFTtnH5E0Ck8fonAaDAO163YcC-8p3i5HYq5ptndHWi794EYg2kPnnXqvilcRo1WRVU/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="429" data-original-width="732" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEjsAn22ikotS-09sd_lJR9WxSoKLGqN4nY_ymdOUBPVuOx7V7TBaUNUOoBIEP8FfJB5aLxEmtIFTtnH5E0Ck8fonAaDAO163YcC-8p3i5HYq5ptndHWi794EYg2kPnnXqvilcRo1WRVU/" width="320" /></a></div><br /><br /></div></div><br /></div><b>Un installing Jenkins Server</b></div><div class="separator" style="clear: both; text-align: left;"><b><br /></b></div><div class="separator" style="clear: both; text-align: left;">sudo systemctl stop jenkins</div><div class="separator" style="clear: both; text-align: left;">sudo apt-get remove --purge jenkins</div><div class="separator" style="clear: both; text-align: left;">sudo apt-get remove jenkins</div><div class="separator" style="clear: both; text-align: left;">sudo apt-get remove --auto-remove jenkins</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><br /><div class="separator" style="clear: both; text-align: center;"><br /></div><br /></div><br /><p></p><p></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-65589926120961670282020-12-26T08:45:00.004-08:002020-12-26T08:48:22.837-08:00How to Install Apache Tomcat In Linux Ubuntu 18<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnw4zwdIk0tXHc0s0VhGNcYd0QwiRh_Sjv7KceGRr4XZ9rA2mQ4K-DEi5SNdcWhwHN-rjvSDutiDR5lQqdW12uNE5j5Guf1h77mmTB0Mk47vqzHWKszMYlnIE0B3At3edEBlz3YMtRwr8/" style="margin-left: 1em; margin-right: 1em;"></a><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnw4zwdIk0tXHc0s0VhGNcYd0QwiRh_Sjv7KceGRr4XZ9rA2mQ4K-DEi5SNdcWhwHN-rjvSDutiDR5lQqdW12uNE5j5Guf1h77mmTB0Mk47vqzHWKszMYlnIE0B3At3edEBlz3YMtRwr8/" style="margin-left: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFB07QdwPrcJXD2EQfD2S-ZiqZwVPSXOYj4-fX6iqQjfwAg5OuxQUXjqEaN2QGMcsePRHs6o3SNOyCAK8Zdo5YtDOdNqGnT_YXJlaPFnLyu9fYq_8SLMyUihQeYve4XppI_QgY9kBRC70/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="225" data-original-width="497" height="145" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFB07QdwPrcJXD2EQfD2S-ZiqZwVPSXOYj4-fX6iqQjfwAg5OuxQUXjqEaN2QGMcsePRHs6o3SNOyCAK8Zdo5YtDOdNqGnT_YXJlaPFnLyu9fYq_8SLMyUihQeYve4XppI_QgY9kBRC70/" width="320" /></a></div></div><p></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Tomcat</span></b><span style="font-size: 12pt; line-height: 107%;"> server is mainly used for app
deployment<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">For that we
have to install the following<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">in Ubuntu
server:<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">apt update <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">apt install
openjdk-8-jdk -y<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">wget -y<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">After
that download tomcat 8:<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">wget </span><a href="https://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz"><span style="font-size: 12pt; line-height: 107%;">https://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz</span></a><span style="font-size: 12pt; line-height: 107%;"><o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">move into
/usr/local/<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">mv apache-tomcat-8.5.61.tar.gz /usr/local/<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">tar xzvf
apache-tomcat-8.5.61.tar.gz<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Change
the directory to apache-tomcat-8.5.61<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">cd apache-tomcat-8.5.61<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">in that
bin directory starts the service by the </span></b><span style="font-size: 12pt; line-height: 107%;">startup.sh <b>file<o:p></o:p></b></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">bin/startup.sh </span><span style="font-family: Wingdings; font-size: 12pt; line-height: 107%; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span style="font-size: 12pt; line-height: 107%;"> To start the tomcat server<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">logs are
stored In the tomcat in logs directory Catalina. out (wget installed on are in
logs directory)<o:p></o:p></span></b></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">otherwise
in /var/log directory<o:p></o:p></span></b></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Open the
tomcat application in the website by giving the </span></b><span style="font-size: 12pt; line-height: 107%;">publicip:8080 <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">1.Click on <b>manager
App</b> button it throws an error by removing this error edit the <b>contex.xml
</b>file in <b>webapps/manager/META-INF/contex.xml </b>in that to add the
remote access under the comment section like <!-- --><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">2.To add
users in <b>conf/tomcat-users.xml </b>in this file uncomment the user section
keep only one user in role name give <b>manager-gui </b>and <b>manager-script </b>in
user role section gives both<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;"> To stop tomcat service <o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">bin/shutdown.sh<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">To start
tomcat service<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">bin/startup.sh<b>
<o:p></o:p></b></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><b><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Another way to start the service by<o:p></o:p></span></b></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><b><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Update file with the following content.<o:p></o:p></span></b></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">vi /etc/systemd/system/tomcat.service<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> </span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">[Unit]<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Description=Tomcat<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">After=network.target<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> </span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">[Service]<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">User=tomcat<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">WorkingDirectory=/usr/local/tomcat8<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Environment=JRE_HOME=/usr/lib/jvm/jre<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Environment=JAVA_HOME=/usr/lib/jvm/jre<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Environment=CATALINA_HOME=/usr/local/tomcat8<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Environment=CATALINE_BASE=/usr/local/tomcat8<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">ExecStart=/usr/local/tomcat8/bin/catalina.sh
run<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">ExecStop=/usr/local/tomcat8/bin/shutdown.sh<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">SyslogIdentifier=tomcat-%i<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> </span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">[Install]<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">WantedBy=multi-user.target<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><b style="font-size: 12pt;"><br /></b></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><b style="font-size: 12pt;">Reload the Demon and Start the tomcat service</b></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> systemctl daemon-reload<o:p></o:p></span></p><p class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> systemctl start tomcat<o:p></o:p></span></p><p>
</p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"> systemctl enable tomcat<b><o:p></o:p></b></span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-85443416898102436812020-12-19T07:45:00.006-08:002020-12-19T07:52:18.331-08:00How to Install latest Sonatype Nexus 3 In Linux<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsFkkZYcXkBlqLvb4ThubwH9hzn-w8X8YoqxwTklK-h59ZyRF6GIT0NgC05Nd_rYHIfzA91h1qjejIkuxeIxkQk-q6BBM0xhNCquKys4hOWgUb-aTraVzBmjiJTyrXONaGOLgBJdZMgHQ/s1360/nexus-repository-manager.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="333" data-original-width="1360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsFkkZYcXkBlqLvb4ThubwH9hzn-w8X8YoqxwTklK-h59ZyRF6GIT0NgC05Nd_rYHIfzA91h1qjejIkuxeIxkQk-q6BBM0xhNCquKys4hOWgUb-aTraVzBmjiJTyrXONaGOLgBJdZMgHQ/s320/nexus-repository-manager.jpg" width="320" /></a></div><p></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Nexus 3 Installation:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Sonatype nexus is the best one of the
repository. It is most used your CI/CD pipeline it is mostly manages the
artifact deploying.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span><b><span style="font-size: 12pt; line-height: 107%;">Requirements:</span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">1 VCPU and 2GB Memory<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Firewall ports for 22 and 8081<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Open JDK 8<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span><b><span style="font-size: 12pt; line-height: 107%;">Sonatype Nexus 3 on Linux (Centos)
Ec2 Instance:</span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Step 1:</span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Login to your Linux server
and update it. Also install required utilities and switch to sudo -i user</span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">yum update -y<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">yun install wget -y<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-spacerun: yes;"> </span><b>Step 2:</b> </span></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><b>Install OpenJdk 1.8<o:p></o:p></b></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">yum install
java-1.8.0-openjdk.x86_64 -y<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Step 3:</span></b><span style="font-size: 12pt; line-height: 107%;"> </span></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><b>Create a directory named apps and
cd in to that directory</b><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">mkdir<span style="mso-spacerun: yes;"> </span>/apps<span style="mso-spacerun: yes;">
</span>&&<span style="mso-spacerun: yes;"> </span>cd<span style="mso-spacerun: yes;"> </span>/apps<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Step 4:</span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Download the late nexus from
following link </span></b><a href="https://help.sonatype.com/repomanager3/download" target="_blank"><b>Download
(sonatype.com)</b></a><b> or</b><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">wget -O nexus.tar.gz </span><a href="https://download.sonatype.com/nexus/3/latest-unix.tar.gz"><span style="font-size: 12pt; line-height: 107%;">https://download.sonatype.com/nexus/3/latest-unix.tar.gz</span></a><span style="font-size: 12pt; line-height: 107%;"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><b>Untar file downloaded</b><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">tar -xvf nexus.tar.gz<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Rename the directory <o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">mv nexus-3* nexus <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Step 5: </span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">For good security practice it
is not advised to run nexus service with any sudo user So</span></b><span style="font-size: 12pt; line-height: 107%;"> <b>create new sudo user name by
nexus<o:p></o:p></b></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>useradd
nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Change the ownership permissions of
nexus file and nexus data directory to nexus user<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>chown
-R nexus:nexus /apps/nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>chown
-R nexus:nexus /apps/sonatype-work<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Step 6: </span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Open /apps/nexus/bin/nexus.rc
file</span></b><span style="font-size: 12pt; line-height: 107%;"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>sudo
vi<span style="mso-spacerun: yes;"> </span>/app/nexus/bin/nexus.rc<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Uncomment run as user parameter and
set it as following<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>run_as_user="nexus"<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 17.12px;">Step 7:</span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><b>Runing the Nexus service as a system
service</b><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>vi
/etc/systemd/system/nexus.service<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Add the following content to unit
file<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">[Unit]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Description=nexus service<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">After=network.target<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">[Service]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Type=forking<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">LimitNOFILE=65536<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">User=nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Group=nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">ExecStart=/app/nexus/bin/nexus start<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">ExecStop=/app/nexus/bin/nexus stop<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">User=nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Restart=on-abort<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt;">[Install]</span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">WantedBy=multi-user.target<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;"><br /></span></b></p><p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">Manage Nexus Service<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>chkconfig
nexus on<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">To start the Nexus service<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;"><span style="mso-tab-count: 1;"> </span>systemctl
start nexus<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><span style="font-size: 12pt; line-height: 107%;">Above command stsrt the nexus service
on port 8081 to access the nexus dash board visit http://localip:8081<o:p></o:p></span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-36842821673260082902020-12-18T22:12:00.019-08:002022-03-16T22:32:52.459-07:00How to Find and How to Locate files by the name of file<p></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9I4r5QjNLnjkMXXHO_cNaZZTv2Wsa3Hub5kOAqld02faxalfUS11xuU1a74vaTaAahuac7WdKOP9AY1mlS08MRc_-FKRqMm9y2r1gN0fjE4gpCNOc45bJptkaIHVlz3fHjaPFBmFCL7Q/s900/find-someone.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="704" data-original-width="900" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9I4r5QjNLnjkMXXHO_cNaZZTv2Wsa3Hub5kOAqld02faxalfUS11xuU1a74vaTaAahuac7WdKOP9AY1mlS08MRc_-FKRqMm9y2r1gN0fjE4gpCNOc45bJptkaIHVlz3fHjaPFBmFCL7Q/s320/find-someone.jpg" width="320" /></a></div><p></p><p align="center" class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: center;"><b><span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-hansi-font-family: Calibri;">Files you want to find
and don't know the exact location below command to find the files</span></b><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></p><div class="separator" style="clear: both;">
<p class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="font-size: 12pt;">>
find /etc -name samb* --
It shows the location of the file name starting samb and all the files name
having the samb</span><span style="font-family: "Times New Roman", serif; font-size: 12pt;"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><b><span style="font-size: 12pt;">Locate
also find the file path </span></b><span style="font-family: "Times New Roman", serif; font-size: 12pt;"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="font-size: 12pt;">>
locate samba</span><span style="font-family: "Times New Roman", serif; font-size: 12pt;"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="font-size: 12pt;">it not
shows directly you can update every time by > <b>updatedb </b>to
locate the file </span><span style="font-family: "Times New Roman", serif; font-size: 12pt;"><o:p></o:p></span></p></div><p></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-31340956192559644812020-12-15T00:14:00.011-08:002022-07-02T23:44:48.357-07:00Git and Github Basic Commands<p> </p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKwFqoZSWNnqIkeEoSlJm2eGTLwdx7ipBB-F07WaZ6p7GdYRV9ICKOoPloPWwEYFpR8irBKb8Fhx6cjpoKqxjg0AWcDw4ExLst9C-TX49GG-qbZOsUW3FFJTNwP7CwUFdUKObULRINnU4/s1200/1_qwFrTMnFkcd3U9rFKwwacw.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="674" data-original-width="1200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKwFqoZSWNnqIkeEoSlJm2eGTLwdx7ipBB-F07WaZ6p7GdYRV9ICKOoPloPWwEYFpR8irBKb8Fhx6cjpoKqxjg0AWcDw4ExLst9C-TX49GG-qbZOsUW3FFJTNwP7CwUFdUKObULRINnU4/s320/1_qwFrTMnFkcd3U9rFKwwacw.png" width="320" /></a></div></div></div></div><p></p><p align="center" class="MsoNormal" style="text-align: center;"><b><span style="font-size: 14pt; line-height: 107%;">Git (Version Control System)<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Git:</span></b><span style="font-size: 12pt; line-height: 107%;"> Git is a version control system (It
is used to maintain a version control tracking)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify; text-indent: 36pt;"><span style="font-size: 12pt; line-height: 107%;">If you change any files edit and
saved and make some modifications and save it again and it stores and takes back
up and it will take again from back up this is a long process to do these all
the tasks will do a tool is called </span></p>
<p class="MsoNormal" style="text-align: justify;"><b style="font-size: 12pt; text-indent: 36pt;">Version Control System </b><span style="font-size: 12pt; text-indent: 36pt;">it has own mechanism to do or maintain the versions and maintain all the history.</span></p><p class="MsoNormal" style="text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">For Individual Help:</span></b><span style="font-size: 12pt; line-height: 107%;">It is helpful to revert
back to the previous versions and new versions and it like a “time machine” like
where you want to go the changes have done earlier and previous stages<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify;"><b><span style="font-size: 12pt; line-height: 107%;">For Working with Team: </span></b><span style="font-size: 12pt; line-height: 107%;">It differences the current work, add
the contents and merging changes<b><o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Management
of Changes to Files:<span style="mso-tab-count: 2;"> </span></span></b><span style="font-size: 12pt; line-height: 107%;">It maintains the track changes have occurred and it allows to people work together with any kind of text data it can track the
changes<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Localized
and Centralized VCS</span></b></p><p class="MsoNormal"><span style="font-size: 12pt; text-indent: -18pt;">Localized VCS means using individually
using in the local system and working on those files modifications and changes</span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo1; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">Centralized VCS having the server where
the master repository kept and users having the copy of the repository<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Centralized
VCS:<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In Subversion, CVS, Github Have a
central repository complete copy having the server all the history will save
the server <o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo2; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">You make local modifications you
check out to your local system and make modifications and check-in back to the
server<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span></b><b><span style="font-size: 12pt; line-height: 107%;">Drawbacks:</span></b></p>
<p class="MsoListParagraph" style="mso-list: l3 level1 lfo3; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-bidi-font-weight: bold; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";">
</span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In
both approaches in local tool fail the local fails, in centralized if the server
fails no commits are performed into the central server to over cum these drawbacks
<b><o:p></o:p></b></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Distributed
version control system:<o:p></o:p></span></b></p>
<p class="MsoListParagraphCxSpFirst" style="mso-list: l3 level1 lfo3; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In distributed VCS have a local copy
and master copy both are same you made changes at local system only after
changes are done after commit and push into the server it is a combination of
localized and centralized VCS.<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l3 level1 lfo3; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">Here server is used to store the all
the information<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span><b><span style="font-size: 12pt; line-height: 107%;">Installing
Git:</span></b></p>
<p class="MsoListParagraphCxSpFirst" style="mso-list: l2 level1 lfo4; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In Window install Gut Bash<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpMiddle" style="mso-list: l2 level1 lfo4; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In MacOs install via HomeBrew<o:p></o:p></span></p>
<p class="MsoListParagraphCxSpLast" style="mso-list: l2 level1 lfo4; text-indent: -18pt;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 12pt; line-height: 107%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-size: 12pt; line-height: 107%;">In Linux install via the package manager
(yum, apt, snap, etc)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">After installing
the git bash in windows open the git bash terminal <o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Git
Commands:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">mkdir skylab
It makes the directory
named by skylab<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">cd skylab It enters in to the directory
skylab<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git init It initialized the empty git repository<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">ls -a It shows the .git files<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">cat .git/config It shows the configuration file
contents<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">touch filename It
will create the new files <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git status It
shows the changes have to track or known<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git add . It
considering or adding to staging area<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git status It
shows the status<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git commit
-m “Comment or message” It commit the all the changes<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">enter the
global user and email by <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git config
--global user.email “<a href="mailto:name@gmail.com">name@gmail.com</a>” It set the email<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git config
--global user.name “name” it
set the name<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git log To
show the changes along the commit id<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;"> git
log --oneline It
shows simple small commit id details<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git show commitId shows
details if changes done adding lines</span></p><p class="MsoNormal">git push --set -upstream origin dev<span style="white-space: pre;"> </span>--It will create a branch in central repo with name dev and pushes the files in to that repo</p><p class="MsoNormal">git push origin --delete dev<span style="white-space: pre;"> </span>--It will delete the dev branch in remote</p><p class="MsoNormal"><span style="line-height: 107%;"></span></p><p class="MsoNormal">git branch -d dev<span style="white-space: pre;"> </span>--ut will delete the branch dev in local</p><div><br /></div><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">already
have a github account you run the below command to add the github link<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git remote
add origin <a href="https://github.com/yourRepository%20pat/repositoryname.git">https://github.com/yourRepository
pat/repositoryname.git</a><o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Above link
is your github repository link:<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git clone <a href="https://github.com/yourRepository%20pat/repositoryname.git">https://github.com/yourRepository
pat/repositoryname.git</a><o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">cat .git/config It
shows the remote repository info<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git branch
-M main It
changes the branch name master to main<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git push -u origin main It
pushes to all the info from local to remote<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git pull It pull the all changes
from remote to local<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Create
Branches:<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git branch
-c branchName Create branch and
copying the contents from main branch <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git checkout
branchName To
enter in the branch from main<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git branch
-a To
show all the branches you have<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git rm file To
remove file and also remove from staging area also<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git mv is
move command<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git push origin sprint1 It
create a file name sprint1 branch name in central and pushes the files<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Also, you
create branches at github gui<o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git checkout
sprint2 Enter
in to sprint2 branch<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Once
checkout you can also switch the branches line <o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git switch main <o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git switch
sprint1<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">sit switch
sprint2<o:p></o:p></span></p><p class="MsoNormal"><b><span style="font-size: 12pt; line-height: 107%;">Merge
branches: first you enter in to the main
branch after you merge the which branch you need with <o:p></o:p></span></b></p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git merge
sprint1 It
merge sprint1 branch with main branch<o:p></o:p></span></p><p class="MsoNormal">
</p><p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;">git push -u origin main It
pushes it to remote<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; line-height: 107%;"><o:p> </o:p></span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-44474590913045407312020-12-06T06:42:00.008-08:002022-03-16T22:33:08.575-07:00Linux Simple Basic Commands<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5VYN-8EarTu2OUzBkINS2PGHLjBkqhEJYgnn-sMNhQKMiTciRaH_Bt46Nv7qSFxGJ0DHfc2mnNm3iRjsMMdN5wSwz_-6M7eVNHMYNAX6cZES9nZjDv7qdHw1tXdh9JL7Qpcy4gtryCiI/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="720" data-original-width="1280" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5VYN-8EarTu2OUzBkINS2PGHLjBkqhEJYgnn-sMNhQKMiTciRaH_Bt46Nv7qSFxGJ0DHfc2mnNm3iRjsMMdN5wSwz_-6M7eVNHMYNAX6cZES9nZjDv7qdHw1tXdh9JL7Qpcy4gtryCiI/" width="320" /></a></div><p></p><p> ls<span style="white-space: pre;"> </span>Shows the list of file</p><p> ls -l<span style="white-space: pre;"> </span>Shows the long list of files</p><p> ls -a<span style="white-space: pre;"> </span>Shows the list of hidden files</p><p> ls -la<span style="white-space: pre;"> </span>Shows the long list of files along with hidden files and folders</p><p> ls -lt <span style="white-space: pre;"> </span>Shows the list of file sort by time and date</p><p> ls -ls<span style="white-space: pre;"> </span>Shows the list of file long format with file size</p><p> ls -lh<span style="white-space: pre;"> </span>Shows the list of file with readable file size</p><p> ls -i<span style="white-space: pre;"> </span>Shows the list of file with i nodes</p><p> ls -r<span style="white-space: pre;"> </span>Shows the list of file in reverse order</p><p> ls -R<span style="white-space: pre;"> </span>Shows the list of file recursively</p><p> ls -s<span style="white-space: pre;"> </span>Shows the list of file with file size</p><p> ls -S<span style="white-space: pre;"> </span>Shows the list of file sort by file size</p><p> ls -X<span style="white-space: pre;"> </span>Shows the list of file sort by extension</p><p> cd home<span style="white-space: pre;"> </span>Changes the directory in to home</p><p> cd vagrant/<span style="white-space: pre;"> </span>Change the directory in to vagrant</p><p> cat svs.txt<span style="white-space: pre;"> </span>Displays the file contains</p><p> touch sv.txt<span style="white-space: pre;"> </span>Creates the text file sv</p><p> cd <span style="white-space: pre;"> </span>Change the directory in to home</p><p> cd /temp<span style="white-space: pre;"> </span>Changes the directory in to temp</p><p> cd /home/vagrant/<span style="white-space: pre;"> </span>Changes the directory in to vagrant </p><p> mkdir sv<span style="white-space: pre;"> </span>Creates the Directory sv</p><p> rm sv.txt<span style="white-space: pre;"> </span>It removes the file sv.txt</p><p> cd /tmp/sv <span style="white-space: pre;"> </span>It change the directory in to sv</p><p> ls<span style="white-space: pre;"> </span>list of files and directories</p><p> cd sv<span style="white-space: pre;"> </span>Change directory in to sv</p><p> pwd<span style="white-space: pre;"> </span>Present working directory</p><p> cd ..<span style="white-space: pre;"> </span>Change directory one step back</p><p> pwd<span style="white-space: pre;"> </span>Present working directory</p><p> cd /home/vagrant <span style="white-space: pre;"> </span>Changes the directory in to vagrant</p><p> cd /tmp/sv<span style="white-space: pre;"> </span>Changes the directory in to sv<span style="white-space: pre;"> </span></p><p> cd <span style="white-space: pre;"> </span>It changes current and previous directory</p><p> history <span style="white-space: pre;"> </span>It shows the all commands in history</p><div><br /></div><div><b>creating the link files </b></div><div><br /></div><div>ln -s /home/vagrant/data/tool.txt devtool<span style="white-space: pre;"> </span>it will create the softlink of the original file</div><div>unlink devtool <span style="white-space: pre;"> </span>It unlinks the file</div><div>rm devtool<span style="white-space: pre;"> </span>It is also unlink the file</div><div><br /></div><div>Filter by grep command</div><div>(grep word file)</div><div>grep what file name <span style="white-space: pre;"> </span>It means the what is the word contains the file it will searches</div><div>grep -i what file name<span style="white-space: pre;"> </span>It searches the word by case insensitively</div><div>grep -i what *.cfg<span style="white-space: pre;"> </span>It searches all files contains .cfg</div><div>grep -i what *<span style="white-space: pre;"> </span>It searches the all the files in current directory</div><div> </div><div>less and more</div><div>less file name <span style="white-space: pre;"> </span>It shows the information by pressing the down arrow to go down up to go upwords and type q to quit</div><div>more file name<span style="white-space: pre;"> </span>It shows the information by pressing enter to go down and press q to quit</div><div><br /></div><div>head and tail</div><div>head file name<span style="white-space: pre;"> </span>It shows 10 lines from starting</div><div>head -20 file name<span style="white-space: pre;"> </span>It shows 20 lines from starting</div><div>tail file name<span style="white-space: pre;"> </span>It shows 10 lines from ending</div><div>tail -20 file name<span style="white-space: pre;"> </span>It shows 20 lines from ending</div><div><br /></div><div>tail -f file name <span style="white-space: pre;"> </span>It shows the dynamic content it updates in terminal</div><div><br /></div><div>cut -d: -f1 file name <span style="white-space: pre;"> </span>Delimiters is used to shows the colums by separately</div><div><br /></div><div>Search and replace by Vim editer</div><div><br /></div><div>:%s/devops/noops/g<span style="white-space: pre;"> </span>It replaces the word devops by noops in vim editer</div><div>sed -i 's/devops/noops/g'<span style="white-space: pre;"> </span>It replaces the word devops by noops</div><div><br /></div><div>head -5 file name > /tmp/tool.txt<span style="white-space: pre;"> </span>It store the first five lines into tool.txt file</div><div>head -5 file name >> /tmp/tool.txt<span style="white-space: pre;"> </span>It store the first five lines into tool.txt and keeps the previous info</div>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0tag:blogger.com,1999:blog-9215759254874896155.post-76376245290829073752020-12-02T07:57:00.006-08:002022-03-16T22:33:25.348-07:00How to Check the HTTPD service in Linux and Killing the Process<p><span style="font-size: medium;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-size: medium;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLMaCTCwECC2ilAiA99408jAUef8GgLy7TGrIEkw-wBiO4o2dkBH_3ghUtUXz-D1Na76dhE2Mif53W7etlgHiz_5GKMsg5nfIxdWgTBNH-ya7jtAJhArlThXgS6TVM88Qllshm5Tq199A/s1280/apache-web-server..jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="720" data-original-width="1280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLMaCTCwECC2ilAiA99408jAUef8GgLy7TGrIEkw-wBiO4o2dkBH_3ghUtUXz-D1Na76dhE2Mif53W7etlgHiz_5GKMsg5nfIxdWgTBNH-ya7jtAJhArlThXgS6TVM88Qllshm5Tq199A/s320/apache-web-server..jpg" width="320" /></a></span></div><b style="font-size: large; text-align: justify;"><span style="font-family: "Times New Roman", serif;">Check status of a
service</span></b><p></p>
<p class="MsoListParagraphCxSpFirst" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">1.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">systemctl status servicename(httpd) </span><span style="font-family: "Times New Roman", serif;">It shows the
status of the service it started or stoped<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">2.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">when
you start a service you must enable the service by <span style="color: #00b0f0;">systemctl
enable httpd<o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">3.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">systemctl start httpd<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">4.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">when
you stop a service you must enable the service by <span style="color: #00b0f0;">systemctl
disable httpd<o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">5.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">systemctl stop httpd<o:p></o:p></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">6.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">systemctl is-enabled apache2 </span><span style="font-family: "Times New Roman", serif;">it shows the enable or disable status<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">7.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">after
that you restart the VM it will starts running<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">8.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">systemctl
command is read the file is located in this location <span style="color: #00b0f0;">cd<span style="mso-spacerun: yes;"> </span>/etc/systemd/<span style="mso-spacerun: yes;">
</span></span>in that directory find the file by typing command <span style="color: #00b0f0;">find . -name httpd* </span>one file is there<span style="mso-spacerun: yes;"> </span>./system/multi
user.target.wants/httpd.service<span style="mso-spacerun: yes;"> </span>This
file knows the how to start and stop the httpd service. It calls some binary
files it creates the processes that running in background<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">9.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;"><span style="mso-spacerun: yes;"> </span><span style="color: #00b0f0;">ps aux </span>command
is shows all the process running in your system sort with there usage all the
process owned by the root user<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">10.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">PID 1 </span><span style="font-family: "Times New Roman", serif;">is
<span style="color: #00b0f0;">systemd</span> this is the first process in linux
(redhat system) <span style="mso-spacerun: yes;"> </span>in ubuntu is <span style="color: #00b0f0;">init</span> is the first process <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">11.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">Systemd<span style="mso-spacerun: yes;"> </span></span><span style="font-family: "Times New Roman", serif;">manages the other
process if it goes downb entire system goes down it manages the other process<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">12.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">[kworker
/u4] square boxe process are called kernel threads<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">13.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">Other
columns are %cpu cpu utlise %mem memory utlise <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">14.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">State<span style="mso-spacerun: yes;"> </span><span style="color: #00b0f0;">S </span>is for
sleaping <span style="color: #00b0f0;">R </span>is for running <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">15.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">Sshd </span><span style="font-family: "Times New Roman", serif;">service
is serve the ssh request<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">16.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">top </span><span style="font-family: "Times New Roman", serif;">command
is like taskmanager used to show the dynamic process sort by the utilization
also shows the how long system is running <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">17.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">load avg </span><span style="font-family: "Times New Roman", serif;">is
slowly increase slowly decrease is shows the status at 3 different values
Current load avg, last 5 mins, last 15 mins <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">18.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">ps -ef </span><span style="font-family: "Times New Roman", serif;">It
shows pid and ppid process and parent process id <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">19.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">ps -ef | grep httpd </span><span style="font-family: "Times New Roman", serif;">it shows the httpd process if you want to
stop the process pid 1 is started process of other processes to stop the
process by <span style="color: #00b0f0;">kill process id (kill 3284) </span>command
<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">20.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">kill -9 3384</span><span style="font-family: "Times New Roman", serif;"> is forcefully killing the process parent is died and
child process is not killed is called <span style="color: #00b0f0;">arphon </span>process
is called dead process. by remove this child process all at once <span style="color: #00b0f0;">ps -ef | grep httpd | grep -v ‘auto’ </span>and <span style="color: #00b0f0;">ps -ef | grep httpd | grep -v ‘grep’ </span>it
automatically kills the all the arphon process<span style="mso-spacerun: yes;">
</span><span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">21.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">ps -ef | grep httpd | grep -v ‘auto’ | awk ‘{print $2}’ </span><span style="font-family: "Times New Roman", serif;">it shows the (awk
command) second field <span style="color: #00b0f0;">ps -ef | grep httpd | grep -v
‘auto’ | awk ‘{print $2}’ | xargs kill -9 </span>It kill the all the processes
one by one automatically<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">22.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">Arphon processes </span><span style="font-family: "Times New Roman", serif;">are the process if parent is dead and
chaild processes are still running<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">23.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">Zombi
process is that is a dead its not serving any purpose but it is still there in
process table is coming from the kernel have a process table to clear this
process you will reboot the system other commands also there<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">24.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="color: #00b0f0; font-family: "Times New Roman", serif;">Arkaying </span><span style="font-family: "Times New Roman", serif;">is
nothing but compressing the data <span style="color: #00b0f0;">tar czvf
filename.tar.gz<span style="mso-spacerun: yes;"> </span>* </span>(c- create,
z-compress, v-verfol print o/p, f-file) * current working directory <span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">25.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--><span style="font-family: "Times New Roman", serif;">for
unzip the tar arkying file <span style="color: #00b0f0;">tar</span> <span style="color: #00b0f0;">xzvf filename.tar.gz </span>it ectracts in current
location. For untar to some other location give location path <span style="color: #00b0f0;">tar xzvf filename.tar.gz -C /var/www/html </span>it un
arkaye in to html location. Ex: <span style="color: #00b0f0;">tar xzvf
wave-cafe-website.tar.gz -C /var/www/html </span><span style="mso-spacerun: yes;"> </span>To know more options tar --help<span style="color: #00b0f0;"><o:p></o:p></span></span></span></p>
<p class="MsoListParagraphCxSpLast" style="line-height: normal; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18.0pt;"><!--[if !supportLists]--><span style="font-size: medium;"><span style="font-family: "Times New Roman", serif;"><span style="mso-list: Ignore;">26.<span style="font-family: "Times New Roman"; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><!--[endif]--></span><span style="font-family: "Times New Roman", serif;"><span style="font-size: medium;">Zip is also a command to compress the files or
extract the files arkyee compared to zip
tar is the best one for zip the files typing command <span style="color: #00b0f0;">zip
-r filename.zip *(or file name) </span>to un zip</span><span style="color: #00b0f0; font-size: 12pt;"><o:p></o:p></span></span></p>Authorhttp://www.blogger.com/profile/11565367117033151908noreply@blogger.com0