Hey folks, I’m now running my own Mastodon instance and am available under @freimer@social.frankreimer.de
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 . folder_01 folder_02 folder_03 folder_04 folder_05
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:
1 2 3 4 5 |
cd /tmp/ wget https://github.com/nextcloud/documentserver_community/releases/download/v0.1.7/documentserver_community.tar.gz tar -xvzf documentserver_community.tar.gz mv documentserver_community /var/www/nextcloud/apps chown -R www-data.www-data /var/www/nextcloud/apps/documentserver_community/ |
- 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
Red Hat EMEA forum 2016 in Vienna
If you want to get the latest news from Red Hat Summit 2016 then join the Red Hat EMEA forum 2016 in Vienna (Austria). Registration is for free.
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:
Satellite 6 + PXE / DHCP for UEFI (workaround)
Currently Satellite in version 6.1.7 does not provide an UEFI capable PXE / DHCP Server. There is a workaround in place but unfortunately after each update to the next Satellite version all these settings will be overridden. The workaround is described in this Red Hat KCS article.
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).
One-way-trust between IPA and Active Directory implemented in latest RHEL 7.2
This feature is really nice because there was often some discussion with customers regarding the former Two-way-trust (which was actually no real two-way-trust!!!). Here you can read more about new features in IPA in latest RHEL 7.2.
Red Hat Enterprise Linux Blog
A lot of colleagues are blogging about RHEL at http://rhelblog.redhat.com/. Take your time to read some interesting posts.