Latest Ubuntu related questions

Score: 0
Bob Barrett avatar
using g++ compiler
lu flag

I have this simple program named Conversion.cc on my Desktop &.show below

//
// Conversion - Program to convert temperature from
//            Celsius into Fahrenheit:
//            Fahrenheit = Celsius * (212 -32)/100 +32
//
#include <studio>

#include <cstdlib>
#include <iostream>
using namespace std;

int main(int nNumberofArgs, char* pszArgs[]){
 {                          ...
Score: 0
David Ventimiglia avatar
network manager dies and sudo hangs after logging in when in power save mode and on battery
fo flag

Recently, maybe after an update (not sure) the network manager seems to die, and also sudo hangs, AFTER I log in via GDM, IF it's in "Power Saver" mode, IF it's on battery. Here's what I mean.

  1. I change the power settings in the upper right from "Performance" to "Power Saver."
  2. I unplug the AC adapter (this may be a red herring...need to confirm this)
  3. I reboot.
  4. On the GDM screen before I log in, the Wi ...
Score: 0
iman avatar
What does -L mean in ssh on ubuntu?
xk flag

I get this error when I try to connect to my server in Ubuntu to a port other than port 80 (Apache).

[-i identity_file] [-J [user@]host[:port]] [-L address]

I added port 8972 to the list of Apache ports on my server

what is -L in this code and how i can connect to my server with ssh and 8972 apache2 port?

i tried :: and 0.0.0.0 but i got below errors

Bad local forwarding specification '::'

and

Score: 0
Reza avatar
How to connect USB wireless adaptor to PS4
pl flag

I want to use a USB wireless adapter as a host and transfer the internet that I receive from cable LAN connected to Linux to Playstation. But when I use the USB adapter as a hotspot, I get into Playstation with the problem of not finding the IP address. Do you know where the problem is? This problem does not exist in Windows. I can't even connect to the hotspot on my phone. Even though I see the hotspot ...

Score: 1
Lu Pdf avatar
Ubuntu error message at boot
US flag

For a few months I have had an error message showing up on my loading screen. I saw people describing similar messages here, but I couldn't get anything from the replies as I am not very experienced in fixing Ubuntu myself, so I thought I would try to post mine.

Here is a photo of the message:

error message picture

And here is the content of the above photo as text:

x86cpu: VMX (outside TXT) disabled by BIOS
ACPI Error:  ...
Score: -1
kegdeg avatar
virtual environment and/or acl?
cn flag

I was wondering if there is another method from access control on a folder to execute a file. I thought of something like a password protected virtual environment and only when accessing the virtual environment can one execute the files inside the folder(s). Or is there a simple acl method?

Score: 0
JaredH avatar
Adding grubenv to Kernel Command Line
us flag

Is it possible to add variables in grubenv as kernel command line arguments? For example, say the output of 'grub-editenv list' is this:

$ grub-editenv list

var1=xxxx

var2=yyyy

Can grub.cfg be modified so that the kernel command line would invoke the kernel with those 2 example variables stored in grubenv as shown in this example below:

linux /vmlinuz-5.13.0-30-generic root=LABEL=rootfs ro ... va ...

Score: 0
Igor Chubin avatar
Long pause after login using display manager
ma flag

I have a strange problem with Ubuntu, that I never had before:

when using GDM3 (or any other display manager I've tested) and Xorg, after logging in I have to wait for 5 or more minutes, until my session starts. After that it works just fine.

When using Wayland it works without any problems. When using startx/xinit it works like a charm too.

This problem is definitely quite common, but I didn't m ...

Score: 0
Siderius avatar
Wifi signals suddenly not showing up
in flag

My laptop suddenly doesn't find any wifi signal. As you can see from the picture below, on the top-right corner panel, the text related to the wifi symbol hasn't been reported.

enter image description here

Notice that my laptop is somehow connected to a Wi-Fi but I cannot visualize properly all the available and possible connections.

Using the command nmcli I notice that the os correctly recognizes the Wi-Fi adapter because I ge ...

Score: 1
Crash avatar
How can I get an icon image to appear in my desktop shortcut?
th flag

How do I get an image to appear in an Ubuntu desktop shortcut?

I am trying to get an icon to appear in my desktop shortcut. I am using Ubuntu 20.04.5 LTS. This is what my desktop file looks like:

[Desktop Entry]
Name=Picture Show
Exec=./MyPrograms/PictureShow/ShoPixLinux
Icon=MyPrograms/PictureShow/PictureShow64.png
Terminal=false
Type=Application

I right-click and select Allow Launching, and it works, e ...

Score: 0
theashwanisingla avatar
How to add the ath10k_pci module at the startup?
mx flag

I am having 100Mbps of speed over a 5GHz network and 50Mbps over a 2.4GHz network. But when I start the system, I get 25-30Mbps of speed over the 5GHz network while I am getting 50Mbps over the 2.4GHz.

Every time I have to use the following commands to get the full speed by removing and adding the ath10k_pci:

sudo modprobe -r ath10k_pci
sudo modprobe ath10k_pci

These commands disconnect the intern ...

Score: -2
Sergio Pantano avatar
Ubuntu 22.04 Remote Desktop from Windows
kp flag

I activate my remote desktop in Ubuntu 22.04 but when I try connect through Windows 10, after ask the password appears Authentication error has occurred appears.

Remote desktop screen

Score: 0
Rodrigo Carvalho avatar
Ubuntu can't launch any program
cg flag

I am new to Ubuntu. Whenever I try to launch a program via terminal I get this log:

cannot create user data directory: /home/rodrigo/snap/firefox/2277: Bad message

I think it has something to do with snap but I'm nkt quite sure. Anybody has any solutions?

Score: 0
How can I create changesfile when creating deb package?
in flag

I'm creating a deb file but don't know how to create .changesfile. Is there any example to create this file and what for system needs this file.

When reprepro include more than one deb packages how should I give the changesfile[s] reprepro command?

reprepro keeps the last version of package. How can keep all the versions of package instead of the last version of package?

Score: 0
tim.t avatar
HDMI Capture Card MacroSilicon MS2109: MIssing Audio Device on Ubuntu 22.04
us flag

I have a HDMI-USB-Grabber MacroSilicon MS2109 that worked under Ubuntu 20.04 without problems. I could stream the HDMI-Input using this command line:

ffmpeg -f v4l2 -input_format mjpeg -framerate 25 -video_size 1280x720 -i /dev/video0 -f alsa -i iec958:CARD=MS2109,DEV=0 -c:v libx264 -b:v 1600k -preset fast -x264opts keyint=50 -g 25 -pix_fmt yuv420p -c:a aac -b:a 128k -f rtp_mpegts rtp://239.0.0.2:5 ...
Score: 0
Ivn Alfonso Pizarro Montenegro avatar
"Performance" power mode not available on one of my laptops

In one of my laptops, I don't have the option to select "performance" power mode, since it doesn't show up on the options available (just balanced and power saver).

Now, I understand that this happens with some hardware and I could accept that my machine (that one in particular I mean) is just to old for that, but when I tried a different Ubuntu-based distribution, it does show up as an option.

How  ...

Score: 0
VagrantPaladin avatar
Does grep and friends have a way to match strings as if shell file name globbing in stead of regex
cx flag

Effectively I'm trying to search a text file containing "file names" and want to match as if shell file globbing were in effect.

Shell file globbing is much simpler than regular expressions, so I need some kind of

grep "data??.*" < list_of_filenames

And bonus points if I can do it with AWK, eg something along the lines of

awk -F/ '$NF ~ /data??.*/ {print $0}' < list_of_filenames

to print the line ...

Score: 0
Mathieu avatar
Install old libg2c i386 and amd64 on 22.04 LTS
im flag

I have been fighting for a while now with some old softwares which requires libg2c.so.0. One software requires the i386 version while the other requires the amd64 version.

I added the old-releases to my apt configuration:

sudo nano /etc/apt/sources.list.d/old-releases.list

deb     [trusted=yes]    http://old-releases.ubuntu.com/ubuntu hardy universe
deb-src [trusted=yes]    http://old-releases.ubun ...
Score: 0
Samuele Cozzi avatar
Use Ubuntu 22.04 as wireless monitor
gg flag

I have 2 laptops and I don't want to buy an external monitor.

  • work laptop run on Windows 10
  • personal laptop run on Ubuntu 22.04

I would like to use my personal laptop as second display of my work laptop.

When my personal laptop have run on windows, I have enabled wireless display feature, and I can find my personal laptop as "wireless display", and I can extend screen on personal laptop.

Exists an ...

Score: 0
Zak avatar
"MESA-LOADER: failed to open swrast:" -- Ubuntu 20.04
nr flag
Zak

So, I've installed ANSYS Fluent on Ubuntu 20.04, but although it opens a window, the graphics window stays empty. On the console, I'm getting these messages:

libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to loa ...
Score: 0
Max Hollmann avatar
Split one physical monitor into two screens (i3wm on X)
gb flag

I have my i3 config and tooling set up to make good use of two separate screens, my laptop and an external screen. To be able to simply reuse this setup on my desktop PC where I just have a single large screen I'd like to split this screen so that X/i3 sees it as two separate displays.

In case it makes a difference: The screen is connected via HDMI to an Nvidia RTX 2600.

Is this possible?

Score: 0
Zellogi avatar
After update weird stuff started happening. Only one display and no nvidia commands worked
tc flag

I did a normal update using gui since I got a popup. It installed most stuff, but said it couldn't install everything. So I pressed partial installation, thinking I could install the rest after a restart. It didn't look that important the things that where not able to install.

After the restart it only showed on my main display, my side monitors where showing "no input". After a removing nvidia d ...

Score: 2
smegchad avatar
My laptop screen is black, but my secondary monitor is working (Ubuntu 20.04.5. LTS)
mp flag

I've been using my laptop (Acer Nitro 5, AMD Ryzen) with an additional screen (connected via HDMI), daily, for about two months now, and it's been working fine. Now, the built-in display doesn't work at all (not even when booting), and only the secondary monitor does (on which I can't see the login screen). In the display settings, I can see that the built-in display only has the 640x480 resolution avai ...

Score: 0
Myuser03 avatar
Gnome is misconfigured on bootup and freezes randomly on xubuntu
tr flag

Gnome is misconfigured and freezes every time i boot up.

Gnome also freezes randomly and i have to restart gnome from the cmd line tty3 in order to get it to work again.

localhost: cat /etc/X11/default-display-manager
/usr/sbin/lightdm


localhost: uname -a
Linux dara-HP-Stream-Laptop-11-y0XX 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

   
localhost: g ...
Score: 3
mvpasamon avatar
Ubuntu 22.04 How to cast the entire screen with sound
to flag

I recently updated my Ubuntu version to 22.04, and I would like to cast my desktop to Chromecast.

I tried the following things:

  1. With Google Chrome I'm able to cast a browser tab. Sound and image works nice.
  2. When you try to share desktop, I can see the image properly, but sound does not work.
  3. I tried to use from GNOME desktop "Cast to TV" extension, but it seems it doesn't work with this Ubuntu v ...
Score: 0
precise avatar
Open applications don't survive hibernation (sleep). Is there a fix?
br flag

I'm using Ubuntu 22.04 LTS (on Dell Inspiron 3505) with swap file of 16GB which I recently created after deleting the default 2GB swap file as per the instructions in Swap FAQ.

Q1. My open applications are still closed when I start after a hibernation. Is this normal? And/or, is there a fix?

Q2. Also, after the hibernation pressing the power button alone is not enough to wake up the laptop, I'm required ...

Score: 2
Aidan Tang avatar
Is there a version of Ubuntu which boots to command line without needing to install onto the hard drive?
vn flag

I am a tech support technician and I am using the shred function in ubuntu to securely wipe company laptops. I am currently using the desktop version and clicking "try" in order to run this command and then move onto the next laptop without needing to install. I want to use a version of Ubuntu that just boots to command line to make this more efficient. I have tried ubuntu server but I cannot find any " ...

Score: 0
Alan Franzoni avatar
How to wait on /var/lib/apt/lists/lock availability on unattended execution?
cn flag

Please note: there're similar questions around, but this specific scenario is unanswered. Don't close this as a duplicate of 335794 or 1340943.

This is always reproducible, and this is about apt lists lock not about dpkg lock.

I'm running a series of automated tasks that perform some install through APT. The tasks are sequential (zero parallelism) but may invoke apt multiple times. At a certain point, whe ...

Score: 0
Dean Shandler avatar
20.04 with RT Kernel crashes with error \00\00
gb flag

I'm running Ubuntu 20.04 with RT kernel version 5.15.79-rt54.

When running several CPU intensive tasks the PC freezes after around 13 minutes. and I need to manually reset it.

The error I see right before the crash in /var/log/syslog is:

\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\ ...
Score: 0
Slimat avatar
Swap partition on VPS
lu flag

Sorry that this is a very similar thread to some others, but as this is a production server I need to make sure what I am doing is right first time and I am still an Ubuntu novice.

I have an Ubuntu 20.04 LTS VPS which is 250Gb SSD + 2Gb RAM. I checked with htop and it shows that the RAM is ticking over at over 96% used. So I was going to add a 4Gb Swapfile - but when I check the current provision it sho ...

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.