Ubuntu 18.04 No sound from HDMI

I have Ubuntu 18.04 on a 2008 Macbook. I can not get the HDMI sound working. I've tried everything, including reinstalling nvidia, lightdm and updating. 🙁 Nothing works, please help.

My edition of xrandr:

Screen 0: at least 320 x 200, currently 1280 x 800, maximum 8192 x 8192
LVDS-1 connected primarily 1280x800 + 0 + 0 (normal left inverted right x-axis y-axis) 286 mm x 179 mm
1280 x 800, 60.22 * + 59.99, 59.97, 59.81, 59.91
1280 x 720 60.00 59.99 59.86 59.74
1024 x 768 60.04 60.00 59.95
960 x 720 60.00
928 x 696 60.05
896 x 672 60.01
1024 x 576 59,95 59,96 59,90 59,82
960 x 600 59.93 60.00
960 x 540 59.96 59.99 59.63 59.82
800 x 600 60.00 60.32 59.96 56.25
840 x 525 60.01 59.88
864 x 486 59.92 59.57
800 x 512 60.17
700x525 59.98
800 x 450 59.95 59.82
640 x 512 60.02
720x450 59.89
700 x 450 59.96 59.88
640 x 480 60.00 59.94 59.94
720x405 59.51 58.99
720x400 59.97
684 x ​​384 59.88 59.85
680 x 384 59.80 59.96
640 x 400 59.88 59.98 59.96
576 x 432 60.06
640 x 360 59,86 59,83 59,84 59,32
640 x 350, 59.84
512 x 384 60.00
512 x 288 60.00 59.92
480 x 270 59.63 59.82
400 x 300 60.32 56.34
432 x 243 59.92 59.57
320 x 240 60.05
360x202 59.51 59.13
320 x 180 59,84 59,32
DP-1 connected 1280x800 + 0 + 0 (normal left inverted right x-axis y-axis) 1366 mm x 768 mm
1366 x 768 59.79 +
1920x1080i 60.00 50.00 59.94
1920 x 1080 30,00 25,00 24,00 29,97 23,98
1360 x 768 59.80 59.96
1280 x 800 59.81 59.91 *
1152 x 864 60.00 59.97
1280x768, 59.87
1280 x 720 59.86 60.00 50.00 59.94 59.74
1024 x 768 70.07 60.00
1024 x 576 59.96 59.90 59.82
960 x 600 60.00
960 x 540 59.96 59.99 59.63 59.82
800 x 600 70.00 65.00 60.00 60.32 56.25
840 x 525 69.88 60.01 59.88
864 x 486 59.92 59.57
720 x 576 50.00
800 x 512 60.17
700 x 525 70.06 59.98
800 x 450 59.95 59.82
720 x 480 60.00 59.94
640 x 512 60.02
720x450 59.89
700 x 450 59.96 59.88
640 x 480 60.00 60.00 59.94
720x405 59.51 58.99
720x400 70.08
684 x ​​384 59.88 59.85
680 x 384 59.80 59.96
640 x 400 59.88 59.98
576 x 432 70.00 60.06
640 x 360 59,86 59,83 59,84 59,32
512 x 384 70.07 60.00
512 x 288 60.00 59.92
480 x 270 59.63 59.82
400 x 300 60.32 56.34
432 x 243 59.92 59.57
320 x 240 60.05
360x202 59.51 59.13
320 x 180 59,84 59,32  

The Nautilus search bar on Ubuntu 16.04 often opens and flickers without pressing the key combination clrl + f

I have Ubuntu 16.04 installed in Dell Inspiron 3567. When I open Nautilus. For some reason, the search box opens automatically. When you close the search box, it will open again and again. I have to hold down the Escape key to close the window. The same thing happens in Google Chrome that the navigation bar is randomly selected without giving any reason. Even if you are working in the terminal, the cursor will flash faster than normal. If I enter a character or press the Esc key, it will be normal. Can someone please tell me how to solve this problem. Many Thanks..

ubuntu – horizontally scrolling bash window

I checked all forums, and in Bing / Google, until I get tired, I find nothing, probably through manezice, is it possible to put a horizontal scroll bar in Windows Bash?

I've noticed in some places that this is not a good idea, but I'm thinking of returning to configuration when you do a specific job or install another terminal, and if you need that feature, use a specific one.
Enter the description of the image here

Note that in this image, the command exceeded the width of the window and ideally placed a horizontal scroll.

Ubuntu does not read a CD / DVD drive

When I insert a CD into my CD / DVD drive, Ubuntu does not seem to recognize the drive. When I run

sudo lshw -C disk

The only issue I get is

        *-Plate
Description: ATA Disk
Product: Hitachi HTS54756
Provider: Hitachi
physical ID: 0.0.0
Bus info: scsi @ 0: 0.0.0
logical name: / dev / sda
Version: A50A
Serial number: J2180053CE6YWD
Size: 596 GB (640 GB)
Abilities: partitioned partitioned: dos
Configuration: ansiversion = 5 logicalsectorsize = 512 sectorize = 4096 signature = 67d07c9b

