Tuning tmpfs filesystem /dev/shm for CentOS — centoshacker
avatar

I didn’t know that this was allocating ram like this…

Tuning tmpfs filesystem /dev/shm for CentOS — centoshacker.

Posted in CentOS, News | Leave a comment

Break out of an SSH Session which has hung
avatar

Sometimes when a ssh session crashes you are stuck waiting for a long time-out to take place.  Instead of waiting you may be temped to just close the window, but instead you should enter in the following key sequence:

ESC ~.

That will get you back to the prompt before you signed into the ssh session.

Posted in Linux | Tagged | Leave a comment

HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
avatar

I thought that this was a great write up of how to use logrotate

HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples.

Posted in Apache, Linux, News | Leave a comment

Setup Sendmail to Forward Email to your ISP’s SMTP Server
avatar

It is very easy to setup sendmail so that it will pass your email off another smtp server instead of just sending it directly.  This would be required when your ISP doesn’t allow you to sendmail without passing it through their servers.  You would need to edit /etc/mail/sendmail.mc and then just does a restart of sendmail:

define(`SMART_HOST’,`smtp.myisp.net’)
MASQUERADE_AS(`dbaron.org’)
FEATURE(masquerade_envelope)

Make sure you remove the “dnl” from the beginning of the line as that is the way sendmail comments out the lines.

Posted in Guides, Linux, News | Tagged , | Leave a comment

Email Results from the Command Line
avatar

If you have ever wanted to email yourself the results of commands you have run from the Linux Command Line, it is very easy.  This is especially great for reports.  All you need to do is make sure that sendmail on your box is setup to send mail and then you can just pipe your command to the mail command like below:

ls -lta | mail -s “LS of Directory” [email protected]

That will send an email to [email protected] with the subject of “LS of Directory” and it will have the results of the ls -lta on that directory.

Posted in Guides, Linux | Leave a comment