81 votes

Changing Network Interfaces name Ubuntu 16.04

There is a lot of misleading information about how to change network names in recent versions of Ubuntu. Some information points to systemd.link, which is just wrong because Ubuntu (as of 16.04) does ...
Sebastian Marsching's user avatar
77 votes

Changing Network Interfaces name Ubuntu 16.04

On Ubuntu 16.04.1 LTS, Linux plaptop 4.4.0-31-genericx86_64 MATE. step one of @Geancarlo Abich answer and it worked. Ubuntu created a new names directly after reboot: Edit your /etc/default/grub ...
floorripper's user avatar
36 votes
Accepted

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

Update 2020-10-07 The bug is now fixed, you can get it with apt and remove any workaround you had chosen. Original answer It's a recently introduced bug in Mutter which is the default window manager ...
stefg-bz's user avatar
  • 503
32 votes

cannot find device eth0

You can find the network device logical name by the command: sudo lshw -C network In my case, my logical network device name is enp3s0. So I replaced the device name from eth0 to enp3s0 and it works....
seralee's user avatar
  • 429
30 votes

How to display IP address of eth0 interface using a shell script?

Taken from https://stackoverflow.com/a/14910952/1695680 hostname -i However that may return a local ip address (127.0.0.1), so you may have to use, and filter: hostname -I From hostname's manpages:...
ThorSummoner's user avatar
  • 3,222
28 votes

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

EDIT 2020/10/07 The bug has been fixed in the package mutter (3.36.6-1ubuntu0.20.04.2), available via apt. Original answer Inspired by this answer I implemented a temporary workaround in my machine. I'...
Lorenz Keel's user avatar
  • 8,935
18 votes

cannot find device eth0

Your network interface is enp0s3. Replace the eth0 entries with this interface. Change from: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 192.168.56.5 ...
L. D. James's user avatar
  • 25.1k
12 votes

How do I make the script to run automatically when tun0 interface up/down events?

