16.04 – No network for updates

I've just made updates on the sudo apt update and sudo apt upgrade and sudo apt dist-upgrade and then cleaned up the sudo apt autoclean and then sudo apt autoremove. There was a mistake saying that wcid had stopped, I can not find it! Tried no luck when restarting the system. Can not even USB leash! How can I go online again? Are there any commands I can run in a live session, or do I have to go to a router and use an ethernet cable? Use my phone to post this. Please help No negative or negative votes please! I have to get ahead so I can have more respect here! I am currently reading the Linux Bible

Dual Boot – I can not find OS Pro Ubuntu Server 16.04

My computer was configured to run Ubuntu Server 16.04, Arch Linux, and Gentoo Linux in triplicate.

After starting the Linux from the Scratch project (I know I have a problem), I was accidentally where my computer could not start. I got stuck in the GRUB menu. I used my Arch ISO to mount the boot and root partitions for Arch, Chroot into the system and reinstall Grub (In Arch, the GRUB package actually installs GRUB2, so it's NOT a legacy). I can now bring Arch to boot, but when I start OS Prober I can not find Ubuntu or Gentoo anymore. At some point I was able to bring Gentoo to the boat, but after some tinkering, I also managed this break. In fact, the gentoo grub entry shows the Gentoo kernel with the root partition for Arch instead of the root partition for Gentoo.

inb4 post to Arch / Gentoo.
I'm at a loss and I'm not sure where to post this question. That's why I decided to publish this on all three distros in forums.

As far as I know, GRUB should be installed on a distribution. Then you should use os-prober to find the others. Originally Ubuntu was the GRUB installation. Now it's Arch. Is not Ubuntu bootable for this reason? And if so, how can I fix it? I'm trying hard to figure this out and fix it instead of reinstalling it.

nvidia – 16.04 Detection of the external monitor from the docking slot

16.04 in a docked HP 8440p laptop detects the external display port monitor when booting.

The machine often stays on at night, but the monitor is off. In the past, the system immediately recognized the monitor when the monitor was turned on. When the monitor is turned on in the morning, the system does not "see" the external monitor (the monitor does not show a signal and goes into sleep mode). I tickle the Ubuntu device with the external keyboard (LED Num Lock indicates that the device is responding). The LAN LED of the Docking Bay flashes.

I'll retire to my Windows box to start my day, and 16.04 will finally recognize the monitor.

Which setting can be changed to restore the immediate detection of the monitor?

16.04 – Help Required: Ubuntu / Windows Dual Boot Windows will not start after resizing the partition

Running Ubuntu 16.04 and Windows 10 on a Lenovo Thinkpad X1. Everything worked perfectly, but then I decided to triple the system so I could add potash. Follow the instructions to resize the Windows partition to make room. After selecting Windows 10 in the Grub menu, a blank "Ubuntu Purple" screen will be displayed. I had to restart the computer to regain control. After that, I got into Ubuntu to do the boot repair and make the diagnosis easier.

You can download my boot repair log here: -http: //paste.ubuntu.com/p/BkBwjrhC4j/

After using the repair option, I got two options for Windows 10 in my grub loader, none of which worked. I still have access to my Windows partition in Ubuntu, so I'm assuming I somehow managed to bark the boot information. Another thing I noticed in the picture below is the unallocated space that seems to have appeared between sda1 and sda2 and that I can not remember.

I would rather try to learn how to recover from such a situation instead of reinstalling Windows, Ubuntu and Kali from scratch. Nothing matters on any of the disks, so I can learn and try it.

Help appreciated

fdisk info

nvidia – 16.04 crashes with cuda 9.0

I'm using 16.04 on a Dell XPS 15 with an Nvidia GTX1050i graphics card. I have several nvidia driver versions installed, but 410.79 is used. My kernel version is 4.15, which I think is the newest.

I recently started using tensorflow-gpu with cuda 9.0 (the latest version tensorflow compatible with), and since then the computer seems to freeze every few hours, apparently out of the blue. The cursor disappears and does not respond to commands, and I have to force the shutdown. The fan also begins to spin loudly and the laptop heats up as if it were carrying out a very strenuous process. Once it froze during the display of htop, and I saw no unusual processes in the list.

There is a suggestion to install modprobe here, but I already have the latest version. I also tried the solution here, but this resulted in errors when Tensorflow tried to use the GPU.

Lately, I have removed and reinstalled everything:

  1. cuda-9.0, from the Tensorflow statements, the deb (local) option,
    followed by the 4 patches
  2. cudnn, from nvidia webiste, runtime option (deb)
  3. Tensorflow GPU

in that order, and it did not help.

I would be very happy if someone could help me find a solution. Many Thanks.

Networks – Ubuntu 16.04 can not connect to Wi-Fi: The Wi-Fi network was not found

That drove me crazy. Here is a sequence of events that have occurred (to the best of our knowledge):

Wifi worked flawlessly on my Ubuntu 16.04 computer. After installing security updates (with unattended upgrade), somehow the network manager could not detect a WLAN. I tried rebooting the system and the network manager displayed Device Unmanaged for Ethernet and wireless connections. According to this thread and many others I have modified

/etc/NetworkManager/NetworkManager.conf

and changed that managed = false to managed = trueand started the new one Network Manager Service. This caused the "device unmanaged" to disappear, and I saw the list of Wifi's in the Network Manager's drop-down menu. However, when I tried to connect to one of them, the network manager only waited a while and eventually could not connect. It was almost as if the listed Wifi names were wrong.

I then tried to use the command-line tool nmcli and see if there are any useful error messages. Keep this in mind all the time managed = true is set. At first I ran

nmcli device WLAN list

and I see a list of Wi-Fi spots that seemed pretty normal. Then I tried

nmcli device Wi-Fi connect  password 

with SSID and PASSWORD as WLAN-site, with which I want to connect. After a few seconds an error will be displayed:

Error: Connection activation failed: (53) The Wi-Fi network was not found

Additional question
Regarding the problem "device unmanaged" it is strange for me that (1) it occurs at all (2) managed = true is the right solution. I checked that NetworkManager.conf Files on several other 16.04 computers that I have access to, and they all have them managed = false and still can connect to the internet. What is an explanation for this?

I sincerely appreciate your help!

16.04 – How do I see the NUMBER of files in a directory and its subdirectories containing a specific string?

How do I see the number of files in a directory and the subdirectories that contain a specific string? Should I find or use grep and which commands should I use specifically? Again, it's important that I see the number of files that contain a specific string. If a file contains the string twice, I just want the command to return one.

16.04 – I'm trying to find out how many files in a directory end with .c or .cpp that contain the string: string

Easy way would be via bash recursive glob combined with a single match parameter in grep (one file – one match):

shopt -s globstar
grep -m 1 & # 39; string & # 39; * / **. {c, cpp} | wc -l

Why not grep -R ? because -R goes through all the files and does not filter .c or cpp Files, so we use bash's globbing to accomplish this task.

Otherwise, you can use the shell agnostic method Find:

find -type f  (-iname "* .c" -or -name "* .cpp" ) -exec grep -q & # 39; string & # 39; {} ; -and-pressure | wc -l

unity – The UI of Ubuntu 16.04 is broken / missing features

I lived with a problem on my 16.04 VM that i did believe After upgrading some system packages started – not exactly sure which. It's hard to explain, but the UI is generally somewhat averse, as if the entire UI package was not completely installed. Some examples:

  • Context menus do not mark elements when I cross the mouse pointer
  • Console text colors are significantly different and not practical (text is gray on a black background …)
  • There is no margin or margin for certain menu items that all run together, ie AllSettingsAppearance, Hovering over the elements does not highlight or display them. The same applies to routes in the file dialog.
  • The desktop background is not displayed (black only) even though the system settings consider it set

I can upload pictures if my description is not enough.

I tried some of the obvious system settings and tried different themes to see if one would be reset, but the problems persist. I would not be surprised if I messed up a UI package somehow. Is there something I can reinstall?

edit: I tried reinstalling Unity, but I'm a bit scared to go too far. I got that:

sudo apt-get install unity

Read package lists ... Done
Create dependency tree
Status information is read ... Done
Some packages could not be installed. This can mean that you have
Requested an impossible situation or if you use the unstable
Distribution that some required packages have not yet been created
or has been moved from Incoming.
The following information may help correct the situation:

The following packages have unfulfilled dependencies:
gnupg: Breaks: software properties-common (<= 0.96.24.3), but 0.96.20.7 must be installed
E: Error, pkgProblemResolver :: Resolve generated interrupts. This can be caused by stored packages.

zabbix 4.0 – hardware requirements for centos 16.04 LTS for

I need to set up zabbix 4.0 for monitoring less than 100 hosts (devices). Therefore, anyone can support the following points.

1) What is the minimum amount of memory (RAM) required to install the Zabbix server on a virtual machine?

2) How much memory (RAM) does the Zabbix Agent (Host Centos) need?

3) Can we use the SQLite database for the Zabbix server (to be installed on the VM)? and how much memory will it consume? What other databases can I use to setup Zabbix servers?

4) Is it ok if both the database and the Zabbix server remain on the same VM machine?

I am really grateful for the help you give me.

Thank you, Mrunal