Latest Ubuntu related questions

Score: 0
No administrator rights on Ubuntu 20.04
cn flag

Please forgive me but I am new to Unbuntu. I installed version 20.04 on a VM on my Windows 10 laptop. I am the only user but I am not administrator.

How can I resolve this to make myself an administrator?

Score: 3
Simha avatar
How to set to Black background
kr flag

Ver: Ubuntu 21.04

In order to change the color scheme, I have set as follows in my .bashrc;

export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;96;40m\]\w\[\033[00m\]\$ '
setterm -term linux -back black -fore white -clear
export LS_COLORS=$LS_COLORS:"di=1;31"

As a result, my Terminal and PS1 background are set to black. However, output of any of the command (ls, cat, echo, etc) is still shown with ...

Score: 1
Safahieh avatar
How to setup Linux machine to act as a Router
co flag

How to setup Linux machine to act as a Router which is responsible for distributing internet traffic to other devices connected to switch. I want to use this scenario in order to assign Ip-based Bandwidth limit to each nodes connected to switch (Traffic Shaping). i mean instead of using taffic shaping tools or physical Router Device i want to use linux kernel.

Score: 1
C compiler cannot create executables (install netcdf using icc and ifort)
ng flag

I have installed intel oneAPI on ubuntu 20.04, further ifort and icc. The following command on terminal shows

saras# which icc
/opt/intel/oneapi/compiler/2021.4.0/linux/bin/intel64/icc
saras# which ifort
/opt/intel/oneapi/compiler/2021.4.0/linux/bin/intel64/ifort
saras# 

I tried to configure netcdf-4.1.3 using ifort and icc using the following script

export CC=icc
export CXX=icpc
export CFLAGS='- ...
Score: 0
DeadSec avatar
bash: line 146: [: missing `] - Gitlab CI/CD
cn flag

guys so I'm trying to make this if statement inside the script part of my CI/CD but it's giving a bash: line 146: [: missing ]` error which I'm not sure why is happening.

My script in CI/CD:

script:
        - >
            if [ $CI_COMMIT_TAG && $CI_COMMIT_REF_NAME =~ /^v/ ]; then 
                sshpass -e ssh -o StrictHostKeyChecking=no $DOCKER_SSH_USERNAME@$DOCKER_MACHINE "cd /home/$ ...
Score: 0
oo92 avatar
In the "Minimal BASH-like file editing..." Grub page
gb flag

Currently, I can't escape this screen

enter image description here

When I do ls, this is what I get:

(proc) (hd0) (hd0,gpt2) (hd0,gpt1)

When I do ls (hd0,gpt2) /, I get this:

swapfile dev/ home/ proc/ run/ sys/

All of the other partitions give me the exact same output when I do ls.

I've tried to follow all guides online but none of them worked. I cannot do a clean install as I have many important files in my computer. How can I move ...

Score: 0
Beater FitDev avatar
External Hard Drive | Booting Ubuntu or different pc
ma flag

my first question here. I've browsed a lot these days but i cant figure out the best solution for me.

I have access to 3 different pc.

1. Notebook Windows Intel i5 without dedicated GPU (secure boot enabled) 2. Notebook Windows Intel i5 with nvidia 1050ti 3. Desktop Windows AMD Ryzen 5 with nvidia 1070

My goal is to be able to boot my external hard drive (a NVME 500gb with adapter for usbc connection

Score: 0
stefan-girlich avatar
Prevent volume keys from changing both ALSA master volume and Ubuntu volume
in flag

I'm running Ubuntu 21.10 on a desktop PC with an external USB sound card and a gaming keyboard with a wheel for volume control (which I think just fires "volume up/down" key events when moved and should be equivalent to regular volume keys).

When I move the wheel, the "speaker" icon notification appears and the displayed volume level changes in small steps as desired. However, in alsamixer, I can see th ...

Score: 0
Can't paste files to external HDD in Ubuntu, but can edit and delete files on it and some programs can still write to it
cn flag

I just did a fresh install of Ubuntu on a new computer, and my external HDD (internal in an ext case) is read only and I can't seem to be able to change that.

Some programs, however, like youtube-dl, can still write to it, and I can create folders and even edit, rename and delete files from it, but I can't transfer any files to it.

cp seems to work in Terminal but when I try to just copy/paste a fil ...

Score: 1
A. Smoliak avatar
How to compile cap-ng on Impish?
sa flag

I'm on Impish, and have installed the latest version of libcap-ng-dev, Compiling with gcc 11.2, via Visual Studio Remote Linux

The following program cannot be statically linked

#include <cap-ng.h>

int main()
{
    capng_have_capability(0, 0);
}

Here is the build output:

1>/usr/bin/ld : error : really/long/path/main.o: in function `main':
1>main.c : error : (.text.startup+0xd): undefin ...

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.