Set static IP on Ubuntu

  1. In /etc/network/interfaces

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
            address "insert the IP you want to set"
            netmask "insert subnet mask"
            gateway "insert gateway"
            dns-domain yourdomain.com
            dns-search yourdomain.com
            dns-nameservers "insert your nameservers IP address separated by spaces"

  2. Please make sure there are no "" in  /etc/network/interfaces file.

  3. Restart networking by running following command:
    sudo /etc/init.d/networking restart

  4. Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.

Set STATIC IP on Fedora 21

  1. From ip link show command, find the network interface you want to make static.

    [0]ip link show
    1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: em1: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
        link/ether 2c:27:d7:2b:ee:76 brd ff:ff:ff:ff:ff:ff

  2. In /etc/sysconfig/network-scripts/ifcfg-em1

    TYPE="Ethernet"
    DEVICE="em1"
    ONBOOT="yes"
    NM_CONTROLLED="no"
    BOOTPROTO="static"
    IPADDR=172.17.172.79
    NETMASK=255.255.252.0
    GATEWAY=172.17.172.1

  3. In /etc/resolv.conf

    search yourdomain.com
    nameserver 172.xx.xx.xx
    nameserver 172.xx.xx.xx

  4. Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.

How to Install PasswordSafe on Fedora 21




Note: I tried to install PasswordSafe on Fedora 20 but it was not able to resolve dependencies. Finally succeeded on Fedora 21.
  1. Download .rpm from - http://sourceforge.net/projects/passwordsafe/files/Linux-BETA/0.95/
    I downloaded pwsafe-0.95.1BETA-3.x86_64.rpm
  2. Switch to root and copy the .rpm file to /root
  3. Run "yum -y install pwsafe-0.95.1BETA-3.x86_64.rpm"
    It resolved dependencies and installed them
    wxBase3.x86_64 0:3.0.2-2.fc21
    wxGTK3.x86_64 0:3.0.2-2.fc21
  4. Please leave a comment or g +1 or share on f or share on t below if this post helped you. This will keep me motivating.