Latest Ubuntu related questions

Score: 3
Collins Smith avatar
all files in the folder disappeared because of a typo while using `mv`
jp flag

I am new to bash and I was trying to rename all files in a directory to their md5 checksum in the following way.

r@r:~g$ sh
$ for F in *; do
>     mv "$F" "$(md5sum "$i")"
> done
r@r:~/g$ ls
'd458d56dd4ab8c2b335da66e0bcab924  nRUNO5wt3JRN3pBt.mp4'

I made a typo and the line mv "$F" "$(md5sum "$i")" should be mv "$F" "$(md5sum "$F")" if I'm not wrong. Now all the files in the folder are mis ...

Score: 0
barii avatar
rabbitmq-server issue while installing in Ubuntu 20.04.3 LTS(focal)
cn flag

I am trying to install rabbitmq-server in my Ubuntu 20.04.3 LTS(focal) I am following the steps while installing it :

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash

sudo apt-get update
sudo apt-get install rabbitmq-server

All steps are working fine except when I try to install it finally by typing sudo apt-get install rabbitmq-server few mo ...

Score: 0
emp0001 avatar
how to export VAriable from bash script, not calling the other one
co flag

I have inside my script = 1.sh: A=1, export A I made the 1.sh = 755

I know if I run: . ./1.sh

then if from command line I will run echo $A it will return 1

so in that case I should have 2 files file1 with VARs, that can be run with . ./file1

then the file 2 with commands

how I can get the VALUEs of VARs, if I have the VARs and commands in 1 file ?

Score: -1
logicito avatar
Linux application to monitor the power consumption
cn flag

Is there a tool/app available in Linux/Ubuntu or other distribution, to monitor how much Power is being consumed by the computer (in this case a Dell XPS 15 9510 laptop) from the USB-C/TB 4 port.

It would be good to have Volts and Amps as well. Thanks

Score: 0
Resizing partition where Ubuntu is installed
in flag

I'm having trouble with resizing partitions. To test the relationship between me and Ubuntu, I installed it on a dual boot with the Ubuntu partition being 64 GB.

But now I regret I did 64 GB only, so I want to make another partition that is bigger. Is it possible to just move Ubuntu from one partition to another? Sorry if this is a stupid question. Also English isn't my language. :)

Note: In the fol ...

Score: 0
Pronay Sarker avatar
Ubuntu booting problem ( Not booting)
cn flag

image after booting

I am using a Dell laptop, Inspiron 15 series (inspiron 15-3565) with Ubuntu 20.04

Today I suddenly removed my laptop battery when it was in use. After that, whenever I tried pressing power button it's not booting into Ubuntu. I tried several times, waited more than 2 hours once, but every time it's getting stuck here.

I looked for several solution on YouTube but nothing worked.

Is there any way to fix ...

Score: 0
jrysatx avatar
Cannot Sudo or edit sodoer to add user
jp flag

I successfully installed Ubunto Server 20.04 on Raspberry Pi. I added a user, but the user, me, cannot sudo, not edit sudoer file to allow sudo. Was not prompted to add administer at installation.

Score: 0
Grumpy ol' Bear avatar
Creating a symlink for docker-volumes to another directory
cn flag

For reasons I need to symlink /var/lib/docker/volumes into /net/datadisc/disc1/docker_volumes, i.e. ever volume that docker creates inside /var/lib/docker/volumes would instead be created in /net/datadisc/disc1/docker_volumes

sudo ln -s /net/datadisc/disc1/docker_volumes /var/lib/docker/volumes doesn't do it.

Score: 0
Frank David Zamora Reina avatar
problem installing ubuntu on lenovo yoga slim 7 pro 14ITL5
ru flag

I recently bought a lenovo yoga as the title description. When I try to install ubuntu 20.04.3 or 21.04 the system starts flashing constantly and it is quite difficult to install the system. Does anyone know how to fix this?

Score: 1
zeko868 avatar
Handy command for editing previously executed mistyped command and overwriting history entry with the fixed one
za flag

until recently I was pretty sure that fc command opens previously executed command in the default editor, executes submitted changes and overwrites last entry from the bash history. However, seems like newly-executed command is actually just appended to the end of the bash history, so mistyped one (which wanted to be corrected) still remains.

As I find improper commands in the bash history very irrit ...

Score: 0
TheCeylann avatar
Configure RAID6 to ubuntu 18.04
cn flag

I want to try make RAID on webmin but I get The kernel RAID status file /proc/mdstat does not exist on your system. Your kernel probably does not support RAID.

when I use zcat /proc/config.gz | grep 'RAID' command I got this output.

    $ sudo zcat /proc/config.gz| grep 'RAID'

# CONFIG_RAID_ATTRS is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_MEGARAID_NEWGEN ...
Score: 1
nginx: How to redirect to another domain while using password-authentication?
pl flag

I'm trying to redirect domain.com to domain2.com using Nginx. And the user should only be redirected with a correct password.

I achieved the redirecting and the password-authentication. But combing those two doesn't work.

Here is my /etc/nginx/nginx.conf:

server {
            listen 80;
            server_name domain.com;

            location /thisOne {
                auth_basic "Restricted Content";
  ...
Score: 0
appleuser avatar
Missing value auth-url required for auth plugin password
gb flag

As i am trying to configurate openstack, when already in pipenv shell, i get this error : Missing value auth-url required for auth plugin password, when i call commands like : openstack network list --external --column Name. It would be very helpful if someone could help me with this problem. I should add that before this, i already created a stack and VM using the Heat Orchestration, if that is importa ...

Score: 0
Denis Kulagin avatar
UVC camera is being turned on at random moments
tr flag

Just bought an A4TECH PK-1000HA webcam and it's being turned on (backlight turned on) at the system's bootup/shutdown and sometimes at random moments when I surf the web via Chrome for instance.

Is it righteous behavior and/or could I ask my webcam to turn on only when needed (e.g. on Zoom-meetings)?

Ubuntu 18.04.5 LTS

Score: 0
Andrek_ M avatar
Mouse stops working
in flag

Sometimes my mouse stops working (SPC LIX). I have tried updating upgrading but it still does happen. I'm on ubuntu 20.04

PC specs: i7 11gen 16GB RAM SPC LIX mouse

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.