Thursday, November 15, 2012

How to Reset the Root Password of MySql in Linux

Resetting MySQL Root Password: Red Hat and CentOS

If you've forgotten your MySQL root password (or are involved with some nefarious activity), here is how you can reset that password on a Red Hat (RHEL) system or a CentOS system:

Stop MySQL:
root#  service mysqld stop
Start MySQL in safe mode:
root#  mysqld_safe --skip-grant-tables &
Log into MySQL as root:
root#  mysql -u root
Reset the password:
mysql>  update mysql.user set password=PASSWORD("YourNewPassW0RD") where User='root';
mysql>  flush privileges; exit;
Log out of MySQL and stop the Safe Mode:
root#  service mysqld stop
Start MySQL in the normal mode:
root#  service mysqld start
Log into MySQL with your new password:
root#  mysql -u root -p
Enter password:
mysql>

The above info is for a Red Hat system, CentOS, or Scientific Linux setup.  If you need to do this on a Debian system, check out this post.

Reference Link
http://gnuski.blogspot.com/2012/02/resetting-mysql-root-password-red-hat.html
http://blog.applegrew.com/2012/02/how-to-reset-the-root-password-of-mysql-in-linux/
http://crashmag.net/resetting-the-root-password-for-mysql-running-on-rhel-or-centos

Tuesday, November 13, 2012

how to enable multiple remote desktop sessions on windows 2008 r2


Multiple RDP Sessions in Windows 2008 R2

16 Aug
Terminal Services in Windows Server 2008 R2 becomes Remote Desktop Services (source). This is a bit confusing especially if you want to setup multiple concurrent remote desktop connections.
In order to allow this on Windows 2008 R2 perform the following steps:
- Start -> Administrator Tools -> Remote Desktop Services -> Remote Desktop Services Host Configuration
- Double click the “Remote Desktop Licensing Mode” under the “Licensing” Title
- Uncheck the default behaviour of “Restric each user to a single session”.



Reference Link
http://vanderbiest.org/blog/2010/08/16/multiple-rdp-sessions-in-windows-2008-r2/
http://www.petenetlive.com/KB/Article/0000471.htm





Monday, November 12, 2012

How to fix Network Manager Disabled or Networking disabled ubuntu 10.04

How to fix Network Manager Disabled or Networking disabled ubuntu 10.04

  1. service network-manager stop .
  2. rm /var/lib/NetworkManager/NetworkManager.state .
  3. service network-manager start.



Reference Link
How to fix Network Manager Disabled ubuntu 10.04 

Wednesday, November 7, 2012

How we can install Active Directory on Windows Server 2008 R2 Enterprise

Installing Active Directory on Windows Server 2008 R2 Enterprise

Preparation for Active Directory
Installing Active Directory Domain Services on a Rackspace Cloud Server is a relatively easy process. There are a few requirements that must be present first to ensure a smooth installation however.
1. Have your domain name selected along with the Domain Administrator Password that you wish to use.
·         Note- Though it is not a requirement, It is recommended you use a multiple name format for you domain name. Example would be, domainName.com or domainName.local rather than simply domainName.
2. A properly configured and available DNS server. This can be installed locally on the DC, and will be the case with this installation scenario.
·         W2K8 can properly install and configure DNS during the AD installation if it knows that DNS is to be local.
·         This is accomplished by having the Private network adapter’s Preferred DNS server address point to the already assigned IP address of the same Private network adapter.
To do this, select View Network Connections within the Server Summary of Server Manager.
Right click on the Private adapter and select Properties. Or Double click the Private adapter and select Properties.

 Double click Internet Protocal Version 4, or select it and click Properties.
Now copy your assigned IP address: displayed in the top box into the Preferred DNS server: box and click “OK”.
Now click OK again for the private Properties and close the Network Connection window.
 3. The last step for prepping W2K8 for AD is adding the proper Server Role.
  • New to W2K8 is the ability to configure the server to perform specific roles.. The “Active Directory Domain Services” Role will be added. This only installs the framework for W2K8 to become a DC and run AD. It does not promote the server to DC or install AD.
