Fedora - install Nvidia driver

Install RPMFusion repository

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Important! Upgrade to latest versions kernel and SELinux packages

sudo dnf update kernel* selinux-policy*

Install required packages

sudo dnf install gcc kernel-headers kernel-devel

Install Nvidia drivers …

more ...

Actual stable latest kernel in CentOS 7

Устанавливаем актуальную версию ядра в CentOS 7.

Добавляем репозиторий elrepo-kernel из elrepo-release:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Включаем репозиторий elrepo-kernel:

yum install -y yum-utils
yum-config-manager --enable elrepo-kernel

Установка (какая …

more ...

Автоматическое удаление бекапов confluence

Создать файл /etc/cron.daily/confluence-cleanup:


    cd /opt/atlassian/confluence.application-data/backups
    for f in daily-backup-*.zip; do
        [ $(ls daily-backup-*.zip | wc -l) -gt 10 ] || break
        rm -vf "$f"

if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t confluence "ALERT exited abnormally with [$EXITVALUE]"
exit 0 …
more ...

Gitlab SMTP not work via external smtp

When gitlab try to send email via external smtp server, sidekiq mail queue crash with error like:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

Fix for package installed gitlab:

Edit /etc/gitlab/gitlab.rb and add:

For ubuntu system wide ca bundle:

gitlab_rails …
more ...

Enable ip forwarding in linux

Debian/Ubuntu /etc/network/options:


For restart network service procps:

/etc/init.d/procps.sh restart

RedHat /etc/sysconfig/network:

more ...