Trying to install 24.04.3 LTS on a HP Probook 455 https://askubuntu.com/questions/1562837/trying-to-install-24-04-3-lts-on-a-hp-probook-455

does anybody know how to install "ubuntu" on this machine. I firstly added Etcher, but erased this due to complication and upon my research, I discovered a better way. By using Rufus to create a bootable drive. Here is the last steps, that i tried without any success:

It appears we are dealing with a particularly stubborn HP firmware issue common to this model. The computer is physically capable of running both OSes, but the BIOS is refusing to load the Linux bootloader (GRUB) automatically.

We need to employ the most effective workaround, which is to modify the Windows boot entry itself to point to the Ubuntu bootloader file. This is a known, reliable fix for the

HP 455 G2

.

Final Solution: Redirect the Windows Boot Manager

This method uses a command within Windows to tell its own boot manager to load the Ubuntu boot file first.

  1. Boot into Windows. Since the system keeps reverting to the "nothing to boot" error, it likely bypasses the Ubuntu installation and goes straight to trying to load Windows (or failing entirely). If you get the error message, the computer likely isn't finding any boot entry.

  2. Access Windows Command Prompt as Administrator.

    • Click the Start button and type cmd.

    • Right-click on Command Prompt in the search results.

    • Select Run as administrator.

    • Click Yes to the User Account Control prompt.

  3. Run the BCDedit command. This command modifies the Windows Boot Configuration Data store to use the Ubuntu EFI file as the primary boot loader path.Type the following command exactly into the Administrator Command Prompt and press Enter:

    powershell

    bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
    
    

    Use code with caution.

    • You should see a message saying, "The operation completed successfully."
  4. Reboot your laptop.

    • Close the Command Prompt and restart your computer normally.

    • Do not press Esc or F9 this time; just let it boot.

The HP Boot Manager will load, see the modified entry, load the shimx64.efi file (which is Ubuntu's bootloader), and you will then see the GRUB menu with options for both Ubuntu and Windows.

Orca Slicer running unusably slow https://askubuntu.com/questions/1562836/orca-slicer-running-unusably-slow

I'm currently running Ubuntu 25.10 and am trying to run OrcaSlicer_Linux_AppImage_Ubuntu2404_V2.3.1.AppImage (the latest stable version from Orca). The application launches fine but is unusably slow. I have an NVIDIA 5060 GPU (drivers are working fine) and 32 gigs of RAM with a AMD Ryzen 5 CPU (should be plenty to run slicer software). I have checked the application logs and there is nothing to indicate a problem. When I say unusable, I can try to slice an object and it will be (so far) 2 days before it completes or will allow me to make changes. I'm not sure if this is an Ubuntu issue or an Orca issue so I thought I would see if anyone here is having similar problems. FWIW I'm using a creality k2 plus printer over a lan connection.

Modifying Chicago95 theme in Xubuntu https://askubuntu.com/questions/1562832/modifying-chicago95-theme-in-xubuntu

I am testing Xubuntu 24.04 (Desktop, 64-bit) distro on live USB, and have installed the Chicago95 theme using:

sudo apt update
sudo apt upgrade
sudo apt install git
git clone https://github.com/grassmunk/Chicago95
cd Chicago95
python3 installer.py

How do I modify the Start menu so that it looks more like Windows 95? The "XFCE4 Panelbar" instructions are not helpful.

start-menu

Iptables "-t nat -j LOG" inconsistent with other distros https://askubuntu.com/questions/1562825/iptables-t-nat-j-log-inconsistent-with-other-distros

Trying to setup nat port forwarding in ubuntu, noticed an unusual behaviour. If i:

  • Install distro in virtualbox vm
  • Use "sudo iptables -t nat -A PREROUTING -j LOG"
  • Start "nc -l 1111" and do "nc <ip> 1111" from host
  • Check dmesg

Ubuntu, either 24.04 or 22.04, shows no iptables logs (despite receiving messages). But fedora does. What could be a reason for it, and what could i do to make ubuntu properly process those rules too?

How to not force restart during boot? https://askubuntu.com/questions/1562824/how-to-not-force-restart-during-boot

On a few start-ups (not all) in the past 2 weeks, end up stuck in a boot loop (or loading screen) during start-up. Usually if kompjuter has been off for several hours. When force shut down and boot up again, there's no issue, and goes straight to login. Laptop is stored in an isolated container in a (currently) cold shed, and battery is often low to begin with, but that doesn't explain why after a forced restart there are no issues.

System information: Ubuntu 22.04.05 LS, further updating doesn't help. "Style Note" and "Ubuntu" with respective icons, and loading circle displayed on screen (doesn't freeze), before screenshots are possible.

