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.).

Can't access Raspberry Pi remotely from multiple sources https://askubuntu.com/questions/1560363/cant-access-raspberry-pi-remotely-from-multiple-sources

It's a bit of a long story, but here it goes.

I'm running a Raspberry Pi4 as a Plex server, I've had it quite a while and it's worked brilliantly.

The other day my son went to turn the Christmas lights on a pulled a 'Morty' on me where he flipped the wrong switch despite being told which switch to flick. Anyway since the erroneous flip, I can no longer access my Raspberry Pi from my phone using RaspController, EX File Manager and NoMachine, also when I try to access the plex via the web app site it says "app.plex.tv is unable to connect to "Plex Server" securely".

If I plug in the Pi to a monitor I can access everything I normally do no problem.

Trying to access Plex through the app on my phone or PS5 tells me I have no libraries, but they're there.

I'm running 24.04, and the IP address hasn't changed. I just don't know what's going on.

CM5 boot with Ubuntu 24.04 https://askubuntu.com/questions/1560361/cm5-boot-with-ubuntu-24-04

I just bought a CM5 along with the CM5 Dev Kit.

I flashed it using rpiboot and installed Ubuntu 24.04. Everything went well during the installation, but when I tried to use it, the LED error pattern indicated a fatal firmware error.

Has anyone successfully booted a CM5 with Ubuntu 24.04?

Ubuntu hangs when I open more than 10 chrome tabs.(Ubuntu version: 25:10) https://askubuntu.com/questions/1560357/ubuntu-hangs-when-i-open-more-than-10-chrome-tabs-ubuntu-version-2510

Ubuntu hangs every time I open more than 10 chrome tabs.(Ubuntu version: 25:10)

How to meet libgdk dependency for the minecraft launcher? https://askubuntu.com/questions/1560355/how-to-meet-libgdk-dependency-for-the-minecraft-launcher

Asking for my partner! We're both new to Linux, but I've never encountered this issue before on Ubuntu. We've managed to finally fulfill the Java dependency error we were getting, but haven't managed to figure this one out just yet. We've gotten this in the terminal & are stumped from here:

The following packages have unmet dependencies: minecraft-launcher: Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not installable

Unsure if it's any help, but they're working on a Framework laptop & I'm troubleshooting from far away at the moment!

Edit: I've been informed to provide more information & while I'm not 100% sure what to provide here, I think this is probably one of the things we're looking for? (Do let me know if something else is needed! I'm a bit scrambled from staring at terminal errors for the last few hours lol)

Unsatisfied dependencies:
minecraft-launcher : Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not installable.
Error: Unable to satisfy dependencies. Reached two conflicting decisions:
1. minecraft-launcher:amd64=2.1.3 is selected for install
2. minecraft-launcher:amd64 Depends libgdk-pixbuf2.0-0(>= 2.22.0)
but none of the choices are installable:
[no choices]

OS: Ubuntu 25.10

Firmware Version: 03.04

OS Type: 64-bit

GNOME Version: 49

Hardware Model: Framework Laptop 12_13th Gen Intel Core_

Processor: 13th Gen Intel Core i5-1334U x 12

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

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: '$6$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
Print service is unavailable Bad file descriptor. Kubuntu I have followed all the cups close, install, reinstall, activate and what I get is below https://askubuntu.com/questions/1560353/print-service-is-unavailable-bad-file-descriptor-kubuntu-i-have-followed-all-th

Job for cups.service failed because the control process exited with error code.

See "systemctl status cups.service" and "journalctl -xeu cups.service" for details.

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.

Postman fails to start https://askubuntu.com/questions/1560325/postman-fails-to-start

