Hp probook x360 g1 ee https://askubuntu.com/questions/1562811/hp-probook-x360-g1-ee

I have been trying to get linux mint to properly load to the HD of this old laptop and every time the grub installer fails. I restart it boot repair go to install again and it fails again or tells me the /root is target. I'm struggling on this one.

Application to create dynamic presentations with zoom, pan, and animated lines https://askubuntu.com/questions/1562809/application-to-create-dynamic-presentations-with-zoom-pan-and-animated-lines

I am looking for a Linux application that will allow me to make a dynamic presentation showing the path of proposed bus routes. The background map shows the routes, but the advantages of the proposed network are hard to understand without a route by route comparison of the existing and proposed routes.

The report is written in LibreOffice. The professionally created map is a pdf.

Image showing what a presentation application that zooms, pans and follows an animated bus route

I have tried LibreOffice Impress, PhotoFilmStrip, and Blender. LibreOffice Impress does not allow the background image to exceed the size of the window by more than two times, so that limits the extent that the map can appear to zoom in. Also I could not find a way to animate a route and cause the portion of the map that is visible to follow along. PhotoFilmStrip appears to zoom and pan any image, but does not appear to have an animation function. Blender is far beyond me. I got as far as learning that arranging layers in a 2D animation requires moving them in the z-axis and then resizing them.

Why I can't see the drives on Files? https://askubuntu.com/questions/1562808/why-i-cant-see-the-drives-on-files

I'm wondering why the Files app doesn't show the physical and virtual drives as in Windows.

Example: I have downloaded Helium appimage and opened it with Disk Image Mounter (as it was the default option). I looked for a virtual drive to be appear on the Files but it didn't. I ran Disks utility and saw the image was mounted but how do I access this virtual drive and run the installer there?

Unable to install gnome-42-2204 after removing it first on 24.04.3 LTS https://askubuntu.com/questions/1562805/unable-to-install-gnome-42-2204-after-removing-it-first-on-24-04-3-lts

Update of gnome-42 and 46 in app-centre did not finish. I had the impression that 42 was not needed anymore and removed it (not clever). But firefox and app-center and so on are still using it and thus not working anymore. After all tries to reinstall gnome-42-2204 it all ends with an validation error in gnome-42-2204-226.snap.

Er

Broadcom wifi driver issue https://askubuntu.com/questions/1562804/broadcom-wifi-driver-issue

I am actually trying Linux mint 21.2 on my old laptop. Hp elitebook 745 g2. The drivers install correctly (bcmwl-kernel-source) but it dosent list any access point. This is my first time doing a full linux install, i usually have windows together. Thanks

does `ufw` use `nftables` directly or indirectly via `iptables-nft`? https://askubuntu.com/questions/1562803/does-ufw-use-nftables-directly-or-indirectly-via-iptables-nft

I use ufw on ubuntu 22.04 and I've noticed that iptables -L -v -n -x and nft list ruleset both show the same rules.

Here is what I have

# ufw --version
ufw 0.36.1
Copyright 2008-2021 Canonical Ltd.
# iptables -V
iptables v1.8.7 (nf_tables)
# nft -v
nftables v1.0.2 (Lester Gooch)

I'm trying to understand, does ufw use nftables directly or does it use iptables and rely on iptables-nft to use nftables ? Like trying to understand if ufw has been converted to be nftables native and it is creating these duplicate rules itself or if ufw doesn't even know nftables exists at all and iptables-nft allows ufw to transparently use nftables?

Does the answer change based on the version of ufw in use?

Giving access to specific folder - Sonarr root folder setup https://askubuntu.com/questions/1562802/giving-access-to-specific-folder-sonarr-root-folder-setup

I'm new to Ubuntu, but not so new to 'IT'. I recently bought Dell-Wyse terminal, which I would like to use as my NAS. One of the apps I wanted to install is Sonarr. That went smoothly without any issues, but I'm having a problem with assigning user to specific Path. Below is my setup

This is my root folder

/media/external_ssd

Inside I have 2 folders

/media/external_ssd/personal

/media/external_ssd/Video

I created user sonarr which belongs to group media (together with my own profile)

Problem

I want to give access to the group: media only to the path: http://media/external_ssd/Video (and don't allow group media to access personal).

Attempt

I tried to do that by running:

sudo chown -R myprofile:media /media/external_ssd/Video
sudo chmod -R g+rwx /media/external_ssd/Video

But it doesn't seem to be working (I'm not able to select Video folder as root in Sonarr app).

This works only for me once I'll run chmod for all users to my ssd drive.

sudo chmod -R a+rwx /media/external_ssd

I don't want to do that, as in such case all users (including sonarr) will have access to my personal folder and I don't want that.

Do you know if I'm doing something wrong? Am I not able to give user to subfolder skipping the parent folder? Or am I messing something with the Sonarr user?

Wayland issue with [Super]+é shortcut https://askubuntu.com/questions/1562801/wayland-issue-with-super%c3%a9-shortcut

Using azerty, this should change the app to the second one in the dock, however with Wayland this types "é" in the opened window. Other [Super]+[num] shortcuts work well. For example [Super]+& opens the first app. The shortcut works well using Xorg. It seems to be a known issue, but I found no easy solution.

When I'm installing Ubuntu 24.04 on my laptop this pops up and doesn't let me finish the installation https://askubuntu.com/questions/1562797/when-im-installing-ubuntu-24-04-on-my-laptop-this-pops-up-and-doesnt-let-me-fi

I can't send the image because it's too big, but here's the text that keeps popping up.

....  nouveau 0000:01:00.0 bus: MMIO write of 0000001f FAULT at 6013d4 \[PRIVRING\] 

and then the same message on other line but in red.

How to install WhatsApp on Ubuntu 18.04 LTS amd64 [closed] https://askubuntu.com/questions/1562795/how-to-install-whatsapp-on-ubuntu-18-04-lts-amd64

Today, i installed meetfranz.com on Ubuntu 18.04 LTS amd64

Per accident, i noticed meeetfranz.com today. Never heard about that before.

I chose for this old, small distribution, because it's only for testing purposes.

