Latest Ubuntu related questions

Score: 0
MrCalvin avatar
C# wrapper for Debian apt library libapt-pkg
cn flag

I need to retrieve package information in my C# application running on Linux. I've tried to use Python.NET which wrap python-apt which wrap libapt-pkg.so, and it works but I would prefer to go more direct by pinvoke libapt-pkg.

But I need help on my DLLImport statement.

When using python-apt I first initialize the apt module, then instantiate the Cache() class and then call the Cache.keys() function ...

Score: 1
Leon Adato avatar
stress-ng failing with temp-path '.' must be readable
in flag

Ultimately, I want to execute stress-ng from a php script.

In testing, I've realized it runs fine from the CLI under my account (in folders where I have permission). It also runs fine as root. But as sudo, it DOESN'T run. And I'm going to presume that's why the script won't execute either. So I'm not sure what I'm doing wrong.

The command:

sudo stress-ng --temp-path /tmp/stress-tmp/ -c 10 -t 10

Th ...

Score: 0
Printed pages are displaced upwards
ru flag

The system is Xubuntu 20.04.3.
The Printer/Scanner is HP All In One 3790.
The software is HPLIP 3.20.6 and it has been downloaded and installed manually from the HP site.

The problem is that all the pages that are printed, either text or images, are all displaced upwards so that if the document is text for example, the first line is always printed outside the paper top boundary and therefore not p ...

Score: 0
How to find invalid XFS mount/fstab options?
in flag

I'm using latest Ubuntu Server 20.04 LTS on a HPE MicroServer, I have a HPE P420 RAID card with battery, with 4 HDDs attached in 2 logical arrays, one is a mirror of 2pcs of 1 TB HDDs (root), and one mirror of 2pcs of 4 TB HDDs (storage). I have Zoneminder running on it and I was trying to do a bit of a cleanup, and surprised how slow the rm -rf dir/* was taking. After a bit of research I realised it's a ...

Score: 1
Interact with user from subiquity late-command?
in flag

I am working on moving from the old Debian-style installer to the newer Ubuntu server autoinstall system which uses subiquity. One thing we do with our current system is run a late_command script which registers the machine for our network. That involves a debconf-based dialog where the admin enters some credentials. Is there any similar way in subiquity to have a late-command script query the admin to  ...

Score: 0
Ramiro Herrera avatar
Can't access to win 10 after installing Ubuntu on 2nd disk
br flag

I currently have two ssd disks. On one, there's windows 10 installed and the other disk was free. Decided to install Ubuntu on the 2nd disk, but now my pc doesn't detect my old OS.

I tried changing the boot settings, but on my bios I can't seem to find the old partition enter image description here

At this point I thought that all my old stuff was deleted, but on the file explorer I can see them

enter image description here

This being the Ubuntu disk

Score: 0
mejay48 avatar
SDL2 can not initialize sound driver
pt flag

|Distributor ID:|Ubuntu| |Description:|Ubuntu 21.04| |Release:|21.04| |Codename:|hirsute|

I tried to initialize the sound driver but it didn't work. Here's the code:

std::cout << SDL_GetNumAudioDrivers() << std::endl;

for (int i = 0; i < SDL_GetNumAudioDrivers(); ++i) {
  const char* driver_name = SDL_GetAudioDriver(i);
  if (SDL_AudioInit(driver_name)) {
    printf(“Audio driver fai ...
Score: 0
Mubin Icyer avatar
Existing Ubuntu doesn't boot after installation try
me flag

I use Ubuntu 18.04 on a 500GB M.2 drive and I got a new 1TB M.2 recently, I wanted to install new Ubuntu 20.04.3 LTS Desktop to new drive. So therefore I downloaded ubuntu-20.04.3-desktop-amd64.iso and made an external 512GB SSD bootable with mkusb and then replaced the old drive with new one.

I booted from external SATA and live-ubuntu run. I started the installation, but it gave me an error. It said

Score: 0
Rick avatar
Ubuntu suddenly stops booting into GUI
jp flag

I have recently got a HP firefly laptop. The laptop came with windows but I made it dual boot with ubuntu 20.04. The system was working fine with either of the operating systems.

Now yesterday I left my computer on overnight (without external power) and in the morning I found it switched off probably because the battery drained off. Now, when I connected to power and booted into ubuntu I could no ...

Score: 1
Martin1997 avatar
Main menu entries created with Alacarte - No icons in dock
cl flag

I created several main menu entries with Alacarte. I added an icon and I can perfectly see the icon in my application overview. When I open the application, I cannot see the application icon in the dock and also the context menu after a click does not show "New Windows" and "Add to Favorites".

This is an example for a entry created by Alacarte:

[Desktop Entry]
Name=Radix Wallet
Exec=/home/martin/.Soft ...
Score: 0
How can I setup SSL in Tomcat9?
kr flag

I have tried to install SSL on tomcat 9 on port 8443. However, I do not know if tomcat support pem or crt format SSL.

I have made changes into server.xml but when start tomcat I am getting the below error in catelina.out logs.

Below is my server.xmaconfiguration.

 <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true">
         ...
Score: 1
user3476463 avatar
get size of folders on root directory
sa flag

My root directory "/" on my ubuntu server is filling up. I'd like to look at the folders in it and try to spot what's filling up. Can someone please tell me how to show the sizes of the folders in the root directory "/" (I think that's root, I always get confused with home "~")

Also is there a way to show the size of folders on a file system "/dev/nvme1n1p2"

code:

df -h /

output:

Filesystem      Size ...
Score: 0
A.G. avatar
How to enable web browser to open ~/Desktop/htdocs/index.html
it flag

My web browsers can't open ~/Desktop/htdocs/index.html (located on the desktop).

I tried right clicking on .html that is outside the htdocs folder (I usually successfully use 'Open with' in my old system.) But this is a new system and one of the browsers in this new system worked well two days ago.

I tried using the data in Can't create a folder inside my local server? There is no folder with the name ' ...

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.