I'm unable since today to start the Postman application that I installed using snap.
I've been running it since years now and it won't start anymore.
I tried starting it from the terminal and it gives me this error +a large stack trace with references to ERR: Display.cpp:1083 ...

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /snap/postman/362/usr/share/postman/resources/app/node_modules/native_modules/build/Release/pty.node)
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
    at Module._extensions..node (node:internal/modules/cjs/loader:1602:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2559)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:16955)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at ./node_modules/node-pty/build/Release/pty.node (/snap/postman/362/usr/share/postman/resources/app/main.js:12:124700)
    at __webpack_require__ (/snap/postman/362/usr/share/postman/resources/app/main.js:751:653121)

I've already run sudo apt update and sudo apt upgrade as well as sudo apt install libc6, but it says it's the latest version. It's running on Ubuntu 22.04.5 LTS.

VLC fails network stream in Ubuntu 22.04 https://askubuntu.com/questions/1560218/vlc-fails-network-stream-in-ubuntu-22-04

I use VLC to monitor a DVR via RTSP. Suddenly it stopped connecting. I have tried everything I can find, but it still fails to connect.

VLC version is 3.0.16 Vetinari. It used to work, then about a week ago, it started to fail, giving:

"Your input can't be opened: VLC is unable to open the MRL rtsp://192.168.1.195:554/ch04/0. Check the log for details."

I have tried removing and reinstalling, both with Symantic and sudo apt install, which I think means snap. I tried sudo apt-get install, but it makes no difference. I have a log output, very long, but I cannot understand what it is telling. I can post it if it would help.

This first started on my daily-use Desktop, for a day the backup laptop worked, then it also failed. I assume there was some kind of update that borked it. The laptop has 3.0.20 Vetinari.

EDIT

I followed the instructions in Sotirov's answer, but it did not solve the problem. After doing exactly what I was told, the command: vlc rtsp://192.168.1.195:554/ch04/0 led to the usual hint as to how to get 'help', and also it opened vlc with, again, the same fault as before.

Rebooting made no difference. I am thinking of seeing if I can install an earlier version of vlc, to see if that helps. I think this is 'editing my question post'. If not, I can only apologise. Results:

david@desktop-2:~$ which vlc
/usr/bin/vlc
david@desktop-2:~$ vlc rtsp://192.168.1.195:554/ch04/0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
VLC media player 3.0.16 Vetinari
Command Line Interface initialized. Type `help' for help.

and it waited for input. This time, it did not launch vlc, which it did before.

Results from just now:

david@desktop-2:~$ sudo apt remove vlc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'vlc' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.
david@desktop-2:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.
david@desktop-2:~$ sudo snap install vlc
snap "vlc" is already installed, see 'snap help refresh'
david@desktop-2:~$ snap refresh
All snaps up to date.
david@desktop-2:~$ vlc rtsp://192.168.1.195:554/ch04/0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
VLC media player 3.0.16 Vetinari Command Line Interface initialized.
Type `help' for help.

I rebooted, and then did the same command:

david@desktop-2:~$ vlc rtsp://192.168.1.195:554/ch04/0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
VLC media player 3.0.16 Vetinari
Command Line Interface initialized. Type `help' for help.

I just repeated the whole list of commands again, including: sudo snap install vlc. Then rebooted. Output of next attempt:

david@desktop-2:~$ which vlc
/usr/bin/vlc
david@desktop-2:~$ vlc rtsp://192.168.1.195:554/ch04/0
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
VLC media player 3.0.16 Vetinari Command Line Interface initialized.
Type `help' for help.

It did not laucnch vlc.

I returned to the original question, and then went to the first Edit I could find below that. Otherwise I don't know where to add information. Result of latest instruction: "/snap/bin/vlc rtsp://192.168.1.195:554/ch04/0 ". There was no response, it's till just sitting there waiting for something. It only changed when I stopped it with Cntrl-C.

"/snap/bin/vlc" does nothing, cursor sits there flashing. So, yes, it seems that the snap version is not being installed despite the vommand to do so being correct. Is there another way to install it? A snap-store, or similar? But I jst checked with Navigator, and the file /snap/bin/vlc exists. Curiouser and curiouser.

