Category Archives: Ubuntu

Modify Ubuntu ens network interface card to eth0

  1. Display current interface cards and verify that eth0 doesnt exist:
    ifconfig -a
  2. Edit grub file configuration to disable new naming convention
    vim /etc/default/grub
  3. Look for GRUB_CMDLINE_LINUX= include the following net.ifnames=0 biosdevname=0″
    From:
    GRUB_CMDLINE_LINUX=””
    To
    GRUB_CMDLINE_LINUX=”net.ifnames=0 biosdevname=0″
  4. Save and exit the file
  5. Reload grub config file:
    update-grub
  6. Edit interfaces file
    vim /etc/network/interfaces
    From:
    # The primary network interface
    auto ens16
    iface ens16 inet dhcpTo:
    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
  7. Reboot your machine/Restart networking service

 

Reference:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

Advertisements

Proxy in Ubuntu

There are two ways of configuring proxy in Ubuntu:

1. Using GUI:

  1. click Unity Launcher and type in “Network”.
  2. Select application and navigate to “Network Proxy “tab on the left hand side.
  3. Select “Manual” for “Method” and specify your proxy address.

2. Using /etc/environment file which is responsible for system-wide environment variables that are available to all processes. e.x:
http_proxy="http://fully_qualified_domain_name:port_number"
https_proxy="https://fully_qualified_domain_name:port_number"
ftp_proxy="ftp://fully_qualified_domain_name:port_number"
socks_proxy="socks://fully_qualified_domain_name:port_number"

apt-get 

To configure apt-get proxy edit configuration file:
vim /etc/apt/apt-conf
and include the following:
Acquire::http::Proxy "http://fully_qualified_domain_name:port_number"

enable root gui login ubuntu 12.04

By default root login is disabled in Ubuntu 12.04 and newer.
Follow the steps to enable the logon:

  1. Open a terminal window.
  2. Using your favorite editor open the file with privileged rights:
    sudo vim /etc/lightdm/lightdm.conf
  3. Append the line at the end of the file
    greeter-show-manual-login=true
  4. Set root password
    sudo passwd root
  5. Reboot the machine and you will be able to login as root.