Pages

Monday, January 26, 2015

SRV (service) record for DNS for Microsoft Windows clients


A Service record (SRV record) is a specification of data in the Domain Name System defining the location, i.e. the hostname and port number, of servers for specified services. Some Internet protocols such as
Session Initiation Protocol (SIP) and
Extensible Messaging and Presence Protocol (XMPP)
often require SRV support by network elements.


Edit DNS servers ZONE file for tayab.edu.bd

_sip._tls                                 IN      SRV 100 1 443    sipdir.online.lync.com.

_sipfederationtls._tcp          IN      SRV 100 1 5061  sipfed.online.lync.com.


If
 priority       = 100
 weight         = 1
 port           = 443
target svr hostname   = sipdir.online.lync.com
protocol = tls

 and

  priority       = 100
  weight         = 1
  port           = 5061
target svr hostname   = sipfed.online.lync.com
  protocol = tcp




Cecking SRV records:
===============
Check from DNS server:
------------------------------
 dig  _sip._tls.tayab.edu.bd   SRV
 dig  _sipfederationtls._tcp.tayab.edu.bd SRV


Check from Web: Go to
-----------------------------
http://mxtoolbox.com/
srv:_sip._tls.tayab.edu.bd


Check from PC
--------------------
nslookup -querytype=srv _sip._tls.tayab.edu.bd
nslookup -querytype=srv _sipfederationtls._tcp.tayab.edu.bd



Wednesday, January 21, 2015

VMware VM server in Linux



Install   vmware-server in Linux
By following step by step instructions

and this configure from    /usr/bin/vmware-config.pl

 Create Linux VLANs in VM server for virtual server’s use
Create Virtual Machins on https://serverip:8333
Setup Operating systems as needed like Mikrotik, Linux, Windwos etc.
Vmserver eth0 is Our  server VLAN (VLAN 2) Briged
and
eth1 goes to CISCO port which will trunk mode
and
switchprort access trunk allowed vlan all  

Thursday, January 15, 2015

php module error (module already loaded)



php module error
===============

IF----
php -v

PHP Warning:  Module 'imap' already loaded in Unknown on line 0
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0


---------- then go to php.ini file and put ; to the line

vi /etc/php.ini

;extension=imap.so
;extension=mcrypt.so

save and rest httpd

now php -v
no error......

============================

Wednesday, January 14, 2015

Website redirect / webpage redirect by html page and servers virtualhost




### We can do this by two way...
1) By adding a index.html page to the site for redirect to another site
2) By Adding some code in web-servers VirtualHost at httpd.conf file

we want to redirect www.example.com page to www.tayabkhan.info
Goto example.coms index.html file and code those

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=http://www.tayabkhan.info/">
        <script type="text/javascript">
            window.location.href = "http://www.tayabkhan.info/"
        </script>
        <title>Page Redirection</title>
    </head>
    <body>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow the <a href='http://www.tayabkhan.info/'>link to ABCXYZ</a>
    </body>
</html>


--------------------------------------

<VirtualHost serverip:80>
ServerAlias example.com
ServerAlias www.example.com
Redirect permanent / http://www.tayabkhan.info/
</VirtualHost>


----------------------------------------------------------
-------------------------------Enjoy This-----------------
----------------------------------------------------------


Tuesday, January 13, 2015

Widnows 7 pics thumnail not showing



If Widnows 7 pics thumnail not showing then


Goto

Control Panel ->
System ->
Advanced System Settings ->
Advanced- Performance - Setting
Visual Effect -

Thik mark to the
"Show thumbnails instead of icons"

And Apply and OK

============================

Sunday, January 4, 2015

cPanel default Scripts





