Latest Ubuntu related questions

Score: 0
MemoNick avatar
How to connect to pulseaudio server from service
in flag

I'm developing a simple app to duck audio automatically using the pulsectl-asyncio library. I've developed the application in Python with a virtual environment, and when I run the script from the command-line, it works fine: /path/to/venv/bin/python /path/to/main.py.

The problem is running it as a service. When I run the script as a service, I get an error: pulsectl.pulsectl.PulseError: Failed to co ...

Score: 0
Tsimoes avatar
Issue with if statment in bash
rw flag

First time interacting here. it helped me several times, but I'm lost this time. I got a script to remove stalled/ended torrents from @bulljit. (I don't know if I can/should put his Github here. Sorry if I'm wrong). The original code is here: https://gist.github.com/bulljit/791609/3d3e3f9ed7d3d9ad140c2bade503b5864bd475bb

But I decided to go one step further and set a RATIO value for the seeding since ...

Score: 1
Which directories should I exclude in a backup if I want to return to an earlier version of Ubuntu
bo flag

I am currently running Ubuntu Studio 22.10. I am going to replace my HDD with and SDD. At the same time, I want to return to Ubuntu Studio 22.04 LTS. I recognize that I may not be able to open some files created with newer versions of the applications; I can deal with that. My bigger question is: which directories (e.g home/snap, home/.mozilla, etc.) should I exclude from the backup to avoid conflic ...

Score: 0
Ubuntu 22.04 dock - usage dots overlap dock icons
gq flag

I upgraded to 22.04 from 20.04. It's great, super stable.

One minor problem I have is that in the dock the dot to indicate 'this app is open' is overlapping the app icon. I don't know what to edit to fix this. Hoping someone can help!

enter image description here

Score: 0
Aad Dijksman avatar
Connecting from Linux to an SQL database server?
mx flag

Regarding some troubles connecting from Linux to an SQL Database Server. I read a variety of topics on this community and some DBA forums, but couldn't get it working.

Some background information: Trying to make a connection between an Ubuntu 20.04 server and two SQL Databases on a Windows Server 2019 server. Both databases are on the same named instance. There is no firewall limitation from the  ...

Score: 0
s.k avatar
Visually align columns when displaying a CSV file in notepadqq
cn flag
s.k

In notepadqq (v2.0.0-beta+git), how could I force columns to have an optimized (automatic based on file content) fixed width when displaying a CSV file?

I want to do that so that every "column" is visually aligned, even so there may be lot of free space in some row, and for the position of the end of each line to be at the same place.

e.g. from:

a,b,c,some stuff,"some, other, stuff",d
y,x,z,t,cool ...
Score: 4
Ed R avatar
Ubuntu 22.04 freezes after I suspend it a second time
ba flag

I have ubuntu installed on a laptop with the next specifications:

  • Hardware Model:HP HP Laptop 15-ef2xxx

  • Processor: AMD® Ryzen 5 5500u with radeon graphics × 12

  • Graphics: RENOIR (renoir, LLVM 15.0.6, DRM 3.47, 5.19.0-35-generic)

  • GNOME version: 42.5

  • Windowing system: Wayland

Recently, I've been experiencing the stated problem. It didn't used to happen in the past, so I guess it has somethin ...

Score: -1
Jaime avatar
Rise of the Triad in Ubuntu 22.04
in flag

I noticed that "rott" is in the repository so I installed it via Synaptic. I created /usr/share/games/rott and copied these files in:

  darkwar.rtl
  darkwar.wad
  remote1.rts

From the full registered version, however when I try to run the game I get the following messages:

