Friday, March 21, 2014

Unmount Busy Drives In Ubuntu

You are trying to unmount a drive,but keep getting told by your system that it's busy. 
                                     lsof +D /mnt/windows
                          This will return the command and process ID of any tasks currently accessing the /mnt/windows directory.

Finding Biggest Files In Ubuntu

Find the biggest files in the current directory with:
                     root@ubuntu:/var # ls -lSrh
                            The "r" causes the large files to be listed at the end and the "h" gives human readable output (MB and such).

Tuesday, March 18, 2014

Log With Microsoft Notepad

In Notepad and adding .LOG at the beginning of the file.Now each time the file is opened in Notepad a time and date stamp will be automatically added.

Enabling Windows GodMode On Win Vista And Win 7

Microsoft Windows Vista introduced a new hidden feature called GodMode that allows you to view and adjust all settings within Windows. 
To create a shortcut to the GodMode in Windows Vista or 7
1. Anywhere on your computer create a new folder.
2. After the folder has been created, rename that folder to GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

Monday, March 17, 2014

Disable Ping Replies In Ubuntu

Disable Ping Reply Temporarily
             root@ubuntu:~# echo "1" >  /proc/sys/net/ipv4/icmp_echo_ignore_all                                     
                    This setting will be erased after the reboot.

Enable Ping Reply Back
              root@ubuntu:~# echo "0" >  /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping reply Permanently
1: Edit the sysctl.conf file and add the following line.
               root@ubuntu:~#net.ipv4.icmp_echo_ignore_all = 1 
Execute sysctl -p to enforce this setting immediately.
             root@ubuntu:~# sysctl -p

Windows Installer Service Not Started

Windows Installer Service on local computer started and then stopped.
Try to register Windows Installer
a. On the Start > Run box, type "msiexec /unreg", and then press ENTER.
b. Then type "msiexec /regserver", and then press ENTER.

Saturday, March 15, 2014

Active Desktop Recovery Screen Error

Active Desktop Recovery Screen Error                            
1. Go to Run and type regedit
2. Now navigate to this path – HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components
3. You would find a key named DeskHtmlVersion.
4. Right click the key and select Modify.Under the label Base, select the radio button Decimal
5. Change Value data to 0

Thursday, March 13, 2014

Synchronize Two Directories Within A Ubuntu Server

Syntax : rsync options source destination
Eg :  root@ubuntu:~/# rsync -zvr /var/lib/jagan/ /root/temp
  Where ,-z =  is to enable compression,   -v verbose and -r indicates recursive

Displays All The Running Process In Linux Machine

Displays All The Running Process In Linux Machine.This displays the information real-time
root@ubuntu:~# top
top - 08:58:09 up 1 day, 23:46,  2 users,  load average: 0.01, 0.03, 0.05
Tasks:  70 total,   1 running,  67 sleeping,   2 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3786324k total,   685108k used,  3101216k free,    35272k buffers
Swap:  4186108k total,        0k used,  4186108k free,   449528k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2911 mysql     20   0  870m  76m 7768 S  0.3  2.1   0:29.86 mysqld
    1 root      20   0 24344 2284 1344 S  0.0  0.1   0:00.90 init
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.01 kthreadd
    3 root      20   0     0    0    0 S  0.0  0.0   0:01.37 ksoftirqd/0
    5 root      20   0     0    0    0 S  0.0  0.0   0:00.32 kworker/u:0
    6 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0

List Information About RAM And Swap Memory In Your Linux Machine

Syntax And Eg: Total RAM on this system is 4GB. The values displayed below are in KB.
 root@ubuntu:~#  free
             total       used       free     shared    buffers     cached
Mem:       3786324     685240    3101084          0      35256     449424
-/+ buffers/cache:     200560    3585764
Swap:      4186108          0    4186108
The values displayed below are in MB.
root@ubuntu:~# free -mto
             total       used       free     shared    buffers     cached
