Category Archives: Linux

Freenas issue when replacing failed disk

When replacing a failed hard disk from the GUI you get the following error: “Unable to GPT format the disk ada…”. From the command line: sysctl kern.geom.debugflags=0x10 dd if=/dev/zero of=/dev/ada3 bs=512 count=1

Posted in Linux | Comments Off on Freenas issue when replacing failed disk

Install Zabbix on Centos 7

Zabbix requires Apache-Mysql-PHP stack to be installed in order to run. You can follow this previous post. Let’s download and install Zabbix rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent We have to edit timezone in /etc/httpd/conf.d/zabbix php_value date.timezone Europe/Athens … Continue reading

Posted in Linux | Leave a comment

Install LAMP and WordPress on Centos 7

Install Mysql (MariaDB) and set password yum -y install mariadb-server mariadb systemctl start mariadb.service systemctl enable mariadb.service mysql_secure_installation Install Apache yum -y install httpd systemctl start httpd.service systemctl enable httpd.service Open ports in firewall firewall-cmd –permanent –zone=public –add-service=http firewall-cmd –permanent … Continue reading

Posted in Linux | Leave a comment

Setting timezone on CentOS

Timezone data files are stored on: /usr/share/zoneinfo   $ sudo rm /etc/localtime $ sudo ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime # # now check it's ok # $ date Wed Oct 1 12:42:33 GMT 2008

Posted in Linux | Comments Off on Setting timezone on CentOS

Stop Bind from performing forward lookups using IPv6

You may get logs similar to the following: Sep 17 16:15:07 nsserver named[21089]: network unreachable resolving ‘ns2.vistaprint.com/A/IN’: 2001:503:a83e::2:30#53 You can specify OPTIONS=’-4′ in /etc/sysconfig/named to tell named not to use IPv6 or disable IPv6 completely on your machine. You can … Continue reading

Posted in Linux | Comments Off on Stop Bind from performing forward lookups using IPv6

Useful Linux Commands

In order to add additional repositories on your Centos you have to run: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm This command for example will add the EPEL repository. You can find additional repositories on http://wiki.centos.org/AdditionalResources/Repositories ——————————————————————————————- Searching for packages with yum: yum list … Continue reading

Posted in Linux | Comments Off on Useful Linux Commands