How using multiline late-commands https://askubuntu.com/questions/1560399/how-using-multiline-late-commands

How to put my script to late-commands section? This is my script

cat<<'EOF' >> $HOME/.bashrc

upd_rustdesk() {
    sudo dpkg --install $(basename $(wget $(wget -qk -l 0 "https://github.com/rustdesk/rustdesk/releases" -O /tmp/index.html ; cat /tmp/index.html | grep -o 'https:[^"]*.deb' | grep '\/rustdesk-[0-9]*[0-9]\.[0-9].*_64.deb' | sort -r -n | head -1)))
}
EOF

But all examples with late-commands use one-line code...

Why am I getting this message, and how do I fix it? https://askubuntu.com/questions/1560398/why-am-i-getting-this-message-and-how-do-i-fix-it

I am getting this message when installing a .deb file:

Download is performed unsandboxed as root as file '/home/joesph-russ-bryant/teamviewer_amd64.deb' couldn't be accessed by user '\_apt'. - pkgAcquire::Run (13: Permission denied)

What causes this, and how do I fix it?

Clicking a link in Thunderbird DOES NOT change the focus to Firefox (anymore) https://askubuntu.com/questions/1560397/clicking-a-link-in-thunderbird-does-not-change-the-focus-to-firefox-anymore

I'm using Kubuntu 25.10 with a multi-monitor-setup. For example, for many years Thunderbird changed the focus to Firefox after I clicked a link in it. This was the default behavior. But for some time now (maybe since the switch to Wayland???) this changed, and I have to manually switch the focus to Firefox after clicking the link in TB. The Firefox icon in the taskbar becomes orange, but it isn't brought to the foreground...!?

I am really annoyed by this. How can I change that to the old approach of switching to Firefox (or any other just-opened application) immediately by default?

bug in command passwd of 24.04 [closed] https://askubuntu.com/questions/1560394/bug-in-command-passwd-of-24-04

I wanted to change my password with command passwd in terminal. I typed in old password, then query comes for new password. I typed over 200 chars in new password and enter. Then passwd claims that my password would be too small ?! As far as I know, Linux and Ubuntu allows passwords with up to 512 chars. What is up with command passwd ? In Ubuntu 24.04 ... after recent update.

Upgrading Ubuntu from 25.04 to 25.10: No new release found https://askubuntu.com/questions/1560393/upgrading-ubuntu-from-25-04-to-25-10-no-new-release-found

I did the first two steps successfully:

sudo apt update
sudo apt upgrade

Then:

sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found.

I currently am on Kubuntu 25.04, trying to upgrade to Kubuntu 25.10 (this last release have been available for a while).

What is wrong?

Problem with agnostic theme of Oh-my-zsh https://askubuntu.com/questions/1560392/problem-with-agnostic-theme-of-oh-my-zsh

I'm having trouble with the agnostic theme in Oh-my-zsh. It displays correctly except for one character, and I honestly don't know what else to do.

I think it's the ± symbol, although when I test it in the console it shows up.

I've set JetBrainsMono Nerd Font as my custom font, and I also have the fonts it supposedly needs installed:

https://github.com/agnoster/agnoster-zsh-theme
https://github.com/powerline/fonts?tab=readme-ov-file

I've followed all the steps, restarting the Terminal, PC. I've tried with several fonts, but nothing works.

The bug:

The bug image

Preferences Terminal font:

Preferences Terminal font image

Test font symbols:

Test font symbols image

How to make a REAL minimal Ubuntu server 24.04.xx installation [closed] https://askubuntu.com/questions/1560390/how-to-make-a-real-minimal-ubuntu-server-24-04-xx-installation

The current server live installer only give you two options:
enter image description here

(talking headless server)

The minimized option is not very minimal, it's 2GB!

I was expecting something like 800MB, I believe both Debian and openSUSE is about that size when doing a minimal installation from there "standard" server installer.

Is there an easy way to make a smaller installation (less footprint / root partition), something like Ubuntu's Minimal cloud image, the installation is about 481MB....that's a minimal installation.

I could of course manually uninstall package afterwards but that's not a very elegant solution, beside one could easily remove some mandatory packages.

The live-installation is about 180MB:

enter image description here

I wonder if I could copy the root content and use that as my server-install. And then add the packages a needed with `apt install...`

