Category: Fedora / RedHat / CentOS

15.08.2018

# yum based (fedora/redhat/centos) yum update –exclude=kernel* # apt based apt-mark hold package-name* # to unhold: apt-mark unhold package-name*

09.08.2018

i want to create a autostart script that starts whenever the server starts. mkdir /scripts vim /scripts/start.sh #!/bin/bash echo „========= starting up docker service“ systemctl start docker echo „========= starting up docker containers“ docker start containername vim /scripts/stop.sh #!/bin/bash echo […]

VestaCP disable roundcube webmail
09.08.2018

CentOS7: # search for roundcube config file find / -name *roundcubemail.conf* /usr/local/vesta/install/rhel/6/roundcube/roundcubemail.conf /usr/local/vesta/install/rhel/7/roundcube/roundcubemail.conf /usr/local/vesta/install/rhel/5/roundcube/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf # search for installed packages yum list installed |grep roundcube roundcubemail.noarch # is enough to disable roundcube rm -rf /etc/httpd/conf.d/roundcubemail.conf # seems to be no […]

HowTo Update OpenOffice LibreOffice under Linux – deb rpm Debian Ubuntu RedHat Fedora CentOS7
02.04.2018

updating LibreOffice (former OpenOffice) works like this: 1. remove the old version 2. download latest version https://www.libreoffice.org/ 3. install the new version RedHat Fedora CentOS7: rpm based distributions: yum remove libreoffice*; # uninstall current version wget http://mirror1.hs-esslingen.de/pub/Mirrors/tdf/libreoffice/stable/6.0.2/rpm/x86_64/LibreOffice_6.0.2_Linux_x86-64_rpm.tar.gz; # download tar […]

apt yum exclude package from update upgrade
01.03.2018

maybe you want to run your own version of the kernel and you will have to prevent during an automatic update that this kernel will get „replaced“. same goes with firefox, thunderbird and LibreOffice yum and apt might not install […]

CENTOS7 – vnc server remote desktop setup howto screen sharing in 2018 – x11vnc error: socket: Address family not supported by protocol (97)
20.02.2018

UPDATED! checkout vnc section of: https://dwaves.org/2018/05/07/getting-started-with-raspberry-pi-2-model-b-v1-1-vs-odroid-xu4-vnc-display-0-and-1/ UPDATED AGAIN! if you have problems connecting and get the error message: „x11vnc error: socket: Address family not supported by protocol (97)“ then you probably have ipv6 disabled on the client. (and even if […]

13.02.2018

somtimes it is easier to land on the moon… than install a printer… [root@centos user]# hostnamectl Static hostname: centos.template Icon name: computer-desktop Chassis: desktop Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 4.15.1 Architecture: x86-64 Epson_Stylus_SX510W […]

CentOS7 setup virtualbox
07.02.2018

headless server: tested: 2018-10-17 on CentOS Linux 7.5 (Core) wget https://www.virtualbox.org/download/oracle_vbox.asc rpm –import oracle_vbox.asc cd /etc/yum.repos.d/ wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo yum update yum search virtualbox yum install VirtualBox-5.2.x86_64 # if you want/need usb 3.0 extension package wget https://download.virtualbox.org/virtualbox/5.2.20/Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack […]

CentOS7 install ntfs support
02.02.2018

one partly cloudy day i was trying to copy things via usb stick… it would not work. i realized: i haven’t used NTFS for a while 😀 yum install ntfs-3g fuse replug the stick. you don’t even have to restart […]

29.01.2018

yum install kbd; # is needed ll /lib/kbd/keymaps/xkb/ | grep de-; # find all available germany keymap layouts localectl list-keymaps; # alternatively loadkeys de; # load keyboard layout localectl set-keymap de; # permanently change keyboard layout

compiling squid http proxy from source
31.07.2017

checkout what is the latest version: ftp://ftp.cuhk.edu.hk/pub/packages/info-systems/www/squid/ probably this is more recent: https://github.com/squid-cache/squid you could also try git clone https://github.com/squid-cache/squid.git and compile with the git source tree… let me know if it worked. hostnamectl; # tested on [root@CentosMaster squid-4.0.21]# hostnamectl […]

28.07.2017

i really don’t know why this is not a one-liner… it would save time and electricity and cause less searchengine-request. yum install epel-release yum install htop

CentOS Redhat – compile Apache2 from source
27.07.2017

i tried to compile under debian…. but it’s way more compli cated. also: you probably do not need all the packages stated here… but i did not have the time to sort those out sorry for that. feel free to […]

CentOS7 replaced firewall iptables with firewalld
27.07.2017

no iptables no more – some things change faster than you can say „beneune„… check if it is up and running: systemctl list-unit-files|grep firewall firewalld.service enabled # if not start it systemctl start firewalld check what ports are used on […]

CentOS7 Security Profiles and Software Security Flaws TopList
25.07.2017

exploits in software toplist: 2017: https://www.cvedetails.com/top-50-products.php?year=2017 All time: https://www.cvedetails.com/top-50-products.php That is why the Unix Philosophy of small, modular and beautiful matters … maybe that’s why Mr Stallmann prefers Microkernels… but well let’s be happy there is an alternative kernel to […]

03.07.2017

strace from the strace.man.txt manpage. trace system calls and signals In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are […]

centos7 redhat compiling the latest kernel – updated 2018-11
30.06.2017

intro: it seems very relevant to have the late as possible kernel up and running: https://googleprojectzero.blogspot.com/2018/09/a-cache-invalidation-bug-in-linux.html first: backup your system! on boot time under „Advanced“ you can chose to boot the old kernel – never the less – backup your […]

Linux Kernel – Security Updates
27.06.2017

latest kernel related security problems can be found here… -> https://tracker.debian.org/pkg/linux newsletter subsribe: https://tracker.debian.org/accounts/login/ also https://anonscm.debian.org/cgit/kernel/linux.git http://www.securityfocus.com/ http://www.securityfocus.com/cgi-bin/index.cgi?c=11&op=display_threads&ListID=1&limit=30&offset=0&date=2017-06-20&mode=threaded https://cve.mitre.org/index.html https://twitter.com/CVEnew/ https://wiki.debian.org/DebianKernel

21.06.2017

debian has „codenames“ for it’s releases… i always get confused which codename is what release number. with those commands you can easily identify both. hostnamectl seems to be the cross-distribution solution for that. user@suse12:~> hostnamectl Static hostname: suse12.domain Transient hostname: […]