Latest Ubuntu related questions

Score: 0
George avatar
Ubuntu 20.04 OOM killer not configured
de flag

The OOM killer on my machine doesn't seem to be configured:

$ sudo -s sysctl vm.oom-kill
sysctl: cannot stat /proc/sys/vm/oom-kill: No such file or directory

I don't remember messing with it, though I'm not certan I didn't and I can't find it on "default" set AWS 20.0.4 machines

Are there any docs as to how to configure the oomk in 20.0.4 anywhere?

My specific issues is that when memory gets low, i ...

Score: 0
George Willcox avatar
Error found when loading /home/[username]/.profile
tr flag

I’ve been setting up my computer, having not used Ubuntu before, and after restarting it I’m presented with this error.

error

The mouse is not always visible to click the “ok” button, so I have to turn the computer off and on again several times until there’s a pointer.

I have not edited .profile, but just in case here is it’s contents:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    ...
Score: 2
Yefim avatar
Ubuntu 20.04 under WSL 2: All snaps are always "broken" after reboot
bd flag
  1. Installed Ubuntu 20.04 distro on WSL 2

  2. create wsl.conf as following:

===============================================================
[automount]
enabled = true
options = "metadata,uid=1000,gid=1000,umask=22,fmask=11,case=off"
mountFsTab = true
crossDistro = true

[network]
generateHosts = false
generateResolvConf = true

[interop]
enabled = true
appendWindowsPath = true

========================== ...
Score: 2
How to install g++-5 on Ubuntu 20.04?
ru flag

I am trying to compile some source which was written for g++-5. I want to be able to install g++-5 on my Ubuntu 20.04. How can I do this?

I was hoping that sudo apt install g++-5 would work. But it doesn't. Is there some repository I can use to install g++-5 in a painless way?

Score: 2
Mustapha Hadid avatar
TLP is not running on system startup after upgrading to Ubuntu 21.04
do flag

TLP configurations is not applied on system startup after upgrading to Ubuntu 21.04. Reinstalling the package does not help.

Inspecting TLP systemd unit tlp.service confirms the issue.

$ systemctl status tlp.service                  

● tlp.service - TLP system startup/shutdown
     Loaded: loaded (/lib/systemd/system/tlp.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
     ...
Score: 0
neolith avatar
What is the right way to automount an external drive in a docker container?
cn flag

I want to create a personal cloud service in a docker container on a Raspberry Pi. Due to the limited storage and longevity of SD cards, I want to create the database one an external drive of sufficient capacity.

First I ran into the issue of mounting at all in container and could solve this problem by creating a privileged container. Now I wanted to use autofs.service to automatically mount the drive t ...

Score: 0
AdAstra97 avatar
'unable to satisfy all constraints on the partition' Gparted error
ma flag

While trying to add unallocated space into extended partition, I run into the error message unable to satisfy all constraints on the partition.

Screenshot of the available partitions

Score: 0
Charles avatar
How can I repeat a potentially failed update of Ubuntu 18?
uz flag

I am new to Ubuntu but I have a good coding backgroud. I tried to update my Ubuntu 18 machine to the latest, Ubuntu 20.04. I followed a tutorial I found online. But I think the update was not succesful because I got stuck and had to power off and start back my computer. On running the command lsb_release -a, I got an output on the terminal indicating that the system is now updated.But I think thi ...

Score: 0
FoolingAround avatar
External HDD Appears Bigger (More Space) Than It Should
jp flag

I've come upon quite a weird situation.(Or maybe it's not, but it's the first time I notice something like this). I bought two 1-Tb HDDs about 6 months ago and I've been using them on both Windows and Ubuntu (for the last 4 months I have switched completely to Ubuntu), and just today I noticed the following :
Properties-1
Disks Overview-1
Properties-2
Disks Overview-2

Clearly the drives appear bigger t ...

Score: 0
Shiki Ryougi avatar
Ubuntu20.04LTS no network, while 21.04 has no problem(B550 Unify)
fr flag

Both my wireless and wired network card cannot be recongnized by Ubuntu20.04LTS, but there isn't any problem in Ubuntu21.04 which should be more unstable, that's weird!

(Motherboard: MSI B550 Unify )

Score: 0
Big Frank avatar
Can I delete /var/cache/apt/archives?
kr flag

Can you delete /var/cache/apt/archives? This folder is >10 GB... What do you have to keep? Can I delete files that over 3 months old or??

Is this just temp files? looks like there are older firmware files?

I am in a multiboot laptop so 10gb is really a lot of hd space for me.

Thanks

Score: 2
ov7a avatar
How to force policy-kit agent to show full information about command line arguments
id flag

I am using Ubuntu Mate 20.04 and pkexec to launch apps with admin privileges if needed.

However, when policy agent kit asking to authorize request, there is no enough information to make a decision. For example, if I run

pkexec sh -c 'echo hello'

I'll see this promt:

policy-kit-agent

Note that there is no information about the command I'm trying to execute. So, it would look like the same for dangerous

pkexec sh -c  ...
Score: 2
srinathd avatar
Ubuntu 20.04 fully installed on a USB drive has problems waking up from longer suspend times, how do I fix this?
jp flag

I have researched similar questions which asked about Ubuntu 20.04 freezing after waking up from suspends. This however, is different, that it entirely crashes and the screen goes into a black terminal-like screen which continuously outputs systemd-journald failed to write/rotate messages. I tried finding a log file of what I have seen in the /var/log/ directory but couldn't find any. Please let m ...

Score: 0
Looking for a way to log all commands, with timestamp and arguments, for all users, including root
my flag

As the title states.

Recently a remote ubuntu 18.04 server rebooted. This was a provided server, and reviewing the auth log showed an admin user logged in, did apt-get update && apt-get upgrade and then did reboot for good measure.

We confirmed with the provider that they actually did this.

Mystery solved.

Though that being said, local tests show that if a user does sudo su, nothing they  ...

Score: 0
Rishu Srivastav avatar
Ubuntu tries to install in live usb itself
de flag

Hi I have a very weird issue and a unusual one.

When I try to dual boot linux i.e ubuntu 20.04 alongside win10 on a brand new hp laptop (15s) I get this error from live boot:

screenshot

There exists a similar question here but it doesn't fix my issue that's why I have asked as a new question.

For more details click here

System info found by running inxi -Fxmz

  1. OpenGL: renderer: Mesa Intel UHD Graphics (TGL  ...
Score: 1
Simtrio avatar
How to fix system freezing when using a Dedicated GPU (INTEL + AMD)?
us flag

So, I decided to make a dual boot (Windows + Ubuntu). When I used my Intel HD Graphics 520 card everything was fine. But when I want to play some games using Proton or Lutris with my dedicated GPU: AMD Radeon R5 M330 - oh man, everything worked really bad. Well, in most cases it didn't work at all.

I used 'DRI_PRIME = 1', 'Launch using Dedicated Graphics Card' option etc.

When I launched simple applic ...

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.