ASUS KGPE-D16 Ubuntu won't boot https://askubuntu.com/questions/1560388/asus-kgpe-d16-ubuntu-wont-boot

I recently bought a server with an ASUS KGPE-D16 motherboard and 2 AMD Opteron 6836 SE. I am trying to boot off an Ubuntu persistent USB stick. I had Clonezilla on one and used UNetBootin to rewrite it with Ubuntu. It was good but not persistent. It booted and worked, but the mouse was a little jumpy. I wanted to get it set up with persistency enabled, so I remote into and reboot if I needed to while checking stuff out. I used Rufus to redo the USB stick and hopefully get it to be persistent. I tried it on my laptop and finally got it to be persistent.

I stuck it in the server and it wouldn't boot. It comes up to a screen that has text that says welcome to grub that I have never seen before, and after a few seconds it reboots. I have tried reloading the USB stick in case it was a bad install, but there was no change. It does not have Secure Boot and I turned off fast boot.

Ubuntu Automated installation YAML fails because of id https://askubuntu.com/questions/1560354/ubuntu-automated-installation-yaml-fails-because-of-id

As you know in Ubuntu "the autoinstall file uses the YAML format". I made my autoinstall file. Before using I want validate my file using instruction. My config failed validation but in fact I can use this wrong config to successfully pass validation using Ubuntu 24.04.3 Desktop Why I can't pass validation via script?

enter image description here

Validation log:

a@Linux:/tmp$ cd '/tmp' && git clone https://github.com/canonical/subiquity.git && cd subiquity/
a@Linux:/tmp/subiquity$ make install_deps
a@Linux:/tmp/subiquity$ wget 'https://gist.githubusercontent.com/AndreiCherniaev/f29d024b7c2bbbd59f39e2b66dfc2a04/raw/12b5377061c0134cad780d3d7bbe1a119ffd6c16/Cher0_1_ubuntu-deployment.yaml'
a@Linux:/tmp/subiquity$ SNAP=. ./scripts/validate-autoinstall-user-data.py --no-expect-cloudconfig -vvv '/tmp/subiquity/Cher0_1_ubuntu-deployment.yaml' 
start: subiquity/load_autoinstall_config: 
start: subiquity/load_autoinstall_config/read_config: 
finish: subiquity/load_autoinstall_config/read_config: SUCCESS: 
start: subiquity/Reporting/load_autoinstall_data: 
finish: subiquity/Reporting/load_autoinstall_data: SUCCESS: 
start: subiquity/Integrity/load_autoinstall_data: 
finish: subiquity/Integrity/load_autoinstall_data: SUCCESS: 
start: subiquity/Error/load_autoinstall_data: 
finish: subiquity/Error/load_autoinstall_data: SUCCESS: 
start: subiquity/core_validation: 
start: subiquity/core_validation/top_level_keys: 
finish: subiquity/core_validation/top_level_keys: SUCCESS: 
finish: subiquity/core_validation: SUCCESS: 
start: subiquity/Early/load_autoinstall_data: 
finish: subiquity/Early/load_autoinstall_data: SUCCESS: 
finish: subiquity/load_autoinstall_config: SUCCESS: 
start: subiquity/load_autoinstall_config: 
start: subiquity/load_autoinstall_config/read_config: 
finish: subiquity/load_autoinstall_config/read_config: SUCCESS: 
start: subiquity/Early/load_autoinstall_data: 
finish: subiquity/Early/load_autoinstall_data: SUCCESS: 
start: subiquity/Reporting/load_autoinstall_data: 
finish: subiquity/Reporting/load_autoinstall_data: SUCCESS: 
start: subiquity/Error/load_autoinstall_data: 
finish: subiquity/Error/load_autoinstall_data: SUCCESS: 
start: subiquity/Userdata/load_autoinstall_data: 
finish: subiquity/Userdata/load_autoinstall_data: SUCCESS: 
start: subiquity/Package/load_autoinstall_data: 
finish: subiquity/Package/load_autoinstall_data: SUCCESS: 
start: subiquity/Debconf/load_autoinstall_data: 
finish: subiquity/Debconf/load_autoinstall_data: SUCCESS: 
start: subiquity/Locale/load_autoinstall_data: 
finish: subiquity/Locale/load_autoinstall_data: SUCCESS: 
start: subiquity/Refresh/load_autoinstall_data: 
finish: subiquity/Refresh/load_autoinstall_data: SUCCESS: 
start: subiquity/Kernel/load_autoinstall_data: 
finish: subiquity/Kernel/load_autoinstall_data: SUCCESS: 
start: subiquity/KernelCrashDumps/load_autoinstall_data: 
finish: subiquity/KernelCrashDumps/load_autoinstall_data: SUCCESS: 
start: subiquity/Integrity/load_autoinstall_data: 
finish: subiquity/Integrity/load_autoinstall_data: SUCCESS: 
start: subiquity/Keyboard/load_autoinstall_data: 
finish: subiquity/Keyboard/load_autoinstall_data: SUCCESS: 
start: subiquity/Zdev/load_autoinstall_data: 
finish: subiquity/Zdev/load_autoinstall_data: SUCCESS: 
start: subiquity/Source/load_autoinstall_data: 
finish: subiquity/Source/load_autoinstall_data: FAIL: 
finish: subiquity/load_autoinstall_config: FAIL: 