Mem:          3697        669       3028          0         34        438
Swap:         4087          0       4087
Total:        7785        669       7116
In the following command:
    option m displays the values in MB
    option t displays the “Total” line, which is sum of physical and swap memory values
    option o is to hide the buffers/cache line from the above example.

Last Login Details IN GMAIL For Security Purpose

If you are suspecting somebody else is accessing and hacking into your Gmail account, Gmail provides ‘Last Account Activity’ feature that shows five recent activities in your Gmail account.

    Click on ‘Details’ link in Last account activity line at the bottom of your Gmail page.

Recent activity information includes, Access Type (Browser or from some mobile device etc), IP address from which the access was made and Date/Time of access.

Fig: Gmail multiple login information

You can even sign-out all the other sessions except current session by clicking ‘Sign out all other sessions’

Internet Not Working : Multiple Network Issue On At Windows 7

Internet Not Working : Multiple Network Issue On At Windows 7
Causes :
 1. Third Party Programs Like Bonjour Services (Normally its From Adobe Products and O-Tunes)
 2.  Connected Network Adapter had no internet
Solution 1 : Check Services
Run Services.msc : Look Services like “##Id_String----##”.Disabled it
Solution 2 : Go To Network And Sharing Center --->Change Adapter Settings ---> Properties ---> IP Version 4 --->Properties --->Advance --->
   In This Console Uncheck Automatic Metric and Put the number 1 on Interface Metric.
   

Wednesday, March 12, 2014

Access Windows Network Resources From MAC

In the Finder, choose Go > “Connect to Server.”
     smb://DNSname/sharename
     smb://IPaddress/sharename

Active Desktop Recovery Screen Error

Solution  :                        
1. Go to Run and type regedit
2. Now navigate to this path – HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components
3. You would find a key named DeskHtmlVersion .Right click the key and select Modify
Under the label Base, select the radio button Decimal
4. Change Value data to 0 and Click OK

USB Mass Storage/Pendrive Shows In Correct Size

Sometimes USB Mass storage doesnot shows actual size
Solution:
1) Type "DISKPART" from the Command Prompt
2) Type "LIST DISK" to see what number your USB drive is listed as.
3) Type "SELECT DISK 2" (if your USB is disk 2; replace # with your disk #); Diskpart will confirm that "Disk 2 is now the select disk."
4) Type "SELECT PARTITION 1" (this command selects what should be the only partition on your USB drive, the small one that you want to delete to get back the larger, full partition size). Diskpart will confirm with "Partition 1 is now the selected partition."
5) Type "DELETE PARTITION". This will delete the old partition. There are no warning prompts if you have existing data - make sure you have copied everything off before doing this!
6) Type "CREATE PARTITION PRIMARY" to create a new, full-size partition. Diskpart will confirm with message of "Diskpart succeeded in creating the specified partition." You can type in "LIST PARTITION" to confirm the new, full-size.
7) Type "EXIT" to leave Diskpart. You can now format your USB drive by using the standard Windows formatting process.

Terminal Connection Exceed the Limit

Terminal Connection Exceed the Limit on Remote Desktop in Windows 
Solution :                     mstsc.exe /v:IP-Address /f -admin

MYSQL Port Listen In Localhost But Not In Other Machine

 After the Successful Installation Of  MYSQL, and Service running but the port 3306 not listen, when we check from other machine
Issue : The bind_address configuration option is set to 127.0.0.1
Solution : In Linux Go and Edit my.cnf and In Windows my.ini (Comment the "bind_address 127.0.0.1")

# vi /etc/mysql/my.cnf
#bind_address 127.0.0.1

Tuesday, March 11, 2014

Remove Windows is Not Genuine Notification in Windows 7

 In the Command prompt type the command “SLMGR -REARM” and hit enter , make sure type the correct command otherwise it will not work.

SLMGR -REARM
bloggerwidgets