Latest Ubuntu related questions

Score: 1
Mouse click not working while debugging with GDB
gb flag

I'm trying to debug a windowed application with GDB in Ubuntu.

First I set a breakpoint in the code.

Then, while running the windowed application, the program stops at the breakpoint at some time.

When that happens, even though the mouse cursor can move freely, clicking doesn't work (left-click, right-click, middle-click and mouse wheel - none of them work).

The keyboard works fine I can type, I can Alt+T ...

Score: 0
hariraj avatar
shell script: How to create a dictionary from the list?
cn flag
#!/usr/bin/env bash
b=$(awk -F "[|]" '{print $1}' test.txt)
days=$(awk -F "[{}]"  '{print $1}' test.txt) #days
time=$(awk -F "[{}]"  '{print $2}' test.txt) #time
#count=`echo $d | wc -l`
#echo $count
declare -A arr
for i in $days;do
        echo $i
    for j in $time;
        echo $j
    done
done

test.txt:

azureuser@disk-bkp:~$ cat test.txt
 Mo Tu We Th Fr {19:00 18:00 16:00 19:00 19:00}

The below on ...

Score: 0
PonyTale avatar
Dual Boot change to UEFI
ng flag

I currently have a dual boot setup where I have Windows 10 on one disk and ubuntu on another. This was installed in CSM mode, not UEFI. It works great, when I start my PC I can select Ubuntu or Windows with the GRUB bootloader. Now I wanted to get ready for Windows 11, one requirement for Windows 11 is to enable "Secure Boot". In order to enable that I had to change to UEFI. The issue is, that with UEFI ...

Score: 1
sssd-pac.service crashes periodically on Ubuntu 20.04
cn flag

We are using the RedHat IdM 7 and have bound our server systems for central user management to our IdM cluster. We have recognized on our Ubuntu 20.04 systems that the sssd-pac.service crashes periodically every 7-8 minutes and gets automatically restarted. Unfortunately, we have not found the reason so far. We are running the following SSSD version:

(~) root@srv2-t $ sssd --version
2.2.3

The /var/log/ ...

Score: 0
ramzataz avatar
Ledger Nano S - Ubuntu 20.04
gn flag

I need help getting my Ledger to connect. Currently I am stuck on the verify screen.

I am running Ubuntu 20.04 and Ledger Live Desktop 2.33.1-linux-x86_64

I have ran the troubleshooting steps here: https://support.ledger.com/hc/en-us/articles/115005165269-Fix-USB-connection-issues-with-Ledger-Live?support=true

I have also ran dmesg and I get this error.enter image description here

Any help to resolve this would be greatly appreciat ...

Score: 0
user10106394 avatar
Cannot load the desktop after adding Chinese input method
br flag

I have a problem which looks very similar to the problem described in this Discourse thread: Problems to add Chinese layout to Ubuntu 18.04

Basically, the desktop does not load after I input the correct password. Only the purple background and the white cursor (arrowhead) is shown. And this happened after I tried to add Chinese input method. I changed IBUS to fcitx. In the end, I still could not type C ...

Score: 0
Shaden avatar
Locale error when building Petalinux project
np flag

I am trying to build petalinux project but I faced this error

    shaden@shaden-Swift:~/Documents/PetalinuxProjects/1/xilinx-zcu102-2018.2$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see ...
Score: 0
How to get battery warning beeping sounds back in 20.04?
in flag

I recently upgrade to ubuntu 20.04. Now I don't hear an internal beeb sound from the computer when it's about to run out of battery, which it suddenly just shuts down(first priority). I would very much like to be warned a at least a few minutes before so I get a chance to find a charger. Its important that the warning can be heard even if I have headphones plugged and not wearing them. so I get a chance ...

Score: 0
Configure ip-sec VPN with nmcli
ve flag

I want to configure a ip-sec VPN connection from nmcli because it runs on Ubuntu 20.04 Server without X Server. I already have a connection file on another machine, so at the end of the process I would be able to check the if the configuration is ok:

[connection]
id=myVPN
uuid=blabla-blabla-blabla
type=vpn
autoconnect=false
permissions=user:mark:;

[vpn]
IKE DH Group=dh2
IPSec ID=myID
IPSec gateway=myGate ...
Score: 0
apache2.distrib:1 duplicate log entry for /var/log/apache2/access.log
in flag

I have an Apache bug.

(https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1945311 - Ubuntu 18 version 2.4.29-1ubuntu4.18 on my Plesk Ubuntu server).

I found a workaround here:

https://support.plesk.com/hc/en-us/articles/4407366133906-Website-suddenly-started-to-show-500-error-AH10292-Invalid-proxy-UDS-filename?page=2#comments

And execute (before it was officially fixed by Apache):

sudo add-apt-repos ...
Score: 2
MrMowgli avatar
FFMPEG, undefined symbol hb_glib_script_to_script
au flag

I have several commercial applications that rely on FFMPEG or a subdependency,libpango, and potentially others. One of those packages breaks on my system since either FFMPEG's or libpango's version and compile options are now different than the stock Ubuntu version. I'm not sure which programs rely on FFMPEG or libpango as a dependency, or how to find out which versions are used.

The original err ...

Score: 2
lucidbrot avatar
Why must a PPA Label change be explicitly accepted in `apt`?
de flag

As discussed here, if an apt PPA changes its label and we try to apt-get update, we get something like this:

E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease' changed its 'Label' value from '*****
The main PPA for PHP (5.6, 7.0, 7.1) with many PECL extensions *****' to '*****
The main PPA for supported PHP versions with many PECL extensions *****'
N: This must be accepted ...
Score: 4
Van Wilder avatar
Screen Brightness Issues on Lenovo Legion 5 pro 2021 (ubuntu 20.04)
us flag

I have a Lenovo Legion 5 pro (2021), I tried installing ubuntu 20.04.

The problem is that I can't seem to change the brightness at all, it is at max.

Laptop Spec

**Processor** 
    AMD Ryzen™ 7 5800H Processor (8 Cores / 16 Threads, 3.20 GHz, up to 4.40 GHz with Max Boost, 4 MB Cache L2 / 16 MB Cache L3)
**Display Type**
    40.64cms (16.0) WQXGA (2560x1600) IPS 500nits Anti-glare 165Hz 100% sRGB Dol ...
Score: 0
Nigel Wash avatar
Iptables that only allow incoming traffic to OpenSSH and block all other traffic
cn flag

I need to configure a firewall using iptables that only allows incoming traffic to the openssh services and block all other traffic. I know how to block all incoming traffic but don't know how to only allow incoming traffic to the openssh and block all other incoming traffic simultaneously. I also need the ssh to be logged as "ssh traffic" and all the other blocked traffic to be logged as "blocked traff ...

Score: 0
Pedroski avatar
Use the function "connect to server" in Nautilus
es flag

I saw on the net that I could connect to a remote server using Nautilus. I have never done that before.

I have a little homework webpage to keep my students occupied.

I have just rented a cloud server with Ubuntu 20.04 LTS. I want to leave my shared web-hosting.

I can access the new cloud server using ssh. I have set up MySQL, PHP, phpMyAdmin

I connected to my localhost using in the "connect to server" bo ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.