Fix the Meltdown on a CentOS/RHEL/Fedora/Oracle/Scientific Linux

How to Fix the Meltdown on a CentOS/RHEL/Fedora/Oracle/Scientific Linux Always keep backups. So backup now to an offsite location. Note the Linux kernel version running the following command: # uname -r Fix the Meltdown on a CentOS/RHEL/Fedora/Oracle/Scientific Linux Type the following yum command: # sudo yum update You must reboot your Linux server using shutdown/reboot Read more about Fix the Meltdown on a CentOS/RHEL/Fedora/Oracle/Scientific Linux[…]

How to Add a User and Grant Root Privileges with visudo on CentOS 6.7

Change to root $ su – Password: adduser mynewuser Now set the password for the new user: passwd mynewuser Step 2: Grant Root Privileges to the User For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor visudo Find the following code: ## Allow root to run Read more about How to Add a User and Grant Root Privileges with visudo on CentOS 6.7[…]

Adding Secondary IP Addresses CentOS 6.x

To add a secondary IP to CentOSnavigate to your /etc/sysconfig/network-scripts # cd /etc/sysconfig/network-scripts # ls -la -rw-r–r–. 1 root root 203 Dec 30 14:18 ifcfg-eth0 -rw-r–r–. 1 root root 230 Dec 30 14:59 ifcfg-eth1 The system has a public and primary IP. # nano ifcfg-eth0 DEVICE=eth0 HWADDR=00:0C:29:E7:7D:05 TYPE=Ethernet UUID=b9cbc9ab-d4a5-4ca8-9e3c-176c62102adc ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=static IPADDR=216.55.000.000 GATEWAY=216.55.169.1 NETMASK=255.255.255.0 Read more about Adding Secondary IP Addresses CentOS 6.x[…]

Imagemagick on CentOS and Plesk

root@server ~]# yum install ImageMagick [root@server ~]# yum install ImageMagick-devel PHP-imagick Installation: [root@server ~]# yum install gcc [root@server ~]# yum install make automake [root@server ~]# yum install php-pear [root@server ~]# yum install php-devel [root@server ~]# pecl install imagick On some servers yum install php-pecl-imagick.x86_64 Test: convert image.jpg -resize 64×64 resize_image.jpg

Change Hostname in CentOS

Open the /etc/sysconfig/network file with your favorite text editor. Modify the HOSTNAME= value to match your FQDN host name. # nano /etc/sysconfig/network HOSTNAME=myserver.domain.com Change the host that is associated to your main IP address for your server, this is for internal networking (found at /etc/hosts): nano /etc/hosts 192.xx.xx.xx myserver.domain.com Hostname The ‘hostname’ command will let Read more about Change Hostname in CentOS[…]

Yum update errors for ghost update

Running yum update on CentOS 6.2 produces errors: yum update Error: Package: matahari-host-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) Requires: libqpidclient.so.5()(64bit) Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) libqpidclient.so.5()(64bit) Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base) Not found Error: Package: matahari-service-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) Requires: libqpidcommon.so.5()(64bit) Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) libqpidcommon.so.5()(64bit) Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base) Not found Error: Package: matahari-agent-lib-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) Requires: libqpidclient.so.5()(64bit) Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2) libqpidclient.so.5()(64bit) Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 Read more about Yum update errors for ghost update[…]