i used the mini ISO, installed via command prompt: Open VM Tools, Net Tools, Openssh Server and client,

sudo apt-get install --no-install-recommends ubuntu-desktop

sudo apt update && sudo apt install gnome-startup-applications sudo apt install gnome-tweaks sudo apt-get install gdebi-core sudo apt-get install synaptic

wget https://github.com/meetfranz/franz/releases/download/v5.11.0/franz_5.11.0_amd64.deb sudo dpkg -i franz_5.11.0_amd64.deb sudo apt-get -f install After: sudo apt-get -f install, he corrected the previous errors !

Now, i had the startup aplications twice :-) Anyway - everything is fine.

In the settings, i set autologon, deactivated display time out.

Tested it - at startup, meetfranz is showing up, Logged in - chose for WhatsApp - running like a charm :-)

Installed: sudo apt-get install --no-install-recommends ubuntu-desktop, because, i don't need all these app's and aplications. Just hold it small - 8 GB vmdk.

Now, - WhatsApp is automatically starting, i have to remove vmware tools and open vm tools. Because, this vmdk should run on Limbo PC or Bochs for Android.

On BlackBerry 10 - Classic :-) Limbo PC and Bochs don't like installed Vm ware and open vm tools ! :-) So: now, i have to delete them...

I tried that long time ago - didn't know about uninstall these tools.. Didn't run of course - maybe this time it wil :-)

First of all, i have to free the vmdk file from these vmware an openvm tools.

Than, i can try to install on BlackBerry Classic - rep. Bochs or Limbo PC.

Because, i have to remove thesse tools anyway, i gona try to make a live iso... I'll see...

How do I show folder's previews on Nautilus/Dolphin? https://askubuntu.com/questions/1562793/how-do-i-show-folders-previews-on-nautilus-dolphin

I've just started to use Zorin as my main OS and everything is really good with exception to the fact I cannot see preview for folders whatsoever. I tried many tweaks to no avail- which really bothers me considering I like to make a considerable amount of folders to keep things tidy.

The picture below quite explains what I mean. With my previous File Manager ( File Pilot ) I could see the folder's content before having to open it which was a huge help.

Is there a way to fix this?

Here's a picture as an example

Installation by pip or pip3 or pipx to beware a consistant system https://askubuntu.com/questions/1562785/installation-by-pip-or-pip3-or-pipx-to-beware-a-consistant-system

Ubuntu-Mate, Ubuntu 24.04.3 LTS

An example :

pip install curl-ffi

error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

My understanding : curl-ffi must be installed global, but with the risk of breaking the Python installation I can not do it. What can I do to beware my system but also to have curl-ffi global ?

Xorg segmentation fault after 10 minutes idle since 24.04.3 ideas please? https://askubuntu.com/questions/1562761/xorg-segmentation-fault-after-10-minutes-idle-since-24-04-3-ideas-please

Since the upgrade to Ubuntu 24.04.3 I get logged out after exactly 10 minutes idle time.

I have done a complete reinstall to eliminate any leftovers from previous use and still get the same issue.

Screensaver is disabled (because it prevented login), power management is disabled and TMOUT is not set.

Hardware is an old Dell XPS One (A2010), Intel hardware.

At each forced logout I get a crash dump from Xorg in /var/crash.

I'd appreciate any help to investigate further.

