Rob Terzi

Recent Posts

How to enable sudo on Red Hat Enterprise Linux

How to enable sudo on Red Hat Enterprise Linux

You’ve probably seen tutorials that use sudo for running administrative commands as root. However when you try it, you get told your user ID is “not in the sudoers file, this incident will be reported.”  For developers, sudo can be very useful for running steps that require root access in build scripts.

This article covers:

  • How to configure sudo access on Red Hat Enterprise Linux (RHEL) and CentOS so you won’t need to use su and keep entering the root password
  • Configuring sudo to not ask for your password
  • How to enable sudo during system installation
  • Why sudo seems to work out of the box for some users and not others

Continue reading “How to enable sudo on Red Hat Enterprise Linux”

Share
How to install Python 3 on Red Hat Enterprise Linux

How to install Python 3 on Red Hat Enterprise Linux

This article shows how to install Python 3, pip, venv, virtualenv, and pipenv on Red Hat Enterprise Linux 7. After following the steps in this article, you should be in a good position to follow many Python guides and tutorials using RHEL.

Using Python virtual environments is a best practice to isolate project-specific dependencies and create reproducible environments. Other tips and FAQs for working with Python and software collections on RHEL 7 are also covered.

There are a number of different ways to get Python 3 installed on RHEL. This article uses Red Hat Software Collections because these give you a current Python installation that is built and supported by Red Hat. During development, support might not seem that important to you. However, support is important to those who have to deploy and operate the applications you write. To understand why this is important, consider what happens when your application is in production and a critical security vulnerability in a core library (for example SSL/TLS) is discovered. This type of scenario is why many enterprises use Red Hat.

Python 3.6 is used in this article. It was the most recent, stable release when this was written. However, you should be able to use these instructions for any of the versions of Python in Red Hat Software Collections including 2.7, 3.4, 3.5, and future collections such as 3.7.

Continue reading “How to install Python 3 on Red Hat Enterprise Linux”

