Latest Ubuntu related questions

Score: 0
Switching between NVidia and AMD graphics in runtime
cn flag

So I have a laptop with AMD/ATI motherboard and NVidia discrete card.

Is there a way to switch between those with a press of a button perhaps? It seems that only NVidia can work with external HDMI whereas it also drains the battery at an alarming rate.

prime-select and nvidia settings program offers to switch between NVidia and Intel, which is funny since I have an AMD/ATI system. Neither seems t ...

Score: 2
Abel Gutiérrez avatar
Firefox not working properly in Ubuntu at WSL
cn flag

not sure if to post this in this forum or in a Windows one.

I have Ubuntu installed in Windows Subsystem for Linux, WSL. I have ubuntu-desktop installed and working using VcXsrv. Every time I execute:

export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=1
sudo service dbus start
sudo service x11-common start
gnome-shell --x11 -r

And works fine. The point is that if I open Firefox, the web browser is a white pa ...

Score: 0
How to run a script when accessing a specific non existing path?
us flag

I have some path I have to access, which is the result of mounting.

I would like the mounting to be automatic, via a script, and I want that script to run just before an error is thrown from not being able to access the path.

For example, assume the script is

echo scripting!
mkdir -p /non_existing_path

and I want it to run when trying to access (in any way) to the path /non_existing_path.

So when  ...

Score: 0
hous avatar
PDFTK wok from home folder but not in www
in flag

I have installed pdftk using snap in Ubuntu 18.04

sudo snap install pdftk

In home folder pdftk work fine

root@localhost:/home# a.pdf output secure.128.pdf owner_pw 123456

root@localhost:/home# ls
a.pdf  secure.128.pdf

but in www folder it doesn't work :

root@localhost:/var/www/multi/pdfs# ls
a.pdf

root@localhost:/var/www/multi/pdfs# pdftk a.pdf output secure.128.pdf owner_pw 123456
Error: Una ...
Score: -1
მამუკა ჯიბლაძე avatar
Will wsl work with new native ubuntu kernel?

Currently I am under wsl2 in a 21.10 distro, the kernel is 5.10.60.1-microsoft-standard-WSL2.

What will happen if I will go on and install one of the mainline ubuntu kernels there?

Score: 0
Avoid NetworkManager automatically bring up connection
ve flag

There is a similar question but it's quite old. I hope there's a better solution today.

Ubuntu 20.04. I created a new NetworkManager connection inside the system-connections directory:

[connection]
id=Hotspot
uuid=0eff5f25-c126-4059-a34f-eb4d593d548a
type=wifi
interface-name=wlp1s0
permissions=
timestamp=1636047779

[wifi]
band=bg
mac-address-blacklist=
mode=ap
ssid=device_43ca

[wifi-security]
group= ...
Score: 0
Matt W. avatar
How to delete Ubuntu "try it out in parallel" version (20.04) after upgrading the original 18.04 partition (to 20.04)?
in flag

Good morning. Question 1230886 (18-04-and-20-04-on-the-same-computer) almost provides the answer, but not quite.

  1. The PC (one 120GB disk) is used for Research. With 18.04, after updates, suddenly fsck was required to be able to boot (nearly every boot). So instructions were followed to "try out 20.04" then "in parallel" which gave a new partition and added a Grub menu. There was 80GB (the prior ...

Score: 0
Bhavya Budhia avatar
Install Ubuntu while emptying the alternative hard drive
kr flag

I have one SSD and one HDD installed on my system. HDD contains my windows 10 installation. Now I want to install Ubuntu on SSD while completely clearing HDD, so that I can use that as a data storage unit.

On windows, I know how to do this, i.e. by going to custom installation and simply clicking the cross icon. But how do I do this in Ubuntu? (Installing on SSD while clearing HDD). Do I have to  ...

Score: 1
Vladislav Lukyanuk avatar
No sound (Everest ESSX8336 sound card)
in flag

I bought the huawei D16 to me and my wife. Her notebook has a realteck sound card inside and installing the ubuntu has no problem. But my version of this has Everest ESSX8336 inside. And when I sign in Ubuntu I haven't sound any where.

Linux github repo has changes for sound card. So, I have installed the latest ubuntu === 21.10 and update the kernel to 5.16-rc1. But it doesn't help to me.

I got on ...

Score: 0
Brandon C avatar
Ubuntu 20.04 Zpool fails to import at startup
in flag
  1. I have read through dozens of forums and blogs already.

  2. My server was acting up so I backuped most things and went with a fresh install. I wanted to migrate most of my apps to docker anyways.

  3. All I am trying to get is my zpool to mount at boot but it keeps failing at "zpool-import-cache" service. I erased the cache file made a new one. Deleted the cache file and try "zpool-import-scan" which also fai ...

Score: 1
user4948798 avatar
Ubuntu-20.04 - C header files matching your running kernel were not found
eg flag

On Ubuntu-20.04LTS have installed VMWare workstation successfully. When i tried to launch, it shows below error.

Error

The below workaround couldn't help.

sudo apt-get update
sudo apt-get upgrade --yes
sudo apt-get dist-upgrade --yes 
sudo apt-get install build-essential dkms

cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln ...
Score: 2
Hoang V. Pham avatar
Kernel 5.15* and 5.14* fails to suspend
cn flag

As the title suggests, I cannot suspend my laptop using kernel 5.15.* or 5.14*. When trying to suspend, the screen goes blank but the keyboard backlight still lights up, and the fans are are on.

Laptop info

  • Asus ROG M16
  • 11th Gen Intel® Core™ i9-11900H @ 2.50GHz × 16
  • SK Hynix SSD
  • 1x 8GB and 1x 16GB Samsung DDR4 PC4-21300, 2666MHZ
  • Mesa Intel® UHD Graphics (TGL GT1)
  • Nvidia RTX 3060
  • Ubuntu 20.04. ...
Score: 0
Marc NJ avatar
Hyper-V Automatic Stop Action
ca flag

In Hyper-V, under Settings -> Automatic Stop Action, it states the following under "Shut down the guest operating system" : The integration service that controls shutting down the guest operating system must be installed and enabled on the virtual machine.

I have Ubuntu Server 20.04 LTS installed, and am wondering if Windows and Hyper-V will gracefully shut down the Ubuntu Server VM whenever I ...

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.