Sunday, April 13, 2014

Set up a Remote Desktop Connection to Windows Server 2012

Configuring remote desktop connection to windows servers is tricky.In this tutorial I will describe how to do it with minimum steps

1)Allow RDP Connection


Goto "Control Panel\All Control Panel Items\System"
then click "Remote Settings" and select "Allow remote connection to this computer" and apply it by clicking "ok" button.


Windows server Remote settings

































2) Turn On network discovery


go to "Control Panel\All Control Panel Items\Network and Sharing Center" and select
"Change advanced sharing settings" and then select "Turn on network discovery"
Sometimes this change will not affect if following services are not running.To make sure whether changes apply, again follow the above steps and check "Turn on network discovery" is selected or not. If it is not you have to start Network Discovery Supporting Services

Network Discovery Supporting Services
  •  DNS Client
  • Function Discovery Resource Publication
  • SSDP Discovery
  • UPnP Device Host

to Enable those services goto "Control Panel\All Control Panel Items\Administrative Tools"
and open "Services" and start above 4 services .


Windows server services








Windows server services

















3) Configure Firewall






  •  If you can't ping server from remote host


open Firewall and select "Inbound Rules" and find "File and Printer sharing (Echo Request - ICMPv4-In)" and Enable that Rule

File and Printer Sharing - ICMP - Windows Firewall



  • Enable RDP port on Windows Server


Sometimes remote machine can ping to server but unable to establish "Remote Desktop connection", in that case RDP port should be enabled/opened on Windows Server.

Right click "Inbound Rules" and select "New Rule" and Wizard window will be opened.
you need to select or fill attributes in wizard windows as below.


Windows server Firewall New Inbound Rule Wizard




























Rule Type --> Port
Protocol and Ports --> TCP , Specific local ports:3389
Action --> Allow the connection
Profile --> Tick all profiles or select as you wish (By default every ting is ticked)
Name --> Give meaningful name like "enable-port-3389-RDP"

Finally enable that rule as well



4 ) Start Remote Desktop connection


Now go to remote computer and start "Remote Desktop connection" as below screen capture.

Remote Desktop connection








Remote Desktop connection - Certificate


Friday, February 21, 2014

Change ScureCRT default terminal emulation type


The  SecureCRT  default terminal "Delete" button does not function properly instead it works like backspace key. This is painful when need delete characters after current prompt.In this tutorial shows you how to overcome this problem by changing default terminal. The SecureCRT provides different types of terminals such as Xterm, Linux etc...  

1) open SecureCRT 

then choose Options -> Global Options.

2)Then following sub windows is appeared.

select "Default Session" and click "Edit Default Settings ..."








 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3) After that second sub window will be appeared as below.


click on "Emulation" and choose "Xterm" from drop down.
then click ok to apply the changes.


























4)Now it is done. restart the SecureCRT and try ..!!

 

 

Monday, December 16, 2013

Install Packages via yum using CentOS Media repo

when need to install new packages using yum, you can use either online repo or dvd repo. If there is no internet connection, possible solution is DVD repo. Here is simple way to configure DVD repo on Centos.

1) View Centos media repo file.

Since I use Centos 6.3 it is similar to following.you can use either less or cat command to view the file content. Some  lines are removed due to brevity

less /etc/yum.repos.d/CentOS-Media.repo
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


give more attention to following parameters
repo name -> c6-media
baseurl -> there is 3 file paths, those are the mount point of Centos DVD. you can customize it.




2) Create mount point if not exist

since this is demo, I create DVD mount location as first base URL. possible use any location which is defined in baseurl.
[root@localhost ~]# mkdir /media/CentOS


3) mount centos cdrom

mount /dev/cdrom /media/CentOS/

4)Install your package using yum

yum --disablerepo=\* --enablerepo=[repo name] install [pakage name]

ex:-
yum --disablerepo=\* --enablerepo=c6-media install cpan

if this is not working, you may need to clean repo using following command
[root@localhost ~]# yum clean all

Related Posts