easyapache
This powerful script allows you to compile, upgrade, and re-install Apache, PHP, and various modules. EasyApache makes it simple to compile Apache and PHP modules.
check_cpanel_rpms
The check_cpanel_rpms script validates cPanel-managed RPMs and provides a way to reinstall these RPMs if they have been altered.
*up
The *up script is used to manually update the various services on your cPanel & WHM server using various forms such as mysqlup, phpup and eximup. Although you can configure your services to update with cPanel, *up can be used for finer control.
restartsrv_*
The restartsrv_* script can be used to manually restart the various services on your cPanel server. This is the recommended method for restarting services through SSH.
addpop
The addpop script can be used to add email addresses through SSH. Through interactive prompts, addpop will create the new address and set the email address password under the proper user account.
delpop
The delpop scripts can be used to remove email accounts through SSH. Similar to the addpop script, delpop will remove the email address from the proper account.
wwwacct
The wwwacct script can be used to create accounts for your cPanel & WHM server. We’ve designed this script to allow you define common parameters used for account creation.
killacct
The killacct script can be used in similar fashion as the wwwacct script to automate removal of accounts.
restorepkg
The restorepkg script can be used to manually restore an account from backup.
cpbackup
When using cPanel & WHM’s legacy backup system the cpbackup script can be used to manually trigger system wide backups.
pkgacct
The pkgacct script is used within the cpbackup script and can be manually executed to create account specific backups.
upcp
The upcp script can be used to trigger the update process on your server. You can also configure whether you want server software and the OS updated by the upcp script.
setupmailserver
The setupmailserver script allows you to switch between courier and dovecot, or disable POP3 and IMAP functionality altogether.
setupftpserver
The setupftpserver script allows you to switch between pure-ftpd and proftpd, or disable ftp functionality altogether.
setupnameserver
The setupnameserver script allows you to switch between bind, mydns, and nsd, or disable nameserver functions altogether.
suspendacct
The suspendacct script can be used to automate suspension of accounts on your cPanel & WHM server.
unsuspendacct
The unsuspendacct script can be used to automate unsuspension of accounts on your cPanel & WHM server.
restartsrv_*
The restartsrv family of scripts can be used to restart various services on your cPanel & WHM server, such as Apache, Exim and Dovecot. For administration using the command line, this is the preferred method for restarting services. For a complete list please consult our documentation. Included are:
restartsrv_apache
restartsrv_bind 
restartsrv_dnsadmin 
restartsrv_mailman
*up scripts
rpmup
sysup

Not saving commands to history in Linux




Not saving commands to history in Linux
--------------------------------------


 echo $HISTCONTROL

if "ignorespace" not found then execute a command

export HISTCONTROL=ignorespace

------------
 Now give the command with a spcae

root# ls    not  root#ls
root# cat /etc/hosts

now With  a spcae command will not save in history file
and enjoy this............@tayab-Khan


-----------------------------
============================== altername methods

unset HISTFILE
disable history for current shell session
this will cause any commands that you have executed in the current shell session to not be written in your bash_history file upon logout


ssh user@hostname.domain "> ~/.bash_history"
Don't save commands in bash history (only for current session)


HISTFILE=
disable history for current shell session

Saturday, January 3, 2015

webmin virtualmin ip / hostname / servername change



webmin virtualmin hostname servername change
====================================

vi   /etc/hosts

203.190.xx.xx   securemail.tayab.com
203.190.xx.xx   mail.securemail.tayab.com


/etc/init.d/webmin restart

Now:: from browser: 203.190.xx.xx:10000

It will redirect to

 https:securemail.tayab.com:10000

========================

Media / FTP / File server in Linux


### Install a HTTP server
give appropriate permissions of directory documentroot
and create an HTML page like bellow


