Tuesday, July 9, 2013

yum to use a proxy server

Edit /etc/yum.conf

# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty

Monday, July 8, 2013

Squid Proxy For Windows

1. Download squid for windows from 
     http://squid.acmeconsulting.it/download/squid-2.7.STABLE8-bin.zip

2. Unzip to c:\ 

3. Rename config files located in c:\squid\etc as below
  • cachemgr.conf.default -> cachemgr.conf
  • mime.conf.default -> mime.conf
  • squid.conf.default -> squid.conf
4. Define a ACL for your network and allow http access to it
    acl my_network src 192.168.1.0/24
    http_access allow my_network
    
 Open CMD as administrator and do the following:
    cd c:\squid\sbin
    squid.exe -i     
    squid.exe -z

5. Start the service from Services

6. Allow TCP port 3128 in the Firewall.

Thursday, July 4, 2013

VMWare - Alert icon but no alarms

Remove VM from inventory and attach it again.

WCF in Windows 2012 IIS8

You want to activate WCF in IIS8? Do the following:
Server Roles
  1. Enable IIS function and .net 3.5 in Features.
    For the IIS features, please remember to enable ASP.NET3.5 and ASP.NET 4.5
  2. Enable the IIS Hostable WebCore
  3. Check Application Sever->Web Server (IIS) Support
In the freatures,
  1. Check all items in .NET 3.5
  2. Check WCF Service in .NET 4.5
Register the WCF Service from admin command line
C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe –i

Install .Net framework 3.5 in Windows Server 2012

1. You have to insert Windows Server 2012 DVD or iso to D drive. 
2. Open Add Roles and Features Wizard
3. Select .NET Framework 3.5 Features and then click next,
4. Select Specify an alternate source path link in the Confirm installation selections screen.
5. Path: D:\Sources\SxS and then click OK.
6. Finally click Install button.

Wednesday, July 3, 2013

Activate Windows 2012 Server Manually

How to activate Windows 2012 in command prompt
slmgr -ipk XXXX-XXXX-XXXX-XXXX (this installs the new Product Key)