Latest Ubuntu related questions

Score: 0
Bash: Offset a date by n seconds
cn flag
SEU

I am trying to offset a time in the following format. I am unable to get this working. Any suggestions?

This doesn't work

DATE0="26Sep21 06:10:14"
DATE1=$(date -d "$DATE0 + 1 seconds"  +'%d%b%y %H:%M:%S'); 
echo $DATE1

This doesn't work either

n=10
DATE0="26Sep21 06:10:14"
DATE1=$(date -d "$DATE0 + $n seconds"  +'%d%b%y %H:%M:%S'); 
echo $DATE1
Score: 0
Mandias avatar
Qualcomm Atheros Killer E220x Gigabit Ethernet Controller Intermittent Ethernet Connection
jp flag

I recently installed Linux on a spare desktop PC and am having an issue with its Ethernet Controller:

Qualcomm Atheros Killer E220x Gigabit Ethernet Controller [1969:e091] (rev 13)

Kernel: 5.4.0-86-generic

I have tested with both Ubuntu 20.04 and Mint 20.2 with the exact same behavior on both. The internet connection is intermittent, requiring me to repeatedly try to start downloads/refresh web-pa ...

Score: 0
StJohn Lennox-Kerr avatar
NFS crashing on Ubuntu Server 20.04
tr flag

Trying to setup a new file server. This is all a clean install on new hardware. Just installed nfs-server and I'm getting an error when I start it.

Code:

Sep 25 13:47:59 kernel: nfsd: unable to allocate nfsd_file_hashtbl
Sep 25 13:47:59 rpc.nfsd[797860]: error starting threads: errno 12 (Cannot allocate memory)
Sep 25 13:47:59 systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/ ...
Score: 2
LPG avatar
Sudo rights without sudo auth
kr flag
LPG

I'm making an Ubuntu x86 Retropie. So far I have been able to figure out how to modify the OS to get all the hardware working but being a Windows admin I'm a little out of my depth on this one.

Is there a way to add a user who already has sudo rights into a group where they are allowed to run commands that require sudo without authentication?

I get this is a security no-no but this is going into an  ...

Score: 0
Joe Cola avatar
How to Convert 2 Image to 1 Page PDF With terminal?
us flag

I have a question, I have a problem, I want to change 2 images in 1 page pdf, how do I do it? I tried this command

convert *.jpg -resize 1240x1753 \
                      -extent 1240x1753 -gravity center \
                      -units PixelsPerInch -density 150x150 multipage.pdf

I get the result that 1 image for 1 page only, how to make 2 images 1 page ? so for example I have 10 images, then the resu ...

Score: 1
ubuntu error: opening the cache, permissions denied
my flag

I get this error every day on my ubuntu screen:

Image of error notification

I am a new user and unable to resolve this. Could any one tell me what is it and how to solve it?

Score: 0
hchattaway avatar
Converting dual boot Windows/Ubuntu to Ubuntu only
us flag

I have a desktop machine with 64 gig RAM and a 1 terabyte boot drive.. It started out as just Win 10 and then I made it dual boot with Ubuntu... My goal is to make it just boot directly into ubuntu and when i need windows for development, I'll use a Virtual box VM.. I have plenty of resource for that.

I have used Clonezilla a lot on other projects and was wondering if this is the tool to use to  ...

Score: 0
TPLink AX3000 not working with Ubuntu 20.04
ci flag
jck

I'm running Ubuntu 20.04 with kernel 5.8.

I have a Gigabyte B460M DS3H motherboard with a Core I5 CPU. I have installed a TPLink AX3000 Wifi 6 adapter that uses Intel's AX200 chipset. It is installed in the (only) PCIe slot.

The Bluetooth works but the wifi does not. There is no Wireless option that appears in the settings menu.

I tried to install the driver from backports but it failed to build-- the  ...

Score: 0
user227495 avatar
Missed MOK password entry while booting
us flag

I am new to MOK so please forgive mistakes. I got a new laptop and installed 21.04. The Wifi driver was not working. With help from someone on the internet, I located the Debian package for the Realtek Wifi card and installed it. It said that if I enable secure boot, Wifi will not work. And that is how it is now. I am using ethernet for the internet.

During last day's update, there came some prom ...

Score: 1
Jim Dandy BOA avatar
How can I Pipe the output of FFMPEG 2 Levels of Piping in a bash script
cn flag

I have been trying to pipe 2 levels deep.

I can pipe successfully:

  1. ffmpeg | grep
  2. ffmpeg | sed

I can not pipe

  1. ffmpeg | grep | sed
  2. ffmpeg | sed | grep

I don't understand, does ffmpeg limit to only one pipe in the chain?

This code has NO OUTPUT with 2 pipes and no errors:

ffmpeg -i "https://17563.live.streamtheworld.com/WETAFM.mp3?nocache=Ag6q8pw2" -af silencedetect=n=-10dB:d=0.5 -f null - 2>&am ...
Score: 0
Austin avatar
Suddenly can't access samba share from windows 10 file explorer after it was previously working Ubuntu Sever 20.4
gf flag

I got ubuntu server up and running perfectly, everything is working exactly as intended. I was doing a file transfer to move all the things I wanted to back up, the exchange finished and a few hours later I noticed I could no longer connect to my Samba share folder from my computer anymore

I have literally changed nothing and I'm not sure what to do steps I've taken to solve the issue that haven' ...

Score: 1
showing people command line programs
ws flag

Hello I am running ubuntu mate. My question has to do with command line programs. I am wondering if their is a way that I can have someone on any operating system see and use the command line interface. I am wanting to do this to market or show someone the program to see if they like it. Nowadays programs like microft word are streamed instead of buying the package. Any Ideas?

Score: 2
lordoftimelords avatar
Minecraft Server Error
eg flag

I followed the guide exactly on this site to install a Minecraft server on my Ubuntu Server 20.04 system, and I get the following output using the commands shown:

owner@mk-dell-t110:~$ sudo systemctl start minecraft@survival
owner@mk-dell-t110:~$ sudo systemctl status minecraft@survival
● minecraft@survival.service - Minecraft Server: survival
     Loaded: loaded (/etc/systemd/system/minecraft@.servi ...
Score: 0
Command to return package version or empty string
us flag

I'm looking for a simple command that prints the package version, only if the package is installed.

If the package is not installed (or is not a valid package), I want the output to be an empty string.

This is what I've come up with so far. Unfortunately, it only works in cases when the package exists.

dpkg-query --showformat="\${Version}" --show ubuntu-desktop 
1.469

However, when the package does ...

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.