Skip to main content

Home/ ProGauge SCADA/ Group items tagged centos

Rss Feed Group items tagged

Kevin Mershon

Exim on CentOS - 0 views

  • yum update
  • yum install exim yum install system-switch-mail
  • system-switch-mail service sendmail stop service exim start chkconfig exim on chkconfig sendmail off
  • ...3 more annotations...
  • Then add this before the “dnslookup:” section. to_smart_host: driver = manualroute domains = ! +local_domains transport = remote_smtp route_list = “* mail1.example.com:mail2.example.com;”
  • service exim restart
  • echo “test” |mail -s “$HOSTNAME” me@example.com
Kevin Mershon

:: b l a c k o n s o l e :: » :: install epel repository on centos 5.6 - 0 views

  • rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Kevin Mershon

Installing Ruby and RubyGems on Centos 5 | Simb & Company - 0 views

  • yum install -y ruby yum install -y ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc
Kevin Mershon

pjwelsh's mostly geek musings: Linux RHEL/CentOS 5.5 PHP 5.3 upgrade made easy - 0 views

Kevin Mershon

CentOS how to change hostname? - 0 views

Kevin Mershon

Citrix Forums: Centos 6 - 0 views

  •  
    mount /dev/xvdd /mnt rpm -Uhv /mnt/Linux/xe*x86_64.rpm umount -fl /dev/xvdd
Kevin Mershon

Re: [monit] Monit 5.0.2 question - 0 views

  • The problem is that there is no reliable way how to get correct FQDN. There is unreliable interface getdomainname() which returns on many platforms empty string or often default domains like "localdomain", "mydomain" when no other specific domain was set during system installation. The getdomainname() takes the value on some platforms from sysctl, on other platforms from file in /etc/ and on other platforms it's completely ignored. The name service lookup is not reliable as well - it depends on how the name service was set (usually NSS switch uses local files first which often have the shortname in front of longname for the given IP address and thus return often shortname first).
  • set mailserver foo.bar.baz using hostname "my.monit.host"
Kevin Mershon

Firewall blocking NFS even though ports are open - 0 views

  • 1. Create the file "/etc/sysconfig/nfs" and add the following contents: STATD_PORT=4001 LOCKD_TCPPORT=4002 LOCKD_UDPPORT=4002 MOUNTD_PORT=4003 2. Append the following to the file "/etc/services": rquotad 4004/tcp # rpc.rquotad tcp port rquotad 4004/udp # rpc.rquotad udp port 3. Restart the nfs services:
  • Open up the following ports (tcp and udp) on the Fedora firewall. Do this either using the "Security Level" app in "System Settings" or using the command line iptables command (think it's in /sbin/): 111:tcp, 111:udp, 2049:tcp, 2049:udp, 4001:tcp, 4001:udp, 4002:tcp, 4002:udp, 4003:tcp, 4003:udp, 4004:tcp, 4004:udp
  • edit Code: /etc/sysconfig/nfs uncomment the default ports: Code: LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STATD_PORT=662 Add those ports to your firewall rules: edit Code: /etc/sysconfig/iptables Code: # NFS -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 32803 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 32769 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 32769 -j ACCEPT Restart the services: Code: /etc/init.d/iptables restart /etc/init.d/nfs restart /etc/init.d/nfslock restart
1 - 12 of 12
Showing 20 items per page