gdb shows this:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".  
Core was generated by \`/usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sd'.  
Program terminated with signal SIGSEGV, Segmentation fault.  
#0  0x000078061e44f4b7 in pci_device_vgaarb_set_target () from /lib/x86_64-linux-gnu/libpciaccess.so.0  
\[Current thread is 1 (Thread 0x78061dbb2ac0 (LWP 29565))\]  
(gdb) bt full  
#0  0x000078061e44f4b7 in pci_device_vgaarb_set_target () at /lib/x86_64-linux-gnu/libpciaccess.so.0  
#1  0x000056fe58578190 in ??? ()  
#2  0x000056fe5855af08 in ??? ()  
#3  0x000056fe585d256e in ??? ()  
#4  0x000056fe5855db83 in ddxGiveUp ()  
#5  0x000056fe586a1ad6 in ??? ()  
#6  0x000056fe586a2b77 in FatalError ()  
#7  0x000056fe5869912b in ??? ()  
#8  0x000078061de45330 in \<signal handler called\> () at /lib/x86_64-linux-gnu/libc.so.6  
#9  0x000078061e44f4b7 in pci_device_vgaarb_set_target () at /lib/x86_64-linux-gnu/libpciaccess.so.0  
#10 0x000056fe58578190 in ??? ()  
#11 0x000056fe5855af08 in ??? ()  
#12 0x000056fe585d256e in ??? ()  
#13 0x000056fe5869211c in ??? ()  
#14 0x000056fe5869233d in ??? ()  
#15 0x000056fe586925aa in WaitForSomething ()  
#16 0x000056fe5851986a in ??? ()  
#17 0x000056fe5851deda in ??? ()  
#18 0x000078061de2a1ca in \__libc_start_call_main  
    (main=main@entry=0x56fe58506360, argc=argc@entry=13, argv=argv@entry=0x7ffe5dbcd2f8)  
    at ../sysdeps/nptl/libc_start_call_main.h:58  
        self = \<optimised out\>  
        result = \<optimised out\>  
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140730471076600, 4422252990731496477, 13, 0, 95650405495128, 131967675547648, 4422252990746176541, 3651996084010986525}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0xd, 0x7ffe5dbcd2f0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 13}}}  
        not_first_call = \<optimised out\>  
#19 0x000078061de2a28b in \__libc_start_main_impl  
    (main=0x56fe58506360, argc=13, argv=0x7ffe5dbcd2f8, init=\<optimised out\>, fini=\<optimised out\>, rtld_fini=\<optimised out\>, stack_end=0x7ffe5dbcd2e8) at ../csu/libc-start.c:360  
#20 0x000056fe58506395 in \_start ()  
(gdb) 
Ethernet connection not working (Ubuntu 24.04.2) https://askubuntu.com/questions/1562758/ethernet-connection-not-working-ubuntu-24-04-2

I have just upgraded my server computer with a new chassi and a new CPU (R7 3700x -> R9 5900xt) and after moving everything into the new chassi and booting it up, everything works as normal except for the ethernet interface not showing up (ip a) nor is it working except for in BIOS. So I am certain that there is a problem with Ubuntu.

I have tried updating drivers, I tried to google what the problem is but couldn't understand/find anything to help me. Also tried checking the ethernet cable but there was no problem, and it worked flawlessly before switching chassi and CPU. The BIOS are also updated to the newest version. The led indicator where the ethernet cable is plugged in is also showing nothing (not blinking in orange nor green)

This is what I get when running the command: "lspci | awk '/[Nn]et/ {print $1}' | xargs -i% lspci -ks %" to check network cards.

04:00.0 Network Controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a) DeviceName: RTL8111E 
Giga LAN Subsystem: Intel Corporation Wi-Fi 6 AX200NGW 
Kernel driver in use: iwlwifi 
Kernel modules: iwlwifi 
05:00.0 
Ethernet controller: Realtek Semiconductor co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 16) 
Subsystem: Gigabyte Technology co., Ltd Onboard Ethernet 
Kernel driver in use: r8169 
Kernel modules: r8169 

Do any of you have any ideas on what the problem is? Any help would be appreciated!

spd-say in bash script does not work when called from crontab but works from terminal https://askubuntu.com/questions/1562735/spd-say-in-bash-script-does-not-work-when-called-from-crontab-but-works-from-ter

My system is Lubuntu 22.04.5 LTS on a laptop.

Because I would like to keep my battery as healthy as possible, I want to make sure that the charging level stays between certain boundaries, but the hardware in my laptop does not support battery charge limits, so I turned to make use of a bash script (which I found at Github and modified it to my needs) which is called via crontab every 5 minutes. It then gives me a notification which tells me the battery charge in %, with a message warning me when it becomes to low (when the charger is not connected) or when it is too high (when the charger is plugged in), the third possibility in the notification text is that it just tells me the charge when it is between the given boundaries in the script. This works okay, but the trouble started when I added a spoken message to the script by using a line in the script that is meant to do just that.

The spoken message uses spd-say and the bash script works fine with spd-say giving the audio only when I call the script from terminal. But when the script is called from crontab it also makes the notification text appear alright, but then there is no sound at all to be heard.

I also tried aplay, which plays soundfiles and this gives a similar result, when the script is called from terminal it works, but not when called from crontab.

Here is the script, it is located at /usr/local/bin and it is called battmon.sh:

# ------------------------------------------------------------------
# Script Name:   battmon.sh
# Description:   A Simple Bash Script for Battery Level Charge 
#                Notifications
# Website:       https://gist.github.com/ostechnix
# ------------------------------------------------------------------
# Define thresholds
HIGH_THRESHOLD=80
LOW_THRESHOLD=40
LOGFILE="/tmp/battmon.log"
# Get the battery level
LEVEL=$(acpi -b | awk -F', ' '{print $2}' | tr -d '%,')
# Ensure LEVEL is a valid number
if [[ "$LEVEL" =~ ^[0-9]+$ ]]; then
    # Check for high battery level
    if [ "$LEVEL" -ge "$HIGH_THRESHOLD" ]; then
        echo "$(date) - Battery at $LEVEL%. Sending high battery notification..." >> "$LOGFILE"
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 notify-send -t 0 "Accu is vol" "De accu is nu opgeladen tot boven het ingestelde maximale niveau van $HIGH_THRESHOLD % en is nu $LEVEL % , ontkoppel de lader !" >> "$LOGFILE" 2>&1
        spd-say -t female1 -w "stop direct met opladen ! de accu is vol, stop meteen met opladen, want de accu is meer dan $LEVEL% procent vol!"
    fi
    # Check for low battery level
    if [ "$LEVEL" -le "$LOW_THRESHOLD" ]; then
        echo "$(date) - Battery at $LEVEL%. Sending low battery warning..." >> "$LOGFILE"
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 notify-send -t 0 "Accu is laag" "De accu is nu ontladen tot onder het ingestelde minimale niveau van $LOW_THRESHOLD % en is $LEVEL %. Sluit nu de lader aan!" >> "$LOGFILE" 2>&1
        spd-say -t female1 -w "begin nu direct met opladen ! de accu is leeg, begin  meteen met opladen, want de accu heeft nog maar $LEVEL% procent lading !"
    fi 
    # Check for good battery level
    if [ "$LEVEL" -ge "$LOW_THRESHOLD" ] && [ "$LEVEL" -le "$HIGH_THRESHOLD" ]   ; then
        echo "$(date) - Battery at $LEVEL%. Sending normal battery level message..." >> "$LOGFILE"
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 notify-send -t 10000 "De accu is geladen op een veilig niveau en is nu $LEVEL% procent" >> "$LOGFILE" 2>&1
        aplay /home/paul/Muziek/spraak/ttsmaker-file-2026-1-10-21-23-47-accuniveau-test-2.wav
        spd-say -t female1 -w "de accu heeft nog steeds een goede lading van op dit moment $LEVEL% procent"
    fi
fi

I used

crontab -e

and entered this line:

*/5 * * * * /usr/local/bin/battmon.sh >> /tmp/battmon.log 2>&1

I also tried to use the cron in another way, as I understood that there is the difference in cron for the user and the system, so to try it in the system way and I did:

sudo nano /etc/crontab

and added the same line there:

*/5 * * * * /usr/local/bin/battmon.sh >> /tmp/battmon.log 2>&1

But to no avail...

At this moment I have no clue how to fix this, maybe it is not possible at all to call these sound outputting programs from crontab, but maybe someone does know how to do it right. In either case I am very curious about the why and how.

EDIT-1:

The answer knu gave seems to do a great deal of the trick, i.e. when I followed his answer and called the script from terminal everything worked, notification and sounds (I must add that strangely enough it was the notification that worked yesterday and not the sounds, but this morning it was the other way around, which I could and still can not get my head around, but after adding the line:

export XAUTHORITY=/run/user/1000/gdm/Xauthority

that was fixed (called from terminal). But in the log there was an error message "Cannot autolaunch D-Bus without X11 $DISPLAY" which was only resolved after adding the line:

export DISPLAY=:0.0

but I also saw another error in the log, note that this error only occurs when the script is called from cron, not from terminal: " GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files " for which I found a solution here

But still things are not going as wished:

  1. although everything works when called from terminal, when called from cron the script does not work! (my fault: I accepted the answer as the solution, but this is still not the case...) No notification, no sound.
  2. the log now shows another error (again only when the script is called from cron): "Error calling StartServiceByName for org.freedesktop.Notifications: Failed to execute program org.freedesktop.Notifications: No such file or directory"
  3. After searching for a solution for the error mentioned under 2 above, I found the exact same suggestion as a solution that resolved the previous error, but of course it is clear that this does not work for this second error, because after following the solution for the first error this second one still exists !

So I was too fast in thinking this question has been resolved. I still am looking for a solution...

EDIT-2:

The missing notification has been solved by installing notification-daemon:

sudo apt-get install notification-daemon

Altough the sound output is still missing, the log now does not show any error messages after the installing of the daemon.

EDIT-3:

I did not mention this before, but I do now: I did removed the:

DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000

that stood in front of the notification lines like in:

DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 notify-send -t 0 "Accu is vol" "De accu is nu opgeladen tot boven het ingestelde maximale niveau van $HIGH_THRESHOLD % en is nu $LEVEL % , ontkoppel de lader !" >> "$LOGFILE" 2>&1

because at the time I noticed that after adding

export XAUTHORITY=/run/paul/1000/gdm/Xauthority
export DISPLAY=:0.0

this was not necessary anymore, but I just found out that the suggestion that steeldriver gave in the comments was right, it was still needed before the statements that gives the speech output. So now it reads for instance:

DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 spd-say -t female1 -w "de accu heeft nog steeds een goede lading van op dit moment $LEVEL% procent"

Concluding:

The script that is functioning alright now on my system looks this way:

#!/usr/bin/env bash

# ------------------------------------------------------------------
# Script Name:   battmon.sh
# Description:   A Simple Bash Script for Battery Level Charge 
#                Notifications, modified from the website below.
# Website:       https://gist.github.com/ostechnix
# ------------------------------------------------------------------

# Define thresholds
HIGH_THRESHOLD=80
LOW_THRESHOLD=40
LOGFILE="/tmp/battmon.log"

# Get the battery level
LEVEL=$(acpi -b | awk -F', ' '{print $2}' | tr -d '%,')

export XAUTHORITY=/run/user/1000/gdm/Xauthority
export DISPLAY=:0.0

# Ensure LEVEL is a valid number
if [[ "$LEVEL" =~ ^[0-9]+$ ]]; then
    # Check for high battery level
    if [ "$LEVEL" -ge "$HIGH_THRESHOLD" ]; then
        echo "$(date) - Battery at $LEVEL%. Sending high battery notification..." >> "$LOGFILE"
        notify-send -t 0 "Accu is vol" "De accu is nu opgeladen tot boven het ingestelde maximale niveau van $HIGH_THRESHOLD % en is nu $LEVEL % , ontkoppel de lader !" >> "$LOGFILE" 2>&1
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 spd-say -t female1 -w "stop direct met opladen ! de accu is vol, stop meteen met opladen, want de accu is meer dan $LEVEL% procent vol!"
    fi
    
    # Check for low battery level
    if [ "$LEVEL" -le "$LOW_THRESHOLD" ]; then
        echo "$(date) - Battery at $LEVEL%. Sending low battery warning..." >> "$LOGFILE"
        notify-send -t 0 "Accu is laag" "De accu is nu ontladen tot onder het ingestelde minimale niveau van $LOW_THRESHOLD % en is $LEVEL %. Sluit nu de lader aan!" >> "$LOGFILE" 2>&1
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 spd-say -t female1 -w "begin nu direct met opladen ! de accu is leeg, begin  meteen met opladen, want de accu heeft nog maar $LEVEL% procent lading !"
    fi
    
    # Check for good battery level
    if [ "$LEVEL" -ge "$LOW_THRESHOLD" ] && [ "$LEVEL" -le "$HIGH_THRESHOLD" ]; then
        echo "$(date) - Battery at $LEVEL%. Sending normal battery level message..." >> "$LOGFILE"
        notify-send -t 10000 "De accu is geladen op een veilig niveau en is nu $LEVEL% procent" >> "$LOGFILE" 2>&1
        DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1000 spd-say -t female1 -w "de accu heeft nog steeds een goede lading van op dit moment $LEVEL% procent"
    fi
fi
Disable Ubuntu 24.04 updates (i.e. disable Software Updater) https://askubuntu.com/questions/1562655/disable-ubuntu-24-04-updates-i-e-disable-software-updater

On Software Updater's 'Software & Updates', under 'updates', I've selected 'never*' on the 'subscribe to', but security updates still keep popping up and often lock up the computer while I'm in the middle of something processor intensive, requiring holding down the power button.

I made a script to kill packagekitd (sudo systemctl stop packagekit.service), but it will reload itself and I still have to keep launching the script until it finally just quits and I can move on. It seems things like apt-check, etc. keep triggering it.

I would rather just manually do updates say once every week or two, maybe just once a month - all updates - the serious ones, security ones, and all.

Is there any way to just make it do all updates manually, other than uninstall the Software Updater app and just open terminal to use command like apt-get update, apt-get upgrade, etc.?

/etc/apt/apt.conf.d/50unattended-upgrades:

// Automatically upgrade packages from these (origin:archive) pairs
//
// Note that in Ubuntu security updates may pull in new dependencies
// from non-security sources (e.g. chromium). By allowing the release
// pocket these get automatically pulled in.
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
// Extended Security Maintenance; doesn't necessarily exist for
// every release and this system may not have it installed, but if
// available, the policy for updates is such that unattended-upgrades
// should also install from here by default.
"${distro_id}ESMApps: ${distro_codename}-apps-security";
"${distro_id}ESM: ${distro_codename}-infra-security";
//  "${distro_id}:${distro_codename}-updates";
//  "${distro_id}:${distro_codename}-proposed";
//  "${distro_id}:${distro_codename}-backports";
};

// Python regular expressions, matching packages to exclude from upgrading
Unattended-Upgrade::Package-Blacklist {
// The following matches all packages starting with linux-
//  "linux-";

// Use $ to explicitely define the end of a package name. Without
// the $, "libc6" would match all of them.
//  "libc6$";
//  "libc6-dev$";
//  "libc6-i686$";

// Special characters need escaping
//  "libstdc\+\+6$";

// The following matches packages like xen-system-amd64, xen-utils-4.1,
// xenstore-utils and libxenstore3.0
//  "(lib)?xen(store)?";

// For more information about Python regular expressions, see
// https://docs.python.org/3/howto/regex.html};

// This option controls whether the development release of Ubuntu will be
// upgraded automatically. Valid values are "true", "false", and "auto".
Unattended-Upgrade::DevRelease "auto";

// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run 
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
//Unattended-Upgrade::AutoFixInterruptedDpkg "true";

// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGTERM. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
//Unattended-Upgrade::MinimalSteps "true";

// Install all updates when the machine is shutting down
// instead of doing it in the background while the machine is running.
// This will (obviously) make shutdown slower.
// Unattended-upgrades increases logind's InhibitDelayMaxSec to 30s.
// This allows more time for unattended-upgrades to shut down gracefully
// or even install a few packages in InstallOnShutdown mode, but is still a
// big step back from the 30 minutes allowed for InstallOnShutdown previously.
// Users enabling InstallOnShutdown mode are advised to increase
// InhibitDelayMaxSec even further, possibly to 30 minutes.
//Unattended-Upgrade::InstallOnShutdown "false";

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed. E.g. "user@example.com"
//Unattended-Upgrade::Mail "";

// Set this value to one of:
//    "always", "only-on-error" or "on-change"
// If this is not set, then any legacy MailOnlyOnError (boolean) value
// is used to chose between "only-on-error" and "on-change"
//Unattended-Upgrade::MailReport "on-change";

// Remove unused automatically installed kernel-related packages
// (kernel images, kernel headers and kernel version locked tools).
//Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";

// Do automatic removal of newly unused dependencies after the upgrade
//Unattended-Upgrade::Remove-New-Unused-Dependencies "true";

// Do automatic removal of unused packages after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";

// Automatically reboot *WITHOUT CONFIRMATION* if
//  the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

// Automatically reboot even if there are users currently logged in
// when Unattended-Upgrade::Automatic-Reboot is set to true
//Unattended-Upgrade::Automatic-Reboot-WithUsers "true";

// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now"
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";

// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
//Acquire::http::Dl-Limit "70";

// Enable logging to syslog. Default is False
// Unattended-Upgrade::SyslogEnable "false";

// Specify syslog facility. Default is daemon
// Unattended-Upgrade::SyslogFacility "daemon";

// Download and install upgrades only on AC power
// (i.e. skip or gracefully stop updates on battery)
// Unattended-Upgrade::OnlyOnACPower "true";

// Download and install upgrades only on non-metered connection
// (i.e. skip or gracefully stop updates on a metered connection)
// Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";

// Verbose logging
// Unattended-Upgrade::Verbose "false";

// Print debugging information both in unattended-upgrades and
// in unattended-upgrade-shutdown
// Unattended-Upgrade::Debug "false";

// Allow package downgrade if Pin-Priority exceeds 1000
// Unattended-Upgrade::Allow-downgrade "false";

// When APT fails to mark a package to be upgraded or installed try adjusting
// candidates of related packages to help APT's resolver in finding a solution
// where the package can be upgraded or installed.
// This is a workaround until APT's resolver is fixed to always find a
// solution if it exists. (See Debian bug #711128.)
// The fallback is enabled by default, except on Debian's sid release because
// uninstallable packages are frequent there.
// Disabling the fallback speeds up unattended-upgrades when there are
// uninstallable packages at the expense of rarely keeping back packages which
// could be upgraded or installed.
// Unattended-Upgrade::Allow-APT-Mark-Fallback "true";

/etc/apt/apt.conf.d/10periodic:

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";

/etc/apt/apt.conf.d/20auto-upgrades:

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";

...the Software Updater has an option to select 'NEVER' for Automatically Check for Updates, but not for When there are Security Updates ~ the ONLY choices are 'DISPLAY...' or 'DOWNLOAD...'... and it does so right in the middle of my work :-(

The C compiler identification is unknown https://askubuntu.com/questions/1562591/the-c-compiler-identification-is-unknown

I have been trying every single solution the WWW has to offer, I would appreciate if someone could please help.

Dockerfile
# https://pythonspeed.com/articles/base-image-python-docker-images/
# https://github.com/esphome/esphome/issues/11502#issuecomment-3461332624
# Warning: Python >= 13 might cause compilation errors
FROM ubuntu:22.04

LABEL Description="Build environment"

WORKDIR /root

SHELL ["/bin/bash", "-c"]

## Protobuf and cMake & ESP-IDF
RUN apt-get update && apt-get -y --no-install-recommends install \
    cmake \
    build-essential \
    protobuf-compiler \
    git \
    wget \
    flex \
    bison \
    gperf \
    python3 \
    python3-pip \
    python3-venv \
    ninja-build \
    ccache \
    libffi-dev \
    libssl-dev \
    dfu-util \
    libusb-1.0-0 \
    zlib1g-dev \
    libcgal-dev \
    g++-10 \
    gcc-10

RUN mkdir -p /root/esp; \
    cd /root/esp; \
    git clone -b v5.5.2 --recursive https://github.com/espressif/esp-idf.git

RUN cd /root/esp/esp-idf; \
    ./install.sh esp32
    
RUN . /root/esp/esp-idf/export.sh

COPY awsmqttclinet.cpp /root
COPY CMakeLists.txt /root

ARG IDF_PATH=/root/esp/esp-idf

RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10

RUN gcc --version
RUN g++ --version

RUN mkdir -p /root/build; \
    cd /root/build; \
    cmake -D CMAKE_C_COMPILER=/usr/bin/gcc -D CMAKE_CXX_COMPILER=/usr/bin/g++ .. # I have tried as well: cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ ..

# RUN cmake --build . -j

# sudo systemctl start | stop docker
# sudo docker build --pull --no-cache -t smart-thing .
# sudo docker build .

gcc --version

gcc (Ubuntu 10.5.0-1ubuntu1~22.04.2) 10.5.0

g++ --version

g++ (Ubuntu 10.5.0-1ubuntu1~22.04.2) 10.5.0
CMakeLists.txt
cmake_minimum_required(VERSION 3.10.2)
# https://github.com/espressif/esp-idf/blob/master/tools/cmake/project.cmake
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# https://aur.archlinux.org/packages/xtensa-esp32-elf-gcc#comment-743958
set(CMAKE_EXE_LINKER_FLAGS "-nostdlib -u call_user_start_cpu0 -Wl,--gc-sections -static -lgcc -lstdc++ -lgcov")

project(smart-thing-lib)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Remove for compiler-specific features
set(CMAKE_CXX_EXTENSIONS OFF)

string(APPEND CMAKE_CXX_FLAGS " -Wall")
string(APPEND CMAKE_CXX_FLAGS " -Wbuiltin-macro-redefined")
string(APPEND CMAKE_CXX_FLAGS " -pedantic")
string(APPEND CMAKE_CXX_FLAGS " -Werror")

# clangd completion
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include(FetchContent)
FetchContent_Declare(
        avr-libc
        GIT_REPOSITORY https://github.com/avrdudes/avr-libc.git
        GIT_TAG avr-libc-2_3_0-release

)
FetchContent_Declare(
        arduino-core
        GIT_REPOSITORY https://github.com/arduino/ArduinoCore-avr.git
)
FetchContent_Declare(
        arduino-esp32
        GIT_REPOSITORY https://github.com/espressif/arduino-esp32.git
)
FetchContent_Declare(
        arduino-wifi
        GIT_REPOSITORY https://github.com/arduino-libraries/WiFi.git
)
FetchContent_MakeAvailable(avr-libc arduino-core arduino-esp32 arduino-wifi)
add_library(avr-libc INTERFACE)
configure_file(${avr-libc_SOURCE_DIR}/include/avr/version.h.in ${avr-libc_SOURCE_DIR}/include/avr/version.h)
configure_file(${avr-libc_SOURCE_DIR}/include/util/delay.h.in ${avr-libc_SOURCE_DIR}/include/util/delay.h)
target_include_directories(avr-libc
        SYSTEM INTERFACE
        ${avr-libc_SOURCE_DIR}/include
        ${avr-libc_SOURCE_DIR}/include/avr
)
add_library(arduino-core INTERFACE)
target_include_directories(arduino-core
        SYSTEM INTERFACE
        ${arduino-core_SOURCE_DIR}/cores/arduino
        ${arduino-core_SOURCE_DIR}/variants/standard
)
add_library(arduino-esp32 INTERFACE)
target_include_directories(arduino-esp32
        SYSTEM INTERFACE
        ${arduino-esp32_SOURCE_DIR}/libraries/WiFiClientSecure/src
)
add_library(arduino-wifi INTERFACE)
target_include_directories(arduino-wifi
        SYSTEM INTERFACE
        ${arduino-wifi_SOURCE_DIR}/src
)
add_library(smart-thing-lib SHARED ./awsmqttclinet.cpp)
set_target_properties(smart-thing-lib PROPERTIES CXX_STANDARD 17)

set(Boost_USE_STATIC_LIBS        ON) # only find static libs
set(Boost_USE_MULTITHREADED      ON)
set(Boost_USE_STATIC_RUNTIME    OFF) # do not look for boost libraries linked against static C++ std lib

target_link_libraries(smart-thing-lib
        PRIVATE
        avr-libc
        arduino-core
        arduino-wifi
        -llog
)

## Install ESP-IDF: https://docs.espressif.com/projects/esp-idf/en/v3.3/get-started-cmake/index.html#step-1-set-up-toolchain
## To Run: cmake --build .

Error

-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Minimal build - OFF
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32-elf-gcc
CMake Error at esp/esp-idf/tools/cmake/project.cmake:589 (__project):
  The CMAKE_C_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)


CMake Error at esp/esp-idf/tools/cmake/project.cmake:589 (__project):
  The CMAKE_CXX_COMPILER:

    xtensa-esp32-elf-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)


CMake Error at esp/esp-idf/tools/cmake/project.cmake:589 (__project):
  The CMAKE_ASM_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)
How do I partially rename bulk files all at once? https://askubuntu.com/questions/1562547/how-do-i-partially-rename-bulk-files-all-at-once

I have 900 mp3 files in a folder. They are all of the same format, in that they all start with an individual number and then the song title. e.g. 2b.-29.-.'song title'.mp3, or 3c.-12.-.'song title'.mp3 etc..

This is the name of an actual file: 1a.-.114.-.season.offと.がらくーた.-.涙.\[tear\].mp3.

What I want to do is strip the first 10 characters from every file, and then just have a number ascending from 1 to 800 at the start of the file name, keeping the name of the mp3.

I have checked other examples, but not being a huge terminal guy, was unable to adapt them to my scenario. Well I possibly could but I would be at it for 24hours probably.

VueScan works great but only with GUFW Firewall Off https://askubuntu.com/questions/1560365/vuescan-works-great-but-only-with-gufw-firewall-off

I have used VueScan for more than a decade, but I cannot work out what rule to set in GUFW to allow Brother on WiFi to scan via my local network to an Ethernet wired desktop running Ubuntu 24.04 LTS. The scanner works well with the firewall switched off. Lots of other services work fine with the firewall on (Samba server, Syncthing, printing, Gnome/rygel media server, etc.).

I Can't use Transmission on Ubuntu 25.10 getting this error https://askubuntu.com/questions/1557730/i-cant-use-transmission-on-ubuntu-25-10-getting-this-error

i'm getting this error on the photo i need help please:

enter image description here

When I open the Transmission app, I click File/Open File, and when I get to the downloads folder, I get this error. When I add a torrent file, it says "Access Denied." When I open it as a magnet, then this time app just crashes.

How to run balena etcher on ubuntu 20.04 https://askubuntu.com/questions/1520383/how-to-run-balena-etcher-on-ubuntu-20-04

I am trying to install linux mint using a usb stick. I am currently using ubuntu 20.04 and I dowloaded a .zip from https://etcher.balena.io/#download-etcher. After unzipping I see something like this: enter image description here

But there is nothing there that I can run,no .sh file, nothing. Do you guys know how to run this?

Help with Ubuntu 24.04 LTS and slow internet connection https://askubuntu.com/questions/1518308/help-with-ubuntu-24-04-lts-and-slow-internet-connection

TLDR: Installed ubuntu 24.04 lts and suddenly my internet connection is super slow. (13Mbps compared to 580Mbps for other devices). Any suggestions?

Problem: I used to have a windows 11, moved to ubuntu. Installed 24.04lts version. Internet seems to be very very slow. Tried couple of other suggestions, such as disabling power management for wifi, update and upgrade the system. These does not seem to do the trick. When i look at the device from the router (Atnt) I see a very low link rate (30mbps) whereas every single other device falls at around 500 mbps. Furthermore, I'm using qualcom network adapter since the one that the dell alienware aurora r7 had, kind of stopped working when i changed the case since the case was too small. So in additional drivers, it shows Broadcom Inc. BCM4360 802.11ac Dualband wireless network adapter, I'm not sure if that is the correct one. The one that I am using is - Qualcomm Atheros QCA6174 802.11ac.

What steps I took?

  1. Tried to disable the power management

  2. Command to check the network card - lspci -nnk | grep -i net

07:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
    Subsystem: Rivet Networks Killer Wireless-n/a/ac 1535 Wireless Network Adapter [1a56:1535]
08:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller [1969:e0b1] (rev 10)
    Subsystem: Dell Killer E2500 Gigabit Ethernet Controller [1028:0858]
09:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter [14e4:43a0] (rev 03)
    Subsystem: Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter [14e4:0619]
  1. Command to check the network status. - iwconfig
lo        no wireless extensions.

enp8s0    no wireless extensions.

wlp7s0    IEEE 802.11  ESSID:"cemetery"  
          Mode:Managed  Frequency:5.5 GHz  Access Point: E0:1F:2B:3E:2F:AC   
          Bit Rate=13.5 Mb/s   Tx-Power=24 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=26/70  Signal level=-84 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:40   Missed beacon:0
  1. Tried a couple of suggestions from here- https://askubuntu.com/questions/1230525/ubuntu-20-04-network-performance-extremely-slow

However, still no luck. Can anyone please help me. I kind of feel like I'm running in circles.

After installing Ubuntu, it shows Error: 0x80070422 https://askubuntu.com/questions/1482867/after-installing-ubuntu-it-shows-error-0x80070422

After I installed Ubuntu 20.04.4 LTS in my PC, it shows --

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070422
Error: 0x80070422 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Press any key to continue...

I'm not sure what I should do as pressing any key does nothing but closes the terminal. P.S: I'm using Windows10

nmcli and nmtui both don't allow me to modify a connection. Settings plugin does not support modifying connections https://askubuntu.com/questions/1416126/nmcli-and-nmtui-both-dont-allow-me-to-modify-a-connection-settings-plugin-does
nmcli con mod "Ifupdown (eth0)" ipv4.addresses 192.168.50.188/24

Error: Failed to modify connection 'Ifupdown (eth0)': failed to update connection: settings plugin does not support modifying connections

MySQL server not starting Ubuntu 20.04.3 https://askubuntu.com/questions/1402868/mysql-server-not-starting-ubuntu-20-04-3

I have been trying to install the mysql-server on my ubuntu server, but it just gives me this error when I type:

mysql

This is what I get:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

If I check if it is on or not with:

sudo systemctl status mysql

I get:

    ● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-04-16 23:29:16 UTC; 5min ago
    Process: 474306 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited,         status=1/FAILURE)

Apr 16 23:29:16 amir-server systemd[1]: mysql.service: Control process exited, code=exited, status=1/FAILURE
Apr 16 23:29:16 amir-server systemd[1]: mysql.service: Failed with result 'exit-code'.
Apr 16 23:29:16 amir-server systemd[1]: Failed to start MySQL Community Server.
Apr 16 23:29:16 amir-server systemd[1]: mysql.service: Scheduled restart job, restart counter is at 5.
Apr 16 23:29:16 amir-server systemd[1]: Stopped MySQL Community Server.
Apr 16 23:29:16 amir-server systemd[1]: mysql.service: Start request repeated too quickly.
Apr 16 23:29:16 amir-server systemd[1]: mysql.service: Failed with result 'exit-code'.
Apr 16 23:29:16 amir-server systemd[1]: Failed to start MySQL Community Server.

journalctl -xe gives me:

Apr 16 23:38:54 amir-server systemd[1]: Failed to start MySQL Community Server.
-- Subject: A start job for unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit mysql.service has finished with a failure.
--
-- The job identifier is 2666039 and the job result is failed.

I have tried reinstalling, no luck. What's funny is that the mysql server works on my other linux machine, but I need it to work on this one :(

Any help is greatly appreciated!

[Edit]

pgrep -l mysql

does not return any processes

/var/log/mysql/error.log

does not exist.

And if I do mysqld it gives me:

mysqld: File './binlog.index' not found (OS errno 13 - Permission denied)
2022-04-17T18:30:29.693043Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
2022-04-17T18:30:29.710554Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28-0ubuntu0.20.04.3) starting as process 29346
2022-04-17T18:30:29.976620Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-04-17T18:30:30.038737Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.28-0ubuntu0.20.04.3)  (Ubuntu).

I did what @NioMarvin83 suggested. While installing, I got this:

MySQL has been frozen to prevent damage to your system. Please see /etc/mysql/FROZEN for help.

This is what's inside /etc/mysql/FROZEN:

This MySQL or variant installation has entered "frozen mode". Maintainer
scripts will avoid making changes or starting the daemon until manually
released from this state. See /usr/share/doc/mysql-common/README for
general information about this mode.

In this particular case, an incompatible downgrade attempt has been
detected. This can be resolved in one of two ways:

1. Change the contents of /var/lib/mysql/ to contain database data that
is compatible with the currently installed MySQL or variant daemon
version. For example: you could restore from a backup. Alternatively you
could do a dump using a future version binary and then a restore using
the current version binary.

2. Switch to a MySQL or variant daemon version that is compatible with
the data currently in /var/lib/mysql/. For example, if you have
attempted a downgrade from mysql-server-5.7 to mysql-server-5.6, you
could "apt install mysql-server-5.7" again.

Please resolve this situation and only then remove the /etc/mysql/FROZEN
symlink. You can then run "dpkg-reconfigure <package>" where <package>
should usually be in the form <variant>-server-<version>.
Unable to restart nginx https://askubuntu.com/questions/1147003/unable-to-restart-nginx

I need to restart the process. What do I do when I keep seeing these messages? Do you need more commands?

$ nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

$ service nginx start
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

$ systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-05-29 13:28:29 KST; 26s ago
  Process: 24508 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
  Process: 31955 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  Process: 31952 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 13077 (code=exited, status=0/SUCCESS)

May 29 13:28:27 ip-172-26-12-170 nginx[31955]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
May 29 13:28:27 ip-172-26-12-170 nginx[31955]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
May 29 13:28:28 ip-172-26-12-170 nginx[31955]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
May 29 13:28:28 ip-172-26-12-170 nginx[31955]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
May 29 13:28:29 ip-172-26-12-170 nginx[31955]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
May 29 13:28:29 ip-172-26-12-170 nginx[31955]: nginx: [emerg] still could not bind()
May 29 13:28:29 ip-172-26-12-170 systemd[1]: nginx.service: Control process exited, code=exited status=1
May 29 13:28:29 ip-172-26-12-170 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
May 29 13:28:29 ip-172-26-12-170 systemd[1]: nginx.service: Unit entered failed state.
May 29 13:28:29 ip-172-26-12-170 systemd[1]: nginx.service: Failed with result 'exit-code'.
How do I restore important data for image.dd? Photorec will lose file names and will scatter the information https://askubuntu.com/questions/1097693/how-do-i-restore-important-data-for-image-dd-photorec-will-lose-file-names-and

A few days ago I was in a middle of copying or cutting folders and data to my external hard drive and it was corrupted.

I have tried to locate the lost information on Test Disk but I have now lost it because it has already been over written. The file is 0. 0. copy and completed.

I have now only have the image.dd file. How can I restore this to it's normal folders and files without losing the names? Many thanks.

MongoDB - Unit mongod.service can't found - Ubuntu 16.04 https://askubuntu.com/questions/775570/mongodb-unit-mongod-service-cant-found-ubuntu-16-04

When I try to start MongoDB, I get this error:

# mongo  
MongoDB shell version: 3.2.6
connecting to: test
2016-05-21T16:14:31.183+0300 W NETWORK  [thread1] Failed to connect to      127.0.0.1:27017, reason: errno:111 Connection refused
2016-05-21T16:14:31.183+0300 E QUERY    [thread1] Error: couldn't connect $ to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6

exception: connect failed

After that I do some research and learned that I firstly need to start MongoDB server with mongod command. But when I try that, I get an error again: try that, i get an error again:

# mongod
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] MongoDB starting : pid=32019 port=27017 dbpath=/data/db 64-bit host=ibrahim-Inspiron-3542
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] db version v3.2.6
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] git version:    05552b562c7a0b3143a729aaa0838e558dc49b25
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] OpenSSL version:   OpenSSL 1.0.2g-fips  1 Mar 2016
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] allocator: tcmalloc
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] modules: none
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] build environment:
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten]     distmod:        ubuntu1404
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten]     distarch: x86_64
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten]     target_arch: x86_64
2016-05-21T16:19:15.410+0300 I CONTROL  [initandlisten] options: {}
2016-05-21T16:19:15.451+0300 I STORAGE  [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2016-05-21T16:19:15.451+0300 I CONTROL  [initandlisten] dbexit:  rc: 100

I try start mongod service on console:

# service mongod start
Failed to start mongod.service: Unit mongod.service not found.

What I need to do?

My English is not so much good, please answer this question with a simple English.

How can you permanently enable scroll lock on Ubuntu? https://askubuntu.com/questions/546838/how-can-you-permanently-enable-scroll-lock-on-ubuntu

This question (Permanently enabling the scroll lock button in Ubuntu?) only provides info on how to do it manually every time.

This question (How do I enable Scroll Lock?) does not offer a permanent solution (scroll lock gets disabled again soon)

Are there any permanent solutions so I can toggle it with my buttons?

How do I install a Wimax usb driver? https://askubuntu.com/questions/96427/how-do-i-install-a-wimax-usb-driver

I am using wimax usb modem in Ubuntu 9.04 properly. I am familiar with Ubuntu 10.04 and try to install the same deb file to use my wimax USB modem, but it could not install and give me the following error message:

$ sudo dpkg -i green-packet-wimax-usb_i386.iso.deb 
(Reading database ... 206628 files and directories currently installed.)
Preparing to replace green-packet-wimax-usb 1.12 (using green-packet-wimax-  usb_i386.iso.deb) ...
/var/lib/dpkg/info/green-packet-wimax-usb.prerm: 45: /etc/init.d/wimaxd: not found
Removing any system startup links for /etc/init.d/wimaxd ...
FATAL: Module mt7118_usb_os not found.
Unpacking replacement green-packet-wimax-usb ...
Setting up green-packet-wimax-usb (1.12) ...
FATAL: Error inserting mt7118_usb_glue (/lib/modules/2.6.32-28-generic/kernel/drivers/net/mt7118_usb_glue.ko): Invalid module format
dpkg: error processing green-packet-wimax-usb (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Errors were encountered while processing:

The error (Line 9) give me some clue that the mt7118_usb_glue.ko kernel object can't insert it. So, I think this may be due to it's kernel dependencies.

Can anybody tell me how I can install this kernel object to my new Ubuntu 10.04 kernel?