To add the “Active Directory Domain Services” Role click on the Role Directory within Server Manager and select Add Roles in the Roles Summary.


Click Next at the “Before You Begin” section.
Now simply check mark Active Directory Domain Services and click “Next” twice, “Install” and finally “Close” when complete.
 




Installation of Active Directory Domain Services (DCPROMO)

Now that the Server has been prepared the installation of AD we can proceed. You now have three different ways we can begin the installation.
1. Within Server Manager, if you expand the Roles directory you will see the Active Directory Domain Services directory. Select that and you will find in the Summary “Run the Active Directory Domain Services Installation Wizard (dcpromo.exe)” Simply click that to begin the installation.

2. The comandline equivilant to Active Directory Domain Services Installation Wizard is - Servermanagercmd.exe –I ADDS-Domain-Controller
3. The last and probably the most recognized method is typing DCPROMO.exe at the command prompt.

Whichever way you choose, You should get to this point. Simply click Next. You do not check advanced mode.
Click on Next Button

Now select “Create a new domain in a new forest” and click Next.
Now enter the domain name you have chosen.
After the installation verifies that the NetBIOS Name, you will choose the Forest function level. I chose 2008 R2. After selecting click Next.
It will examine and verify you DNS setting. DNS server should already be checked. Now click Next.
You will now be prompted with the following message. This is OK. Just click Yes.
Click Next Again.
Now enter your Domain Administrator Password that you chose. This is not your Admin Password that emailed to you during the creation of you Server, unless you want to use it. It is your decision.
Click Next.
The installation will now complete. You can check the reboot on completion if you like.
If not, you will need to click Finish here. Then restart your server.
After a few minutes, reconnect to your server via the Console in your Control Panel or RDP.
To log in, you will need to select “Switch User”, then Other User. Type in your full domain name you picked followed by a back slash and Administrator for user. Then enter the password that was emailed to you when you first built the server. If you had already changed your password for the local admin account to this server before your began the install for AD, use that password.

!!!Congratulations!!! You have installed an Active Directory Domain Controller.

Reference Link
Installing Active Directory on Windows Server 2008 R2 Enterprise 64-bit

how we can extend windows server 2008 r2 trial period

How we can extend windows server 2008 r2 trial period
 Rearming
1. Check your remaining time by clicking Run in the Start menu and entering slmgr.vbs -dli. After clicking OK a window will show up which shows you the remaining time before expiration.
2. If you have less than one day left rearm your license so you have 10 days left again. To do this click Run in the Start menu, enter slmgr.vbs -rearm and click OK. After a few moments a window will popup that shows you the rearm has been completed and you have to restart your system.
3. After restaring your system verify that the rearm has worked by running slmgr.vbs -dli again. The remaining time should now be reset to 10 days!
 Checking rearm count left
You can rearm the Evaluation version of Windows Server 2008 R2 up to 5 times. To check how much rearms you have left click Run in the Start menu, enter slmgr.vbs -dlv and click OK
 Activating
1. After you used all rearms it’s time to activate. To activate click Activate Windows online now Windows Activation assistant.
2. Wait until the online key verification and activation has finished.
3. If everything went right Windows will now be activated with a 180 days license and a watermark appears on your desktop.
Removing Desktop Watermark
1. Download watermark.zip (9KB) from win2008r2workstation.
2. After downloading the zip extract the zip, run install.cmd as an Administrator and follow the instructions on the screen. After a successful installation, reboot your pc to remove the watermark. If you want to do this manually, open %SystemRoot%\System32\en-US\user32.dll.mui with a resource editor and replace the strings in the following resources with a space (” “): 45.715, 45.716, 46.* and 47.739.
If you get a sharing violation error during the installation, try running it again in Safe Mode. I Couldn’t test it myself because for some reason I can’t get into Safe Mode. Please confirm this works!

Reference Link
How to extend the Windows Server 2008 evaluation period
how to seamlessly extend the windows server trial to 240-days