Skip to main content

Home/ ProGauge SCADA/ Group items tagged system

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

Tips for XenServer Stability - 0 views

  • There's a timeout parameter used by NTP that if things get out of sync by too much, it won't sync them at all.
  • The default is something low, I think just 128 msec, which is pretty small under some circumstances.
  • edit the /etc/sysconfig/ntpd on the control VM to sync hardware. Default is no. Once done, please cycle ntpd. You will see an extra line for hardware clock. If possible, all VMs and XenServer should use a local physical time server.
    • Kevin Mershon
       
      Changing the system clock settings does not seem to have had any effect on the server's behavior.
  • ...1 more annotation...
  • if you have 4 VCPUs assigned to a guest, the guest would need to wait until 4 cores (physical) are free before it can access the CPU directly
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
Kevin Mershon

MySQL database on Linux Tutorial - 0 views

  • One may manually initialize the database with the command: /usr/bin/mysql_install_db Creates system tables in /var/lib/mysql/mysql/ Only execute the first time MySQL is installed. Databases located in: /var/lib/mysql/
Kevin Mershon

[#GRAILS-3138] Use a separate sequence for each table - Grails JIRA - 0 views

  • define "id generator:'sequence', params:[sequence:'mydomain_id_sequence']" on each of your domain classes.
Kevin Mershon

How to install vim with clipboard support on Fedora? - Super User - 0 views

  • vim in Fedora is compiled without any X support in order to minimize the number of dependencies it has
  • gvim -v
  • alias vim='gvim -v'
  •  
    Alias "vim" as "gvim -v" to fix this.
1 - 8 of 8
Showing 20 items per page