RHEL 9.0 Getting Basic Network Setting
>$ ip addr show1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo...
View ArticleRHEL 9.0 Troubleshooting Networking
Troubleshoot Connectivity Between Hosts>$ man ping... -c count Stop after sending count ECHO_REQUEST packets. With deadline option, ping waits for count ECHO_REPLY packets, until the timeout...
View ArticleRHEL 9.0 Configure Networking from the Command Line
Show>$ sudo nmcli device status DEVICE TYPE STATE CONNECTION enp1s0 ethernet connected enp1s0 lo loopback unmanaged -- $ sudo nmcli connection show NAME UUID TYPE DEVICE enp1s0...
View ArticleRHEL 9.0 Archieve and Compress Using tar with gunzip, bzip2 and xz
>$ sudo dnf install tar bzip2$ man tar... -c or --create : Create an archive file. -t or --list : List the contents of an archive. -x or --extract : Extract an archive. Compression options -z,...
View ArticleRHEL 9.0 Finding Files with find
>$ man find... -name pattern Base of file name (the path with the leading directories removed) matches shell pattern pattern. A numeric argument n can be specified to tests (like -amin, -mtime,...
View ArticleRHEL 9.0 Container Tools, Podman, Volume, SELinux and Systemd
Introduction Container ToolsContainer Management Toolspodman manages containers and container images.skopeo inspects, copies, deletes, and signs images.buildah creates container...
View ArticleRHEL 9.0 Container Tools, Podman and Networking
Podman v4.0 NetworkingPodman v4.0 supports two network back ends for containers, Netavark and CNI. Starting with RHEL 9, systems use Netavark by default.>$ podman info host:... networkBackend:...
View ArticleCommon Git Commands
Installation RHEL 9.0 and Fedora 35>$ sudo dnf install gitConfiguration>$ git config --global --add user.email "you@example.com"$ git config --global --add user.name "Username"$ git config...
View ArticleOpenShift 4.10 I: Write Dockerfile, Build, Tag and Push
Dockerfile/ContainerfileThere is no docker file syntax man page on RHEL.https://learn.redhat.com/t5/Containers-DevOps-OpenShift/Is-there-Dockerfile-format-or-example-in-RHEL-man-page-or/td-p/16739>$...
View ArticleOpenShift 4.10 I: Overview Container
Namespaces"Namespaces are a feature of the Linux kernel that partitions kernel resources such that one set of processes sees one set of resources while another set of processes sees a different set of...
View ArticleOpenShift 4.10 I: Red Hat Official Container Repository/Registry
Installation>$ sudo dnf install container-toolsContainer repositories/registries are configured in.>$ cat /etc/containers/registries.conf...unqualified-search-registries =...
View ArticleOpenShift 4.10 I: Container mysql with Persistent Storage, Unshare and SELinux
>$ podman search mysqlNAME DESCRIPTIONregistry.access.redhat.com/rhscl/mysql-56-rhel7 MySQL 5.6 SQL database serverregistry.access.redhat.com/rhscl/mysql-57-rhel7 Docker image for running MySQL 5.7...
View ArticleOpenShift 4.10 I: Understand rootless Container
>$ podman search ubiNAME DESCRIPTIONregistry.access.redhat.com/ubi7 The Universal Base Image is designed and engineered to be the base layer for registry.access.redhat.com/ubi7/ubi The Universal...
View ArticleOpenShift 4.10 I: Common podman commands
>$ podman pull registry.access.redhat.com/ubi9/httpd-24:latest$ podman images registry.access.redhat.com/ubi9/httpd-24:latest$ podman rmi registry.access.redhat.com/ubi9/httpd-24:latest$ skopeo...
View ArticleOpenShift 4.10 I: Custom Container Images without Dockerfile/Containerfile
>$ podman run -d --name httpd-24 -p 8080:8080 registry.access.redhat.com/ubi9/httpd-24$ podman exec httpd-24 /bin/bash -c 'echo "custom httpd image"< /var/www/html/index.html'$ curl...
View ArticleOpenShift 4.10 I: Create an OCP Application
First create a new OCP project.>$ oc new-project myappCreate an application from an image.>$ oc new-app --name=todonodejs \ --image=quay.io/redhattraining/do180-todonodejs-12 \ --env...
View ArticleOpenShift 4.10 I: OCP Manifest/Custom Resources Documentation
>$ oc api-resources NAME SHORTNAMES APIVERSION NAMESPACED KINDbindings v1 true Bindingcomponentstatuses cs v1 false ComponentStatusconfigmaps cm v1 true ConfigMapendpoints ep v1 true Endpoints...$...
View ArticleOpenShift 4.10 I: Create an OCP Application from Image, S2I, Template
From Image>$ oc new-project myproj01$ oc new-app --name=httpd-24 --image=registry.access.redhat.com/ubi8/httpd-24 --labels app=httpd-24$ oc get all$ oc logs pod/httpd-24-9fb54567d-n9slj$ oc expose...
View ArticleOpenShift 4.10 I: S2I, start-build, BuildConfig and Deployment
>$ oc new-app --name=php-helloworld --image-stream=php:7.3 https://github.com/magnuskkarlsson/DO180-apps#s2i --context-dir=php-helloworld$ oc start-build buildconfig.build.openshift.io/nodejs-dev$...
View ArticleJava Smart Card Authentication Fails on RHEL 8 with Java 8u261 and SunMSCAPI
BackgroundIn Java 8u261 was MSCAPI completely rewritten [1] and also was support for MS Cryptography next generation (CNG) added [2].[1] JDK-8213009 Refactoring existing SunMSCAPI classes[2]...
View Article