Author Archives: freimer

Bash — Find out folder names only

Typically if you type “ls -l” to list all folders and files you get the following output:

ls -l
total 0
drwxr-xr-x 2 frank staff 64 22 Dez 09:33 folder_01
drwxr-xr-x 2 frank staff 64 22 Dez 09:33 folder_02
drwxr-xr-x 2 frank staff 64 22 Dez 09:33 folder_03
drwxr-xr-x 2 frank staff 64 22 Dez 09:33 folder_04
drwxr-xr-x 2 frank staff 64 22 Dez 09:33 folder_05

To get folder names only, you can run the following command:

find . -maxdepth 1 -type d | awk -F / '{print $NF}' | sort

Nextcloud 18 and ONLYOFFICE

To use Nextcloud and ONLYOFFICE you need to run some tasks to get it work.

Install ONLYOFFICE app

  • Login to your Nextcloud web interface
  • Go to “Apps” and search for ONLYOFFICE
  • Download and activate it

This does not enable ONLYOFFICE functionality at all. Therefore you need to also install and activate the Community Document Server. Otherwise you will not be able to create ONLYOFFICE files in Nextcloud.

Install Community Document Server

  • Unfortunately this does not work in the web-ui at the time of writing this article. So some manual work is needed.
  • First goto Nextcloud app store.
  • Get the link of the latest available version of the Community Document Server.
  • Login to your Nextcloud server via SSH and run the following commands:
  • Now go back to Nextcloud web-ui and navigate to Apps
  • Search for Community Document Server and activate it.

Thats it. You should now be able to create ONLYOFFICE documents in Nextcloud.

Find out short living UDP requests (e.g. DNS requests) with auditd

Think about the following situation. You need to modify the address of your internal DNS server and therefore you need to change /etc/resolv.conf on all your Linux boxes. It might be that this change will not be recognized by every service running on your Linux box. Oracle for instance is a good example where you have to restart your database after such change because Oracle loads the DNS information once the database is started. So Oracle would querry your old DNS server IP unless you restart the database.

There are several ways to find out which process requests your old DNS server. Here I will explain how to utilize auditd on Red Hat derivatives to find out short living DNS requests via UDP. Continue reading

RHEL 7 supports online disk resize with active partition tables on disk

One of the interesting features in RHEL 7 is the fact that it supports online disk re-sizing even if there is an active partitioning table on the disk. This feature is interesting in case you want to re-size your virtual disk. You can do this online for example in VMWare. If you have a LVM partition on the disk you want to resize then you need to perform the steps described in this article from Red Hat.

In order to resize online a partition which is in use please observe the following steps:

Continue reading

Satellite 6 => OS release version not attached to a copied Activation Key correctly

Currently there seems to be a bug in Satellite 6 (6.1.6). I`ve created an Activation Key and attached a “Release Version” on the Details tab to the Activation Key. I also configured all other needed things like product content, subscriptions and so on.

If I now copy this Activation Key the Release Version seems to be present at the copied Activation Key. But when I try to install a new client with the copied Activation Key which for example has 7.2 as a release version then the client does not configure the release version via subscription-manager correctly during provisioning. This leads to the problem that the client is not able to access the correct RHEL Yum repositories on Satellite.

If I open the copied Activation Key again, delete the release version and attach the release version again, then the client can successfully access all needed Yum repositories with this specific release version during provisioning.

I filled an appropriate BZ entry (BZ 1311846).