Latest Ubuntu related questions

Score: -1
CryptoTrader avatar
match all the items that i have enough of to afford. simple regex
in flag

Taking a self guided linux tutorial and I keep getting hung up on this

My output keeps including the "clock 15" please help

#!/bin/sh
#comment single RegEx to match all of the items that you have enough rupees 
sed '1d' hw0207.txt | grep -v [2-9][0-9]
#comment grep will filter all numbers greater than 12, -v represents not
#comment first sed was to remove first line

regex to match directions

I'm ...

Score: -1
What's the difference between address 0.0.0.0, [::] and *?
cn flag

If you run something like ss -tunlp (or netstat -tunlp) you get a list of listening ports.

The standard format should be <host>:<port>, eg. 127.0.0.3:5000.

But you also see 0.0.0.0:<port> and [::]:<port>. What do these 2 mean?

In particular, if you see [::]:22 or 0.0.0.0:22 or *:22, does that mean anyone can ssh into that machine?

Score: 0
What is the difference between these package cache clearing methods?
id flag

When building Docker images using ubuntu, some devs recommend removing package caches to reduce the size of the generated image by running the following command:

rm -rf /var/lib/apt/lists/*

However, there is also the command apt-get clean which removes the package cache located at /var/cache/apt/archives (reference: https://help.ubuntu.com/community/AptGet/Howto)

Why do devs recommend the former ...

Score: 0
meccooll avatar
No sound/audio via HDMI from KVM ubuntu guest
ng flag

I have sound over HDMI on my Ubuntu20.04 host, but when i decided to play with KVM/QEMU/virt-manager i can't get the sound to work on the Ubuntu20.04 guest. virt-manager showing the following options for sound: AC97, HDA(ICH6), HDA(ICH9) none of which seem to work

Host

02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
Score: 0
IcedTea Web Control Panel configuration
vn flag

I installed IcedTea Web Control panel because I was not able to use two different software using java machine.

Luckily with the first software for Internal Revenue Services I was able to open it, but when I tried to open XMind 8, just fixed and opened, thanks to this forum I realized it doesn't open and I got this log message:

!SESSION 2021-10-17 15:33:37.544 ------------------------------------------- ...
Score: 0
Ross avatar
Ubuntu 18.04 losing new internet access
us flag

A really weird problem, I can connect with cable, WiFi, USB->Cable and it works fine. I can remotely login with anydesk, browse the net, ping etc.

After a few minutes I can no longer access the internet or even ping the local address of the gateway. But the strange issue is I am still able to access and control from the remote anydesk session. Even local traffic such as MySQL connections fail. ...

Score: 0
Heyday Earbud's pair but don't connect
jp flag
Lee

I have been attempting to get these to work, using pipewire, bluez with blueman and modified the /etc/bluetooth/main.conf controllermode value to every possible value restarting the bluetooth service after each change. I have also attempted a restart after each change.

I find it strange that I can pair the device but it will not connect.

bluetooth-device-info.png

Score: 0
Aarogya Rijal avatar
How to open new windows with new profiles in google chrome?
pk flag

I have 2 profiles that I use in google chrome in ubuntu 20.04 LTS. If I have a window open with one profile. And I open a new window, when I choose the same profile, instead of opening a new window of the profile, it takes me back to the pre-existing window of that profile.

Score: 0
'su' command without a passwd prompt in a remote machine while connected through and ssh session using python's paramiko library
ck flag

I am writing a python script to automate ssh connection to a remote machine. When connected to the remote machine using python's Paramiko library, if I need to elevate privileges (specifically to switch users -- either to root or to some normal user), I will execute the command su <some_normal_user> (to switch to a normal user) or su (to switch to the root - by default), but the problem I am ...

Score: 0
pfo avatar
Different output for ldd between sudo and root
cn flag
pfo

on my system, the output for ldd /usr/bin/openssl differers between the regular user, root and sudo.

This is the output for the regular user:

$ whoami
myname
$ ldd /usr/bin/openssl
    linux-vdso.so.1 (0x00007fff5bdd0000)
    libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f609a783000)
    libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f609a4a8000)
    ...
Score: 0
Struttmann avatar
Random unwanted keyboard key repeats
kr flag

I am having a serious issue with the keyboard on my SAGER NP7859PQ-S (CLEVO NH58HPQ) laptop. I am running Ubuntu 20.04.3 LTS.

Randomly, when I am typing or moving the cursor with the arrow keys, a key will start repeating. It is not the key that I last pressed. Pressing another key usually stops the unwanted repeating. But, sometimes, the key that is repeating is the CTRL key, which makes it almost imp ...

Score: 0
itsmepatty avatar
Fresh install 20.4.3 PME: errors
it flag

Just did a fresh install and during setup OS detects all nic cards just fine but after updates are done and pc is rebooted screen just fills up with pcieport 0000:00:03.0: PME: Spurious native interrupt!, over and over. Google search lead me to this https://forum.proxmox.com/threads/pme-spurious-native-interrupt-kernel-meldungen.62850/ My card is an Intel 8254GB Pro 1000 not sure what to do I cant r ...

Score: 0
Which one is better WSL2 or USB booted Ubuntu?
ug flag

I have started to use WSL2 for a couple of weeks, and I quite enjoy it. I code as a hobby and sometimes for my work-related issues (physics-related stuff), but I am not a software developer or engineer.

Currently, I am using Windows10. However, I am thinking of using Ubuntu from now on and maybe choosing another distro in the future. Is USB bootable Ubuntu is a good option for the long run-or dai ...

Score: 0
luka avatar
Root partition full, don't know what to do
us flag

I have a root and home partition with 20 and something like 200-300GB. My root partition is now almost full, and I'm not sure what to do, what files exactly should even be there etc. Answers that I found online were not helpful, they were too complicated and seemed not to be about this. Why aren't my files on the home partition? Can I move or delete these from the root and get them on home?

It lo ...

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.