=========================
<!DOCTYPE html>
<html lang="en">
<head>
<title>XYZ Ltd. Media Server</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_400.font.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_700.font.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_600.font.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="js/ie6_script_other.js"></script>
<script type="text/javascript" src="js/html5.js"></script>
<![endif]-->
</head>
<body id="page1">
<!-- START PAGE SOURCE -->
<div class="main">
<header>
<img src="images/abc-me.gif" alt="Daffodil Online Ltd. Media Server" style="width:914px;height:78px">
<a "images/flash.swf" >
</header>
<section id="content">
<div class="wrapper">
<div class="wrapper">
<ul class="banners">
<li> <a href="../movie/"><img src="images/page1_img1.jpg" alt=""></a>
<div class="pad">
<a href="../movie/"> <p class="font1">Movies</p></a>
<p>Click here for all types of Movies (Hollywood, Bollywood, Dhaliwood) </p>
</div>
</li>
<li> <a href="../natok/"><img src="images/page1_img2.jpg" alt=""></a>
<div class="pad">
<a href="../natok/" <p class="font1">Natoks</p> </a>
<p>Click here for Bangla Natoks</p>
</div>
</li>
<li> <a href="../os/"><img src="images/page1_img3.jpg" alt=""></a>
<div class="pad">
<a href="../os/"> <p class="font1">Softwares</p> </a>
<p>Click here for Operating system and Other Softwares</p>
</div>
</li>
<li> <a href="../song/"><img src="images/page1_img4.jpg" alt=""></a>
<div class="pad">
<a href="../song/"> <p class="font1">Songs</p> </a>
<p> Click here for Bangla, English and Hindi Songs</p>
</div>
</li>
</ul>
</div>
<div class="wrapper">
<div class="box bot pad_bot2">
<div class="pad">
<article class="col1">
<h2>About Daffodil Online Ltd.</h2>
<strong>Daffodil Online Ltd.</strong> iprides itself as one of the leading ISP Service Provider in Bangladesh.
We are the most experienced and oldest company in the ICT field where our basic business ethics is Long Term Relationship with our customers.
<div class="wrapper">
<figure class="left marg_right1 marg_top2"><img src="images/page1_img5.jpg" alt=""></figure>
<p class="marg_top">As we look at the growth over the decade since our inception,
we are extremely proud of what we have achieved, and even more excited about our outlook for an equally promising future.</p>
</div>
<p>It may please you to know that we started our operation in the year 2002.
During the past years, we extended our operation and service portfolio according to the customer’s recommendation and
considering demands of time. We worked with many national projects and international organizations and achieved the reputation.
We are using the latest technologies and upgrading the services wherever it is required.
Our Corporate Network Solution department is capable to provide state-of-art network and telecommunication solutions
with a highly efficient technical expertise group.
</article>
<article class="col2 pad_left1">
<h2>Live Radio</h2>
<div class="wrapper">
<div class="wrapper pad_bot1">
<figure class="left marg_right1"><a href="#"><img src="images/fmradio0028.gif" alt=""></a></figure><p>বাংলা অনলাইন রেডিও</p>
<script type='text/javascript'>
var site_id = 1;
var radio_width = 235;
var radio_height = 155;
</script>
<script type='text/javascript' src='http://radio.amarputhia.com/free/script.js'></script>
<div class="wrapper pad_bot1">
<p>Music For Every Moment</p>
</div>
</article>
</div>
</div>
</div>
</div>
</section>
<footer>
<p class="lf">Copyright &copy; 2014 <a href="#">Daffodil Online Ltd.</a> - All Rights Reserved</p>
<p class="rf"><a href="http://serverip/">Designed</a> by <a href="http://serverip">Tayab Khan</a></p>
<div style="clear:both;"></div>
</footer>
</div>
<script type="text/javascript"> Cufon.now(); </script>
<!-- END PAGE SOURCE -->
</body>
</html>

====================================================

Thursday, January 1, 2015

Juniper OS update





############################################################

## Put the OS file osname.tar  in /var/tmp/ by ssh login

## go to the console

request system software add no-copy no-validate /var/tmp/osname.tar


######################## wait until reboot ##################
###########################################


##################################################
Enable FTP server from configure mode

# set system services ftp
# commit

and upload any file using Filezilla FTP client to Juniper
Use  any username and passowrd by created
(#set system login user tayab class super-user
#set system login user tayab authentication plain-text-password)

*** Upload file will find from shell

tayab@MX> start shell
% cd /var/home/tayab
% ls
% mv osname.tar /var/tmp

** You will find your file ***
** Finally run bellow command

> request system software add /var/tmp/junos-srxsme-10.0R2-domestic.tgz no-copy no-validate reboot


request system reboot

#####################################################

cPanel mysql process





tail -f /var/lib/mysql/cpanel.domain.com.err
Home »SQL Services »Show MySQL Processes
To see illegal mysql processes running or not


cat /etc/my.cnf
[mysqld]
innodb_file_per_table=1
open_files_limit=36000
max_allowed_packet= 128M
innodb_buffer_pool_size=1342177288