Even in the / dev folder, the only file that has anything to do with a CD / DVD drive is the sg0 file, and even this file is 0B in size.

ubuntu – Why Apache can not access storage locations like /tmp/file.php

I recently installed Apache on Lubuntu, the file was created by default in / var / www / html
This file needed a file from / tmp and did not work.

I thought it was a permissions issue, so I created 777 for the file in tmp and made it executable. but that did not help.

It's weird because on my home server running Raspberry Pi (Raspbian), Apache works that way too,

I have made sure that the user www-data is able to execute this script correctly, and the working file was needed correctly, but the http browser does not work.

I miss something that is crucial to the configuration in apache2.conf. I tried to aden this directory, but nothing worked as expected.

The Ubuntu 18.04 boot will start flashing when the NVIDIA persistence daemon loads and the c3 session of the gdm user starts

I've been using Ubuntu 18.04 for my machine / in-depth learning and have had issues with getting the NVIDIA drivers to work with Ubuntu loading in the past. I have never enabled the graphical login for use with nvidia drivers. So I deactivated it first and logged in on a black screen with my encrypted password. After that, the graphical user interface is loaded and I can log in to my account. I am new to Linux in general and therefore generally only follow the advice I find on this site when I come across a mistake.

Starting this morning, after entering the encryption password, you will have the following startup options:

# Start NVIDIA persistence daemon [OK] Launched the NVIDIA persistence daemon [OK] Launched session c3 of user gdm & # 39;

and then the screen just flashes black and back to the text and repeats this cycle. I tried pressing Alt + F2 to log in this way, but I can type in one letter before blinking and reset myself twice.

Other information:

1) Ubuntu PostgreSQL Cluster @ 10-main and 9.5 main can not boot while booting (I have not seen that before)

2) When last night's shutdown, there was a problem running a stop job (time / unlimited) that I just ignored.

Any suggestions for rectification?

ubuntu – pip install with –no-cache-dir and –target

I'm trying to create an AWS lambda function that needs to run a python script and use python2.7 (because it does not work with python3). I'm trying to put together a dependency package for my script that contains a nice soup, but I still get the error message:

ImportError: No module named html.entities

I've found the source of the error (https://docs.python.org/2.7/library/htmllib.html#module-htmlentitydefs – this module has been renamed from 2 to 3 in the switch) and found a solution to that without leaving this error running my computer. If only I run pip install --upgrade --no-cache-dir beautifulsoup4, then I can run python2.7 master.py and it works flawlessly. However, the problem occurs when I try to create this dependency package. I run pip install --upgrade --no-cache-you beautifulsoup4 --target. and the packages you want will appear in the directory, but if I run the script again, the same error will be displayed as before:

/home/user/.../tempStorage/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors can not be used.
The soupsieve package is not installed. CSS selectors can not be used. & # 39;
Tracing (last call last):
File "master.py", line 10, in 
    from bs4 import BeautifulSoup
File "/home/user/.../tempStorage/bs4/__init__.py", line 34, in 
    from .builder import builder_registry, ParserRejectedMarkup
File "/home/user/.../tempStorage/bs4/builder/__init__.py", line 7, in 
    import from bs4.element (
File "/home/user/.../tempStorage/bs4/element.py", line 19, in 
    from bs4.dammit import entity substitution
File "/home/user/.../tempStorage/bs4/dammit.py", line 13, in 
    from html.entities import codepoint2name
ImportError: No module named html.entities

It seems that the difference is that this time, the dependencies that are installed in the directory it's in are used, not those that are in a different location on my computer. Unfortunately it's the ones in this directory that I have to work with. Any help would be appreciated.

amazon ec2 – The EC2 Ubuntu instance does not start properly after stopping

I stopped my EC2 Ubuntu instance (can not remember if it's 4/14 or 4/16) and can not access it now.

These are the last few lines of the system log.

Start: loading the main driver ... done.
Start: Run / scripts / init-premount ... done.
Start: Mount the root filesystem ... Start: Run / scripts / local-top ... done.
Start: Running / scripts / local-premount ... done.
Warning: fsck does not exist, so skip root file system
[    9.413433] EXT4-fs (xvda1): file system with ordered data mode. Options: (null)
done.
Start: Run from / scripts / local-bottom ... done.
Start: Running / scripts / init-bottom ... Warning: Overlayroot: Debugging failed
done.
run-init: / sbin / init: No such file or directory
The target file system did not request / sbin / init.
run-init: / sbin / init: No such file or directory
run-init: / etc / init: permission denied
run-init: / bin / init: No such file or directory
/ bin / sh: 0: can not access tty; Job control disabled
# [   37.220041] random: Non-blocking pool is initialized

I have mounted my volume in another instance and checked, and / sbin / init is really not there.

In the new instance that I started, / sbin / init is a shortcut to / lib / systemd / systemd. Apparently, / lib / systemd / systemd does not exist in the old volume.

I also tried to run fsck on the old volume and it did not work.

Any hints?