I tried something else.

  1. Using Synaptic, I removed everthing vlc.
  2. Back at the terminal, I then did this: david@desktop-2:~$ sudo snap install vlc [sudo] password for david: snap "vlc" is already installed, see 'snap help refresh' david@desktop-2:~$ david@desktop-2:~$ sudo snap refresh All snaps up to date. david@desktop-2:~$ sudo snap remove vlc vlc removed (snap data snapshot saved) david@desktop-2:~$ sudo snap install vlc vlc 3.0.20-1-g2617de71b6 from VideoLAN✓ installed david@desktop-2:~$ /snap/bin/vlc rtsp://192.168.1.195:554/ch04/0 ^C {NO ACTION}. david@desktop-2:~$ vlc bash: /usr/bin/vlc: No such file or directory david@desktop-2:~$ cd /snap/bin david@desktop-2:/snap/bin$ ls firefox get-iplayer.get-iplayer-cgi firefox.geckodriver snap-store geckodriver snap-store.ubuntu-software get-iplayer snap-store.ubuntu-software-local-file get_iplayer vlc get_iplayer.cgi zoom-client firefox get-iplayer.get-iplayer-cgi firefox.geckodriver snap-store geckodriver snap-store.ubuntu-software get-iplayer snap-store.ubuntu-software-local-file get_iplayer vlc get_iplayer.cgi zoom-client

Is there any point in removing vlc from /snap/bin, and then re-installing? At he moment, vlc is said to be installed, but does not open. /snap/bin/vlc exists, but does not launch. As far as I know, I have followed the instructions to remove the old vlc and install the snap version. But it does not work. The only thing I can think of is to install an older version.

Ubuntu 24.04 LUKS encrypted installation with manual partitioning https://askubuntu.com/questions/1555597/ubuntu-24-04-luks-encrypted-installation-with-manual-partitioning

I have a dual-boot setup with Windows 11 (BitLocker off) and Ubuntu 22.04 (LUKS encrypted). I need to upgrade to 24.04. The default upgrade won't work because the /boot partition is too small and cannot be resized easily because it's encrypted. Either way, I have already formatted the / partition and am trying to do an encrypted Ubuntu 24.04 install.

I am following these steps:

  1. Launch Ubuntu from USB drive, open the Installer and click Next a few times.
  2. On the "Disk setup" page, select "Erase disk and install Ubuntu", then select "Advanced features...", then select "Use LVM and encryption".
  3. Now select "Manual installation" and click "Next".

At this step, I expect to set the passphrase for the encryption, but I don't get any option for that. I have already run the full installer once and have got the fresh Ubuntu 24.04 installation working, however, it's not encrypted.

Can someone please guide me on the encrypted setup? I am fine formatting the partition again as there is no data.

Bluetooth not finding any device on Xubuntu 24.04 (ASUS X1405VAP) https://askubuntu.com/questions/1555364/bluetooth-not-finding-any-device-on-xubuntu-24-04-asus-x1405vap

I have a problem similar to this post, with bluetooth working but not detecting any devices (audio headset, speakers, smartphone) . I tried the classical troubleshooting for bluetooth, which did not work. I also used the latest jeremy31 btusb patch, with secureboot disabled :

sudo apt install git dkms
git clone https://github.com/jeremyb31/bluetooth-6.14.git
sudo dkms add ./bluetooth-6.14
sudo dkms install btusb/4.3

But it didn't work.

My bluetooth info below :

lsmod | grep bluetooth
bluetooth            1011712  44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm

sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset>
     Active: active (running) since Tue 2025-09-02 12:12:26 CEST; 12min ago
       Docs: man:bluetoothd(8)
   Main PID: 4555 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18546)
     Memory: 972.0K (peak: 1.6M)
        CPU: 53ms
     CGroup: /system.slice/bluetooth.service
             └─4555 /usr/libexec/bluetooth/bluetoothd

sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>
sept. 02 12:12:26 **-ASUS-Vivobook-14-X1405VAP bluetoothd[4555]: Endpo>

