Latest Ubuntu related questions

Score: 1
Bryan Chan avatar
Can't mount VHD file in Read-write mode using terminal
tr flag

I have a VHD file which I am using a bash script to mount, I run this in sudo:


#!/bin/bash
cd /home/user/Desktop/VMfiles
echo "make sure to unmount the VHD before starting up the vm, as theres a risk of corruption if the file is mounted in both OSes."
sleep .5
chmod ugo+rwx disk-1.vhd
sleep .5
vhdimount -X allow_root disk-1.vhd /mnt/vhd/
sleep .5
mount -vt ntfs-3g -o ro,noload,offset=32256 /mnt/vhd/vhdi ...
Score: 0
Shantanu Bedajna avatar
Apparmor profile for wine
in flag

I am trying to setup an apparmor profile for wine so that wine can only read and write inside the .wine directory i have seen some threads asking about this but none of those questions are detailed.

in those threads This github repo is mentioned for example wine apparmor profile which i tried

i was unsure about modifying my /etc/apparmor.d/tunables and /etc/apparmor.d/abstractions

but i added the  ...

Score: 2
Calyo Delphi avatar
Purging Docker May Have Nuked My Ethernet? (Actually it was ACPI)
pr flag

Doing a bit of system setup in Ubuntu Server 20.04, CLI-only, on a Lenovo ThinkCentre m90n NUC. Ubuntu no longer recognizes that the system has an ethernet interface at all and I'm not sure where to begin troubleshooting or fixing this.

What I was doing before the problem:

After purging Docker (sudo apt purge) from the system, the ethernet interface eno2 suddenly couldn't pull an IP from the router aft ...

Score: 0
Bluetooth speaker or headphones volume and playback control (MPRIS)
us flag

I would love to use the Volume +/-, Play, Pause and Skip buttons of my Bluetooth speaker when connected to my Ubuntu 20.04 laptop.

Found an old question here: Bluetooth speaker volume and playback control , but no solution that would be working with 20.04, because the bluez-utils package is not available any more and I can't get mpris-proxy.

Score: 3
MartinNajemi avatar
DNS resolution failing after a few hours
km flag

I am using Ubuntu Server 20.04.2 LTS on a raspberry pi 4 8gb. DNS resolution stops working after a few hours after reboot. A reboot solves the issue but it's just a band-aid. My DNS is set to 8.8.8.8 and 8.8.4.4.

I have tried running tcpdump -n -i eth0 host 8.8.8.8 and dig @8.8.8.8 www.google.com simultaneously and the output is

listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
22 ...
Score: 1
Reboot-required – where to check?
fr flag

It is quite easy to check if the currently running system needs a restart. You check the existence of either /var/run/reboot-required or /run/reboot-required. But which one will also work tomorrow? On my system, /var/run is just a link to /run, so I guess there is a history here that explains things. Is it safe to just test /run/reboot-required?

Score: 0
ccc avatar
View full screen session
fo flag
ccc

While running Ubuntu 20.04 and screen, how do I view all lines of an error within screen? For instance, in the screenshot of my error, it says Error...138 more, and I'm wondering how I can view those 138 lines that are not immediately seen.

Image

Score: 0
antonio1 avatar
How to get variable environment from parent user?
tr flag

I need to know how it's possible to get environment variable from a parent user after su? For example if I'm evan user and I have variable $DISPLAY=:10.0, then I use "su -" to go to root user, how could I get the $DISPLAY variable from parent evan user?

Score: 0
What is MAAS hard disk requirement(s) for Openstack deployment? RAID or JBOD?
br flag

Am following openstack wallaby charm deployment guide and am stuck on the physical hard disk requirements. From the documentation it says:

4 x cloud nodes: 8GiB RAM, 2 CPUs, 2 NICs, 3 x 80GiB storage

In my case my 4 cloud nodes each have 8 physical disks of 1.8TB in raid 10 (PERC H730P Adp) which gives me 1 hard disk in each node of 7.2TB. Now my first question: Is it okay to go ahead and install o ...

Score: 0
Lyenus avatar
How can I edit the Yaru GNOME theme?
br flag

I use Ubuntu 20.04.2, I found the "themes" folder and inside of it the "yaru-dark" folder, but I can't find the things I want to edit in the folder, like the close window button, and the program headbar. Can someone help me with this?

Score: 0
Gavin avatar
Sudden Ubuntu 20.04 Network VLAN Weirdness
in flag

OK, doing a bit of maintenance on my two Ubuntu VM hosts in my lab today (apt upgrade on both) and all of a sudden the networking in my virtual machines has completely broken on one host but not the other. Both running the same OS, both identically configured and both connected to switch ports that are configured the same. Notably, both machines worked fine this morning.

Both hosts have basically ...

Score: 0
Harmonytalk avatar
How to convert software RAID 1 into two RAID 0 drives
bv flag

The /dev/nvme drives are allocated to a ZFS pool while /dev/sda & /dev/sdb are in software RAID 1. How am I able to remove this software RAID without any data loss or a required reboot if possible.

Disk /dev/nvme2n1: 3.5 TiB, 3840755982336 bytes, 7501476528 sectors
Disk model: SAMSUNG MZQLB3T8HALS-00007              
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes /  ...
Score: 0
answerSeeker avatar
How to use watch to return latest picture file and open that picture?
in flag

I am trying to use the watch command to see the latest file. It is showing the file but how do I switch to the latest one when an even newer file is created?

The files are pictures so I am opening them with an image viewer

here's what I tried

watch -n 0.1 ls /home/titan/mnt

but it doesn't work because I just need one file and basically the lastest file and store that file name and open it with an  ...

Score: 1
Abhigyan Prakash avatar
Ubuntu 20.04 lagging and behaving badly after I halted an update midway. Also, internet dongle & tethering are not detected
in flag

In my Ubuntu Software Updater, I ticked some random updates that were available and clicked 'install'. But midway during the downloads I cancelled the update and powered off my system. Until before I powered off my system everything was working fine, and by that I mean: my internet and sound controls in system menu. Also there were no lags.

When I reopen my system, I see the following problems:

✔  ...

Score: 0
Repairing ProjectLibre Grainy Font Issue on Ubuntu
cn flag

On Lubuntu 20.04.1, I've installed ProjectLibre, which I assume is a Java Swing app. It's using OpenJDK Java 8. The fonts are very grainy. StackExchange, unfortunately, smooths the image out and so you can't see the grainy problem when I paste the screen here. So, for new Java Swing apps on Ubuntu Linux, what tool do I need to install to smooth the font settings for Java Swing apps? Or do I need to inst ...

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.