====== CentOS ====== http://www.centos.org ===== NetInstall URL ===== ==== CentOS 6 ==== http://mirror.centos.org/centos/6/os/x86_64 ==== CentOS 7 ==== http://mirror.centos.org/centos/7/os/x86_64 ===== Změna hostname ===== V **/etc/sysconfig/network** změnit proměnou **HOSTNAME** a v **/etc/hosts**. **Tohle nestačí na permanentní změnu!** shell# hostname bflmpsvz ==== Permanentní změna pro Centos 7.X ==== shell# hostnamectl set-hostname name ===== YUM ===== shell# yum clean metadata shell# yum clean all shell# yum update shell# yum install yum-plugin-security.noarch shell# yum updateinfo list --security --quiet shell# yum repolist Dokončení transakce shell# yum install yum-utils.noarch shell# yum-complete-transaction Spadlá transakce - mazání duplicit shell# package-cleanup --cleandupes ===== EPEL repository ===== shell# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm shell# rpm -ivh epel-release-6-8.noarch.rpm ===== Instalace PDFtk ===== http://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/ shell# yum install glibcj shell# rpm -i pdftk-*.rpm **Sloučení PDF dokumentů** shell> pdftk file1.pdf file2.pdf cat output final.pdf ===== Automatic security updates ===== https://serversforhackers.com/video/automatic-security-updates-centos shell# yum upgrade shell# yum --security upgrade shell# yum --security upgrade-minimal ===== Nefunkční rsyslog ===== ... ... rsyslogd-3000: sd_journal_get_cursor() failed: 'Cannot assign requested address' ... shell# rm -f /var/lib/rsyslog/imjournal.state shell# systemctl restart rsyslog.service shell# systemctl status rsyslog.service ===== Free up space on CentOS/RHELL /boot safely ===== shell# yum remove `rpm -q kernel | grep -v 'uname -r'` ===== CentOS 7 iptables ===== shell# systemctl disable firewalld shell# yum install -y iptables-services shell# systemctl enable iptables /etc/sysconfig/iptables