Labels

Sunday, May 5, 2013

How to Install Python 2.7

Download Python : Below the following commands to download and extract Python 2.7 to your hosting account.

# mkdir ~/python
# cd ~/python
# wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
# tar zxfv Python-2.7.2.tgz
# find ~/python -type d | xargs chmod 0755
# cd Python-2.7.2

Tuesday, April 23, 2013

How to configure a Windows Server 2003 terminal server



Windows-2003 Terminal Server

Step 1 : Setup windows server 2003

Step 2 : Installing Terminal Services
Step>2.1 : Start > all programs 
Step>2.2 : Administrative Tools > Manage Your server
Step>2.3 : Managing Your server Roles
Step>2.4 : Click Add or Remove a role 
Step>2.5 :  (Configure Your server Wizard) Next  
Step>2.6 : Choose Custom configuration  Next > Select terminal server (if configured NO) 
Step>2.7 : Next
 

Friday, April 12, 2013

How to Creating Paging using PHP and MySQL

Its always possible that your SQL SELECT statement query may result into thousand of records.
But its is not good idea to display all the results on one page. So we can divide this result into many pages as per requirement.

Paging means showing your query result in multiple pages instead of just put them all in one long page.

<?php
    $con = mysql_connect("localhost","root","");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
   
    $db_selected = mysql_select_db("tweebd",$con);  // Database name tweebd
?>


Saturday, April 6, 2013

Lost Administrator Password in Windows 7

Unfortunately, there are a lot of ways you can lose access to your Windows logon account, one being simple forgetting the password. This happens ways more often than you would think!
But in reality, there are several ways you can end up losing access to an administrator account, including
  1. Setting a new password for an Administrator account and then forgetting the password.
  2. Deleting an Administrator account and not being able to log into another one.
  3. Changing an Administrator account to a standard user account and not being able to log into another Administrator account
  4. Windows 7 becoming corrupted and not accepting a correct password
I previously wrote an article on how to recover a lost Windows password using several third-party tools, but if that doesn’t work, you can try to gain access to the account using System Restore.
Note that in order for this to work, System Restore had to be enabled and there has to be a restore point that was created before you lost access.
To get started, pop in the Windows 7 or Vista DVD into your drive and restart the computer. Press a key when you get the Press any key to boot from CD or DVD

Friday, April 5, 2013

Install GUI in Ubuntu Server

If you are a new user and not familiar with command prompt you can install GUI for your ubuntu server using the 2 options

1) Install desktop Environment
2) Install Webmin



1) Install desktop Environment
        First you need to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI
   
    root@server# sudo apt-get update
    root@server# sudo apt-get install ubuntu-desktop 
 
         ** The command will install GNOME desktop
   
If you want to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command
    root@server# sudo aptitude install --without-recommends ubuntu-desktop
   
If you want to install light weight desktop install xfce using the following command
    root@server# sudo apt-get install xubuntu-desktop
   
If you want to install KDE desktop use the following command
    root@server# sudo apt-get install kubuntu-desktop