Friday, December 12, 2014

Apache Name Based Virtual Hosting + DNS Server

1. DNS Server / Wamp Server : (192.168.172.14)
  1. Install-Configure DNS Server
  2. Create Primar Zone “aview.org”
  3. Create two host file edx and studio and its should be pointed to same DNS Server IP
        edx.aview.org         ---->   192.168.172.14
studio.aview.org     ---->    192.168.172.14
  1. Install Wamp Server and make it should be working condition
  2. For Virtual hosting And Proxy Passing, Add the below mentioned modules in httpd.conf file
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so
  1. Modify the httpd.conf again
                under "# Virtual hosts", uncomment “#Include conf/extra/httpd-vhosts.conf”
screenshot of .httpd.conf file
                                        This tells Apache to include the file "httpd-vhosts.conf" (the file where we set our virtual hosts) when configuring its settings.
  1. Virtual Hosting In Apache: Edit the httpd.conf and add the lines
  ServerAdmin edx.aview.org
  ServerAlias edx.aview.org       
    ProxyPass / http://192.168.172.100/
    ProxyPassReverse / http://192.168.172.100/
    ServerAdmin studio.aview.org
    ServerAlias studio.aview.org       
    ProxyPass / http://192.168.172.100:9080/
    ProxyPassReverse / http://192.168.172.100:9080/
2. Web Server - Tomcat Running Server (192.168.172.100)
  1. Install Wamp And Tomcat Properly
  2. Configure Wamp Listen Port 80 and Tomacat listen port 9080
  3. Normally Wamp Listen locally.So Make it accessible from other machines.For this Edited the httpd.conf
   
    AllowOverride none
    #Require all denied
Allow from all
#Require local
Allow from all
3   Client  1 (192.168.172.1)
Check in Browser :- http://edx.aview.org   And    http://studio.aview.org

Installing And Configuring DNS Windows 2K3

                                   The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It translates domain names, which can be easily memorized by humans, to the numerical IP addresses needed for the purpose of computer services and devices worldwide.
                                     A DNS name server is a server that stores the DNS records for a domain name, such as address (A or AAAA) records, name server (NS) records, and mail exchanger (MX) records     
Installation Of DNS                         
1. Click Start --> Settings --> Control Panel → Add/Remove Programs --> Add/Remove Windows Components.
2. In Components, select Networking Services and then click Details.
3. In Subcomponents of Networking Services, select the Domain Name System (DNS) check box,
Creating a forward lookup zone
1. Click Start --> Programs --> Administrative Tools --> DNS.
2. Expand the DNS server  → Right-click the Forward Lookup Zone folder and choose New Zone.
3. Ensure that Standard Primary Zone is selected and Enter Zone Name : (eg:- aview.org)       
4. Create a Host (eg:- ictops) with Valid IP on the zone- aview.org.So the FQDN name is ictops.aview.org    
5. For testing just PING to the domain name :- ping  ictops.aview.org

Tuesday, December 9, 2014

Setting Passwords On CISCO Router/Switch

Set the Enable Password
ictops>enable
ictops#conf t    
ictops(config)#enable password password
Set Secret Password
           ictops(config)#enable secret password 
Set User Mode Password (Console Password)
        ictops(config)#line console 0
ictops(config-line)#password password
ictops(config-line)#login
Change All Passwords In Encrypted Format
           ictops(config)#service password-encryption 
Disabling the Enable and User Mode Passwords
For Disabling the Enable Password :-   ictops(config)#no enable password password
For Disabling the Console Password :- ictops(config-line)#no password password

Wednesday, November 5, 2014

Disable Or Remove Gmail Account From Android

                           Go to Settings->Accounts & Sync and touch your gmail account. It will show you options of what you can sync (Books, Calendar, Contacts, Gmail, Music). Touch the Gmail one and it won't sync your gmail account with that device.

Monday, November 3, 2014

Change Sender Name In mailx

                                     For Changing the Default sender name (the default address like root) in mailx, use the  following syntax
Syntax:-mailx -s "Subject" To Mail Address -- -r From Mail Address -F “Sender Name”
Eg:-  mailx -s 'Disk Space Alert' itteam@gmail.com  -- -r ictops@aerl.in -F "ICTOPS"
Where
-s is the subject
-r is the reply address
-F is the Full name of the sender
Output :-
from:     ICTOPS
to:     jaganponnus@gmail.com,
        aneeshktramrita@gmail.com
date:     Mon, Nov 3, 2014 at 12:38 PM
subject:     Disk Space Alert

Change Sender Mail Address In mailx

                          For Changing the Default sender mail address (the default address like root@ubuntu.com) in mailx, use the  following syntax
Syntax:-mailx -s "Subject" To Mail Address -- -r From Mail Address
                            The Usage info shows "[-- sendmail-options ...]" and since "-r" is a sendmail option, you need to use the double dashes first.
Eg:- mailx -s 'Disk Space Alert' itteam@gmail.com -- -r ictops@aerl.in << EOF

Quickly Make A Large File In Ubuntu

If you want to create a 10 GB File, follow the steps below listed
root@ubuntu:~# time dd if=/dev/zero of=large bs=10G count=1
dd: memory exhausted by input buffer of size 10737418240 bytes (10 GiB)
real    0m0.002s
user    0m0.000s
sys     0m0.000s
root@ubuntu:~# du -B 1 --apparent-size large
0       large
root@ubuntu:~# du -B 1 large
0       large
root@ubuntu:~# time fallocate -l 10G large
real    0m0.091s
user    0m0.000s
sys     0m0.008s
bloggerwidgets