HCI Config:

hciconfig
hci0:   Type: Primary  Bus: USB
    BD Address: 58:CD:C9:AC:FA:F6  ACL MTU: 1021:8  SCO MTU: 255:12
    UP RUNNING 
    RX bytes:2531 acl:0 sco:0 events:233 errors:0
    TX bytes:12940 acl:0 sco:0 commands:229 errors:0
lsusb; sudo dmesg |egrep -i 'blue|firm'
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1038:184c SteelSeries ApS SteelSeries Rival 3
Bus 001 Device 003: ID 3277:0036 ShineTech USB2.0 HD UVC WebCam
Bus 001 Device 004: ID 0489:e112 Foxconn / Hon Hai Bluetooth Radio
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[    1.554154] usb 1-10: Product: Bluetooth Radio
[    7.551313] Bluetooth: Core ver 2.22
[    7.551345] NET: Registered PF_BLUETOOTH protocol family
[    7.551347] Bluetooth: HCI device and connection manager initialized
[    7.551351] Bluetooth: HCI socket layer initialized
[    7.551353] Bluetooth: L2CAP socket layer initialized
[    7.551358] Bluetooth: SCO socket layer initialized
[    8.888369] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.888375] Bluetooth: BNEP filters: protocol multicast
[    8.888380] Bluetooth: BNEP socket layer initialized
[    8.891777] Bluetooth: MGMT ver 1.23
[   11.473253] Bluetooth: RFCOMM TTY layer initialized
[   11.473264] Bluetooth: RFCOMM socket layer initialized
[   11.473271] Bluetooth: RFCOMM ver 1.11

Would you have any idea to fix this ? Thank you very much,

Can't change brightness on version 22.04 https://askubuntu.com/questions/1406420/cant-change-brightness-on-version-22-04

I'm new to Linux, so I use Linux on dualboot. At the first time of installing Ubuntu, the brightness slider was working fine but when I made some updates + installed an Nvidia driver the slider is not doing anything anymore. Tried adding GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor to /etc/default/grub but didn't work. Tried to install Brightness Control as a temporary solution but even that wasn't working. The /sys/class/backlight folder has two folder in it; amdgpu_bl0 and ideapad, brightness slider only effect the files included in ideapad folder. What should I do? System specs: Ryzen 5 4600H GTX 1650 Ti

How do I change the audio output for one specific application? https://askubuntu.com/questions/1355723/how-do-i-change-the-audio-output-for-one-specific-application

I want to change my audio output for Spotify by NOT changing the default settings to be able to hear music over my sound system and play everything else with my headset.

I already searched in the settings of Spotify as well as in the settings of my system but found noting. My system runs with 20.04.2 LTS and I just switched from Windows on Linux so everything should be up to date.

Gcode sender install and use https://askubuntu.com/questions/1292600/gcode-sender-install-and-use

So new to Ubuntu and I am sure I am missing the simple/basic commands and understanding. But cannot not seem to find what I am missing online via search. Installed on a number of laptops for crypto currency mining and working nicely.

Trying to use for a CNC machine in this case. Using 18.04. I have downloaded the gcode sender package (ugsplatform-linux) and extracted to folder. When I double click the ugsplatform file it opens like a txt file. Not sure how to 'Run' or execute the file and get the software open. When I open terminal and go the correct folder and enter in 'ugsplatform', I get the command not found message.

Thx for any assistance.

LXD not installed after upgrade from 18.04 to 20.04 https://askubuntu.com/questions/1291368/lxd-not-installed-after-upgrade-from-18-04-to-20-04

I have been trying to get snap working on my Ubuntu machine for a while, but got nowhere. So I decided to upgrade to the latest LTS version of 20.04.

error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
       /tmp/sanity-mountpoint-760118298: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error.

Everything seeemed to install ok and I got the prompt about choosing a version of LXD. I chose 4.0 as it recommended.