Please provide suggestions (i.e. try this, look there), if more details are required.

libvirt manager Could not open Permission denied https://askubuntu.com/questions/1562823/libvirt-manager-could-not-open-permission-denied

I use virt-manager with Ubuntu 25.04 VM. Sometimes I did external snapshots. After upgrading VM to Ubuntu 25.10 I also saved snapshot. I can start any snapshot except last one. When I start last one (with 25.10) I have this log. How to start it?

Error running snapshot 'init_25.10': internal error: process exited while connecting to monitor: 2026-01-13T09:09:26.823084Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/a/mystorage/libvirt_pool/ubuntu.1757917759","node-name":"libvirt-4-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/a/mystorage/libvirt_pool/ubuntu.1757917759': Permission denied

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 67, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
    ~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1219, in revert_to_snapshot
    self._backend.revertToSnapshot(snap.get_backend())
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/libvirt.py", line 2456, in revertToSnapshot
    raise libvirtError('virDomainRevertToSnapshot() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2026-01-13T09:09:26.823084Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/a/mystorage/libvirt_pool/ubuntu.1757917759","node-name":"libvirt-4-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/a/mystorage/libvirt_pool/ubuntu.1757917759': Permission denied

My host system is Ubuntu 25.10

$ virt-manager --version
5.1.0

enter image description here

I don't think the problem is in permissions because all files have similar settings, for example

# stat /home/a/mystorage/libvirt_pool/ubuntu.1757917759
  File: /home/a/mystorage/libvirt_pool/ubuntu.1757917759
  size: 429562527744    Blocks: 20830992   IO Block: 4096   regular file
Device: 4eh/78d Inode: 20712774    Links: 1
Access: (0600/-rw-------)  Uid: (64055/libvirt-qemu)   Gid: (  993/     kvm)
Access: 2026-01-13 18:09:21.092376930 +0900
Modify: 2026-01-01 18:24:48.734965347 +0900
Change: 2026-01-13 18:09:20.997378275 +0900
 Birth: 2025-09-15 16:42:59.929479087 +0900
# stat ubuntu.1763957026
  File: ubuntu.1763957026
  size: 4398186496  Blocks: 8587792    IO Block: 4096   regular file
Device: 4eh/78d Inode: 21876805    Links: 1
Access: (0600/-rw-------)  Uid: (64055/libvirt-qemu)   Gid: (  993/     kvm)
Access: 2026-01-13 18:05:54.913296733 +0900
Modify: 2025-11-24 16:10:01.610686487 +0900
Change: 2026-01-13 18:05:54.770303982 +0900
 Birth: 2025-11-24 13:04:05.271617670 +0900
How to run EAGLE (CadSoft/Autodesk) on Ubuntu 22.04 or later? (Failed to create OpenGL context for format QSurfaceFormat) https://askubuntu.com/questions/1562821/how-to-run-eagle-cadsoft-autodesk-on-ubuntu-22-04-or-later-failed-to-create

I'm trying to run EAGLE from autodesk web page. I extracted the files, set LD_LIBRARY_PATH and use the LIBGL fix from this question. I also symlinked swrast inside /usr/lib/dri and ran apt install libgl1-mesa-dri libxcb-dri3-0. Then also added MESA_LOADER_DRIVER_OVERRIDE=i965 for good measure. This is the command I run:

LD_LIBRARY_PATH=lib LIBGL_ALWAYS_SOFTWARE=1 MESA_LOADER_DRIVER_OVERRIDE=i965 ./eagle

Still, I'm unable to start it due to two or three errors:

LibGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: undefined symbol: xcb_dri3_buffers_from_pixmap_strides

From here I gather the function is provided by lib-xcb3, which is installed. Next we have:

ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler.

Which is said to be caused by missing OpenGL libs. Finally:

Failed to create OpenGL context for format QSurfaceFormat(...

This is the full output:

libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: undefined symbol: xcb_dri3_buffers_from_pixmap_strides (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
QXcbConnection: XCB error: 2 (BadValue), sequence: 438, resource id: 0, major code: 152 (Unknown), minor code: 24
Sandboxing disabled by user.
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
[248615:248627:0113/093459.794345:ERROR:nss_util.cc(808)] After loading Root Certs, loaded==false: NSS error code: -8018
[248615:248632:0113/093500.240881:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.240910:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.240929:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.240935:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.241865:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.241878:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.241891:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.241897:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.787421:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.787447:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.787484:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.787495:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093500.788380:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.788393:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093500.788408:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093500.788414:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
js: Failed to set referrer policy: The value 'same-origin' is not one of 'always', 'default', 'never', 'origin-when-crossorigin', 'no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', or 'unsafe-url'. The referrer policy has been left unchanged.
[248615:248632:0113/093501.032500:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.032528:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.032544:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093501.032551:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
[248615:248632:0113/093501.033359:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.033370:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: ocsp.digicert.com
[248615:248632:0113/093501.033384:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl4.digicert.com
[248615:248632:0113/093501.033390:ERROR:nss_ocsp.cc(591)] No URLRequestContext for NSS HTTP handler. host: crl3.digicert.com
js: wafErrorsQueue
js: wafErrorsQueue
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted
How do i optimize the swap usage? https://askubuntu.com/questions/1562819/how-do-i-optimize-the-swap-usage

I am running a "fairly" old laptop ,idea pad 310, 12Gb of ram, and i put a 12Gb swap, can i make it use swap more or more efficiently? Its only uses like 1Gb

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?

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?

How to Install Ethernet Adapter Driver (USB Type C) on Ubuntu 24.04 LTS https://askubuntu.com/questions/1562791/how-to-install-ethernet-adapter-driver-usb-type-c-on-ubuntu-24-04-lts

I'm new on Ubuntu 24.04 and have a Ethernet access (Vention USB-C to Gigabit Ethernet Adapter) but that didn't work.

Bus 004 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Changing home directory from one small SD card to another big SD card fails https://askubuntu.com/questions/1562790/changing-home-directory-from-one-small-sd-card-to-another-big-sd-card-fails

I'm using Ubuntu 22.04 on a ThinkPad.
The current /home is separately on a
small SD card (256GB, ext4) and I need to use a bigger SD card (1TB, ext4) instead.

I tried to follow the "change home directory procedure" as described here
https://wiki.ubuntuusers.de/Home_umziehen/
and first synchronized data from the original SD card to the new SD card using rsync. small SD mounted as usual as /home
big SD mounted automatically under /media/\<username\>/\<drive\>
Copied result is verified and OK.

1. Unexpected behavior
I am able to mount temporarily the big SD to /home and to see its content on the desktop (Gnome),
but I am unable to unmount the small SD. (It says it is active.)

2. Unexpected behavior
I entered the UUID of the big SD into /etc/fstab
and left the entry for the small SD as comment
then I shutdown the PC, removed the small SD and restarted
Ubuntu went into an "emergency mode"
independent if the big SD remains via adapter to USB or is in the card reader. I don't know what I can do with the "emergency mode"?

I started with a live Ubuntu session and
mounted the respective partition
redo the changes in /etc/fstab so
I got back the original situation with the small SD as /home, but how to get the big SD with the same data as the small SD running as new /home?

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 ?

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"
(Resolved) Constant hardware connect/disconnect sound after upgrading to Ubuntu 25.10 https://askubuntu.com/questions/1560076/resolved-constant-hardware-connect-disconnect-sound-after-upgrading-to-ubuntu

Since I upgraded to Ubuntu 25.10, once I connected my Bluetooth headphones, it just keeps making the hardware connect/disconnect sounds repeatedly.

I checked dmesg, journalctl, etc - no unusual activity, nothing connecting or disconnecting.

Any idea what could be happening? The only "solution" I've found is to turn off system sounds altogether.

EDIT: Found the culprit device, turns out it was a dock all along.

Can't install Ubuntu Studio on VirtualBox https://askubuntu.com/questions/1555753/cant-install-ubuntu-studio-on-virtualbox

I get this error when I boot the VM:

error: file "/casper/vmlinuz not found" error: you need to load the kernel first

The VM has plenty of resources, and it's loading the US.iso.

I have limited experience with Linux so feel free to explain things to me like I'm a 7 year old.

Anyone know what's going wrong here?

Preffered way to install Node.js (LTS) on Ubuntu 24.04 [duplicate] https://askubuntu.com/questions/1525193/preffered-way-to-install-node-js-lts-on-ubuntu-24-04

The apt package manager shows me an older version of Node.js:

sudo apt list nodejs
nodejs/noble 18.19.1+dfsg-6ubuntu5 amd6

https://packages.ubuntu.com/noble/nodejs

So, in Ubuntu 24.04, NodeJS has version 18.19, but the current LTS version of Node.js is v20.17.0. There I have found two ways to install it. The first option is using nvm (Node Version Manager) and the second option is for Debian and Ubuntu based Linux distributions > NodeSource.

Does it matter which variant you use here? Or are there advantages or disadvantages to one of the two variants?

Removing 'syncthing' from Ubuntu 22.04 https://askubuntu.com/questions/1426651/removing-syncthing-from-ubuntu-22-04

My OS is Ubuntu 22.04 & I installed syncthing. After exploring it a bit, it didn't fit my need (local backup to USB) so I've tried deleting it with no success. I have a remnant somewhere that I can't seem to clean out. This is what I see in apt:

~$ apt list syncth*
Listing... Done
syncthing-discosrv/jammy 1.18.0~ds1-3 amd6
syncthing-gtk/jammy,jammy 0.9.4.4+ds+git20220108+9023143f8b93-1 all
syncthing-relaysrv/jammy 1.18.0~ds1-3 amd64
syncthing/jammy 1.18.0~ds1-3 amd64

These are the things I've tried:

sudo apt remove syncthing*
sudo apt auto clean
sudo apt autoclean
sudo apt autoremove

Then ran sudo apt update followed by apt list syncht* and... they're back!

Tried dpkg with sudo dpkg --purge syncthing with a result of:

dpkg: warning: ignoring request to remove syncthing which isn't installed

Installed Synaptic, found the four modules. Marked them for install, applied, marked for complete removal and applied. Ran sudo apt update and.... they're back!

'whereis syncthing' and 'which syncthing' don't find anything.

I removed the sources list: sudo rm /etc/apt/sources.list.d/syncthing.list

Reran sudo apt update and apt list syncth* and... they're still there.

Tried this which didn't work either:

sudo apt install syncthing-discosrv syncthing-gtk syncthing-relaysrv syncthing

sudo apt purge  syncthing-discosrv syncthing-gtk syncthing-relaysrv syncthing

I am missing something (obviously). Any thoughts on how to remove syncthing-discosrv, syncthing-gtk, syncthing-relaysrv, syncthing from showing up in apt ?

Thanks.

Ubuntu 20.04 as a guest in Virtualbox shows no login prompt https://askubuntu.com/questions/1232032/ubuntu-20-04-as-a-guest-in-virtualbox-shows-no-login-prompt

I've been running Ubuntu 18.04 in Virtualbox on a Windows 10 Dell XPS laptop. I decided to upgrade to Ubuntu 20.04. The upgrade went OK, but when I start the virtual image I get a purple screen with no login prompt. I can't do anything from there. I have tried to send a CTRL-ALT-F1 signal to get a console, but that got no response. Either Ubuntu didn't respond or the Virtualbox host key no longer defaults to the CTRL-ALT sequence. Weirdly, I have had a login on the Ubuntu 20.04 image, but I can't remember how I tricked it into that. Any ideas?

How to fix -> Clearing orphaned inode [number] https://askubuntu.com/questions/1149884/how-to-fix-clearing-orphaned-inode-number

So this happened.

I wasn't doing anything on my laptop . I turned it off and turned it back on again . A black screen with "Clearing orphaned inode" and then takes me to a screen where it asks me to put my root password or press ctrl+D. I tried my ubuntu password and I am sure I insert it correctly but it says it's wrong .

What are my options ?

Also, I tried reinstalling ubuntu ... which is not ideal ... but hey ... and when I select the booting devices and insert my bootable drive press ESC and F9 the usb doesn't show up (only the installed OS and the UEFI something).

My laptop is a dell da0135nq and the Ubuntu is LTS 18.04

Installing Minecraft on a 32-bit Xubuntu 18.04 LTS installation https://askubuntu.com/questions/1067668/installing-minecraft-on-a-32-bit-xubuntu-18-04-lts-installation

Thanks in advance to anybody who is able to shine some light on this issue of mine. I have recently Xubuntu 18.04 LTS on my Dell Optiplex 755, and I've been having difficulty installing the Minecraft launcher.

I downloaded the .deb package from the Minecraft website, and I attempted to install it using the Software Center. After selecting "Install" and entering my credentials, the progress bar flashed quickly before disappearing and presenting me with the "Install" button again. I closed the Software Center, opened a terminal, and attempted to install my package with sudo dpkg -i. This time, it claimed that the .deb was a 64-bit package, which doesn't match my 32-bit system.

I was wondering if this is normal, as I'm sure that I've installed Minecraft on a 32-bit Windows system before. Also, whether or not this is normal, is the any way to install this package on my system?

EDIT: I downloaded MultiMC, thinking that maybe the launcher itself didn't support my 32-bit OS, and after installing it successfully and attempting to launch 1.13 from it, it crashed with the following report:

---- Minecraft Crash Report ----
// Sorry :(

Time: 8/21/18 8:48 PM
Description: Initializing game

java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl32.so
    at org.lwjgl.system.Library.loadSystem(Library.java:147)
    at org.lwjgl.system.Library.loadSystem(Library.java:67)
    at org.lwjgl.system.Library.<clinit>(Library.java:50)
    at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
    at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
    at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
    at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
    at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
    at java.lang.ThreadLocal.get(ThreadLocal.java:170)
    at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
    at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
    at cfs.a(SourceFile:126)
    at cfi.an(SourceFile:554)
    at cfi.am(SourceFile:433)
    at cfi.a(SourceFile:377)
    at net.minecraft.client.main.Main.main(SourceFile:144)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
    at org.lwjgl.system.Library.loadSystem(Library.java:147)
    at org.lwjgl.system.Library.loadSystem(Library.java:67)
    at org.lwjgl.system.Library.<clinit>(Library.java:50)
    at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
    at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
    at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
    at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
    at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
    at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
    at java.lang.ThreadLocal.get(ThreadLocal.java:170)
    at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
    at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
    at cfs.a(SourceFile:126)
    at cfi.an(SourceFile:554)
    at cfi.am(SourceFile:433)

-- Initialization --
Details:
Stacktrace:
    at cfi.a(SourceFile:377)
    at net.minecraft.client.main.Main.main(SourceFile:144)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)

-- System Details --
Details:
    Minecraft Version: 1.13
    Operating System: Linux (i386) version 4.15.0-20-generic
    Java Version: 1.8.0_181, Oracle Corporation
    Java VM Version: OpenJDK Server VM (mixed mode), Oracle Corporation
    Memory: 493009496 bytes (470 MB) / 693633024 bytes (661 MB) up to 954466304 bytes (910 MB)
    JVM Flags: 2 total; -Xms512m -Xmx1024m
    Launched Version: MultiMC5
    LWJGL: 3.1.6 build 14
    OpenGL: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.system.Library
    GL Caps: 
    Using VBOs: Yes
    Is Modded: Probably not. Jar signature remains and client brand is untouched.
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: ~~ERROR~~ NullPointerException: null
    Profiler Position: N/A (disabled)
    CPU: <unknown>
Ubuntu 17.10, change wm https://askubuntu.com/questions/979865/ubuntu-17-10-change-wm

Now that Ubuntu 17.10 uses Gnome, how can we easly change the window manager to use after login in? With unity we could easly change the wm in the login area, what about now?

Where does Compton look for its conf file? https://askubuntu.com/questions/901077/where-does-compton-look-for-its-conf-file

One tutorial about installing Compton says that its in "~/" and called ".compton.conf". (In HOME, and note the prepended period on the file name)

Another tutorial says it's in "~/.config/" and called "compton.conf". This tutorial has the prepended period in the directory name, and in a directory under HOME.

Which is it?

Thanks!

Tutorial 1: https://ubuntuforums.org/showthread.php?t=2144468&p=12644745#post12644745

Tutorial 2: http://duncanlock.net/blog/2013/06/07/how-to-switch-to-compton-for-beautiful-tear-free-compositing-in-xfce/

"apt list --installed | grep compton" returns "compton/xenial,now 0.1~beta2-1 amd64"

SmartPSS for Dahua DVR black screen https://askubuntu.com/questions/868302/smartpss-for-dahua-dvr-black-screen

On a kubuntu 16.04: SmartPSS for Dahua DVR & NVR installed successfully (wine). Can add device (DVR/NVR/IPCamera). But after login successfully into device, camera don't show anything except a complete black screen with camera number and date-time.

How to install the latest versions of NodeJS and NPM? https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm

I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0.

Can someone let me know how to install the latest version of node together with npm (terminal commands please)?

Ubuntu 14.04 blank desktop screen after VirtualBox was installed and updated https://askubuntu.com/questions/589707/ubuntu-14-04-blank-desktop-screen-after-virtualbox-was-installed-and-updated

I have Ubuntu 14.04 installed. It was working fine until I installed VirtualBox, and then without installing any guest OS under Virtual Box, ran an system update when prompted by Ubuntu.

Now when I log in to Ubuntu, all I get is a blank default desktop screen (the peachy pink mauve one), cannot access menus, and cannot access the terminal CTRL+ALT+T. Right-clicking does nothing, although the mouse cursor still appears and can be dragged around the empty screen. CTRL+ALT+F1 brings up a terminal.

I have a lot of data on my Ubuntu installation that I do not want to lose, and would like to secure/save/backup it in case something goes wrong.

I have a bootable Ubuntu 14.04 DVD which works, and using this I can run another Ubuntu 14.04 without installing. When I run the Ubuntu without installing from the DVD, I can only see some of the data, because I get the message, you do not have the necessary permissions to access this folder or some words to that effect.

apt-get, unmet dependencies, ... "but it is not going to be installed" https://askubuntu.com/questions/564282/apt-get-unmet-dependencies-but-it-is-not-going-to-be-installed
$ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 kde-workspace-bin : Depends: qdbus but it is not going to be installed
 libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I don't quite understand "but it is not going to be installed". Why doesn't it install it then?

apt-get -f install does not help, it does nothing:

$ apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Performance issues with AMD IOMMU on https://askubuntu.com/questions/486261/performance-issues-with-amd-iommu-on

I had a hard time installing Ubuntu on my system. The motherboard I'm using is the Gigabyte GA-970A-D3 with AMD FX6300. I tried to install elementaryOS, Ubuntu 12.04 and Ubuntu 14.04, and for all three of them, when the IOMMU is turned on in the BIOS, the setup freezes somewhere along the way and the installation fails. When IOMMU is off, it won't even boot.

I've circumvented this by adding iommu=pt iommu=1 to the end of the line where syslinux defines the boot image. After the installation I have to add the same kernel options to GRUB. This procedure makes the OS usable but I noticed some performance issues. The window animations are not smooth, scrolling in any internet browser is laggy and generally, it feels sub-optimal.

Has anyone experienced something similar?

Webcam detected but not showing up https://askubuntu.com/questions/179730/webcam-detected-but-not-showing-up

I'm using Acer 4530 with Suyin webcam. The webcam can be detected but not showing anything. Before I start anything, I ran lsof /dev/video0 to make sure nothing is using the camera, and I started Cheese but the screen shows black and nothing.

I execute lsof /dev/video0 again and it shows Cheese is using it. I exited cheese and opened up VLC. The device showed in the playlist but not the image that the camera used to show.

Long time ago, it was running fine, but after that it stop working and then my graphic card are down. After the graphic card fix, the webcam came up again but now it stop working again.

Is there any hardware problem or it's just software problem?

How to completely remove PHP? https://askubuntu.com/questions/59886/how-to-completely-remove-php

I need to clean up my server from PHP 5.3 packages (there are plenty of them) in order to be able to compile PHP 5.2. What is the easiest/safest method to get rid of them all?