<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stephany Daneri on Medium]]></title>
        <description><![CDATA[Stories by Stephany Daneri on Medium]]></description>
        <link>https://medium.com/@sdanerib?source=rss-38638b233ca4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qSwM5yKCELG_zLYb.</url>
            <title>Stories by Stephany Daneri on Medium</title>
            <link>https://medium.com/@sdanerib?source=rss-38638b233ca4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:33:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sdanerib/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with Jenkins & Docker: Part III: Reset Jenkins Admin Password (when you have a…]]></title>
            <link>https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-iii-reset-jenkins-admin-password-when-you-have-a-ff81ffa6774f?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff81ffa6774f</guid>
            <category><![CDATA[bcrypt]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[reset-jenkins-password]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 04:41:38 GMT</pubDate>
            <atom:updated>2019-04-08T04:41:38.695Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Jenkins &amp; Docker: Part III: Reset Jenkins Admin Password (when you have a Jenkins Docker image)</h3><p>If you forgot the password you set to your admin user in Jenkins, then it’s probable you find out is possible to changing it by modifying the config.xml (the file that stores the admin user definition)</p><h3>* Jenkins following the traditional way:</h3><p>When we configure <strong>Jenkins</strong> following the <strong>traditional way</strong>, the<strong> config.xml </strong>file is usually in this<strong> path: /var/lib/jenkins/config.xml</strong></p><p>Jenkins being run via Docker</p><p>When our <strong>Jenkins is being run with docker</strong>, then, the path is a little bit different:</p><h3>A: Obtain the container id and then get inside the container</h3><ol><li>Getting the container id by executing:</li></ol><pre>docker ps -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e72b8Ea5QNUZkTQCwze1iQ.png" /></figure><p>2. Execute:</p><pre>docker exec -ti &lt;container_id&gt; /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmOP7XYSHIUS9ncEwWUvOA.png" /></figure><h3>B. Looking for config.xml</h3><p>There is a config.xml inside <strong>var/jenkins_home/, but this one is NOT the one to modify.</strong></p><p>In the path <strong>var/jenkins_home/users/, you’ll see all the users configured for your Jenkins:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*Itp5u0g79F7gMqdz7wuoTg.png" /></figure><p>As you can see, my admin user is sdanerib and is being saved as a directory, so if you do go inside that directory, you can now see the config.xml to modify:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*REgFq3LfnwcK1oBBK07wVA.png" /></figure><p>The config.xml looks like this:</p><pre>&lt;?xml version=&#39;1.1&#39; encoding=&#39;UTF-8&#39;?&gt;<br>&lt;user&gt;<br>  &lt;version&gt;10&lt;/version&gt;<br>  &lt;id&gt;sdanerib&lt;/id&gt;<br>  &lt;fullName&gt;Admin Fullname&lt;/fullName&gt;<br>  &lt;properties&gt;<br>    &lt;jenkins.security.ApiTokenProperty&gt;<br>      &lt;tokenStore&gt;<br>        &lt;tokenList/&gt;<br>      &lt;/tokenStore&gt;<br>    &lt;/jenkins.security.ApiTokenProperty&gt;<br>    &lt;com.cloudbees.plugins.credentials.UserCredentialsProvider_-UserCredentialsProperty plugin=&quot;credentials@2.1.18&quot;&gt;<br>      &lt;domainCredentialsMap class=&quot;hudson.util.CopyOnWriteMap$Hash&quot;/&gt;<br>    &lt;/com.cloudbees.plugins.credentials.UserCredentialsProvider_-UserCredentialsProperty&gt;<br>    &lt;hudson.plugins.emailext.watching.EmailExtWatchAction_-UserProperty plugin=&quot;email-ext@2.66&quot;&gt;<br>      &lt;triggers/&gt;<br>    &lt;/hudson.plugins.emailext.watching.EmailExtWatchAction_-UserProperty&gt;<br>    &lt;hudson.model.MyViewsProperty&gt;<br>      &lt;views&gt;<br>        &lt;hudson.model.AllView&gt;<br>          &lt;owner class=&quot;hudson.model.MyViewsProperty&quot; reference=&quot;../../..&quot;/&gt;<br>          &lt;name&gt;all&lt;/name&gt;<br>          &lt;filterExecutors&gt;false&lt;/filterExecutors&gt;<br>          &lt;filterQueue&gt;false&lt;/filterQueue&gt;<br>          &lt;properties class=&quot;hudson.model.View$PropertyList&quot;/&gt;<br>        &lt;/hudson.model.AllView&gt;<br>      &lt;/views&gt;<br>    &lt;/hudson.model.MyViewsProperty&gt;<br>    &lt;org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty plugin=&quot;display-url-api@2.3.1&quot;&gt;<br>      &lt;providerId&gt;default&lt;/providerId&gt;<br>    &lt;/org.jenkinsci.plugins.displayurlapi.user.PreferredProviderUserProperty&gt;<br>    &lt;hudson.model.PaneStatusProperties&gt;<br>      &lt;collapsed/&gt;<br>    &lt;/hudson.model.PaneStatusProperties&gt;<br>    &lt;jenkins.security.seed.UserSeedProperty&gt;<br>      &lt;seed&gt;7f16b7b742e59a0d&lt;/seed&gt;<br>    &lt;/jenkins.security.seed.UserSeedProperty&gt;<br>    &lt;hudson.search.UserSearchProperty&gt;<br>      &lt;insensitiveSearch&gt;true&lt;/insensitiveSearch&gt;<br>    &lt;/hudson.search.UserSearchProperty&gt;<br>    &lt;hudson.security.HudsonPrivateSecurityRealm_-Details&gt;<br>      &lt;passwordHash&gt;#jbcrypt:<strong>$2a$10$ejdwhQXF17l4kNRpfrjffOe7stUGz.wXRpwDh3jlknabcdeghgd</strong>&lt;/passwordHash&gt;<br>    &lt;/hudson.security.HudsonPrivateSecurityRealm_-Details&gt;<br>    &lt;hudson.tasks.Mailer_-UserProperty plugin=&quot;mailer@1.23&quot;&gt;<br>      &lt;emailAddress&gt;admin<a href="/service/mailto:sdanerib@gmail.com">@email.com</a>&lt;/emailAddress&gt;<br>    &lt;/hudson.tasks.Mailer_-UserProperty&gt;<br>  &lt;/properties&gt;<br>&lt;/user&gt;</pre><h3>C. IMPORTANT: Password hashed by BCrypt</h3><p>The <strong>passwordHash</strong> is where the password is defined. As you can see, the <strong>password has been hashed using BCrypt algorithm.</strong></p><p>So, what <strong>you need to do is to replace the current password by the new one.</strong> You can obtain your password bcrypted using any online service (like: <a href="https://www.browserling.com/tools/bcrypt">https://www.browserling.com/tools/bcrypt</a>).</p><p>It’s important to know, <strong>you need to establish 10 rounds, otherwise, any password you set won’t work. </strong>See the next example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bo-l_9lnJz8cwwurzFpPkg.png" /></figure><h3>D. Edit the config.xml</h3><p>I recommend to copy the config.xml from below to a text editor and replace only the content <strong>passwordHash:</strong></p><pre>&lt;passwordHash&gt;#jbcrypt:<strong>content_to_replace</strong>&lt;/passwordHash&gt;</pre><p><strong>Copy the hole xml and edit the config.xml file </strong>by doing:</p><pre>cat &gt; config.xml</pre><p>Paste all the content you copied, add a new line and close the editor by doing ctrl + ‘d’</p><h3>E. Stop and restart your Jenkins</h3><p>Do ctrl + ‘c’ in the terminal where Jenkins was running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*T0ssKB5QkY4xoO6N_BLOJg.png" /></figure><p>And now, <strong>restart your Jenkins</strong> (jenkins_home is the name of the volume that we configured on <a href="https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-ii-configure-jenkins-via-docker-image-ed71b8968c4b">Part II</a>):</p><pre>docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins</pre><p>Now, you only need to login with the new established password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*kkaCzncAbdo0ca8EFhLWSA.png" /></figure><p>Thank you for reading =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff81ffa6774f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Jenkins & Docker: Part II: Configure Jenkins via docker image]]></title>
            <link>https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-ii-configure-jenkins-via-docker-image-ed71b8968c4b?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed71b8968c4b</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 03:52:50 GMT</pubDate>
            <atom:updated>2019-04-08T03:55:38.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Jenkins &amp; Docker. Part II: Configure Jenkins via docker image</h3><p>If you don’t have Docker installed on your local machine, then please follow the instructions from <a href="https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-i-getting-docker-18ed7c1b7187">Part I</a></p><h3>Starting with Jenkins by downloading its Docker image</h3><p>This is the Jenkins official docker image:</p><p><a href="https://hub.docker.com/r/jenkins/jenkins"></a></p><p>Execute:</p><pre>docker pull jenkins/jenkins</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5mn3VtA6fAItLcvfGjqNA.png" /><figcaption>docker pull jenkins/jenkins</figcaption></figure><p>Once we have the jenkins image, we need to create a volume to persist our changes:</p><pre>docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins</pre><p>This will store the workspace in /var/jenkins_home. All Jenkins data lives in there (including plugins and configuration). The command above will automatically create a<strong> ‘jenkins_home’ </strong><a href="https://docs.docker.com/storage/volumes/"><strong>docker volume</strong></a><strong> </strong>on the host machine, that will survive the container stop/restart/deletion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azMkTOy-z-MtNqc9CUzISQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjjLsIi5SIaiq2du-h5JUQ.png" /></figure><p><strong>As is possible to see, the logs prints a message stating is necessary to make an initial setup. If you lost the generated password, you can find it on /var/jenkins_home/secrets/initialAdminPassword</strong></p><p>To find the generated password, you need to:</p><ul><li>Obtain the container id:</li></ul><pre>docker ps </pre><ul><li>To execute the following in order to run commands inside the running docker container:</li></ul><pre>docker exec -i -t &lt;container_id&gt; /bin/bash</pre><ul><li>Once you’re inside the docker shell, then you can see the password generated by executing:</li></ul><pre>jenkins@&lt;container_id&gt;:/$ cat /var/jenkins_home/secrets/initialAdminPassword</pre><ul><li>For getting out of the docker terminal you just need to execute: <strong>ctrl + d</strong></li><li>Now, you can go to localhost:8080 and you’ll find the jenkins dashboard with the initial page requesting for the password:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUFczpiamO8sdXDpq7_liQ.png" /></figure><p>The following page will ask you to add plugins. There will be 02 options: default or you to select some of them. If you select the default option, then Jenkins will install automatically the default plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxaN-cyaizcf13z40tWOFg.png" /></figure><p>Once it’s over, Jenkins will ask you to set an admin user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lI2dZmj3PDrFmpRdjZyr8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKFZ5yCdQdd7qsuyfw9oeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*waEZDlf9ufQmj3TVkcSWGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_2p1QaRB-Ua9gqicSch4A.png" /></figure><p><strong>Everytime you want to initiate Jenkins, you only need to execute:</strong></p><pre>docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins</pre><p>In Part III, we show how to reset the admin password of your Jenkins (in case you lost it)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed71b8968c4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Jenkins & Docker Part I: Getting Docker]]></title>
            <link>https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-i-getting-docker-18ed7c1b7187?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/18ed7c1b7187</guid>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 03:46:40 GMT</pubDate>
            <atom:updated>2019-04-08T03:56:14.981Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting started with Jenkins &amp; Docker. Part I: Getting Docker</h3><p>Download the one that suits for you from:</p><p><a href="https://www.docker.com/products/docker-desktop">Docker Desktop</a></p><p><strong>To ensure your install was successful, then you need to follow the steps described on:</strong></p><p><a href="https://docs.docker.com/get-started/"></a></p><h3>Docker Install Info</h3><ol><li><strong>If you need to check your docker instalation info then:</strong></li></ol><pre>docker --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*ePbOFlmbmp80CBxnLU8R3A.png" /><figcaption>docker --version</figcaption></figure><p><strong>2. Something particular to notice is that there’s a different command to obtain more info (docker version, but without the “ — ”:</strong></p><pre>docker version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*9vbD3vbH4daomLnfV1MjQA.png" /><figcaption>docker version</figcaption></figure><p><strong>3. To getting more info:</strong></p><pre>docker info</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wSdrIil2VV_Gs9bw_vhElg.png" /><figcaption>docker info</figcaption></figure><h3>Test Docker Installation</h3><ol><li><strong>To see if your installation works, execute the following:</strong></li></ol><pre>docker run hello-world</pre><p><strong>hello-world</strong> is a docker image stored on the Docker hub. If Docker finds the hello-world image on your local machine, then it would run it directly, but since this is the first time we’re executing this command, then it would have to pull it from Docker Hub:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOgk2xaQU_N22Y8SXrY8aw.png" /><figcaption>docker run hello-world</figcaption></figure><p><strong>2. In order to list all the docker images on your local:</strong></p><pre>docker image ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwruXkmBgzeAk8-pdLRV2g.png" /><figcaption>docker image ls</figcaption></figure><p>3. In order to see all the running docker containers alive:</p><pre>docker container ls</pre><p>If you want to see all the containers (alive and not alive ones), then execute:</p><pre>docker container ls --all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JCyBUcdOxMryM0mR0IO2-g.png" /></figure><p><strong>Now, let’s continue with the Jenkins install using its docker image:</strong></p><p><a href="https://medium.com/@sdanerib/getting-started-with-jenkins-docker-part-ii-configure-jenkins-via-docker-image-ed71b8968c4b">Getting started with Jenkins &amp; Docker: Part II: Configure Jenkins via docker image</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18ed7c1b7187" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run JMeter with plugins in macOS]]></title>
            <link>https://medium.com/@sdanerib/run-jmeter-with-plugins-in-macos-8a6654fc0b38?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a6654fc0b38</guid>
            <category><![CDATA[jmeter]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 00:15:32 GMT</pubDate>
            <atom:updated>2018-11-19T00:15:32.068Z</atom:updated>
            <content:encoded><![CDATA[<p>The easiest way to install JMeter in your mac is via Homebrew:</p><pre>brew install jmeter</pre><p>If you need to install it with plugins, then:</p><pre>brew install jmeter --with-plugins</pre><p>Now, if you had installed JMeter time ago and you want to update, then:</p><pre>brew update</pre><pre>brew update jmeter --with-plugins</pre><p>To open JMeter, just execute:</p><pre>open /usr/local/bin/jmeter</pre><p>Now if you go to the Options of the JMeter menu, you’ll see you don’t have the Plugins Manager option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UOjZYkpKWYAmeqC8uM7oJA.png" /></figure><p>To have it, you need to:</p><ol><li>Download the .jar from <a href="https://jmeter-plugins.org/install/Install/">https://jmeter-plugins.org/install/Install/</a> and as this page indicates, put it on the <strong>lib/ext</strong> directory.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SNZQ8q8dottvwoCu3BuNeA.png" /></figure><p>2. For Mac, the JMeter directory is <strong>/usr/local/Cellar/jmeter</strong> (this directory would be different if you didn’t download JMeter woth Homebrew)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIIjBh_HrO3mFguzUSXdbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDCHPK_8GE3Q95bPTWDmsA.png" /></figure><p>3. After this, then restart JMeter app (<strong><em>don’t forget to save your work…</em></strong>)</p><p>4. Verify now you have the Plugins Manager option. This option is particular useful when you need to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cHEkT3y1UuGXZ8jCbYttXg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a6654fc0b38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maven for Mac OSX]]></title>
            <link>https://medium.com/@sdanerib/maven-for-mac-osx-7f7c9680c51?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f7c9680c51</guid>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[bashprofile]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 07:14:48 GMT</pubDate>
            <atom:updated>2018-09-17T07:14:48.394Z</atom:updated>
            <content:encoded><![CDATA[<p>This a very summarized version of how can you install Maven via Homebrew. So, you should only follow this 3 steps:</p><h4>1. Execute:</h4><pre>$ brew install maven</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sUy_iSUKw-QuePdwxHLsoQ.png" /><figcaption>brew install maven</figcaption></figure><h4>2. Verify your install:</h4><pre>$ mvn -version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHcfCH59osNrWG4LOWJeyQ.png" /></figure><h4>3. Add your variables in .bash_profile</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOCsAYVfLPQL3tNWXn6K9g.png" /></figure><p>And you’re done!</p><p>I also found this article to be very useful: <a href="https://wilsonmar.github.io/maven-on-macos/">https://wilsonmar.github.io/maven-on-macos/</a></p><p>Hope this medium story to be very useful for you =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f7c9680c51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Several Java SDK versions: How to configure in Mac OS X]]></title>
            <link>https://medium.com/@sdanerib/java-sdk-how-to-configure-in-mac-os-x-6ab1c281efa7?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ab1c281efa7</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[jenv]]></category>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[several-java-versions]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 06:19:15 GMT</pubDate>
            <atom:updated>2018-09-22T04:11:58.146Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everybody! Every time we get a new development buddy (buy a new computer), we need to configure several things . Today, I’m configuring my Java SDK.</p><p>I was about to configure it in the traditional way:</p><ol><li>Download from Oracle (<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a>)</li><li>Follow the Java install wizard (from the downloaded .dmg)</li><li>Configure JAVA_HOME in .bash_profile</li><li>Confirm in terminal by running “java -version”</li></ol><p>… and, then I asked myself:</p><h3><strong>What should I do if I have to work with different Java versions?</strong></h3><p>And the answer is <strong>Via Homebrew</strong> (if you don’t have it installed yet, you can check my entrance related to it: <a href="https://medium.com/@sdanerib/homebrew-cask-why-how-to-install-b34471b228bb">Homebrew &amp; Cask: Why &amp; How to install?</a>).</p><h4>1. If you have already installed Homebrew, then you can execute in terminal:</h4><pre>$ brew install jenv</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wBwPpmibTklzuubSmT0Y_g.png" /></figure><h4>2. Let’s complete jenv install and config</h4><p>More info in <a href="http://www.jenv.be/">http://www.jenv.be/</a>. Since I use bash, then:</p><pre>$ echo &#39;export PATH=&quot;$HOME/.jenv/bin:$PATH&quot;&#39; &gt;&gt; ~/.bash_profile<br>$ echo &#39;eval &quot;$(jenv init -)&quot;&#39; &gt;&gt; ~/.bash_profile<br>$ source ~/.bash_profile</pre><p>If you check your .bash_profile after executing the commands above, then you could see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dOynSwxPEB4Tlsu4hU9WJA.png" /></figure><p>Do not forget the to execute source ~/.bash_profile</p><h4>3.<strong> </strong>Execute &quot;brew search java&quot;</h4><p>The brew search command lists all available formula (aka packages); a friendly mode of looking for them is going to <a href="http://searchbrew.com/">http://searchbrew.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6RffGHm_AVOac18F_yJ6yg.png" /><figcaption>Notice the listed casks</figcaption></figure><h4>4. Execute the following:</h4><p>brew tap homebrew/cask-versions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GOSu3zGh_69o-G36tSqCFQ.png" /><figcaption>From the Homebrew docs, <a href="https://docs.brew.sh/Taps"><strong>brew tap</strong></a> adds more repositories to the list of formulae that brew tracks, updates, and installs from, i.e, is possible to install dependencies from third-party repositories.</figcaption></figure><h4>5.<strong> </strong>Re-execute “brew search java&quot;</h4><p>Notice the lists of casks now contemplates 3 more: charles-applejava, java-beta, java6, java8</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cDTXgPPnvYAvy5tdT78wVA.png" /></figure><h4>6. Let’s install Java!</h4><p>Now, you can execute brew cask install java8</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KfTbslfbT4pUPPPO4kJSw.png" /><figcaption>Notice the download from Oracle site. This install requires to enter your Mac password</figcaption></figure><h4>7. Java location</h4><p>For Mac is in <strong>/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home</strong></p><p>Now, we need to add this java path to the jenv</p><pre>$ jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zm3Uijna3f1OwD6x7PiH-g.png" /></figure><h4>8. Check your Java version and establish <a href="http://www.jenv.be/">jenv</a> configurations.</h4><p>With jenv you can establish a global or a local version (per directory). The jenv config is in /Users/&lt;your_user&gt;/.jenv</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeJX99snAJDr1N6mUUxvZQ.png" /></figure><p>I hope this be useful =)!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ab1c281efa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Homebrew & Cask: Why & How to install?]]></title>
            <link>https://medium.com/@sdanerib/homebrew-cask-why-how-to-install-b34471b228bb?source=rss-38638b233ca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b34471b228bb</guid>
            <category><![CDATA[package-manager]]></category>
            <category><![CDATA[brew]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[dependencies]]></category>
            <dc:creator><![CDATA[Stephany Daneri]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 05:29:01 GMT</pubDate>
            <atom:updated>2018-09-17T05:29:01.277Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://brew.sh/index_es"><strong>Homebrew</strong></a> is a package manager for MacOS. Basically, this package manager installs everything that doesn’t come originally with a Mac, and you can find it in <strong>/usr/local</strong><em>.</em></p><p><a href="http://caskroom.io/"><strong>Cask</strong></a> is an extension that allows Homebrew that allows to install graphical software via command line without having to drag the app icon to the Applications folders. Also, you don’t need to install it, because is already installed with Homebrew, so you only need to execute “brew cask …” when you need it.</p><p>You can find a cool explanation for Homebrew and Cask in <a href="https://apple.stackexchange.com/questions/125468/what-is-the-difference-between-brew-and-brew-cask"><strong><em>What is the difference between `brew` and `brew cask`?</em></strong></a></p><p><a href="https://brew.sh/index_es">Homebrew</a> install is super easy and you can follow their <a href="https://docs.brew.sh/">documentation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u43ddfB8L9OVbO7zwqtNsw.png" /><figcaption>You only need to execute: <strong><em>/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)</em></strong></figcaption></figure><p>The Xcode Command Line Tools will be installed too, so it will ask you to enter you Mac password.</p><p><strong>Is important</strong> to know that <strong>Homebrew is run entirely by unpaid volunteers. </strong>So, you can get info to<strong> donate in</strong> <a href="https://github.com/Homebrew/brew#donations"><strong>Homebrew donations</strong></a></p><p>Hope this is useful for you =) !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b34471b228bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>