Traceback (most recent call last):
  File "/tmp/subiquity/./scripts/validate-autoinstall-user-data.py", line 171, in verify_autoinstall
    app.load_autoinstall_config(only_early=False, context=None)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/subiquity/scripts/../subiquitycore/context.py", line 159, in decorated_sync
    return meth(self, **kw)
  File "/tmp/subiquity/scripts/../subiquity/server/server.py", line 788, in load_autoinstall_config
    controller.setup_autoinstall()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/tmp/subiquity/scripts/../subiquity/server/controller.py", line 93, in setup_autoinstall
    self.load_autoinstall_data(ai_data)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/tmp/subiquity/scripts/../subiquity/server/controllers/source.py", line 112, in load_autoinstall_data
    self.model.current = self.model.get_matching_source(id)
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
  File "/tmp/subiquity/scripts/../subiquity/models/source.py", line 147, in get_matching_source
    raise KeyError
KeyError
Failure: The provided autoinstall config failed validation

My wrong Cher0_1_ubuntu-deployment.yaml

# Manual https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
identity:
  hostname: ubuntu-desktop
  password: '$9$TThZwH2sYnfxdzIN$COsmkwowJBH.pYW/jpfhzcBsxSQ6.lrEygIGUQLDrJBsTBgT1gLnkspvttBmgKIJl6UGGSOv4cDfV4Hj0BqS9/'
  # There is password hash, use `mkpasswd --method=SHA-512`
  realname: q
  username: q
interactive-sections:
- storage
apt:
  preserve_sources_list: false
  mirror-selection:
    primary:
      - country-mirror
      - arches: [amd64]
        uri: "http://ko.archive.ubuntu.com/ubuntu"
    fallback: abort
    geoip: true
keyboard:
  layout: us
  toggle: null
  variant: ''
locale: en_US.UTF-8
refresh-installer:
  update: true
  channel: stable/ubuntu-25.04
source:
  id: ubuntu-desktop-minimal
  search_drivers: false
codecs:
  install: false
drivers:
  install: false
packages:
- tmux
storage:
  layout:
    name: lvm
    match:
      size: largest
ssh:
  allow-pw: true
  authorized-keys: []
  install-server: false
timezone: America/New_York
updates: all
late-commands:
- echo "alias upd='sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update && sudo apt upgrade -y && sudo apt autoremove -y'" >> "$HOME/.bash_aliases"
- echo "alias t='sudo apt-get -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update && sudo apt autoremove -y'" >> "$HOME/.bash_aliases"
version: 1
Is it possible to shutdown the LUKS unlocking by timeout? https://askubuntu.com/questions/1560334/is-it-possible-to-shutdown-the-luks-unlocking-by-timeout

I wonder if I can set the timeout to the boot time LUKS unlocking and let the PC shut down on timeout.

In other words, I want the PC to shut down automatically when I leave it without typing the password 1min.

This is particularly useful for laptops. Some computers turn on by shock or some other event. Without a timeout, the PC will wait for the password until the battery is fully discharged.

Screenshot of the disk unlocking screen.

24.04.3 LTS Desktop Installation from USB to clean disk Fails Repeatedly on Mac Pro 5,1 https://askubuntu.com/questions/1560322/24-04-3-lts-desktop-installation-from-usb-to-clean-disk-fails-repeatedly-on-mac