Rise of the Triad Startup  Version 1.4  
Shareware Version     
Z_INIT: 8950000 bytes  
IN_Startup: Mouse Present  
Er ...
Score: 0
Saimoni Athumani avatar
How to fix dpkg error on Ubuntu 22.10
aq flag
Setting up snapd (2.34.2~14.04) ...  
Failed to enable unit: Unit file snapd.autoimport.service does not exist.
dpkg: error processing package snapd (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of snapd-xdg-open:
snapd-xdg-open depends on snapd (= 2.34.2~14.04); however:
Package snapd is not configured yet.

dpkg: ...
Score: 0
BlackHawk avatar
monitors.xml not found
ax flag

I have changed the display settings in Ubuntu 22.04 LTS. In particular, I have changed the scaling (from 100% and 300%) and rotated to portrait mode. Now, I would like to also adapt the log in screen. To do this, I tried sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/.

Unfortunately, ~/.config/monitors.xml does not exist. I did not find any monitors.xml file on my system.

Why is this the case?

Score: 0
fsaa avatar
Second Monitor not working via USB-C docker Ubuntu 20.04 after changing the docker
gb flag

I have 2 docking station (both usb-c) I used my second one yesterday and when I changed the docker today I can't get access to my second monitor. (the first one is connected directly to the laptop using the HDMI port). My outputs are the following:

When I run the journalctl -b command:

-- Logs begin at Tue 2022-10-18 08:31:59 EDT, end at Fri 2023-03-10 08:47:09 EST. --
Mar 04 16:54:46 fahim-IdeaPad ...
Score: 1
Aurores Boréales avatar
EDAC pnd2: Failed to register device with error -22
kg flag

I was using Ubuntu 20.04 which worked perfectly until I received the update notice, and now that I upgraded to Ubuntu 22.04, I cannot boot my pc properly as it displays a black screen with the following lines:

cblk0p2: recovering journal
cblk0p2: clean, 441893/1875968 files, 6007681/7502336 blocks

[..229] EDAC pnd2: Failed to register device with error -22
[..235] EDAC pnd2: Failed to register dev ...
Score: 0
Dan123 avatar
Ubuntu - my computer boots to a blank screen with a prompt after Updates
ml flag

After installing updates, Ubuntu boots to a blank screen with a non-blinking underscore on the upper left (Lenovo ThinkBook).

What I've tried:

  • I'm able to get into recovery mode, access root and read logs, but I'm not sure where to look to start fixing it and what might be the issue.
  • I've also tried booting using a previous kernel, but the outcome is the same.
  • I've tried to disable X at boot tim ...
Score: 0
Michael Azzopardi avatar
Installing Landscape on Ubuntu Server 22.10
sr flag

Trying to add the Landscape repository but constantly getting this error:

michael@naples:~$ sudo add-apt-repository ppa:landscape/self-hosted-23.03
[sudo] password for michael:
Repository: 'deb https://ppa.launchpadcontent.net/landscape/self-hosted-23.03/ubuntu/ kinetic main'
Description:
Dependencies for Landscape Self-Hosted release version 23.03.
More info: https://launchpad.net/~landscape/+arch ...
Score: 0
Sunita Barve avatar
apache2 installation error behind proxy
hk flag

while running apache2 install command I am getting following error

Ign:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.14 Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.14 403 Forbidden

and then further shows my proxy ip and port

how to sort out this issue and install apache2 behind proxy to get rid of abo ...

Score: 2
anjanesh avatar
Get stats of number of files of unqiue file extensions including binaries from command line
bl flag

I am trying to recursively count the number of different extensions and how often each of them occurs in the files of a directory and I want to include the number of files with no extension. I am trying:

find . -type f -name "*.*" | grep -o -E "\.[^\.]+$" | 
  grep -o -E "[[:alpha:]]{2,16}" | awk '{print tolower($0)}' | 
   sort | uniq -c | sort -rn

But this does not display binaries with no extension ...

Score: 0
O'rinboyev Azamat avatar
Fingerprint scanner problem
bf flag

I am using asus vivobook pro K3500p model with Ubuntu 22.04.2 LTS (5.19.0-35-generic) but fingerprint sensor isn't working. is there any existing driver for that. lsusb result: Bus 003 Device 004: ID 04f3:0c6e Elan Microelectronics Corp. ELAN:Fingerprint.

Score: 0
robsn avatar
pass environment variable to firefox without using the shell
cn flag

I'm doing some ssl/tls debugging using firefox and wireshark. I have to pass the SSLKEYLOGFILE variable to firefox. My current solution is starting firefox with bash using:

echo "SSLKEYLOGFILE=$SSLKEYLOGFILE; /snap/firefox/current/usr/lib/firefox/firefox" | snap run --shell firefox

Is there a way to modify the desktop launcher so that I can normally start firefox without using a shell workaround? ...

Score: 1
gandsnut avatar
How best to bring a broken desktop (MATE) back?
ar flag

At power-up, the greeter window provides for each of my 4 login ID's these desktops: Gnome, Gnome Classic, Ubuntu, Ubuntu w/ Wayland, MATE, Budgie, KDE/Plasma, and a few others.

Something about the MATE desktop is broken to the extent all I get is a background image and a moving mouse cursor.

No clicking or keystrokes (shy of ctrl-alt-F1, which brings up a console login) do anything.

What is the su ...

Score: 1
user1680345 avatar
Unknown Error:''("The cache has no Package named 'libllvm15:amd64')
gy flag

after updating packages an error message shows:

'<class'keyerror'>'("The cache has no Package named 'libllvm15:amd64'). 
This usually means that your packages have unmet dependencies.
Score: 1
Andy A. avatar
Performant sort files into subdirectories by content of metafile
mo flag

-edit: more details, correct code-

I want to move files from a directory into sub directories by data out of a metadata file.

There are groups of files like <name>.<extension>. Each group consists of 3 files. One of the files in each group has the extension .idx. This is the metadata file, a text file.

In the metadata file, there is exact one line like VALUE_01=XXXXX and some others (15 to 6 ...

Score: 0
jurko avatar
Can't wake up from suspend with keyboard, but only if suspended with lid closed
bj flag

My laptop runs Ubuntu 22.04LTS and I use it mainly docked to an external monitor via USB-C. I would like to be able to suspend and wake up the laptop without opening the lid, by using the external keyboard.

  • If I suspend the system from the GUI with the lid open, then I can wake up using the external keyboard.
  • Another test: if I suspend the system from the GUI with the lid open, then I close the lid, I ...
Score: 0
Gamepad mapping in Hurrican game
es flag

I tried to install the old but fantastic Hurrican game (developed by Poke 53280) on Kubuntu 22.04 via flatpak (https://holarse.de/wiki/hurrican). The game seems to run fine but I'm unable to configure my game pad (I tried two completely different pads) in a usable way.

I could select all my desired mappings just fine. This includes using the right trigger button (displayed as button 8 in the game  ...

Score: 0
Alexandru Nitan avatar
Running apps with nvidia on optimus laptops
tc flag

I'm trying to start an app to open with the nvidia graphic card while using the open driver, but wit o avail.

All apps start with the amd gpu by default and when trying to use the env vars, The following errors comes up.

➜  ~ __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1  glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
   ...
Score: 1
Controvi avatar
rsync error "rejecting excluded file-list"
sn flag

So recently we updated 2 production servers and 1 development server for our websites. All are running Ubuntu 20.04. We also updated our build server that contains an installation of Jenkins. This one runs Ubuntu 18.04. The build server is only used internally and is not accessible from outside our own network. In our build process we use RSYNC to copy over all the files to the correct place on the prod ...

Score: 0
mtotschnig avatar
xdg-open starts Chrome instead of Firefox for local html files
cn flag

On Ubuntu 22.04 I was calling xdg-open file.html, and Chrome was started instead of Firefox, and I tried to figure out why, so I found:

xdg-mime query filetype file.html -> application/xhtml+xml

xdg-mime query default application/xhtml+xml -> firefox.desktop

But it seems that Snap Firefox's desktop entry is called firefox_firefox.desktop. So I was able to fix the problem with

xdg-mime default  ...
Score: 0
Michael Moriarty avatar
Filezilla creating an untitled file along with the remote file requested in Bluefish?
br flag

I am using Filezilla and Bluefish on Ubuntu 22-04 LTS. Filezilla accesses my host using sFTP at the moment, however the same thing happened with just FTP.

When I open a remote file to edit, Bluefish loads the file but also creates an html file and names it untitled 0.

enter image description here

Is this an Ubuntu 22.04 LTS issue, a Filezilla issue, an FTP issue, a Bluefish issue, or some other issue?

How do I stop it from happe ...

Score: 1
Nemo avatar
Each default browser for different workspaces
in flag

I use google chrome browser for private stuff, but on the same machine I have my work apps. I've created two workspaces and use one for work and second for private stuff. For work things I use Firefox, and I would be really happy If I could assign it as default browser for work workspace and Google chrome for another workspace. I red this thread Default Browser for certain application and seems it can b ...

Score: 4
Ali Zhang avatar
Which squashfs file in Ubuntu 22.04 live server image should be used?
bw flag

I found the squashfs file in Ubuntu 22.04 image pretty much different from previous releases. There is no filesystem.squashfs file under the casper directory after mounting the ISO. Instead, there will be 5 different squashfs files including:

  • casper/ubuntu-server-minimal.squashfs
  • casper/ubuntu-server-minimal.ubuntu-server.installer.generic-hwe.squashfs
  • casper/ubuntu-server-minimal.ubuntu-server.ins ...
Score: 0
Hamza Bashir avatar
Can't Resume after suspend Ubuntu 22.0,4 RTX 3070
kz flag

Hi everyone I am using Ubuntu 22.0.4 with kernal version 5.19.0-35-generic and RTX 3070. I have tried multiple solutions to fix black screen issue after suspend but none of them are working.

  1. I have tried to enable/disable nvidia suspend and resume service
  2. add nomdeset in grub and set nouveau.blacklist=1
  3. tried nvidia-470, 510, 525 and 515 Currently I am using nvidia-515 driver can anyone please help me  ...

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.