Tuesday, November 20, 2012

Installing ConfigServer Firewall (CSF)

http://configserver.com/cp/csf.html

If you get the following error during installation:
Checking Perl modules...
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/csf /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 19) line 2.
BEGIN failed--compilation aborted at (eval 19) line 2.
Then you need to install perl-libwww-perl package (as well as its prerequisites).
yum install perl-Compress-Zlib perl-HTML-Tagset perl-URI perl-HTML-Parser perl-libwww-perl

Friday, November 16, 2012

OpenVZ VPS CentOS Linux setup notes

OpenVZ VPS running CentOS Linux, setup notes:

To change the timezone:
[root@voyager asterisk-1.8.18.0]# date
Sat Nov 17 06:12:49 MSK 2012
[root@voyager etc]# ln -sf /usr/share/zoneinfo/EST /etc/localtime
[root@voyager etc]# date
Fri Nov 16 22:13:52 EST 2012
Make sure to restart your VPS and also check the syslog daemon that it has its time properly. I noticed I had to restart the syslog daemon service to get the date and time updated.
service syslog restart

Tuesday, September 11, 2012

How to determine the version of Exchange and Exchange Service Pack level

http://support.microsoft.com/kb/152439

Also try running the following commandlet from an Exchange Management Shell:
Get-ExchangeServer -Identity ExServer1 | Format-Table Name, AdminDisplayVersion
Full list of the Exchange Server Updates with build numbers and release dates:
https://technet.microsoft.com/en-us/library/hh135098(v=exchg.150).aspx 

Sunday, September 9, 2012

Create Self-Signed Certificates for Exchange 2010

http://careexchange.in/how-to-use-a-self-signed-certificate-in-exchange-2010/

Also make sure to download the CA root certificate from step 16 and install the CA Root Cert onto all client computers.

Hyper-V 2012 Notes

To enable PING on Hyper-V Server 2012:
netsh firewall set icmpsetting 8
To enable File & Printer Sharing through filewall:
netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=Yes
To install .NET Framework 3.5 on Hyper-V Server 2012:
dism.exe /online /enable-feature /featurename:NetFX3ServerFeatures
dism.exe /online /enable-feature /featurename:NetFX3
To get a list of features on Hyper-V Server 2012:
dism.exe /online /Get-Features
Utility to backup virtual machines running on Hyper-V Server:
http://hypervbackup.codeplex.com
Create a Scheduled task to run daily at 10pm:
schtasks.exe /Create /SC DAILY /ST 22:00 /TN BACKUP /TR c:\pathto.cmd

Tuesday, August 7, 2012

How to setup a custom port for Smarthost in SBS2008

Here is how you can set up a custom SMTP port when using a Smarthost in Small Business Server 2008.

  1. Log into the server with administrative rights.
  2. Click on Start -> All Programs -> Microsoft Exchange Server 2007 -> Exchange Server Console.
  3. Click on Organization -> Hub Transport -> Send Connectors tab.
  4. Make a note of the name of your send connector (ex. Windows SBS Internet Send SERVERNAME)
  5. Click on Start -> All Programs -> Microsoft Exchange Server 2007, then right click on Exchange Server Shell and select open as administrator. Accept the UAC prompt
  6. Type in the following command: set-sendconnector –identity ‘Windows SBS Internet Send SERVERNAME’ –port 465
  7. Port 465 must match the Smarthost settings.

Thursday, June 7, 2012

How to receive an e-mail alert when your linux server or linux VPS restarts

Here is a quick tip on how to receive an e-mail alert if your linux server or linux VPS restarts:

1. Log into your linux server or VPS using ssh.
2. Type in crontab -e into the commandline.
            Depending on the default text editor, it could be nano or vi. Here are the directions for vi:
3. Press insert button on your keyboard.
4. Then type in @reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" you@yourdomain.com
5. Then type in :wq to save and quit the vi text editor.

If your default text editor is nano, then the commands to type in are:

3. Find a new line or create one by pressing the Enter key.
4. Now type in on one line:
@reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" you@yourdomain.com
5. Then press CTRL and X on the keyboard to save.
6. Press Y to save the changes. Press Enter to exit.

If you want to send the e-mail to multiple people, edit the line to show this instead:
@reboot echo "Rebooted, now online" | mail -s "`hostname` REBOOTED" -c "user2@yourdomain.com" you@yourdomain.com

Now you will receive an e-mail alert when your server or VPS reboots. Very handy in troubleshooting issues with your VPS provider or your own server.