0%

Ubuntu Network Configuration

Tutorial

network proxy

  • System wide: Network—>None/Manual
  • chrome: can not set
  • firefox: about:preferences—> Network Proxy

eth0 config

rename xxx to eth0

errors may occur:

Ubuntu networking restart | cannot find device 'eth0'

check eth0

1
2
3
4
5
dmesg | grep eth 

[5.715564] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:7d:bf:43
[5.715573] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
[5.719709] e1000 0000:02:01.0 ens33: renamed from eth0

and we get ens33 renamed from eth0, we need to change it back to eth0.

solution

  1. edit grub and update

    1
    2
    3
    4
    5
    6
    $ sudo vim /etc/default/grub

    #GRUB_CMDLINE_LINUX=""
    GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

    $ sudo update-grub
  2. edit network interfaces /etc/network/interfaces

    1
    2
    3
    4
    5
    6
    7
    8
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address 192.168.1.77
    netmask 255.255.255.0
    gateway 192.168.1.1
  3. reboot

    1
    sudo reboot now
  4. check eth0

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    $ sudo ifconfig

    eth0 Link encap:Ethernet HWaddr 80:fa:5b:47:92:8a
    inet addr:192.168.1.77 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:4640 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4640 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:865530 (865.5 KB) TX bytes:865530 (865.5 KB)

OK. Now we get eth0,wlan0 properly set.

ldconfig

libEGL

error

1
2
3
4
$ sudo ldconfig

/sbin/ldconfig.real: /usr/lib/nvidia-384/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-384/libEGL.so.1 is not a symbolic link

fix

1
2
3
4
5
6
7
8
9
10
11
12
sudo rm /usr/lib/nvidia-384/libEGL.so 
sudo rm /usr/lib/nvidia-384/libEGL.so.1

sudo ln -s /usr/lib/nvidia-384/libEGL.so.384.90 /usr/lib/nvidia-384/libEGL.so.1
sudo ln -s /usr/lib/nvidia-384/libEGL.so.1 /usr/lib/nvidia-384/libEGL.so

# fix lib32
sudo rm /usr/lib32/nvidia-384/libEGL.so
sudo rm /usr/lib32/nvidia-384/libEGL.so.1

sudo ln -s /usr/lib32/nvidia-384/libEGL.so.384.90 /usr/lib32/nvidia-384/libEGL.so.1
sudo ln -s /usr/lib32/nvidia-384/libEGL.so.1 /usr/lib32/nvidia-384/libEGL.so

list libEGL.so of lib

1
2
3
4
5
$ ls -al libEGL.so*

lrwxrwxrwx 1 root root 33 1月 8 11:24 libEGL.so -> /usr/lib/nvidia-384/libEGL.so.1
lrwxrwxrwx 1 root root 38 1月 8 11:24 libEGL.so.1 -> /usr/lib/nvidia-384/libEGL.so.384.90
-rw-r--r-- 1 root root 15012 9月 20 08:44 libEGL.so.384.90

list libEGL.so of lib32

1
2
3
4
5
$ ls -al libEGL.so*

lrwxrwxrwx 1 root root 33 1月 8 11:24 libEGL.so -> /usr/lib32/nvidia-384/libEGL.so.1
lrwxrwxrwx 1 root root 38 1月 8 11:24 libEGL.so.1 -> /usr/lib32/nvidia-384/libEGL.so.384.90
-rw-r--r-- 1 root root 15012 9月 20 08:44 libEGL.so.384.90

check

$ sudo ldconfig

OK.

Reference

History

  • 20180108: created
  • 20180222: add eth0 part.