Share
A Beginner’s Guide to Kubernetes (PodCTL Podcast #38)

A Beginner’s Guide to Kubernetes (PodCTL Podcast #38)

If you aren’t following the OpenShift Blog, you might not be aware of the PodCTL podcast. It’s a free weekly tech podcast covering containers, kubernetes, and OpenShift hosted by Red Hat’s Brian Gracely (@bgracely) and Tyler Britten (@vmtyler). I’m reposting this episode here on the Red Hat Developer Blog because I think their realization is spot on—while early adopters might be deep into Kubernetes, many are just starting and could benefit from some insights.

Original Introduction from blog.openshift.com:

The Kubernetes community now has 10 releases (2.5 yrs) of software and experience. We just finished KubeCon Copenhagen, OpenShift Commons Gathering, and Red Hat Summit and we heard lots of companies talk about their deployments and journeys. But many of them took a while (12–18) months to get to where they are today. This feels like the “early adopters” and we’re beginning to get to the “crossing the chasm” part of the market. So thought we’d discuss some of the basics, lessons learned, and other things people could use to “fast-track” what they need to be successful with Kubernetes.

The podcast will always be available on the Red Hat OpenShift blog (search: #PodCTL), as well as on RSS FeedsiTunesGoogle PlayStitcherTuneIn, and all your favorite podcast players.

Continue reading “A Beginner’s Guide to Kubernetes (PodCTL Podcast #38)”

Share
How to install Clang/LLVM 5 and GCC 7 on RHEL

How to install Clang/LLVM 5 and GCC 7 on RHEL

If you are developing with C/C++, Clang tools and newer versions of GCC can be quite helpful for checking your code and giving you better warnings and error messages to help avoid bugs. The newer compilers have better optimizations and code generation.

You can easily install the latest-supported Clang and GCC compilers for C, C++, Objective-C, and FORTRAN using yum on Red Hat Enterprise Linux.  These compilers are available as software collections that are typically updated twice a year. The May 2018 update included Clang/LLVM 5 and GCC 7.3, as well as Go and Rust.

If you want your default gcc to always be GCC 7, or you want clang to always be in your path, this article shows how to permanently enable a software collection by adding it to the profile (dot files) for your user account. A number of common questions about software collections are also answered.

Continue reading “How to install Clang/LLVM 5 and GCC 7 on RHEL”

Share
Watch over 100 Red Hat Summit 2018 session videos online

Watch over 100 Red Hat Summit 2018 session videos online

Over 100 breakout sessions from Red Hat Summit 2018 are now available to watch on YouTube. Even if you were at Summit, there were too many sessions to attend all of the ones you might have wanted to see. All of the recorded sessions are in one big searchable YouTube playlist. Over 100 recorded breakout sessions for 2018 is a big improvement over the 54 session videos available for Red Hat Summit 2017.

Update: Many of the presentation slide decks are now available in a searchable archive.

In the next few weeks, a number of the developer sessions will be highlighted on this blog by topic.

To get a development-oriented overview of what happened at Red Hat Summit, watch these TheCube.net interviews with:

All interviews are embedded below.

Resources:

Continue reading “Watch over 100 Red Hat Summit 2018 session videos online”

Share
Red Hat Summit 2018 Burr Sutter Demo – Multi-cloud

Red Hat Summit 2018 Burr Sutter Demo – Multi-cloud

One of the highlights of Red Hat Summit 2018 was another live, on-stage demo given by Burr Sutter (@burrsutter) and a team of developers. The demo was particularly engaging because the audience participated using a mobile game on their phones that communicated with a multi-cloud backend developed by Burr’s team. The objective of the demo was to show off the technologies, and also show how complex development and deployment challenges can be solved with a modern approach.

Audience members were challenged to take pictures of requested objects as part of the game. Points were assigned for how well the photo represented the request. The photos were automatically uploaded to the cloud where a TensorFlow image recognition service running on OpenShift scored each photo using machine learning. (The video is available after the break.)

Continue reading “Red Hat Summit 2018 Burr Sutter Demo – Multi-cloud”

Share
Red Hat Summit: Developing .NET Core Apps on Red Hat OpenShift

Red Hat Summit: Developing .NET Core Apps on Red Hat OpenShift

At Red Hat Summit 2018, Red Hat’s John Osborne and Microsoft’s Harold Wong gave a talk: Developing .NET Core Applications on Red Hat OpenShift.

.NET Core 1.0 availability for Linux was announced two years ago, but many developers still have a number of questions about the differences between .NET Framework and .NET Core. The session started with an overview of the differences. In a nutshell, .NET Framework is the set of APIs and libraries that Windows developers have used to years, which is pretty heavily tied to Microsoft Windows and Windows GUI APIs. On the other hand, .NET Core is the cross-platform set of APIs that are available for building applications that can run on Linux, macOS, or mobile devices via Xamarin.  .Net Core 2.0 was released last August; see Don Schenck’s article.

One of the key questions is when to use one versus the other.  Here’s the summary Harold Wong presented:

Continue reading “Red Hat Summit: Developing .NET Core Apps on Red Hat OpenShift”

Share
Red Hat Summit 2018: Learn how other developers are producing cloud-native applications

Red Hat Summit 2018: Learn how other developers are producing cloud-native applications

Want insights into how other organizations are building cloud-native applications and microservices? At Red Hat Summit 2018, developers from a number of different companies will be sharing their stories in break-out sessions, lightning talks, and birds-of-a-feather discussions.  Learn how they solved real business problems using containers, microservices, API management, integration services, and other middleware.

Join us at Red Hat Summit 2018, to hear speakers from Bell Canada, BMW, BP, Deutsche Bank, InComm, Sabre, SIA, Swiss Railways, USAA, and many more.

Session Highlights:

Continue reading “Red Hat Summit 2018: Learn how other developers are producing cloud-native applications”

Share
State of Functions-as-a-Service on Kubernetes (OpenShift Commons Briefing)

State of Functions-as-a-Service on Kubernetes (OpenShift Commons Briefing)

If you are interested in serverless computing / Functions-as-a-Service (FaaS), and are not following the OpenShift blog, you should checkout The State of Functions-as-a-Service on Kubernetes.  This video is part of the OpenShift Commons Briefing series, which has a lot of great content for developers who interested in cloud-native applications and microservices running on OpenShift and Kubernetes.

FaaS, or serverless as some call it, is a promising compute paradigm suitable for event-driven scenarios. In this briefing, Red Hat’s Michael Hausenblas and Brian Gracely reviewed the current open source offerings for FaaS on Kubernetes (Apache Open Whisk, kubeless, OpenFaaS, etc.) and discussed the pros and cons, on an architectural level and a user experience (UX) point of view. They also covered the topic FaaS vs. containers from a developers as well as an operators perspective.

This talk builds on material gathered by the Serverless Working Group , which is part of the Cloud Native Computing Foundation (CNCF). CNCF serves as the vendor-neutral home for many of the fastest-growing projects on GitHub, including Kubernetes, Prometheus, and Envoy.

Video, slides, and other resources:

Continue reading “State of Functions-as-a-Service on Kubernetes (OpenShift Commons Briefing)”

Share
DevNation Live Tech Talk: KubeBoot – Spring Boot deployment on Kubernetes

DevNation Live Tech Talk: KubeBoot – Spring Boot deployment on Kubernetes

The next online DevNation Live Tech Talk will be Thursday, February 15th, at 12 pm EST.  The topic is Spring Boot deployment on Kubernetes presented by Kamesh Sampath.  In this 30-minute live session, we will see how to build, debug, deploy, and discover Spring Boot applications on Kubernetes. The talk will include details of the tools, libraries, and platform that could be used to make your spring boot deployment smooth and easy.

Register Now, and then join the live presentation at 12 pm EST, February 15th.

Continue reading “DevNation Live Tech Talk: KubeBoot – Spring Boot deployment on Kubernetes”

Share