Search This Blog

Sunday, 21 August 2016

HOW REMOVE USB SHORTCUT VIRUS Windows

HOW REMOVE USB SHORTCUT VIRUS

To remove sub shortcut virus you first scan it with antivirus to clean any infected files then type cmd in windows run now type the following commands in DOS,

attrib -h -r -s /s /d X:\*.*, (Where, X is the USB drive letter) and press Enter. 
(For example: If your drive letter is D, then the command is attrib -h -r -s /s /d D:\*.*)

After you run the command , hopefully it has resolved the shortcut problem you need to copy all files to your computer, then format the usb drive. Secondly we need to download and install a usbfix software to solve this problem for that click the following link 



Thanks! Keep commenting.....

Friday, 19 August 2016

ADD NEW USER IN UBUNTU AND GIVE RIGHTS IN Ubuntu Linux

ADD NEW USER IN UBUNTU AND GIVE RIGHTS


Sign in as root user and then add new user by following steps,


  1.  adduser newusername

    Give password to newuser
  2. To grant access rights use the following command,

    sudo visudo

    this will give the following script,

    root ALL= (ALL:ALL) ALL


    see the command pattern and add your new user ,
          root ALL= (ALL:ALL) ALL

          newuser ALL= (ALL:ALL) ALL

HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT IN Ubuntu

HOW TO UNLOCK SUPERUSER AND LOGIN AS ROOT

To unlock root us the following command,


  1. sudo password root

    you will be asked to enter password root password two times.
  2. Then unlock root user by following command

    sudo password -u root
  3. To lock it again use the following command

    sudo password -l root
  4. To login as root use the following command

    su root

    you will be asked for given root password
  5. To login interactively use the following command

    sudo -i

    username:  root
    password : ********

Wednesday, 17 August 2016

HOW SET IP OF WLAN INTERFACE UBUNTU 14.04

HOW SET IP OF WLAN INTERFACE UBUNTU 14.04

  1. First goto path /etc/network open file by typing
    sudo nano /etc/network/interfaces
     you will see the following,

    auto lo
    iface lo inet loopback
    auto eth0
    iface eth0 inet dhcp

    Change these settings and add the following line script,

    remove the eth0 lines and add wlan0 config commands,

    allow-hotplug wlan0
    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid "MYFI"
    wpa-psk "Passwd"
  2. Restart network anagement by typing following command script,

    sudo service network-manager restart
    sudo service networking restart
    sudo service resolvconf restart

    we can also try commands,

    sudo ifacedown wlan0
    sudo ifaceup wlan0
  3. If you want to add static wlan ip write the following lines,

    allow-hotplug wlan0
    auto wlan0
    iface wlan0 inet static
    address x.x.x.x
    netmask x.x.x.x
    network x.x.x.x
    boradcast x.x.x.x
    gateway x.x.x.x
    wpa-ssid "MYFI"
    wpa-psk "Passwd"

    save these configurations in interfaces file.
  4. Now after writings command script restart the network management service

    sudo service network-manager restart
    sudo service networking restart
    sudo service resolvconf restart

    sudo ifacedown wlan0
    sudo ifaceup wlan0

    check ip address by ifconfig -a









Monday, 15 August 2016

HOW TO SET IP ADDRESS IN UBUNTU 14.04

HOW TO SET IP ADDRESS IN UBUNTU 14.04

To set ip address in ubuntu using terminal we have to do three things.
  1. Disable graphical management of network connection edit file use the command sudo gedit /etc/NetworkManager/NetworkManager.conf . Do changes like comment out the line dns=dnsmasq using hash (#) sign. secondly change line which says managed=false to managed=true.
  2. Gather information about the static ip (interface, ip to be used , subnet-mask, gateway, DNS). Use the ifconfig -a command to check about the details.
  3. Modify network interfaces to be used goto location /etc/network/ edit give details in file interfaces. Use the following command
  4. sudo gedit /etc/network/interfaces write the following

    auto lo
    iface lo inet loopback
    auto eth0
    iface eth0 inet static
    address x.x.x.x
    netmask x.x.x.x
    gateway x.x.x.x
    dns-nameservers x.x.x.x
  5. Restart ubuntu networking services using the following commands,

    sudo service network-manager restart
    sudo service networking restart
    sudo service resolvconf restart

    This will restart ubuntu network services. you can confirm given ip address using ifconfig command.
  6. You can also make network interface up and down using command,
     sudo ifconfig eth0 down
     sudo ifconfig eth0 up
  7. To check gateway use the command ip route show
  8. To find netmask / subnet use the command ifconfig <iface> | grep mask
  9. DNS is like and index used to resolve hostname to an ip address. Use google public DNS ip addresses 8.8.8.8 8.8.4.4 we can use our your router ip if it does dns lookup and gateway router ip address.

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l