How to get package URL on CentOS
Sometimes I need to get the package URL on CentOS to store it using Nexus Repository Manager. At first glance, it is not very obvious how to display package URLs, but the actual process is very simple....
View ArticleHow to disable Network Manager connectivity checks
Four different ways to disable Network Manager connectivity checks. Solution #1 – Alter user configuration using system settings You can disable connectivity checking inside system settings ->...
View ArticleHow to define IP address inside multi-domain SSL certificate
Define IP address inside multi-domain SSL certificate. I will use a self-signed certificate as it is enough to show how it works. Describe certificate. Use DNS option to define a DNS name and IP option...
View ArticleHow to display kernel slab cache information
You can directly inspect kernel slab allocator statistics (/proc/slabinfo file) for detailed information on buffer, inode, dentry, or other caches in the Linux kernel, though slabtop utility will sort...
View ArticleHow to execute specific vagrant provisioner every time the virtual machine is...
Use vagrant provisioner to update SSH authorized_keys every time the virtual machine is started. Use run option to define whether provisioner should run once or always. $ cat Vagrantfile...
View ArticleHow to wipe partition-table signatures with one exception
Today I will extend the how to fix device excluded by a filter blog post to include information on how to wipe filesystem or partition-table signatures except for LVM2 members, which is a great idea...
View ArticleHow to get service PID using systemctl
Use systemctl to get process identifier for specified service. systems version. $ systemctl --version systemd 247 (247.3-1) +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP...
View ArticleHow to display custom message after vagrant machine is started
Display custom message after the vagrant machine is started. Use config.vm.post_up_message option to set acustom message. Vagrant.configure("2") do |config| config.vm.box = "debian/buster64"...
View ArticleHow to define multiple disks inside Vagrant using VirtualBox provider
Define multiple disks inside Vagrant using VirtualBox provider. It is not immediately obvious how to achieve it, but everything you need is there. Go to second solution to see how I solved this issue....
View ArticleHow to encrypt or decrypt files using OpenSSL utility
Use OpenSSL utility to encrypt or decrypt files. OpenSSL version. $ openssl version OpenSSL 1.1.1f 31 Mar 2020 Encrypt archive.tgz and store it as archive.tgz.enc file. $ openssl enc -aes-256-cbc -in...
View ArticleHow to access specific file occurrence in tar archive
Access specific file occurrence in tar archive. Tar archive file can be updated multiple times, so it can contain multiple occurrences of the same files. $ tar --list --file archive.tar.gz...
View ArticleHow to install AdGuard Home
Install AdGuard Home Network-wide ads & trackers blocking DNS server. I am using Pi-Hole with Unbound to perform DNS blocking, but AdGuard Home is an interesting alternative, so it’s worth checking...
View ArticleHow to provide encryption password when using OpenSSL utility
Different ways to provide encryption password when using OpenSSL utility. Maybe not directly, but I have already mentioned it in multiple blog posts, so let me sum it up for you. OpenSSL version. $...
View ArticleHow to update tar archive
Update tar archive. Create a gzip-compressed tar archive. $ sudo tar --create --gzip --file etc.tar.gz /etc tar: Removing leading `/' from member names Inspect archive file. $ tar --list --file...
View ArticleHow to dynamically route HTTPS traffic to LXD instances
Dynamically route HTTPS traffic to LXD instances on a development server. LXD uses bridged networking by default, so get lxdbr0 IP address as it is used by the dnsmasq service to serve DHCP and DNS...
View ArticleHow to start service on the privileged port as a regular user
Start service on the privileged port as a regular user. I will use jenkins service as an example. By default, jenkins the service starts at port 8080. $ cat /etc/default/jenkins [...] # port for HTTP...
View ArticleHow to display current date-time in different timezone
Use date utility to display current date time in different timezone Display current date-time. $ date Tue Apr 13 22:54:30 CEST 2021 Display current date-time in Europe using general time zone data...
View ArticleHow to log systemd service state changes
Log systemd service state changes using rsyslog. At first, look how the log entry looks like as it will come in handy in the next step. $ sudo journalctl --follow --output verbose _TRANSPORT=journal...
View ArticleHow to get a better overview of a particular git branch
Get a better overview of a particular git branch. Clone a sample repository that will be used in this example. $ git clone https://github.com/milosz/git-first-parent-example.git Cloning into...
View ArticleHow to create Ansible filters
Create Ansible filters to work with Apache Flume configuration. Initial notes This example contains several Apache Flume filters to parse YAML configuration. flume_agents – extract agents flume_sources...
View Article