gksudo gedit /etc/network/interfaces Add: auto tun0 iface tun0 inet manual up COMMAND COMMAND can be a command, like ip route add something... or a script path with executable permissions (...
KrisWebDev's user avatar
  • 1,620
12 votes

Changing Network Interfaces name Ubuntu 16.04

Ubuntu-16.04-server-amd64 In /etc/default/grub, change GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="net.ifnames=0" Then, type in: sudo update-grub and reboot your system sudo reboot
Syed-anwar Syed-bueraheng Al-I's user avatar
12 votes

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

As mentioned in the bug report: You can downgrade libmutter package temporarily as a workaround: sudo apt install libmutter-6-0=3.36.1-3ubuntu3 gir1.2-mutter-6=3.36.1-3ubuntu3 sudo apt-mark hold ...
Raoul Verveer's user avatar
11 votes

Ubuntu 18.04: How to create a persistent dummy network interface

I had the same problem on 18.04 server and directly used the systemd-networkd way of configuring interfaces: I created 2 files in /etc/systemd/network/: 10-dummy0.netdev [NetDev] Name=dummy0 Kind=...
Christian's user avatar
  • 300
10 votes

Changing Network Interfaces name Ubuntu 16.04

I tried to mix some suggestions and I had found the solution! Step 1: Disable the default Firmware inherited names. Edit your /etc/default/grub changing the line from GRUB_CMDLINE_LINUX="" to ...
Geancarlo Abich's user avatar
10 votes

How to display IP address of eth0 interface using a shell script?

You should use ip (instead of ifconfig) as it's current, maintained, and perhaps most importantly for scripting purposes, it produces a consistent & parsable output. Following are a few similar ...
Seamus's user avatar
  • 636
10 votes
Accepted

Moving a pop-up application window moves main window on Ubuntu 20.04

This happens because the pop-up windows are attached to the main window This can be prevented for some applications using Gnome Tweaks Tool. Install it using sudo apt install gnome-tweaks Then go to ...
Parag Katoch's user avatar
  • 1,213
9 votes

How do I find what kernel module is behind a network interface?

IMHO for scripts the best is to use sysfs info (as Jeremy Kerr shows), but for more info: ethtool -i IFACE_NAME E.g.: $ ethtool -i eth0 driver: 8139cp version: 1.3 firmware-version: bus-info: 0000:...
pevik's user avatar
  • 453
8 votes

How to display IP address of eth0 interface using a shell script?

@markus-lindberg 's response is my favourite. If you add -o -4 to ip's flags then you get a much more easily parsable (and consistent) output: ip -o -4 a | awk '$2 == "eth0" { gsub(/\/.*/, "", $4); ...
Capt. Crunch's user avatar
8 votes

Terminal: sudo: apt-get: command not found

I faced the same issue regarding apt-get: command not found here are the steps how I resolved it on Ubuntu Xenial Search the appropriate version of apt from here (apt_1.4_amd64.deb for ubuntu xenial) ...
cmthakur's user avatar
  • 181
7 votes

Trying to configure eth0 and eth1 but Failed to bring up eth1

Sometimes flushing the interface before bringing it up works: ip addr flush dev enp2s0
Rohit Sehgal's user avatar
7 votes
Accepted

What does HWaddr value of 00-00-00 .... would mean?

When you see HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 in the output of ifconfig tun0 it simply means that this is a virtual interface. Since this isn't an actual piece of hardware it ...
kasperd's user avatar
  • 1,729
7 votes
Accepted

Disable tab preview / thumbnail on bottom panel? - Ubuntu 20.04 Mate

You can remove the thumbnails by following these steps: right-click on the three vertical dots right before the Firefox icon in your panel: Click Preferences. In the menu that will open, select the ...
BeastOfCaerbannog's user avatar
6 votes
Accepted

In Ubuntu 16+, for a network interface "ens192", where does the "192" come from?

It is done in Linux, to avoid name confusion for the NICS. All NICs are named based on the PCI SLOT number they are using for PCI it would be ens33,ens34..... On the other hand for NICs using PCIe ...
Yogender Solanki's user avatar
6 votes
Accepted

Turn on interface using nmcli

according to man page nmcli radio {all | wifi | wwan} [ARGUMENTS...] Show radio switches status, or enable and disable the switches. wifi [on | off] Show or set status of Wi-Fi in ...
PRATAP's user avatar
  • 22.5k
5 votes

I have to issue "rfkill unblock wifi" at every boot

I tried mchid's answer and it didn't work for me because NetworkManager was killing the wifi after startup finished. What did work was nmcli r wifi on What appears to be the root of the problem is ...
amo's user avatar
  • 191
5 votes

Some apps shown twice in dock when using Gnome Shell?

i found the answer in another thread Launch the application Fire up a terminal and run xprop WM_CLASS. Click the application window. You'll get some output like WM_CLASS(STRING) = "Navigator", "...
Koter84's user avatar
  • 51
5 votes

Change Mac Address permanently inside /etc/network/interfaces

First, the guide you linked to. It's a nice guide. Sadly, it also makes some headaches for different types of connections. And normally, /etc/network/interfaces is left alone except for the ...
Thomas Ward's user avatar
  • 74.9k
5 votes
Accepted

How do I revert to the previous GUI?

By reverting to old interface, I'm pretty sure you refer to Unity, as it was default desktop environment for Ubuntu 16.04. First, bring up your terminal window, then type following command: sudo apt ...
Liso's user avatar
  • 15.4k
5 votes

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

Note: Only for PC's having a NVIDIA graphic card. I installed Ubuntu 20.04 LTS yesterday and faced this exact same problem. This and whenever I close and re-open my laptop lid, the wallpaper gets ...
Sujit's user avatar
  • 229
5 votes

Ubuntu 20.04 interface font too small after restart, even with high scaling factor

As this is a bug, as outlined nicely here by stefg-bz, we will have to wait a bit until it is fixed. In the mean time, you can use a workaround, as suggested here by Lorenz Keel, that automatically ...
vanadium's user avatar
  • 88.1k
5 votes
Accepted

How to make network interface changes permanent?

The /etc/network/interfaces mechanism is deprecated in all recent Ubuntu versions. Networking on servers is configured in netplan. I suggest that you delete the faulty file. You will have a yaml file ...
chili555's user avatar
  • 60.2k
4 votes

Terminal: sudo: apt-get: command not found

If you are on aws ec2 use yum instead. Source: https://stackoverflow.com/questions/14045262/how-to-fix-apt-get-command-not-found-on-aws-ec2
BigDataScientist's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible