Latest Ubuntu related questions

Score: -1
Maddy avatar
AWK Simple way on my way- Need assistance in bash
kr flag

I have below data in a file and need output like this - I did in very bad/hard way looking for something smart way.

file1.log:

A  B  C
1  4  6
2  4  4

We should compare col A values i.e is 1 = 2 if so matched else not-matched.

a1=$(awk -F "|" '{print $3}' file1.log|xargs|awk '{print $1}')
a2=$(awk -F "|" '{print $3}' file1.log|xargs|awk '{print $2}')
if [[ "$a1" == "$a2" ]]; then
     echo "MATCHED" ...
Score: 0
jphp avatar
4k@60Hz via Docking station not working
ve flag

Hello fellow Ubuntu users. I'm new to the Ubuntu-world and trying to set up my 4k monitor via a Lenovo docking station with 60Hz since 30Hz is unbearable.

I have a Lenovo T14s Gen 1 with USB-C connection to a Lenovo ThinkPad USB-C Dock Gen2 Docking Station which is connected to a DELL S2721QS monitor via DisplayPort. The cables are providing the necessary specs to support 4k@60Hz.

I tried all the ...

Score: 1
Extracting Specific Information from file
cn flag

I have a file created from a command I run on my system. After the file is created I want to extract only specific information from that file but only it it meets certain criteria.

Here is what my file looks like:

client: tc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        version: xxxx
        uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
        user-uid: 10000
        user: someuser
        primary-server: xx ...
Score: 0
Jose Andres RODRIGUEZ FIGUEROA avatar
how do I set microphone input volume to a static value?

While in zoom and other meeting platforms, I constantly have to go back to settings to dial back the input device volume, because every time I mute my microphone in app, the value springs back to near "0" and I have set it again every time I'm about to speak. Input device volume settings screenshot My device: Huawei MateBook 13 (CPU: AMD Ryzen 7 3700U, GPU: AMD Radeon Vega10) OS: Ubuntu 20.04.3LTS, G ...

Score: 1
Internal Audio Not Working on Ubuntu 20.04 After Restarting
gb flag

My internal audio and mic stopped working after booting into Windows and then restarting and loading Linux.

  • The internal audio works fine in Windows (dual-boot).
  • The internal audio works fine via HDMI in Linux.
  • The sound card is detected and the audio output is shown in pavucontrol, gnome-control-center, and glava but no sound is actually played.
  • Ocassionaly on the first attempt the audio will pla ...
Score: 0
user3565923 avatar
No .jinfo file. Adding Openjdk 16.0.2 to update-java-alternatives
br flag

I want to add /opt/jdk-16.0.2 to update-java-alternatives, but there is no .jinfo file. File should be there, because I have openjdk 16.0.2

I had no problems with adding java to update-alternatives java command, but I don't want to do it with every java-related binary.

I installed openjdk by extracting it from archive and changing JAVA_HOME to /opt/jdk-16.0.2 Should I do something more? Can I genera ...

Score: 1
how to open specific tcp port on ubuntu
sj flag

I am on Ubuntu 18.04, I am trying to run python -m http.server 8080 and everything works, I can connect to the server from other computers but if I change the port to: python -m http.server 8501 I cannot connect to the server...

I tried disable ufw by sudo ufw disable to allow port 8501, does not work I tried the netstat and it says the system is listen on 0.0.0.0:8501 I tried iptables didn't find anythin ...

Score: 1
Jack Kinnof avatar
libpthreads.so missing in Ubuntu 21.10 (amd64)
sy flag

I tried to locate libpthread.so but it only gave me:

/lib/x86_64-linux-gnu/libpthread.so.0

I then installed it with:

sudo apt-get install libpthread-stubs0-dev

But still, no libpthread.so. Please, can someone help?

Score: 0
Connor avatar
Activation of network connection failed - Ethernet on USB Adapter
vn flag

I'm running Ubuntu 21.2 on an Odroid HC2. I'm having difficulty getting ethernet to connect and when connected, stay connected.

"Activation of network connection failed" when attempting to activate the ethernet connection. On the times that it does connect (after a reboot) it won't stay up for long before presenting the same issue. I have installed the realtek 8125 driver and also tried to use th ...

Score: 0
jjevid avatar
PAM configuration GUI is not saving changes upon hitting
kg flag

In the GUI that appears when sudo pam-auth-update is run, I checked activate mkhomedir and then selected <OK>. This is the GUI:

Ыскуутырще

However, when I run the GUI again, I see that activate mkhomedir is still unchecked.

I've followed and done everything in this thread, enable pam module as default, but it didn't change anything.

Not sure what I'm missing.

Score: 1
Yann Monnier avatar
Fatal Error when trying to uninstall Zoom
in flag

I was trying to install the new version of Zoom without success. Attempting to uninstall Zoom to reinstall it after, I am receiving an unrecoverable fatal error message on my terminal.

yd@yd-Inspiron-5575:~$ sudo apt remove zoom
[sudo] password for yd:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed  ...
Score: 0
Ubuntu Server: Read vs Write Activity Comparison?
ru flag

I run an instance of Ubuntu Server 20.04.3. What is the best method to check which operation the disks in RAID do more in relation to each other? Read and Write? Like Writes - 80%, Reads - 20%.

Score: 0
Mintachine avatar
Running Internet Explorer on Linux
it flag

I am running a DVR which requires ActiveX plugin on IE to view the video streaming so I need advice with how to run Internet Explorer, as the installation advice I've found so far is old and hasn't worked. I tried newest and older versions, running it through Wine, but got an error message about not having the right version of Windows installed (I'm on Ubuntu 20.04.3 LTS). Thank you.

Score: 0
Arthur Grant avatar
referring to parent directory in a save file dialog
cn flag

I tired of the continuous updates in Windows making my programs unusable. After an excursion to Linux Lite, I am now running Ubuntu on my Dell laptop because it was the supported distro. I'm not TERRIBLY stupid, I can program in C and I remember things like file permissions (user-group-everyone) from my SCO days. However, something I tried to do didn't have the effect I thought.

I was in a file s ...

Score: 0
juergen pflug avatar
AMD 5700G on Gigabyte x570S Aero G motherboard
za flag

The Gigabyte 'X570s Aero G' has 2 onboard video outputs: 1x HDMI and 1x USB Type-C when a "G"-type CPU like the 5700G is installed.

The BIOS is now updated to version=F3d (but I still had no luck).

I'm running Ubuntu 21.10 on Kernel 5.15.10 (2021-12-20)

The installed CPU = 5700G
The detected graphics model = Cezanne and the installed driver = amdgpu

Only the monitor connected to the HDMI port is detec ...

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.