However, now when I try to install anything using apt I get the following error (still related to snap):

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 lxd-client : Depends: lxd (>= 1:0.9) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Then when I run sudo apt --fix-broken install, it tries to use snap and I get this:

Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 290280 files and directories currently installed.)
Preparing to unpack .../archives/lxd_1%3a0.9_all.deb ...
=> Installing the LXD snap
==> Checking connectivity with the snap store
==> Installing the LXD snap from the 4.0 track for ubuntu-20.04
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
       /tmp/sanity-mountpoint-353261804: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error.
dpkg: error processing archive /var/cache/apt/archives/lxd_1%3a0.9_all.deb (--unpack):
 new lxd package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/lxd_1%3a0.9_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I cannot install anything now as this keeps going around in circles.

$ lxd version

Command 'lxd' not found, but can be installed with:

sudo snap install lxd            # version 4.7, or
sudo apt  install lxd-installer  # version 1
sudo apt  install lxd            # version 1:0.9

See 'snap info lxd' for additional versions.
$ sestatus

Command 'sestatus' not found, but can be installed with:

sudo apt install policycoreutils
Netplan not creating route for interface https://askubuntu.com/questions/1238283/netplan-not-creating-route-for-interface

I am trying to setup an ipip6 tunnel between a remote machine and a local one in order to give my machine a public IPv4 address (It has IPv6, but it is behind a carrier grade NAT).

So far I have been able to get this working by manually running a series of ip commands.

On my local machine (machine A) I run the following commands to get the tunnel set up:

sudo ip link add name tun0 type ip6tnl local [machine A ipv6 address] remote [machine B ipv6 address] mode tun0
sudo ip link set dev tun0 up
sudo ip a add dev tun0 10.0.3.1
sudo ip route add 10.0.3.0/24 dev tun0

And on my remote machine (machine B):

sudo ip link add name tun0 type ip6tnl local [machine B ipv6 address] remote [machine A ipv6 address] mode tun0
sudo ip link set dev tun0 up
sudo ip a add dev tun0 10.0.3.2
sudo ip route add 10.0.3.0/24 dev tun0

And everything works great, I can ping each machine from the other over the tunnel.

However, when the machines reboot, the tunnels are lost, so I wanted to use netplan to manage them. So far I have been able to get netplan to create the interfaces properly with addresses:

network:
  version: 2
  tunnels:
    tun0:
      mode: ipip6
      remote: "[machine B ipv6 address]"
      local: "[machine A ipv6 address]"
      addresses:
        - 10.0.3.2/32
      routes:
        - to: 10.0.3.0/24
          via: 10.0.3.1

However, no route is created. When I run ip route, I would expect to see 10.0.3.0/24 dev tun0 scope link in the routing table but netplan is not creating it. How do I get netplan to create this route automatically so I don't have to run sudo ip route add 10.0.3.0/24 dev tun0 every time?

G_IS_DBUS_connection failed https://askubuntu.com/questions/1128343/g-is-dbus-connection-failed

I am new to Linux, trying to connect to Nucleo board using putty. I am sure the serial line is correct, this is the message error I got in terminal:

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(putty:10263): GLib-GIO-CRITICAL **: 12:18:45.537: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Configuring JAVA HOME for Hadoop 3.0.3 when having multiple Java versions https://askubuntu.com/questions/1069575/configuring-java-home-for-hadoop-3-0-3-when-having-multiple-java-versions

I'm working on a Hadoop installation done by someone else.

Ubuntu 18.04.1 LTS
Hadoop version 3.0.3
Java open jdk 11 (auto mode) and 8 (manual mode)

Currently Hadoop runs with Java 11 but I want to configure Hadoop to run with Java 8 because Hive doesn't work with Java 11.

Following is the Java configuration in my virtual machine.

hadoop@hadoop-VirtualBox:~$ whereis java
java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz

hadoop@hadoop-VirtualBox:~$ update-alternatives --list java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

