Edventures in Normalcy

Wilford Brimley Remix

June 17th, 2011

Emailing output comand line

June 17th, 2011

I recently had to prove the update status of apache as part of a PCI scan, and the best method for obtaining the output, was to email it to myself, like so

rpm -q –changelog httpd | mail -s "Subject" user@example.com

This makes it much easier to review and handle large outputs without having to be on the original linux system.

I have a few tools I use to deal with the scripts, first I want to see if there are any perl scripts running:

ps aux | grep .pl | grep -v grep

Then I can kill them:

kill `ps aux | grep .pl | grep -v grep | awk '{print $2}'`

Sometimes with the -9:

kill -9 `ps aux | grep .pl | grep -v grep | awk '{print $2}'`

and sometimes for a specific user, again, the -9 flag can be used here as well

kill `ps aux | grep user | grep -v grep | awk '{print $2}'`

The Commercial seems very upbeat, but the actual song is rather downbeat. Below is the commercial:

Now, watch the music video, and listen closely to the lyrics:

This sounds upbeat, but is a sad song in the end. It reminds me of “I Don’t Love You Anymore” (1977) by Teddy Pendergrass. Sure it sounds like an upbeat song, but is rather sad.

::Installation::
1 Run the following command to check if Apache, PHP, MySQL, Bind or Cyrus are pre-installed by the OS:

rpm -qa | egrep '(http)|(php)|(cyrus)|(mysql)|(bind-utils)'

2 If any are installed they can cause issues with installing cPanel, although I have seen cPanel attempt to import settings. I would rather remove them:

yum remove http*
yum remove php*
yum remove mysql*
yum remove bind-utils*

3 Open the /home directory

cd /home

4 Fetch the latest installation file from the cPanel servers

wget -N http://httpupdate.cpanel.net/latest

::NOTE:: If you want to install the STABLE release, further details found here, as apposed to latest, run the following command:

echo "CPANEL=stable" > /etc/cpupdate.conf

5 Run the installation files

sh latest

Once done, it is time to configure this bad boy!

::Configuration::
*As seen in http://www.thecpaneladmin.com/skipping-whm-setup-wizard/ http://www.thecpaneladmin.com/skipping-whm-setup-wizard/

1 Touch this file to tell cPanel it is being automatically setup.

touch /etc/.whostmgrft

2 Configure the 3 main services for the server.

/scripts/setupmailserver dovecot
/scripts/setupnameserver disabled
/scripts/setupftpserver pure-ftpd

3 Replace the following strings [Server's Main IP], [user@example.com], [Servers FQDN Hostname], [hostname 1], [hostname 2], [hostname 3] with their appropriate values.
::NOTE:: Keep in mind this should be ONE line once you have updated the string below.

echo -e 'ADDR [Server's Main IP]\nCONTACTEMAIL [user@example.com]\nCONTACTPAGER\nDEFMOD x3\nETHDEV eth0\nFTPTYPE pureftp\nHOMEDIR /home\nHOMEMATCH home\nHOST [Servers FQDN Hostname]\nLOGSTYLE combined\nMINUID\nNS [hostname 1]\nNS2 [hostname 2]\nNS3 [hostname 3]\nNS4\nNSTTL 86400\nSCRIPTALIAS y\nTTL 14400' > /etc/wwwacct.conf

If you laugh, you lose:

 

 

Oldies:

 

Awesome:

 

Sorry, I just found Youtube has a history section:

 

That’s all for now!

And the winner was Donatello as the band was purple:

 

Look at this:

 

And:

bitcoin / bitcoinplus

Mt. Gox

Dwolla

Bank on it!

You go!:

Also, I am working on revamping my tools section, making the page more of icons, with sub sections and improving the ssl tools as a whole. I intend on adding a master conversion script made after https://www.sslshopper.com/ssl-converter.html and http://serversniff.net/sslcheck.php although the latter is down at the moment.

And thanks to a happy accident, the page no longer has the olive green post color I loved using so much for skin when coloring as a child. It looks cleaner and easier to read, but I will miss the old green.

Copyright © Edventures in Normalcy. All rights reserved.