Change RDP listening port without System Reboot

In CategoryWindows, Windows Server Technology
Bysreekanth

——————————————

We can easily change remote desktop listening port to some other port than the default 3389.

By default RDP listens on TCP 3389. Once we change this port to some other port , We may need to restart the system to activate the new listening port .

open registry editor and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Then click on PortNumber and select radio button Decimal which will show value in Decimal. Now enter a desired port number and close the registry editor.
RDP_REG_EDIT

RDP_SERVICES_RESTART
To activate this new port , press Windows+R on keyborad which opens up run window. Type services.msc in run window and press enter now we can restart “Remote Desktop Services” from Sevices list . This will cause any existing remote desktop connection to close and one may need to reopen remotedesktop on new port by entering IPADDRESS:NEWPORT on Remote Desktop client (mstsc)

Configuring Local RPM repository on RHEL and Cent OS

In CategoryLinux
Bysreekanth

———————————————————–

Sometimes we may need to install a bunch of rpm files at once . If we configure local yum repository , we can install all rpm files at once with yum command.

If a vendor is frequently updating the packages in the remote repository and you just want to stick with old packages , then you can download all rpm packages from teh vendor remote base URL and add them to local repository and then run yum install package.

To create a rpm repository first install “createrepo” package by running yum install createrepo

make a directory where you want to copy all rpm files.

# mkdir /My_repository

# cp from_rpms_directory/* /My_repository

Now run command

#createrepo /My_repository

Add repository file in /etc/yum.repos.d/

#vi /etc/yum.repos.d/my_app.repo

then add the entries like

[my_app]
name=My application from local repository
baseurl=file:///My_repository/
enabled=1
gpgcheck=0

Now we can issue yum command to install my_app package

# yum install my_app

If you have a web server running ,you can upload rpm files to the web directory and just replace file:// with http:// .

this way you can share this repository with other servers when you needed .

example baseurl=http://mywebserver_ip/repo/ .

Resolving issues after cloning Virtual box virtual machine

In CategoryGeneral
Bysreekanth

Some times we may encounter few issues with cloned virtual machines at start up .

After cloning a linux Guest I tried to increase memory and started it but it is failed with an error message

Failed to open a session for the virtual machine

VT-x is not available.(VERR_VMX_NO_VMX).

Details

Result Code:
E_FAIL (0x80004005)
Component:
Console
Interface:
IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}
vmbox_error

I just changed RAM size back and started it then increased RAM (We need to shut down virtual machine to change it).

I think this issue can be fixed by also changing entries in vbox settings file , this file can be found in Virtualbox directory on host machine. We can open it with a text editor and make changes .

Cloned machine may not be able to start network interface at startup.My guest OS was showing just loopback interface after startup .
I just changed mac address of new cloned device to match with it’s own macadderss in file /etc/sysconfig/network-scripts/ifcfg-eth0 .
Network interface settings file location is different in other Linux distro for example ubuntu,debian will have network settings in /etc/network/interfaces file. I also changed mac address in /etc/udev/rules.d/70-persistent-net.rules ( we can find the macaddress from virtual machine settings—>Network) .

Vmbox_rule_edit

Error while Importing Large files into Mysql database

In CategoryGeneral
Bysreekanth

We may need to adjust maximum allowed file size in my.cnf  file  to avoid   erros such as ” ERROR at line xxx:  MySQL server  has gone  away”.

Mysql_Goneaway

 

adding an entry “max_allowed_packet = 100M”  to my.cnf has fixed the issue

openfire 3.8.2 and Windows 2008 Activedirectory

In CategoryWindows Server Technology
Bysreekanth

 

 

If you have problem with openfire 3.8.2 and activedirectory integration  and clicking on  “TestSettings” displays nothing  then dont think that there is AD connection problem . If  your AD domain is  yourdomain.com  then try to set   just  dc=yourdomain,dc=com  in BaseDN  and  in Administartor DN  put  DomainAdmin@yourdomain.com  .

Still i dont have any clue why openfire 3.8.2 is not displaying any message when i click on TestSettings in Profilesettings page . But it is successfully connecting and fetching user details when i tried to add an admin account from AD in the end of LDAP setup .

Screen Shot 2013-08-07 at 7.05.08 AM