hadoop@hadoop-VirtualBox:~$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.1, mixed mode)

hadoop@hadoop-VirtualBox:~$ sudo update-alternatives --config java

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode


hadoop@hadoop-VirtualBox:~$ ls -lh /usr/lib/jvm/
total 8.0K
lrwxrwxrwx 1 root root   25 Apr  8 14:16 default-java -> java-1.11.0-openjdk-amd64
lrwxrwxrwx 1 root root   21 Apr 21 14:41 java-1.11.0-openjdk-amd64 -> java-11-openjdk-amd64
drwxr-xr-x 9 root root 4.0K Aug 23 12:28 java-11-openjdk-amd64
lrwxrwxrwx 1 root root   20 Apr 26 16:59 java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64
drwxr-xr-x 7 root root 4.0K Aug 17 08:24 java-8-openjdk-amd64

I was looking at this thread to configure Java however in the .bashrc or /etc/environment file there is no entry on JAVA_HOME. The only place JAVA_HOME is specified is in the /usr/local/hadoop/etc/hadoop/hadoop-env.sh file. In the file JAVA_HOME is specified as follows:

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

With the above configuration Hadoop runs without any problem. I tried changing the JAVA_HOME in the hadoop-env.sh file to /usr/lib/jvm/java-8-openjdk-amd64 and tried running Hadoop. But this gives an error

Unrecognized option: --add-modules Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

I tried changing the priority of the Java version using sudo update-alternatives --config java along with the hadoop-env.sh alteration but it still gives the same error.

In order to change the Java version do I need to add the path to .bashrc and /etc/environment as well? I would like to know what changed needs to be done.

Plex Media Server won't start https://askubuntu.com/questions/978619/plex-media-server-wont-start

Been trying to setup a plex server for the last 2 days. I initially had it up and running, but I rebooted, and now I can't get it start back up.

Background:

  • Running 16.04 32bit
  • Had installed and set up server once everything was working fine
  • Rebooted machine
  • Since reboot, have not been able to get server running
    • Ran sudo dpkg -r plexmediaserver and sudo dpkg -P plexmediaserver, then reinstalled, but this bares no effect on the error
  • Also running sonarr and nzbget (I doubt that has any impact on the issue, but you never know)

