Latest Ubuntu related questions

Score: 1
Shobeira avatar
C programming: Detect mouse pointer movement
pt flag

I am working on a project in which I need to set a flag only when mouse pointer has not moved for a period of time (e.g: 30s): if the mouse was idle for 30s, set no_movement (no_movement=true;).

So far, I know the X window server is the backend for many desktop environment and I know there is a comprehensive documentation for it on x.org and tronche.com (I got it from there that there is an event for po ...

Score: 4
sash_wash avatar
Opening Jupyter-Notebook in terminal opens Telegram Desktop!
tr flag

I'm on Ubuntu 20.04.2 LTS.

When I want to open Jupyter-Notebook in terminal, the telegram desktop app opens.

The Jupyter-Notebook is actually opened in background. So I can open the browser and use it.

Here is the output:

(geospatial) siavash@siavash-fra:~$ jupyter-notebook 
[I 16:59:52.522 NotebookApp] Serving notebooks from local directory: /home/siavash
[I 16:59:52.522 NotebookApp] The Jupyter  ...
Score: 0
Zuitlander avatar
Upgrading from Ubuntu 20.10 to 21.04 fails because of python, how to fix it?
br flag

This is the displayed message:

"Can not upgrade

Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink."

Could someone explain how to fix the above issue so I can upgrade? If uninstalling and reinstalling python is your answer, could you provide step-by-step instructions?

Score: 0
Christian Owusu avatar
Please I accidently removed python3.8 file from /usr/bin how can I restore it
ru flag

this is the error I get when install python3.8 or running python

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_ ...
Score: 1
scruby avatar
Increasing usable RAM with an external harddrive
in flag

I am trying to run a simulation and need more RAM for a big array. I'm at about 24 GB and need about 100 GB.

I have an external hard drive with 2 TB of memory, so is there a way I can use this to increase my current RAM? I am not too good in Ubuntu and know how to do this with Windows, and am hoping someone can help (or at least tell me yes I can do this.). Thanks!

Score: 2
dawnslayer avatar
ca-certificates-java error on Ubuntu 20.04
in flag

I can't install anything, it gives this error on every installation

Setting up ca-certificates-java (20190405ubuntu1) ... 
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory Error occurred during initialization of boot layer
java.lang.NoClassDefFoundError: ja~a/io/File$PathStatus (wrong name:
java/io/Fil e$PathStatus) dpkg: error processing package
ca-certificate ...
Score: 0
SDXCPTDR avatar
How do I find folders without a certain name?
bf flag

I'm trying to find a lot of folders, all without a certain bracket. They're movie folders, like so:

Zombie Flesh Eaters (1979) [tmdb-7219]
Zombieland (2009) [tmdb-19908]
Zombieland Double Tap (2019) [tmdb-338967]

But I need to find the ones WITHOUT the [tmdb] bracket.

I'm not sure how to do this?

Quick edit: Tried using the reg-ex \[.*?\] to find everything with a bracket in it, but I'm not sure i ...

Score: 0
Aaditya Sharma avatar
How to change Ubuntu version from 21.04 to 20.04 LTS
cn flag

I am using ubuntu 21.04 version with windows 10 dual boot. I wanted to switch to the 20.04 LTS version without losing any data in windows or ubuntu partition. Is there any way to do so? Thanks in advance :)

Score: 1
Srinivasa M S avatar
How do I know if someone is cryptojacking my system?
in flag

I recently installed Ubuntu 20.04 LTS and updated. I found my pc fan running whenever it wanted and also i saw my battery getting draining very fast. Can someone help me solve this issue. I also saw my network port issues. I turned the livepatch on.

Score: 2
Aeren avatar
Ubuntu 20.04 headphone buzzing
tk flag

I've been having this issue where I only hear buzzing when I plug in my headset (But the sound plays normally when I unplug). I've tried at least 10 fixes I've googled including Ubuntu 20.04 - After last update, speakers are buzzing unless I open the sound settings window and none of them seems to work.

It'd be great if someone knows how to fix this.

Score: 0
Frank Lucas avatar
No Network or USB Devices after updates autoinstalled on Ubuntu Desktop 20.04.02
ph flag

I have a Ubuntu Desktop 20.04.02 that I run Retropi/Emulation Station on and I powered it on yesterday for a little retro gaming action and Ubuntu said there were updates available so I let them apply. After the reboot, I have no network at all and it's not recognizing my USB Arcade stick controller. Everything was working perfect before these updates. To test the NIC I booted to a Ubuntu USB stick and  ...

Score: 1
GBarron avatar
Bash script pauses after opening mysql
br flag

I'm trying to write a script that will handle some maintenance on our Ubuntu server for the even-less Linux-savvy techs than myself.

When I run the script as administrator (needed to access mysql), it prompts me for the password correctly, the mysql command starts successfully, but the following commands do not run. The Terminal just sits there and doesn't continue or fail.

Any idea what I'm doing w ...

Score: 1
evild4ve avatar
Thunar 1.8.14 - change drag and drop behaviour
us flag

I've just noticed that Thunar on my pc COPIES files when they are dragged and dropped into another folder, rather than MOVING them.

There is another answer to this question saying Thunar can MOVE files by dragging and dropping with the right mouse button. But I'd be grateful to know if it's possible to change the behaviour for dragging and dropping with the left mouse button from COPY to MOVE?

thank ...

Score: 0
Aaditya Sharma avatar
Wrong battery percentage when using ubuntu
cn flag

I am using Ubuntu 21.04 dual boot with windows 10. When I use Ubuntu the battery percentage which is shown is not consistent. sometimes when I connect the charge, I hear the sound that comes from my pc when charging but the charging symbol does not show up near the battery icon. Also when using ubuntu the battey drains very quickly and sometimes even charges up very quickly which I find abnormal as it d ...

Score: 0
Slow Boot Ubuntu even on SSD
cn flag

My Ubuntu was working fine. It was booting in about 5-6 seconds. Earlier, HP logo used to remove and Ubuntu logo appeared on the screen within 1-2 seconds and then I was at my lock screen in no time. But now, my screen is getting stuck on HP screen for about 40-55 seconds and then Ubuntu screen is appearing. I am running systemd-analyze blame. The result is fine as I can see that Ubuntu is not taking ti ...

Score: 0
5G Wifi Network not working when connecting my monitor via HDM
me flag

I am using a Dell laptop with Ubuntu 20.04 on it. My wireless router has both 2.4Ghz and 5Ghz networks.

When I connect to the 2.4Ghz network, while also using an external monitor via a HDMI cable, everything works great.

When I connect to the 5Ghz network while also using an external monitor via a HDMI cable, the speed slows down dramatically or the connection just drops and I can't find the network ...

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.