Using clean 2T disk in 1 bay of MacPro 5,1 with .iso flashed live 24.04.3 desktop USB install, boot from USBs into Gnome are good. Running the installer progresses normally but toward the end stops with 'Unknown Problem Detected' dialog. Attempting to start from resulting HDD install gives blank screen with question marked folder. I tried clean disk wipes, several USB sticks & flashes w/Balena Etcher & different .iso downloads. I tried w and w/o internet (wired) connection, w and w/o suggested installer update and installer restart. Tried 23.10, 25.10, with same error result. Mac Pro 5,1 3.33 GHz 6-Core Intel Xeon, ATI Radeon HD 5870 1024 MB, 32G RAM. Help?

WiFi speed limited on Ubuntu 24.04 (compared to Windows 11 dualbooted and other devices in the same network) https://askubuntu.com/questions/1559790/wifi-speed-limited-on-ubuntu-24-04-compared-to-windows-11-dualbooted-and-other

After upgrading to Ubuntu 24.04 LTS, my WiFi speed dropped to ~43Mbps instead of the expected 450Mbps that I get on Windows on the same machine.

What I've tried:

  • Disabled WiFi power management
  • Updated kernel from 6.8 to 6.14
  • Updated linux-firmware package

None of these resolved the issue. Wireless-info output: https://dpaste.com/3J9W8EXMK Has anyone successfully resolved similar speed issues ? Any help would be appreciated!

How do I temporarily prevent snap from downloading anything? https://askubuntu.com/questions/1559015/how-do-i-temporarily-prevent-snap-from-downloading-anything

Imagine I'm on a bad connection. Suddently snapd flares up and starts downloading hundred of megabytes of updates I don't need right now.

It does not bother to announce it, even though system notifications exist - I discover that via iotop. The question is - how do I tell snap to never download anything until further notice?

It seems to be hostile to the idea, to the extent that systemctl stop snapd hangs - it clearly considers its desire to saturate my internet connection is paramount to me wanting it to stop right now as a super user.

Existing answers circle around stopping and masking the service, but the problem is, firefox cannot do most file operations when snapd is offline, and won't even start if snapd is not running.

So the question is, how to tell snapd to stop auto-updating via network without getting rid of it completely? I also know there is --hold, but the problem is, I neither know nor care what specific package is it going to download.

Wake on Lan on Realtek RTL8125 / Geekom A8 https://askubuntu.com/questions/1552299/wake-on-lan-on-realtek-rtl8125-geekom-a8

I basically have the same problem as described here: Wake On Lan non working with Realtek RTL8125 ethernet card

Since I'm not allowed to comment and have no valid answer I'm opening a new question to add some info on what I've tried so far - I hope this is the right way to go.

The device according to lspci is:

Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)

ethtool says:

Supports Wake-on: pumbg
Wake-on: g

So, WOL should be working. It actually does when I boot into Windows and shut down from there, but after shutting down from Kubuntu (using 25.04 - kernel 6.14.0-23-generic at the moment) it does not work.

