www.question-defense.com | Login/Register
Translate to English Übersetzen Sie zum Deutsch/German Переведите к русскому/Russian Μεταφράστε στα ελληνικά/Greek Vertaal aan het Nederlands/Dutch ترجمة الى العربية/Arabic 中文翻译/Chinese Traditional 中文翻译/Chinese Simplified 한국어에게 번역하십시오/Korean 日本語に翻訳しなさい /Japanese Traduza ao Português/Portuguese Traduca ad Italiano/Italian Traduisez au Français/French Traduzca al Español/Spanish

Posts Tagged “grep”

This is just a brief howto about installing and configuring NTPD (Network Time Protocol Daemon) on a Linux server which in this case is specifically NTPD. First we will install ntpd, then update the current time on the server, configure ntpd to restart on server boot, and then start ntpd.

  1. Install NTPD: Run the below command to install ntpd via yum.
  2. [root@server ~]# yum install ntp
    

    Read the rest of this entry »

    Tags: , , , , , , , , ,

Comments No Comments »

Follow the below directions to turn off selinux on a CentOS server. SeLinux can cause many issues and if your server is behind a properly configured firewall as well as the systems administrator only opens necessary ports that are configured properly your risks should be minimal.

  1. Modify selinux Configuration:Modify the selinux config file by issuing the command below and changing the SELINUX option to disabled as shown below.
  2. [root@server ~]#vi /etc/selinux/config
    

    Read the rest of this entry »

    Tags: , , , , , , ,

Comments No Comments »

If you are in process of installing the NRPE daemon as an xinetd service for Nagios monitoring capabilities you may run across this error in /var/log/messages.

If you have started xinetd by typing the following:
shell# /etc/init.d/xinetd start

but you do not see the NRPE service listening by using netstat:
shell# netstat -an | grep 5666

Read the rest of this entry »

Tags: , , , , , , , , , ,

Comments No Comments »

If you want to see the actual active lines from a configuration file in Linux you can exclude any lines with comments by issuing the below command.

shell# cat /etc/postfix/main.cf | grep -v “# *”

If you also want to exclude the blank lines from the file use this command.

shell# cat /etc/postfix/main.cf | grep -v “# *” | grep -v “^$”

Sometimes that does not catch every line so add one more grep to exclude the lines that does not catch like this.

shell#cat /etc/postfix/main.cf | grep -v “# *” | grep -v “^$” | grep -v “  “

Tags: , , ,

Comments No Comments »

I had created a script to run ask for a couple CLI arguements and then run httperf against a server. The goal was to load test a server for HTTP and for HTTPS. I added the –ssl switch but could not verify a couple things including if httperf had been compiled with SSL support or if the –ssl was working at all.

1. Was httperf installed with SSL support?
This is an easy one. If the –ssl option exists then your httperf was compiled with SSL support. I wasn’t sure since I installed httperf via YUM in CentOS. I also tested by compiling myself and both versions had SSL support. If you do compile yourself you can check compile-dir/config.status and see if SSL support compiled properly.
Read the rest of this entry »

Tags: , , , , , , , , ,

Comments No Comments »