Mastodon

Fixing repo issue with CentOS Stream 8 Docker container

Until CentoOS rolls out official CentOS Stream 9 docker container, if you create use centos:latest as tag then you will end up getting centos stream 8 container.

This container as broken repo info and therefore when you perform dnf update or yum update, it gives an error. Below commands fixes the broken repo links –

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
dnf update -y

This fixes and broken repo links and makes updates or installation of new packages possible.

Add new theme to roundcube in poste.io container

If you are running the mail server from poste.io, it comes with roundcube webmail interface.  I felt the default theme bit out of date and wanted to add my own theme.  This article provides the quick steps on how I did that.

  • Download a roundcube theme of your choice.
  • The theme will have two folders ‘skins‘ and ‘plugins
  • Copy the below folders to respective location
    • docker cp /var/log/temp/skins/ container:/opt/www/webmail/skins/
    • docker cp /var/log/temp/plugins/ container:/opt/www/webmail/plugins/
  • Now attach to your poste.io docker container
  • Once done, edit the file /opt/www/webmail/config/config.inc.php using vi and insert theme name following the README from the theme.
  • Restart your docker container and refresh to see the updated list of themes in your webclient.

Hope it will help someone.  [tweetthis display_mode=”box”]Add new theme to roundcube in poste.io container[/tweetthis]