I have installed r8125-dkms and blacklisted the r8169 driver as suggested in the Arch Linux Wiki (https://wiki.archlinux.org/title/Wake-on-LAN), but this does not change anything.

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Kernel driver in use: r8125
        Kernel modules: r8169, r8125

As a side note (don't know if there may be a connection, but I thought I'd mention it): Standby also does not work for me - the machine goes into Standby for like a second and then turns right back on.


Just to add the info here: I also tried using the latest driver for Linux from the Realtek website, but that also did not work.

Ubuntu 22.04 - Kernel Panic - not syncing: No working init found. Try passing init= option to kernel https://askubuntu.com/questions/1418614/ubuntu-22-04-kernel-panic-not-syncing-no-working-init-found-try-passing-in

Eror msg: Kernel Panic - not syncing: No working init found. Try passing init= option to kernel.

I installed Ubuntu MATE 22.04, successfully. However once I cold or warm boot, the system fails to do so and gives the above message. Re-installation of same OS gives the same result as does installing recent releases of Kali and Debian.

I have re-formatted EFI, /Boot and / with each re-install.

What do I do?

equip HP h8-1435/2AD5, BIOS 8.11 10/23/2012 Kingston SSD UV500

partitions sda1 EFI 135mb sda2 /Boot 400mb sda4 / 250gb sda3 /Home 330gb

Wifi option not showing on ubuntu 22.04 https://askubuntu.com/questions/1404730/wifi-option-not-showing-on-ubuntu-22-04

I'm using pavilion with ryzen5 5625u. I already tried this answer and disabled secure boot according another answer. I also ran sudo systemctl restart network-manager but it says it failed to restart . I also went to software and update for additional drivers, but it has no additional drivers to install.
it says no wifi adapter
output of cat /etc/modprobe.d/iwlwifi.conf
output of cat command

this is the output of ip a # check if you can see wireless card

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 42:be:a8:da:f2:40 brd ff:ff:ff:ff:ff:ff
    inet 192.168.42.182/24 brd 192.168.42.255 scope global dynamic noprefixroute usb0
       valid_lft 3593sec preferred_lft 3593sec
    inet6 fe80::2ace:eaf0:c3ba:8cf9/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

and output of lspci -knn | grep Network -A3 # This shows card name and driver, if in use.

libkmod: ERROR ../libkmod/libkmod-config.c:712 kmod_config_parse: /etc/modprobe.d/iwlwifi.conf line 8: ignoring bad line starting with '“options'
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b852]
    DeviceName: Realtek Wireless LAN + BT
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller 980 [144d:a809]

Edit 1 output of my ifconfig is

$ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 488  bytes 60829 (60.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 488  bytes 60829 (60.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx200db01052d8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.12  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::45dc:7ce4:395e:7bf1  prefixlen 64  scopeid 0x20<link>
        ether 20:0d:b0:10:52:d8  txqueuelen 1000  (Ethernet)
        RX packets 12242  bytes 14993668 (14.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9344  bytes 1371773 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

and output of ifup and ifdown is

ifup: no interface(s) specified
ifup: Use --help for help
GNU Grub Version 2.04 exists even after deleting all Ubuntu partitions https://askubuntu.com/questions/1395386/gnu-grub-version-2-04-exists-even-after-deleting-all-ubuntu-partitions

I had Windows 10, Ubuntu 18.04, and Ubuntu 20.04 on the same disk. Since I didn't need Ubuntu anymore, I decided to delete them. First deleted 20.04, but that wiped out the Grub bootloader. Somehow managed to boot into 18.04 and updated grub. But, the Grub CLI was still coming first. Since my Enter key doesn't work, it is a real pain. I finally decide to wipe out the 18.04 partitions as well but the CLI is still there. Currently I only have Windows partitions but the issue isn't resolved. What seems to be the problem and how can I solve it?

How can I run complex piped commands in Autoinstall / Cloud-Init? https://askubuntu.com/questions/1390768/how-can-i-run-complex-piped-commands-in-autoinstall-cloud-init

In either cloud-init user-data runcmd, or in autoinstall late-commands, I need to essentially run this command as part of a Clevis + Tang initialization for a LUKS encrypted volume:

echo '<secret>' | clevis luks bind -d /dev/sda2 tang '{"url": "http://<ip-tangserver>" , "adv": "/tmp/adv.jws" }'

The problem is, I'm having a hard time determining if this is actually possible using either runcmd or late-commands, and if so, how I can do this in a YAML-compliant way, eg:

runcmd:
  - echo 'some-luks-temp-passwd' | clevis luks bind -d /dev/vda3 tang '{"url": "http://192.168.122.150" , "adv": "/tmp/adv.jws" }'

Enclosing the entire string above doesn't seem to work either, yamllint still shows a syntax error:

runcmd:
  - "echo 'some-luks-temp-passwd' | clevis luks bind -d /dev/vda3 tang '{"url": "http://192.168.122.150" , "adv": "/tmp/adv.jws" }'"

Thanks!

What is the best way to install a minimal Ubuntu? https://askubuntu.com/questions/1381123/what-is-the-best-way-to-install-a-minimal-ubuntu

I would like to know what is the best way to install a minimal Ubuntu setup similar to Arch. Now seeing that the mini.iso is gone is the Ubuntu Server a good option or something else? Thanks in advance.

How to check what graphics driver is currently loaded? https://askubuntu.com/questions/1372885/how-to-check-what-graphics-driver-is-currently-loaded

Nvidia and Nouveau don't play well together, and I'm currently trying to set up my system where I have both installed and can choose which drivers to use at boot (by blacklisting the other one). Currently I have quite a few settings in my .bash_profile that are specific to the Nvidia drivers.

I was wondering how to tell what drivers are in use.

sh: 1: python: not found when execute python script from php https://askubuntu.com/questions/1288798/sh-1-python-not-found-when-execute-python-script-from-php

I'm tring to execute a python script call from php with the command below:

$output = shell_exec('python /var/www/html/sna/server/userManagement.py '. $user.' '. $pass .' \''.$action.'\' 2>&1');

But when I execute it I get this

sh: 1: python: not found 

But python is correctly installed in my env.

If I digit

type -a python 

I get the path of python in this env like below

python is /home/leonardo/miniconda2/envs/sna/bin/python

At the very beginning of the python script I have include

#!/usr/bin/env python

But I recieve always the same error. How can I solve ?

Netplan Interface Disappears on Ubuntu 20.04 https://askubuntu.com/questions/1266930/netplan-interface-disappears-on-ubuntu-20-04

I am running 20.04.1 LTS on an Intel NUC, and my wired Ethernet has just disappeared. It has been working fine for several months using interface enp3s0 with the following netplan file (/etc/netplan/50-cloud-init.yaml):

enter image description here

However now when I do a ip addr show it comes up with "lo" and "wlp2s0":

enter image description here

I thought somehow the interface got renamed so I edited /etc/netplan/50-cloud-init.yaml replacing enp3s0 with wlp2s0 and then executed sudo netplan apply.

Now when I request ip addr show, this is what I get:

enter image description here

Any suggestions on where the interface has gone, and how I might get my static Ethernet address back working again?

Below is a screenshot of the BIOS showing both active LAN and WAN under bios version AYAPLCEL.86A.0052.2018.0627.1943. Not sure how to get any more detail than this about the BIOS Ethernet settings.

enter image description here

initramfs, what is it and why am I getting this message https://askubuntu.com/questions/1216106/initramfs-what-is-it-and-why-am-i-getting-this-message

I am new to linux and having trouble getting my head around all of it, so please bear with me. I am getting this message every time I use: sudo apt-get upgrade

It's a fresh install of Ubuntu which took out dual boot for windows and there are other installs on other drives within the system that I currently can't work out how to access... probably a separate issue.

Message/s:

... Setting up linux-firmware (1.173.16) ...  
update-initramfs: Generating /boot/initrd.img-5.3.0-40-generic  
I: The initramfs will attempt to resume from /dev/sda5  
I: (UUID=8cc84133-bb6c-4c98-999c-28315297dacf)  
I: Set the RESUME variable to override this.  
update-initramfs: Generating /boot/initrd.img-5.3.0-28-generic  
I: The initramfs will attempt to resume from /dev/sda5  
I: (UUID=8cc84133-bb6c-4c98-999c-28315297dacf)  
I: Set the RESUME variable to override this.  
update-initramfs: Generating /boot/initrd.img-5.3.0-26-generic  
I: The initramfs will attempt to resume from /dev/sda5  
I: (UUID=8cc84133-bb6c-4c98-999c-28315297dacf)  
I: Set the RESUME variable to override this.  
update-initramfs: Generating /boot/initrd.img-5.0.0-37-generic  
I: The initramfs will attempt to resume from /dev/sda5  
I: (UUID=8cc84133-bb6c-4c98-999c-28315297dacf)  
I: Set the RESUME variable to override this.  
update-initramfs: Generating /boot/initrd.img-5.0.0-23-generic  
I: The initramfs will attempt to resume from /dev/sda5  
I: (UUID=8cc84133-bb6c-4c98-999c-28315297dacf)  
I: Set the RESUME variable to override this.

I have gleaned from other questions that this has something to do with resuming after a suspend? I haven't ever put the PC into suspend mode, so I'm not sure why these files(?) have been created.

What should can I do to resolve this? Thanks in advance for any advice.

gnome 'focus-new-windows: strict' not working in one situation https://askubuntu.com/questions/1205036/gnome-focus-new-windows-strict-not-working-in-one-situation

On ubuntu 18.04.3, gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'strict' does not work if I open a CSV file from a web browser and an instance of LibreOffice is already open. Here is a step-by-step of what happens:

  1. I open an instance of LibreOffice Calc Version: 6.0.7.3 (or any instance of LibreOffice [Writer|Calc|Draw|Impress]).
  2. I open an instance of firefox version 72.0.1 (64-bit).
  3. In firefox, I load a web page that displays a link to a remote CSV file.
  4. I click on the link to download/open the CSV file.
  5. A pop-up displays, prompting me to do either of the following:

    • Open with LibreOffic Calc (default)
    • Save File the CSV file.
  6. I select Open with and nothing seems to happen (WHY?). I expected an instance of LibreOffice Calc to become the active window over the Firefox web page I was on, but it did not.

  7. I [Alt]+[Tab] to the pre-existing open instance of LibreOffice Calc and there is a pop-up dialogue prompting me to indicate what encoding to open the CSV file in. So, it seems a new instance of LibreOffice Calc opened for the CSV, but it is tied to the other, pre-existing instance of LibreOffice and, therefore, it does NOT steal the focus.

However, if do NOT have any instance of LibreOffice open and go through steps 2 through 6, then the strict does work (GOOD), meaning that an instance of LibreOffice Calc opens and steals focus.

So, why does strict not work if an instance of LibreOffice is already open and I open another instance from a web browser?

UPDATE: 2020-01-23 I recently learned that the two modes for a window are:

  • raise = raises a window to the top of a window stack (moves it to the front of the display)
  • focus (or active) = The window to which input is directed.

I also changed some gsettings and now it seems that gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'strict' does not behave according to my statements before this update. Instead, it seems that gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'smart' is the setting that raises and focuses the new window.

Here are my current gsettings...

$gsettings list-recursively | grep 'raise\|focus' | grep pref
org.gnome.desktop.wm.preferences focus-new-windows 'smart'
org.gnome.desktop.wm.preferences raise-on-click true
org.gnome.desktop.wm.preferences auto-raise true
org.gnome.desktop.wm.preferences focus-mode 'click'

And here are the results of my tests in terminal (opening gedit and also [Ctrl]+[Alt]+[T]) and nautilus (opening a CSV file in the file manager) to know whether the respective new windows are raised and/or focused...

-if org.gnome.desktop.wm.focus-new-windows=smart
    *In terminal, if there is NOT a pre-existing window, then the new window does raise (GOOD).
    *In terminal, if there is NOT a pre-existing window, then the new window does focus (GOOD).
    *In terminal, if there is a pre-existing window, then the new window does raise (GOOD).
    *In terminal, if there is a pre-existing window, then the new window does focus (GOOD).
    *In nautilus, if there is NOT a pre-existing window, then the new window does raise (GOOD).
    *In nautilus, if there is NOT a pre-existing window, then the new window does focus (GOOD).
    *In nautilus, if there is a pre-existing window, then the new window does raise (GOOD).
    *In nautilus, if there is a pre-existing window, then the new window does NOT focus (BAD). <---- I WANT THIS TO FOCUS.

-if org.gnome.desktop.wm.focus-new-windows=strict
    *In terminal, if there is NOT a pre-existing window, then the new window does NOT raise (BAD).
    *In terminal, if there is NOT a pre-existing window, then the new window does NOT focus (BAD).
    *In terminal, if there is a pre-existing window, then the new window does NOT raise (BAD).
    *In terminal, if there is a pre-existing window, then the new window does NOT focus (BAD).
    *In nautilus, if there is NOT a pre-existing window, then the new window does raise (GOOD).
    *In nautilus, if there is NOT a pre-existing window, then the new window does focus (GOOD).
    *In nautilus, if there is a pre-existing window, then the new window does raise (GOOD).
    *In nautilus, if there is a pre-existing window, then the new window does NOT focus (BAD).

It seems that the smart value gives the closest desired behavior, except if there is a pre-existing window (e.g., LibreOffice is already open), then the new window is raised (GOOD) but not focused (BAD). How can I focus the new window?

UPDATE 2020-02-22


One workaround that seems to work a little better is to make the following settings...

focus-mode='sloppy'
focus-new-windows='strict'

...Which will raise the window and, ONLY IF the mouse is already in the new window, then focus the window. The problem is if the window is raised and the mouse is not already in the new window, then the window is not focused.

The ideal situation would be for the new window to raise and focus, regardless of the mouse location.

How do I do a minimal install so I can customize Ubuntu? https://askubuntu.com/questions/1163874/how-do-i-do-a-minimal-install-so-i-can-customize-ubuntu

I'd like to use Minimal ISO (or something similar) to assemble my Ubuntu distro. It's okay, however I don't know how to set the name of the distribution and how to update it properly without errors or name changes.

wine DirectX diagnostics (dxdiag) on completely fresh WINE prefix is not showing any window - is it expected? https://askubuntu.com/questions/1069872/wine-directx-diagnostics-dxdiag-on-completely-fresh-wine-prefix-is-not-showing

When I create completely new wine prefix:

WINEPREFIX="$HOME/fresh" wine wineboot

and try to run dxiag on it:

WINEPREFIX="$HOME/fresh" wine dxdiag

I see only an error in the console:

0009:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.

but no window appears.

Problem (? or is it expected?) exists on both 32 and 64 wine prefixes. I use wine-3.0 (Ubuntu 3.0-1ubuntu1).

Spyder Anaconda - select Python interpreter https://askubuntu.com/questions/1013200/spyder-anaconda-select-python-interpreter

I have installed Anaconda (x64 Linux) and I am running its Python 3.

When I type which python, I get

/home/hinckelbc/anaconda3/bin/python

Now to display the version, I type python -V, and I get

Python 3.6.4 :: Anaconda, Inc.

Which is normal, since I am running Python 3 from Anaconda

If I launch Spyder from the terminal by simply typing spyder, it will launch and I see that the Python interpreter is indeed the Python 3 from Anaconda, as shown below:

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type "copyright", "credits" or "license" for more information.

IPython 6.2.1 -- An enhanced Interactive Python.

!which python
/home/hinckelbc/anaconda3/bin/python

! python -V
Python 3.6.4 :: Anaconda, Inc.

The Spyder running on my machine is the following:

hinckelbc@BCArg:~$ which spyder
/home/hinckelbc/anaconda3/bin/spyder

In order to avoid opening the terminal all the time and typing spyder, I have created the following spyder.desktop file ~/.local/share/applications/spyder.desktop, which looks like this:

[Desktop Entry]
Type=Application
Name=Spyder
Exec=/home/hinckelbc/anaconda3/bin/spyder
Icon=/home/hinckelbc/anaconda3/pkgs/spyder-3.2.6-py36_0/info/icon.png
Terminal=false

I then could find Spyder with the Super key, which was then added to by launcher, by dragging and dropping (Gnome 3, Ubuntu 17.10)

However, when I open Spyder by clicking on the icon, now on my favorites, I get:

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type "copyright", "credits" or "license" for more information.

IPython 6.2.1 -- An enhanced Interactive Python.

! which python
/usr/bin/python

! python -V
Python 2.7.14

Which does not agree with the python interpreter I set manually on Spyder, as shown below:

Spyder preferences screenshot

Does anyone know how to solve this, i.e. to get Python 3 running on Spyder with the desktop icon I have created and added to my favourites?

cpu usage per user https://askubuntu.com/questions/808052/cpu-usage-per-user

When I type lscpu I can read of the number of CPUs on our server (56). We are a few people working on this server and I would like to see how many CPU's are being used per user.

When I run top I can see the total usage per process, is there a way to group it per user? I have a feeling that one user is invoking so many CPU's in her program that it slows down my jobs.

CXXABI_1.3.8 not found https://askubuntu.com/questions/622926/cxxabi-1-3-8-not-found

So, I'm trying to run heroes of newerth and get the error

./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.52)

From research, I saw to just do LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.9.2/libstdc++.so Which didn't seem to do anything. I have several gcc subfolders as well.

Whenever I type gcc it says gcc: fatal error: no input files compilation terminated. however I think that's because I didn't point to something to compile. Here's an image:

How should I fix this? There's a libstdc++.so but it doesn't have a .6 after it.

How to stop Ubuntu from talking to me? https://askubuntu.com/questions/378223/how-to-stop-ubuntu-from-talking-to-me

The title may sound silly, but on Ubuntu 13.10, I'm getting frequent audible notifications using text to speech.

Is this the "speech dispatcher" and how can I disable it?