Ran sudo systemctl status plexmediaserver and output is as follows:

    plexmediaserver.service - Plex Media Server for Linux
    Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Active: inactive (dead) (Result: exit-code) since Mon 2017-11-20 21:47:11 EST; 44s ago
    Process: 5144 ExecStart=/bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server" (
    Process: 5140 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${
    Main PID: 5144 (code=exited, status=127)

    Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Unit entered failed state.
    Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
    Nov 20 21:47:11 media-server systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
    Nov 20 21:47:11 media-server systemd[1]: Stopped Plex Media Server for Linux.
    Nov 20 21:47:11 media-server systemd[1]: plexmediaserver.service: Start request repeated too quickly.
    Nov 20 21:47:11 media-server systemd[1]: Failed to start Plex Media Server for Linux.
    Nov 20 21:47:44 media-server systemd[1]: Stopped Plex Media Server for Linux.

results of journalctl -xe

-- Subject: Unit plexmediaserver.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has finished starting up.
-- 
-- The start-up result is done.
Nov 20 21:47:00 media-server sh[5132]: /bin/sh: 1: /usr/lib/plexmediaserver/Plex Media Server: not found
Nov 20 21:47:00 media-server systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=127/n/a
Nov 20 21:47:00 media-server systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 20 21:47:00 media-server systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 20 21:47:04 media-server sudo[5137]:    david : TTY=pts/7 ; PWD=/home/david/Downloads ; USER=root ; COMMAND=/bin/systemctl status plexmediaserver
Nov 20 21:47:04 media-server sudo[5137]: pam_unix(sudo:session): session opened for user root by (uid=0)
Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 20 21:47:05 media-server systemd[1]: Stopped Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has finished shutting down.
Nov 20 21:47:05 media-server systemd[1]: Starting Plex Media Server for Linux...
-- Subject: Unit plexmediaserver.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has begun starting up.
Nov 20 21:47:05 media-server systemd[1]: Started Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has finished starting up.
-- 
-- The start-up result is done.
Nov 20 21:47:05 media-server sh[5144]: /bin/sh: 1: /usr/lib/plexmediaserver/Plex Media Server: not found
Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=127/n/a
Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 20 21:47:05 media-server systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 20 21:47:10 media-server sudo[5137]: pam_unix(sudo:session): session closed for user root
Nov 20 21:47:11 media-server systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 20 21:47:11 media-server systemd[1]: Stopped Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has finished shutting down.
Resizing fat32 partition in command line without losing data https://askubuntu.com/questions/962829/resizing-fat32-partition-in-command-line-without-losing-data

I am trying to resize a fat 32 partition in my linux machine. Following are the specs of the system.

  1. This is not a PC hence UI based tools are not applicable.
  2. This memory partition which I am trying to resize is already having data in the form of files. I can't lose them.
  3. I am trying to shrink the partition to used space alone and move the remaining space to another partition.
  4. Preferably without rebooting of system, unmounting of partition would be fine.

Edit: Backing up data from this partition is not what I am looking for. I am trying to see if there is a way that I can try without losing data. Its more like an analysis rather than task.

What I tried till now: Tried using parted tool as gparted needs an UI. Even though I am able to shrink this partition, it is leading to unnecessary problems due to file fragmentation. For example, after shrinking when I run file system check I am getting errors like chain not found for few files.

I cant use tools like resizee2fs as it supports only ext file systems (correct me if I am wrong here).

I tried using tool fatresize, even though I am able to successfully get it install it in my debian I am not able to get an installable for arm, whatever link I am getting is throwing an error on line 1 statement itself.

Can someone help me with any information they could?

How to install a version of qemu and libvirt that doesn't come with apt-get https://askubuntu.com/questions/942916/how-to-install-a-version-of-qemu-and-libvirt-that-doesnt-come-with-apt-get

I need to install QEMU 2.5.0 and libvirt 1.3.3 to get around Nvidia driver issues (Code 43) when doing GPU passthrough on a windows VM. See first article under troubleshooting in src for details.

I've installed KVM using sudo apt-get install qemu-kvm qemu-utils qemu-efi ovmf libvirt-bin libvirt-de, they this gives me older versions.

With virsh the version command prints out:

Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0

I've fairly new to Ubuntu, so could someone explain how I upgrade or install QEMU 2.5.0 and libvirt 1.3.3 (or a later version)?

Unable to update virus definitions in ClamAV/ClamTK https://askubuntu.com/questions/924152/unable-to-update-virus-definitions-in-clamav-clamtk

I am running Ubuntu 17.04 on a Dell desktop computer.I have not been able to update ClamAV/ClamTK virus signatures for some time. The antivirus signatures number is "23296." When I try sudo freshclam I get the following error messages:

ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

This might be related: I am unable to change the scheduled time for daily updates or a daily scan.

Any assistance would be greatly appreciated.

How do I set the FPS when using ffmpeg? https://askubuntu.com/questions/921744/how-do-i-set-the-fps-when-using-ffmpeg

I'm trying to save my CCTV stream into segments of 300 seconds with a FPS of 7. Here's my command:

ffmpeg -r 7 -i rtsp://192.168.1.100/...stream=0.sdp -acodec aac -strict -2 -vcodec copy -f segment -segment_time 300 -segment_format mp4 "mon1-%03d.mp4"

The output file doesn't seem to respect the '-r 7' command (for FPS = 7). Does anyone know how to set the FPS of the output?

Mount Internal drive Lubuntu https://askubuntu.com/questions/858884/mount-internal-drive-lubuntu

I am using Lubuntu 16.10 installed on 120 GB drive. However, I also have a secondary 1TB hard drive full of personal data and similar valuable information, yet I am unable to mount it:

jan@Bondy:/$ sudo mount /dev/sdb2 /media/diskD
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       doesg | tail or so.

Output of fdisk:

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disklabel type: dos
Disk identifier: 0xcf802303

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sdb1             2048   32507903   32505856 15.5G 27 Hidden NTFS WinRE
/dev/sdb2        302507904 1953521663 1921013760  916G  7 HPFS/NTFS/exFAT

I am not sure. Is something wrong with my NTFS filesystem? Might I need to format my drive again?

EDIT: After I split C drive into 2 partitions and installed Lubuntu again, the Lubuntu was still unable to load second drive. To the second partition I installed windows, that is able to work with second drive without any problem.


Editor's note:
This post has originally contained a couple screenshots of console text. These have since been replaced with a transcription.

How do I show the git branch with colours in Bash prompt? https://askubuntu.com/questions/730754/how-do-i-show-the-git-branch-with-colours-in-bash-prompt

I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file:

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes 

...

# Add git branch if its present to PS1
parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ '
else
 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '
fi
unset color_prompt force_color_prompt

As a result I now get:

enter image description here

so it works. But why has the coloring of my user@host been removed? And I would also expect that the branch name should be colored. Before it looked like this:

enter image description here

UPDATE: I have now tried this guide instead:

https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt

adding this to .bashrc:

parse_git_branch() {
     git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "

and that works:

enter image description here

Notice in .bashrc I also have this (default):

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

I have yet to find the reason why that snippet gives the correct result and the other version does not. Any input on this?

Here is the version of my .bashrc that has the old snippet enabled that does not work:

http://pastebin.com/M8kjEiH3

XRDP - Connect to the same session (multiple users) https://askubuntu.com/questions/657246/xrdp-connect-to-the-same-session-multiple-users

I'm trying to setup a rdp server, but I have some problems with sessions. Basically the user should connect to the same (existing) session, but I can't find a solution featuring multiple users.

I tried setting the xrdp port to a certain number, but the problem was that every user connected to the same session. Of course user1 should not be able to connect to the session of user2. Setting the port to "ask-1" in the xrdp.ini goes into the right direction, but this can not be a solution because I can't expect the user to keep the port number in mind. Just basic skilled people should use the server.

Moreover I tried to use tightvnc, but I just got the same results.

I hope somebody could help me and solve my first question :)

How to I write "å" on Ubuntu using an English (UK) keyboard? https://askubuntu.com/questions/655960/how-to-i-write-%c3%a5-on-ubuntu-using-an-english-uk-keyboard

I can write æ and ø by pressing down Alt Gr + a and o, respectively.

However, trying all keys on my keyboard using Alt Gr, I've not yet found a way of writing the letter å.

I've been looking into character codes, but by pressing down Alt and entering the character code 0224 etc. nothing happens.

Can someone show me how to solve the problem (I am a danish user...)

Blinking Cursor when trying to run live Ubuntu 13.10 on USB https://askubuntu.com/questions/417030/blinking-cursor-when-trying-to-run-live-ubuntu-13-10-on-usb

I have been trying to install Ubuntu on this laptop forever. I have my USB drive all setup and ready to go, but when I try booting from my flash drive it just shows a blank screen with a blinking cursor. I can't even get to the screen where it asks you to either try or to install Ubuntu.

I have tested this USB with other computers and it works with them but not this one. It is a Sony Vaio VGN-FE550G(PCG-7H1L) and it uses an old Phoenix BIOS. And no it isn't the Phoenix Awards BIOS,it is just the Phoenix BIOS. IF anyone can help me I would be very happy.

Ticking sound on speakers https://askubuntu.com/questions/352397/ticking-sound-on-speakers

There's a really annoying ticking sound coming from my speakers that started yesterday. When you plug headphones in, it comes through the headphones too. Any idea what it could be?