Pages

Tuesday, 5 May 2015

How to use nmap in centos

1. Make sure if you have nmap in your system. perhaps check your nmap version

          #nmap --version

 yet no nmap available to your system. you need to install

          #yum install nmap

         #nmap localhost


-v giving more detailed information about the open ports
-A enables OS detection and version

 #namp -A localhost


-p denotes port range

 #nmap -p 10-15 localhost


How to move files from one folder to another folder using Windows PowerShell

1. Write your coding on notepad and save as sample.ps1

   for (;;)
    {
    start-sleep -s 30
    move-item D:\Powershell\source\*.mp3 D:\Powershell\destination
    move-item D:\Powershell\source\*.mp4 D:\Powershell\destination
    }

2. Open Windows PowerShell

3. Check your execution policy like

if it Remotesigned.

4. execution like > d:\Powershell\sample.ps1


How set a Static IP on Ubuntu

1. Switch to root
     $sudo su
    password for root:

   #sudo nano /etc/network/interfaces

   from the nano editor you can see

     

     modify to

          auto lo eth0
          iface eth0 inet static
          address 10.10.10.10
          netmask 255.0.0.0
          gateway 10.10.10.11

   press Ctrl+X to save the setting. Yes to conform. 
   for DNS config 
       
              #sudo nano /etc/resolv.conf
                   nameserver (dns)
                   nameserver (alternate dns)

      save the setting. finnaly

    #sudo /etc/init.d/networking restart


          

How to disable windows server 2008 R2 automatic shutdown for every 1 hours

hi,

     I think your server has not genuine, you need to activate original key, instead of you should put windows loader.

    you can get the loader from followed link


     (or)



download windows loader v2.2.2.zip and extract the file and install your anticipated OS version. after rebooting you were rectified the issue...

How to set guest account password in Windows 8 PC

Step 1 click start type command prompt then left click the command prompt and choose run as administrator.
Step 2 from the DOS window you want to type the following
           Net user guest *
      You may press the enter key then
         Type a password for the user:    here you may type your password
         Retype the password to confirm: here re enter the password
     The command completed successfully.
Now your guest account password has been set.
In feature you want to remove your password you have to follow the same command and press the enter key two times. That’s all..

How to change guest account picture in Windows 8 PC


Step 1 open your computer local disk c -> click view in menu bar and select the hidden file box like

                               

Step 2 open program data->Microsoft->default account pictures. Here you can see the guest profile pictures.

Step 3 next you can replace your selected pictures under the name of guest.bmp and guest.png then close the files.

Step 4 finally your guest account picture was changed..

How to make a new e-mail profile from outlook

Step 1 Open your control panel->open mail, then click add and give your profile name
Step 2 next give your details like username and password after that give next it will be automatically configured your mail to outlook.
Step3 the test mail will be received from outlook
Step 4 then give finish.
Step 5 after you can see mail option like

Here click properties ->datafiles->settings->change password like

Here you can give new outlook password for particular mail id.
Click ok.
Step 6 now go for Microsoft outlook it will ask for profile name , you need to select you profile next give your outlook password. Finally you have to see you mail from outlook along with test mail.
If you want to download your inbox then go
tools-> send/receive ->send/receive all
in case it doesn’t work in the sense you have to go you mail setting (like gmail)->forwarding and POP/IMAP->POP download -> enable POP for all mail(even mail that’s already been downloaded).
Now enjoy you outlook.

How to run yur android app on PC

Step 1.
 you need to download android SDK kit, that will be https://developer.android.com/sdk/index.html
Step 2.
 Extract the downloaded file and you have to store on Localdick c:(whereever you want)
Step 3.
 Open eclipse folder then double click eclipse icon and give workspace location and click ok
 Before that you have to download a sample android application like dropbox it's comes under https://www.dropbox.com/android (if any about your wish)
Step 4.
 Window->android virtual device manager
 have to click New button from the window like
Then you want to fill like
Click ok
Then give start and launch the emulator like 
Then your emulator will start like
Your emulator like
Step 5.
 Copy your dropbox apk file and placed in to the location like (C:\adt-bundle-windows-x86-20131030\sdk\platform-tools)
Step 6.
 Open command prompt and open the path like C:\adt-bundle-windows-x86-20131030\sdk\platform-tools
Then give the command like
adb install dropbox.apk
the process was going like
Then your apk file were successfully installed.
You can chek your emulator
That’s all.. enjoy you emulator…..

Thursday, 23 April 2015

How to config IP Address in CentOS via Terminal

Step 1. Open terminal
Step 2. Switch to root, next
       
              #vi /etc/sysconfig/network-scripts/ifcfg-eth0
           
                         DEVICE = "eth0"
                         BOOTPROTO = "Static"
                         ONBOOT = "Yes"
                         TYPE = "Ethernet"
                         IPADDR = 192.168.4.4
                         NETMASK = 255.255.255.0
                         GATEWAY = 192.168.4.7
                         DNS1 = 8.8.8.8
                         DNS2 = 8.8.4.4
        Press Esc, wq!

           # /etc/init.d/network restart

Wednesday, 22 April 2015

How to config VSFTPD in CentOS

Step 1. Open your terminal
Step 2. Need to change admin mode
              $ su -
              Password: ("give your admin password")
Step 3. Want to install VSFTP before make sure if any previous install was made in that machine
             # rpm -q vsftpd
             if no previous vsftpd then
             # yum -y install vsftpd
             if completed
             # vim /etc/vsftpd/vsftpd.conf
             you want do two more action here. un-command these two line, press i to modify.
             
             anonymous_enable=No
             chroot_local_user=Yes
           
             press Esc, then
             
             :wq!

Step 4. Now you want create a specify user to access ftp file.
            #useradd ftpuser
            #passwd ftpuser
             password: ("give your ftpuser password at twice")
Step 5. Put the folder on your user account
            go to computer, file system,home, ftpuser
            if you want to change folder permission like

            #chmod -R 777 /home/ftpuser
            
            now you may paste specify folder inside your user folder
Step 6. Next start the vsftpd service like
           
            #service vsftpd start
            for permanent start like
            #chkconfig vsftpd on

Step 7. If you want to delete ftp user like
            
            #userdel ftpuser
            
            delete the ftpuser files 
           
            #rm -rf /home/ftpuser

Create directory and texfile command
   #mkdir /home/ftpuser/ftpfile
   #touch /home/ftpuser/test
   
Want to remove VSFTPD 
  #yum remove vsftpd