<?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 Thomas Strohmeier on Medium]]></title>
        <description><![CDATA[Stories by Thomas Strohmeier on Medium]]></description>
        <link>https://medium.com/@tstrohmeier?source=rss-84f99c079d65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y6KusaLjNi_0TPYPsxfSWg.jpeg</url>
            <title>Stories by Thomas Strohmeier on Medium</title>
            <link>https://medium.com/@tstrohmeier?source=rss-84f99c079d65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:29:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tstrohmeier/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[How to setup two two different SSH-Keys for one GIT Host]]></title>
            <link>https://blog.byteschneiderei.com/how-to-setup-two-two-different-ssh-keys-for-one-git-host-a9d7848c99a3?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9d7848c99a3</guid>
            <category><![CDATA[ssh-keys]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Thu, 14 Oct 2021 14:02:09 GMT</pubDate>
            <atom:updated>2024-09-11T16:16:14.256Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to setup two different SSH-Keys for one GIT Host</h3><h4>A small HowTo Guide on how to use different SSH keys for different users on the same GIT Host like GitHub or Bitbucket.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JuC83jEOCYJ1Y16fGhSJg.jpeg" /></figure><p>As a development agency we are regularly working with different customers and different VCS platforms. Sometime it is required to create a dedicated account for a project with a new user. Simply adding a new SSH-Key leads to the problem of using the wrong SSH-key to the account. Here I want to provide you a simple solution for this problem:</p><h3>1. Creating a SSH Config File</h3><p>First we need a SSH config file. This is usually located at ~/.ssh/config.</p><pre>#default account<br>Host github.org<br>       HostName github.com<br>       User git<br>       IdentityFile ~/.ssh/id_rsa</pre><pre>#account b account account<br>Host github.com<strong>-accb</strong><br>        HostName github.com<br>        User git<br>        <strong>IdentityFile ~/.ssh/account_b_id_rsa</strong></pre><h3>2. Add SSH-Key of Account B</h3><pre>$ ssh-add ~/.ssh/account_b_id_rsa</pre><h3>3. Using the Alias Domain in git clone</h3><p>If you now want to use the Account B in git clone simply replace the host with the alias:</p><pre>$ git clone <a href="/service/mailto:git@bitbucket.org">git@</a>github<a href="/service/mailto:git@bitbucket.org">.c</a>om-<strong>accb</strong>:companyB/repo.git</pre><p>That’s it. ✅<br>PS: If you have an idea how to improve this setup, I would be happy If you leave a comment 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9d7848c99a3" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/how-to-setup-two-two-different-ssh-keys-for-one-git-host-a9d7848c99a3">How to setup two two different SSH-Keys for one GIT Host</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Development environment in Docker Containers]]></title>
            <link>https://blog.byteschneiderei.com/development-environment-in-docker-containers-b5090ba2cb38?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5090ba2cb38</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[development-environment]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[setup]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Mon, 09 Apr 2018 11:31:00 GMT</pubDate>
            <atom:updated>2023-08-10T22:38:48.620Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Of50QcdUKVWnP1JZKTBjoQ.jpeg" /></figure><p>Over the last two and a half year I was working as a freelance software developer in various environments. One of the most annoying things was the need of having a lot of different software, SDKs, tools, runtimes etc. installed on your machine, especially when they interference with each other and cause troubles in the next project.</p><p>During a quite recent work for a customer I came up with the idea to install all the necessary dependencies into a docker container and configure my environment with a docker-compose definition. In this post I will describe my general process of setting up a docker based development environment. <br>If you have any tips or improvements please write a comment below ;)</p><h3><strong>1. Image</strong></h3><p>First I create all the necessary images for my environment. The most important one is the image which contain your development environment. <br>I give you some examples:</p><ul><li>php-fpm (Wordpress, Laravel, Magento, ….)</li><li>java/openjdk (Java EE, Spring Boot, Spark, …)</li></ul><p>I prepare my images for the development environment in a way that I only have to mount my project directory into a path and can start my work from there.</p><p>Sometimes I also prepare some supporting images like nginx, databases or redis. Fore some services only configuration is necessary but for some I need to add or modify files in the image.</p><h3>2. Configuration</h3><p>Next I create a docker-compose definition which contains all the configuration for my containers. The reason my I use docker-compose is quite simple:</p><ol><li>Easy to read</li><li>You can check it into version control</li><li>You can keep all configurations at one place</li></ol><p>The important part here is that you mount your project directory as volume into the container and that you expose and map all the required ports.</p><h3>3. Documentation</h3><p>It really doesn’t metter if you set up this environment for you or a whole team, documentation is always good. For me a good documentation should contain at least the following point:</p><ul><li>How to build the environment</li><li>How to start &amp; stop the environment</li><li>How to enter the container</li><li>How to work with this environment (some basic commands)</li></ul><h3>4. Build and Start</h3><p>Now you can have fun developing on a clean machine and if you crash your environment during development, just delete and rebuild and start the container and you have a reseted environment. :D</p><p>One of the benefits of this method is that new developer, don’t have the need to setup there environment, anymore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5090ba2cb38" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/development-environment-in-docker-containers-b5090ba2cb38">Development environment in Docker Containers</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup a continuous deployment from Bitbucket Pipeline to Amazon ECS]]></title>
            <link>https://blog.byteschneiderei.com/how-to-setup-a-continuous-deployment-to-amazon-ecs-with-bitbucket-pipeline-f1931a078f67?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1931a078f67</guid>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[pipeline]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 05:01:03 GMT</pubDate>
            <atom:updated>2023-08-10T22:32:43.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzpX8_SFrGQTMmLxOu9U3A.jpeg" /></figure><p>For one of my recent projects I had to setup a continuous deployment workflow for a web app, consisting of a dozen microservices. We wanted to use docker to build a image for each service. I already described in my previous article how you can build and push a docker image to Amazon ECR through a Bitbucket Pipeline. You can find this article here:</p><p><a href="https://blog.byteschneiderei.com/how-to-push-docker-images-to-amazon-ecr-with-bitbucket-pipeline-84658626ca29">How to push Docker Images to Amazon ECR with Bitbucket Pipeline</a></p><h4>In this article I want to describe the following points:</h4><ul><li>How to create a new revision of an task definition in a Bitbucket Pipline</li><li>How to update a service of a ECS cluster to this new revision</li></ul><h3>My Solution</h3><h4>How does the general workflow looks like?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KJt-CXMZj9ORHbTh1MSHXw.png" /><figcaption>Workflow of a deployment</figcaption></figure><h4>1. Commit a new version</h4><p>I would recommend to use consistent versions for your images, task definitions and services. The best way is to specify a version number in your pipeline or you read it from a file in your git repository. In this example we export an environment variable<em> VERSION_NUMBER</em> and for the target deployment stage the environment variable <em>DEPLOYMENT_ENV</em>. This two combined result in the image name, service name, etc.</p><p>In our example we will deploy version <em>1.0.0</em> of our microservice, to the<em> “test”</em> stage of the cluster.</p><blockquote># set version and build id <br>— export VERSION_NUMBER=1.0.0 <br>— export DEPLOYMENT_ENV=test</blockquote><h4>2. Build &amp; push the Docker image to the Amazon ECR</h4><p>Please have a look here how to do this:</p><p><a href="https://blog.byteschneiderei.com/how-to-push-docker-images-to-amazon-ecr-with-bitbucket-pipeline-84658626ca29">How to push Docker Images to Amazon ECR with Bitbucket Pipeline</a></p><h4>3. Create a new revision of your task definition</h4><p>First I created a JSON-File containing the container definition of our task definition. This could look like this:</p><pre>[<br>  {<br>    &quot;name&quot;: &quot;mytestapp-webgui&quot;,<br>    &quot;image&quot;: &quot;xxx.dkr.ecr.eu-central-1.amazonaws.com/mytestapp-webgui:&lt;IMGAGE_VERSION&gt;&quot;,<br>    &quot;cpu&quot;: 0,<br>    &quot;memory&quot;: 500,<br>    &quot;memoryReservation&quot;: 75,<br>    &quot;portMappings&quot;: [],<br>    &quot;essential&quot;: true,<br>    &quot;entryPoint&quot;: [],<br>    &quot;command&quot;: [],<br>    &quot;environment&quot;: [<br>      {<br>        &quot;name&quot;: &quot;ENV_DEBUG&quot;,<br>        &quot;value&quot;: &quot;false&quot;<br>      }<br>    ],<br>    &quot;mountPoints&quot;: [],<br>    &quot;volumesFrom&quot;: [],<br>    &quot;workingDirectory&quot;: &quot;/usr/share/nginx/html/&quot;,<br>    &quot;disableNetworking&quot;: false,<br>    &quot;privileged&quot;: true,<br>    &quot;readonlyRootFilesystem&quot;: false,<br>    &quot;dnsServers&quot;: [],<br>    &quot;dnsSearchDomains&quot;: [],<br>    &quot;dockerSecurityOptions&quot;: [],<br>    &quot;logConfiguration&quot;: {<br>      &quot;logDriver&quot;: &quot;json-file&quot;<br>    }<br>  }<br>]</pre><p>I saved the file with the name <em>“</em><a href="https://gist.github.com/tstrohmeier/3da60392a5ea2eecbe32895e6624a2b4#file-mytestapp-webgui-container-definition-json"><em>mytestapp-webgui.container-definition.json</em></a><em>”</em></p><p>To create a new revision we will use the “<em>aws ecs register-task-definition</em>” command. We have to specify the task family and pass the content of the JSON file. The command could look like this:</p><pre>aws ecs register-task-definition --family mytestapp-webgui —- container-definitions &lt;json-file&gt;</pre><p>This command is included in the “<em>deploy-ecs.sh</em>” script below. I added some clue code in that script.</p><p>From the output of the “<em>aws ecs register-task-definition</em>” command we parse the revision number and store it in a variable. If this step was successfully we proceed with the next one.</p><h4>4. Update the ECS cluster service</h4><p>If we managed to create a new revision of our task definition, we can update our service. Therefore we use the “<em>aws ecs update-service</em>” command. We have to specify the cluster name, the service and the task definition incl. the revision. The command could look like this:</p><pre>aws ecs update-service --cluster mytestapp-test-cluster --service mytestapp-test-webgui-service --task-definition mytestapp-webgui:1</pre><h3>Complete solution:</h3><p>According to the documentation of Pipelines (<a href="https://confluence.atlassian.com/bitbucket/bitbucket-deployments-940695276.html">Link</a>), you can specify in each step one of the following deployment steps:</p><ul><li>test</li><li>staging</li><li>productive</li></ul><p>If you don’t want to use this Pipelines feature, you are free to use any other name too.</p><p>Like I mentioned in my <a href="https://medium.com/byteschneiderei/how-to-push-docker-images-to-amazon-ecr-with-bitbucket-pipeline-84658626ca29">older post</a> you have to allow all the needed action to your AWS IAM deploy user to be able to deploy your service. A list from my user:</p><pre>&quot;ecr:GetAuthorizationToken&quot;,<br>&quot;ecr:BatchCheckLayerAvailability&quot;,<br>&quot;ecr:GetDownloadUrlForLayer&quot;,<br>&quot;ecr:GetRepositoryPolicy&quot;,<br>&quot;ecr:DescribeRepositories&quot;,<br>&quot;ecr:ListImages&quot;,<br>&quot;ecr:DescribeImages&quot;,<br>&quot;ecr:BatchGetImage&quot;,<br>&quot;ecr:InitiateLayerUpload&quot;,<br>&quot;ecr:UploadLayerPart&quot;,<br>&quot;ecr:CompleteLayerUpload&quot;,<br>&quot;ecr:PutImage&quot;,<br>&quot;ecs:DeregisterTaskDefinition&quot;,<br>&quot;ecs:RegisterTaskDefinition&quot;,<br>&quot;ecs:UpdateService&quot;</pre><p>For deployment I wrote the <em>“deploy-ecs.sh” </em>script. The script will create a new revision of our task definition for you and update your service. You only have to specify following parameters:</p><ul><li>the name of your app (<em>“mytestapp”</em> in our case) [-b]</li><li>the service you want to deploy (<em>“webgui”</em> in our case) [-s]</li><li>the deployment environment (<em>“test”</em> in our case) [-e]</li><li>the image name (<em>“test_1.0.0”</em> in our case) [-i]</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38f0702f51d03a101905961ce46c02bb/href">https://medium.com/media/38f0702f51d03a101905961ce46c02bb/href</a></iframe><p>PS: If you have an idea how to improve this setup, I would be happy If you leave a comment ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1931a078f67" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/how-to-setup-a-continuous-deployment-to-amazon-ecs-with-bitbucket-pipeline-f1931a078f67">How to setup a continuous deployment from Bitbucket Pipeline to Amazon ECS</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to push Docker Images to Amazon ECR with Bitbucket Pipeline]]></title>
            <link>https://blog.byteschneiderei.com/how-to-push-docker-images-to-amazon-ecr-with-bitbucket-pipeline-84658626ca29?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/84658626ca29</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ecr]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[pipeline]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Tue, 31 Oct 2017 21:35:25 GMT</pubDate>
            <atom:updated>2023-08-10T22:36:16.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0TOOl037X8bJc1E-FRGcQ.jpeg" /></figure><p>I had the need to automatically build and push a docker image to the Amazon AWS ECR out of an Bitbucket Pipeline.</p><p>In AWS IAM you can create a user and give him read an write permissions to your ECR Registry. The IAM provides you a access key and a secret key.</p><p>First I tried to use this two keys as user and password in the guide provided by Atlassian:</p><blockquote>- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD</blockquote><blockquote>Source: <a href="https://confluence.atlassian.com/bitbucket/build-and-push-a-docker-image-to-a-container-registry-884351903.html">https://confluence.atlassian.com/bitbucket/build-and-push-a-docker-image-to-a-container-registry-884351903.html</a></blockquote><p>This didn’t worked out. Also AWSLabs propose a solution with DockerHub: <a href="https://bitbucket.org/awslabs/amazon-ecs-bitbucket-pipelines-python/src">https://bitbucket.org/awslabs/amazon-ecs-bitbucket-pipelines-python/src</a></p><p>In a Atlassian Forum a user suggested to use the <em>awscli</em> to get a token and use the received one to login with <em>docker login</em>. (<a href="https://community.atlassian.com/t5/Bitbucket-questions/Pipelines-Pulling-docker-images-from-a-Amazon-ECR-repository/qaq-p/393415">Link</a>)</p><p>After trying to solve the login issue with the token, I found out that there is a simpler solution. You only have to run the <em>awscli</em> <em>ecr</em> <em>login</em> command and push your images to Amazon’s ECR.</p><h4>This is my final working version:</h4><p>First you have to create a user in AWS IAM. For this user I have allowed the following actions:</p><pre>&quot;ecr:GetAuthorizationToken&quot;,<br>&quot;ecr:BatchCheckLayerAvailability&quot;,<br>&quot;ecr:GetDownloadUrlForLayer&quot;,<br>&quot;ecr:GetRepositoryPolicy&quot;,<br>&quot;ecr:DescribeRepositories&quot;,<br>&quot;ecr:ListImages&quot;,<br>&quot;ecr:DescribeImages&quot;,<br>&quot;ecr:BatchGetImage&quot;,<br>&quot;ecr:InitiateLayerUpload&quot;,<br>&quot;ecr:UploadLayerPart&quot;,<br>&quot;ecr:CompleteLayerUpload&quot;,<br>&quot;ecr:PutImage&quot;</pre><p>For this user you can create the access key and the secret key which you will need in the next step.</p><p>Next you have to define following environment variables in the Bitbucket Pipeline settings:</p><ul><li>AWS_DEFAULT_REGION</li><li>AWS_ACCESS_KEY_ID</li><li>AWS_SECRET_ACCESS_KEY <em>[check “Secured” here]</em></li><li>AWS_REGISTRY_URL</li></ul><p>Environment variables have the highest priority for the <em>aws-cli</em> and, as <a href="https://medium.com/u/3d7c5fba2d75">Charton Sapinoso</a> mentioned below, <em>aws-cli </em>will pick them up, when these are defined. For more details please read the documentation: <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html">AWS Documentation</a></p><p>Finally you can use the following snippet in your pipeline to push the image:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f6a734b557757f53328d9cf0d9f9763/href">https://medium.com/media/9f6a734b557757f53328d9cf0d9f9763/href</a></iframe><p>To speed up the pipeline process, I created a docker image (<em>tstrohmeier/awscli</em>) where the <em>awscli</em> is already installed.</p><p>PS: If you have an idea how to improve this setup, I would be happy If you leave a comment ;)</p><p><strong>Update</strong>: I also wrote a “How To” on how to automatically deploy a service to a ECS cluster:</p><p><a href="https://blog.byteschneiderei.com/how-to-setup-a-continuous-deployment-to-amazon-ecs-with-bitbucket-pipeline-f1931a078f67">How to setup a continuous deployment from Bitbucket Pipeline to Amazon ECS</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84658626ca29" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/how-to-push-docker-images-to-amazon-ecr-with-bitbucket-pipeline-84658626ca29">How to push Docker Images to Amazon ECR with Bitbucket Pipeline</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up PAM SSH agent authentication for sudo login]]></title>
            <link>https://blog.byteschneiderei.com/setting-up-pam-ssh-agent-auth-for-sudo-login-7135330eb740?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/7135330eb740</guid>
            <category><![CDATA[ssh-keys]]></category>
            <category><![CDATA[pams]]></category>
            <category><![CDATA[sudo]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Mon, 28 Aug 2017 13:21:47 GMT</pubDate>
            <atom:updated>2023-08-10T22:38:27.961Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up your Ubuntu server</h3><p>For security reasons it is good to disable password based login and use ssh keys instead. As long you are using the root user this works fine. If you want to use regular user accounts you will soon have the problem that the sudo prompt wants a password as authorization. I use the <a href="https://github.com/jbeverly/pam_ssh_agent_auth">pam_ssh_agent_auth</a> package with ssh keys instead.</p><h4>1. Install required software</h4><p>First you have to install following packages from the Ubuntu repo to be able to build the<strong> pam_ssh_agent_auth</strong> archive.</p><blockquote>$ sudo apt-get install build-essential checkinstall libssl-dev libpam0g-dev</blockquote><h4>2. Download and install <strong>pam_ssh_agent_auth</strong></h4><p>Then you need the latest version of the archive. When I wrote this article 0.10.3 was the latest one.</p><blockquote>$ wget “<a href="http://downloads.sourceforge.net/project/pamsshagentauth/pam_ssh_agent_auth/v0.10.3/pam_ssh_agent_auth-0.10.3.tar.bz2">http://downloads.sourceforge.net/project/pamsshagentauth/pam_ssh_agent_auth/v0.10.3/pam_ssh_agent_auth-0.10.3.tar.bz2</a>&quot; -P /tmp</blockquote><blockquote>tar -xjvf pam_ssh_agent_auth-0.10.3.tar.bz2</blockquote><p>Next you have to configure it and create a Makefile:</p><blockquote>$ /tmp/pam_ssh_agent_auth-0.10.3/configure — libexecdir=/lib/security — with-mantype=man</blockquote><p>Now you can build and install the pam_ssh_agent_auth:</p><blockquote>$ cd /tmp<br>$ make<br>$ sudo checkinstall</blockquote><p>Now the package is installed on your server. As the last two steps you have to configure sudo to use this package. Open <em>/etc/pam.d/sudo</em> and add following:</p><blockquote>#%PAM-1.0</blockquote><blockquote><strong>auth sufficient pam_ssh_agent_auth.so file=~/.ssh/authorized_keys</strong></blockquote><blockquote>auth required pam_env.so readenv=1 user_readenv=0<br>session required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0<br>…..</blockquote><p>Instead of the key file in the user directory you can also create a global used <em>authorized_keys</em> file under <em>/etc/security/authorized_keys</em> for example.</p><p>As the last step you have to add following to <em>/etc/sudoers</em> using <em>visudo </em>command:</p><blockquote><strong>Defaults env_keep += SSH_AUTH_SOCK</strong></blockquote><blockquote>Defaults env_reset<br>Defaults mail_badpass<br>……</blockquote><h3>Setting up your Client</h3><h4>With Putty on Windows</h4><p>First you have to run Pageant and add your SSH key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*oWzeOAOUrFgxEM-HFSCh7A.png" /><figcaption>Add your key to Pageant Key List</figcaption></figure><p>Then setup your connection details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*502SeQfxTrEf_fYB9H29nA.png" /><figcaption>Connection details</figcaption></figure><p>As last step you have to activate the forwarding of the key for this connection. Go to ‘Conncection -&gt; SSH -&gt; Auth’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*gVc4ITnpN9nNHRgY8c8JwA.png" /><figcaption>Allow the agent to forward your key</figcaption></figure><p>Now you can save this settings with your prefferd name under ‘Session’</p><h4>On Mac/Linux/BSD with ‘ssh-add’</h4><p>Add your ssh key to your agent with:</p><blockquote>$ ssh-add /path/to/your/key/id_rsa</blockquote><p>If you want to forward this key you have to start your connection with ‘-A’</p><blockquote>$ ssh -A user@host</blockquote><p>Now you should be able to run a command as <strong>sudo </strong>without remembering or setting up a password for your user.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7135330eb740" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/setting-up-pam-ssh-agent-auth-for-sudo-login-7135330eb740">Setting up PAM SSH agent authentication for sudo login</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to choose the right online shop system]]></title>
            <link>https://blog.byteschneiderei.com/how-to-choose-the-right-online-shop-system-24af52b1b037?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/24af52b1b037</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[woocommerce]]></category>
            <category><![CDATA[online-shop-system]]></category>
            <category><![CDATA[magento]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Thu, 27 Oct 2016 21:41:43 GMT</pubDate>
            <atom:updated>2019-08-18T14:35:45.923Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s say you’re a talented designer of handbags or decorative items and you’d like to sell them online. In a forum, you read about a free shop system that has lots of features and can be customized to your exact needs. You excitedly download it and install it on your server. After logging in, however, you have to admit that you’re completely lost. You ask your search engine of choice and after a few hours of futile research, you are ready to give up. That doesn’t sound very reasonable, now does it?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kc1o1SOLl4kikltghSGdug.jpeg" /></figure><p>However, by the time a web developer is asked for help, that’s often the story that precedes it. That’s why it’s important to know your exact needs in order to make the right choice. In the above case, I think a cloud-hosted System like <a href="https://www.shopify.com/"><strong>Shopify </strong></a>would do the trick. It offers all necessary functions and you can select from a wide range of shop designs. Thus, you avoid any unnecessary fuss and can start selling immediately.</p><p>Now, imagine you’re doing really well with your designer handbags and decide to create your own brand. That, of course, means that you’ll want to further customize your shop. You really want to emphasize the quality of your brand, so it’s important for you to have a lot of freedom and good possibilities for your product descriptions. In that case, I’d say you need a CMS based Shop like<a href="https://woocommerce.com/"><strong>WooCommerce</strong></a>, which allows you to easily manage and update your products and pages. You also won’t have to worry about further expansions — you can either install a ready-made plugin or hire a developer to make one for you.</p><p>Further down the road, your brand might really take off and your customer base is steadily growing. Suddenly, you get customers from other countries and you’re flooded with orders. In terms of your shop system, it might now be time to think about something a little sturdier. On the one hand, you’d really like to have a custom shop for each country or region — on the other hand, you just created a second brand and you’d need lots of individual shops for that one as well. On top of that, you now have an ERP and a CRM system which you’d like to link to your shop. Let’s face it, it’s now time to pick a larger shop system like <a href="https://magento.com/"><strong>Magento</strong></a>. And since you don’t constantly want to aggravate your search engine of choice (like in our first example), you would now do better hiring a professional partner, who can manage the shop for you. That way, you can go back to concentrating on design and the project will be child’s play (for you, at least which is what matters, really).</p><p>To make a long story short, here are the most important things you should think about <strong>before</strong>choosing a shop system:</p><h3>Size</h3><p>In this case, size really matters. The first thing you need to think about is how many products you want to sell and whether these products have any variations. You also have to decide to which countries you’d like to ship and how many customers (i.e. orders) you expect. And you should also look at the big picture and think about what you expect for your shop a few months or years in the future.</p><h3>Cost</h3><p>Of course, cost is another highly important factor, which can have a huge influence on the entire scope of your project. Above all, you’ll need to be realistic in your expectations. Even if the shop system itself is free, you’ll need to budget some money for hosting and the effort involved in the customization and ongoing maintenance of your shop.</p><h3>Internationality</h3><p>If you know from the get-go that you are going to ship to multiple countries, you’ll need to take that into account when selecting a shop system. Apart from having to be multilingual, it would need to support different currencies and tax rates. And if you’re thinking that this won’t matter inside the EU, think again. Even if everyone pays in Euros, different languages and tax rates aren’t a mere afterthought and the shop system needs to support them.</p><h3>Customization and Integration</h3><p>Depending on whether you’re completely happy with the standard functionality and themes offered, or whether you do need some expansions and customizations, you’ll have to look at how well these things are supported. And you should also think about whether you will want to link your shop to an ERP and/or CRM system — now or in the future.</p><h3>Scalability</h3><p>If you’re expecting a rapidly growing customer base or product range, you’ll have to take that into account. Choose a system that can comfortably accommodate your needs now and for a while to come, but don’t go overboard either. Both an undersized and oversized system will be a money pit sooner or later.</p><h3>My two cents</h3><p>There’s no one-size-fits-all solution for online shops, because every unique project is way too dependent on all the factors mentioned above. What’s important is that you take time for your decision. Don’t try to crack a walnut with a sledgehammer (or a coconut with a tiny hammer — or whatever the opposite). Try to have realistic expectations and a reasonable budget and you’ll be fine. In most cases, that means adapting the one to the other, but you’ll definitely profit from having a shop system that exactly fits your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24af52b1b037" width="1" height="1" alt=""><hr><p><a href="https://blog.byteschneiderei.com/how-to-choose-the-right-online-shop-system-24af52b1b037">How to choose the right online shop system</a> was originally published in <a href="https://blog.byteschneiderei.com/">byte\schneiderei</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welches Shopsystem passt zu mir?]]></title>
            <link>https://medium.com/@tstrohmeier/welches-shopsystem-passt-zu-mir-206a3c919fba?source=rss-84f99c079d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/206a3c919fba</guid>
            <category><![CDATA[magento]]></category>
            <category><![CDATA[online-shop-system]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[woocommerce]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Thomas Strohmeier]]></dc:creator>
            <pubDate>Thu, 27 Oct 2016 21:23:34 GMT</pubDate>
            <atom:updated>2016-10-27T21:54:04.389Z</atom:updated>
            <content:encoded><![CDATA[<h3>Gehen wir mal davon aus du bist handwerklich sehr begabt und du produzierst in deiner Freizeit Taschen oder Dekogegenstände und möchtest sie verkaufen. In einem Forum hast du gelesen, dass es ein kostenloses Shopsystem gibt, das alles kann und das du perfekt an deine Bedürfnisse anpassen kannst. Du bist hellauf begeistert, lädst es dir herunter und installierst es auf deinem Server. Nach dem Einloggen stellst du fest, dass du hilflos verloren bist. Jetzt versuchst du mithilfe von Suchmaschinen dein Glück, bevor du nach Stunden aussichtsloser Recherche komplett niedergeschlagen aufgibst. Das klingt nicht sehr vernünftig oder?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kc1o1SOLl4kikltghSGdug.jpeg" /></figure><p>Das ist aber genau der Fall, der in der Praxis häufig vorkommt. Deswegen ist es sehr wichtig, dass du dir bewusst bist was deine Anforderungen sind. Denn erst dadurch kannst du die richtige Wahl treffen. In dem oben beschriebenen Fall wäre es zum Beispiel vollkommen ausreichend, wenn du ein in einer Cloud gehostetes System wie <a href="https://www.shopify.com/"><strong>Shopify </strong></a>verwenden würdest. Da sind alle notwendigen Funktionen integriert und du kannst aus einer Menge fertiger Designs auswählen. Du ersparst dir unnötigen Ärger und kannst direkt mit dem Verkaufen beginnen.</p><p>Weil es damit so gut läuft, kreierst aus deinen Taschen vielleicht irgendwann eine Marke und da möchtest du deinen Shop besser deinen Bedürfnissen anpassen. Da du die Qualität deiner Marke hervorheben möchtest, ist es dir wichtig das Produkt gut und ausgiebig beschreiben zu können. In diesem Fall würde ich eher zu einem CMS basierten Shop wie <a href="https://woocommerce.com/"><strong>WooCommerce </strong></a>greifen. Dieser ermöglicht es dir die Produkte und Seiten leicht zu pflegen. Um Erweiterungen brauchst du dir auch keine Sorgen zu machen. Entweder du installierst fertige Plugins, oder du beauftragst einen von unzähligen Entwicklern, um die Anpassungen vorzunehmen.</p><p>Deine Marke kommt gut bei den Kunden an, es werden täglich mehr. Immer häufiger verirren sich auch Kunden aus anderen Ländern in deinen Shop und du wirst der Flut an Aufträgen fast nicht mehr Herr. Nun wird es für dich Zeit, sich nach einer leistungsfähigeren Lösung umzusehen. Auf der einen Seite hättest du gerne für jedes Land einen eigenen Shop, auf der anderen Seite hast du gerade eine zweite Marke kreiert, für die du natürlich auch einen Shop benötigst. Außerdem würdest du deinen Shop gerne mit deinem ERP, unter Umständen auch mit dem CRM verbinden. In diesem Fall würde ich zu einem Shopsystem wie <a href="https://magento.com/"><strong>Magento </strong></a>greifen. Damit du nicht wie im ersten Fall stundenlang die Suchmaschine deiner Wahl befragen musst, ist es sinnvoller, einen professionellen Partner zu beauftragen, der für dich sämtliche Anpassungen vornimmt. So wird auch dieses Projekt für dich wie ein Kinderspiel sein.</p><p>Die wichtigsten Punkte, die du beachten solltest <strong>bevor</strong> du dich für ein Shopsystem entscheidest, gibt es hier also noch einmal im Überblick:</p><h3>Größe</h3><p>Ganz wichtig zu Beginn ist, dass du dir Gedanken darüber machst, wie viele Produkte du verkaufen willst, ob diese Produkte Variationen besitzen, in welchen Ländern du verkaufen willst und mit wie vielen Kunden du rechnest. Hierbei ist auch zu bedenken, was du in dieser Hinsicht in 1–2 Monaten bzw. Jahren erwartest.</p><h3>Kosten</h3><p>Die Kosten sind natürlich ein ganz wichtiger Punkt, der einen ganz wesentlichen Einfluss auf die gesamte Realisierung des Projektes hat. Hier ist es wichtig, realistisch zu bleiben. Selbst wenn das Shopsystem an sich kostenlos ist, verursachen das Hosting und der Arbeitseinsatz für Anpassungen und Wartung immer gewisse Kosten, die du in deinem Budget bedenken solltest.</p><h3>Mehrsprachig, Steuersätze, Währungen</h3><p>Wenn du zu Beginn schon weißt, dass du in mehreren Ländern verkaufen möchtest, musst du das bei der Auswahl des Shopsystems auf jeden Fall berücksichtigen. Mit der Mehrsprachigkeit gehen oft unterschiedliche Steuersätze, sowie unterschiedliche Währungen Hand in Hand. Wer denkt, dass das innerhalb der EU doch sicher kein Problem ist, der irrt. Selbst wenn alle Kunden in Euro bezahlen, muss das Shopsystem noch immer mit unterschiedlichen Sprachen und Steuersätzen umgehen können.</p><h3>Anpassbar, Integration von anderen Systemen</h3><p>Dieser Punkt ist abhängig davon, ob dir die Standardfunktionalität und die verfügbaren Themes für deinen Shop reichen, oder ob du ganz spezielle Bedürfnisse hast. Außerdem solltest du dir überlegen, ob du deinen Shop an ein ERP oder CMS anbinden möchtest.</p><h3>Skalierung</h3><p>Rechnest du mit einer stark wachsenden Anzahl an Usern oder soll das Produktsortiment stark erweitert werden, ist dies ebenfalls zu berücksichtigen. Auch hier gilt: nicht über- oder unterdimensionieren. Beides wird sich früher oder später merklich in deinem Budget niederschlagen.</p><h3>Resumé</h3><p>Es gibt keine Lösung, die für jedes Projekt passend ist. Dafür ist jedes Projekt zu sehr von den individuellen Anforderungen abhängig. Der falsche Weg ist auf jeden Fall mit Kanonen auf Spatzen zu schießen (oder mit Papierkügelchen auf riesige Drachen — was auch immer hier das Gegenteil ist). Wichtig ist, dass man realistische Anforderungen hat und für das Projekt die notwendigen Mittel zur Verfügung hat. In den meisten Fällen ist es daher entweder notwendig die Funktionen auf das Budget anzupassen, oder umgekehrt.</p><p>Falls du noch weitere Fragen zur Wahl des richtigen Shopsystems hast, kannst du mich gerne kontaktieren.</p><p>Bitte folgt mir auf Twitter: <a href="https://twitter.com/t_strohmeier">@t_strohmeier</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=206a3c919fba" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>