Latest Ubuntu related questions

Score: 3
3088 K avatar
What is the negative login time in the "last" command?
au flag

enter image description here

When I use the last command, the log time is minus. I don't know what it means.

Score: 1
Lincoln avatar
ncurses installed... but won't compile code
us flag

I've recently returned to Xubuntu 22.04 after a brief stint on Fedora. Under Fedora, I seemed to be able to install ncurses okay. I could then simply write code and compile with commands like:

$gcc -lncurses main.c

Now, when I try that, it gives me:

/usr/bin/ld: /tmp/cczC1PpK.o: in function `main':
main.c:(.text+0x9): undefined reference to `initscr'
/usr/bin/ld: main.c:(.text+0x1d): undefined reference  ...
Score: 0
li_jessen avatar
iptables -t nat seems not working properly
ph flag

I'm working on Ubuntu 20.04. I set the following iptables rules:

sudo iptables -t nat -A POSTROUTING -d 192.168.10.162 -j MASQUERADE
sudo iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-destination 192.168.10.162:445

There 192.168.10.162 is another Ubuntu server of 18.04 running some smb server also.

When I run $sudo iptables -t nat -L -v, it shows the following:

Chain PREROUTING (poli ...
Score: 2
koo bleyecan avatar
problem with Bluetooth 5.3 dongle on Ubuntu 22.04LTS
bq flag

Using Ubuntu 22.04.1 LTS and it is up to date. I opened Settings, clicked Bluetooth, on the panel to the right it said: No Bluetooth Found, plug in a dongle to use Bluetooth. So I bought a Bluetooth 5.3 compatible dongle and plugged it into a USB port. The wee light on the dongle flashed several times then stayed on and the Settings->Bluetooth panel changed to: Bluetooth Turned Off, Turn on to connec ...

Score: -1
colic avatar
blocking bot attacks ufw fail2ban
ke flag

Im doing something dumb, or missing something. Can anyone spot it please?

I have a tplink archer C7 set to port forward from an external port to port 22 on my internal server for ssh. But I still see external origin activity in auth.log for sshd ports other than 22. This puzzled me, but perhaps the tplink isnt doing port forwarding selectively.

So I added ufw and denied all access, then added

Added user  ...
Score: 2
pierrely avatar
permanently set 'wireless mode' so the airplane icon shows it in top bar
cn flag

whilst there are work arounds Permanently Disable Wireless Drivers and Wireless Internet on tablet-PC

, I would like to see the airplane icon in the top bar to prove that wireless is off. (the best way would be to take out the hardware as I never use wifi )

the setting is in settings, wifi , airplane mode.

but this resets to enabled on reboot. I would like it permanently selected there, so it shows in ...

Score: 1
dave4952 avatar
What is causing my cursor to freeze?
cw flag

I have been using Ubuntu for a number of years now. I updated to the 20.04.1 version earlier this year. Since then I have not added new hardware or made any major software changes except downloading the Raylib libraries to try to learn some game development. A few weeks ago I started to notice that my cursor would occasionally freeze then after a while restart. Lately this has been occurring more often  ...

Score: 0
Can'ttell Dobe'editing avatar
Stuck on the login screen
bz flag

I have been trying to run Ubuntu 22.04 LTS.

For some reason I cannot get past the password screen and I have tried many different things that I don't understand.

I tried entering GNU GRUB and did some things. I entered the BIOS and tried things and to make sure, did them 10 more times.

I am a total beginner so I expected to run into many troubles along the way but didn't expect not to be able to start  ...

Score: 1
hideme avatar
Lubuntu CUPS Question: How to solve "Printer drivers are deprecated and will stop working in a future version of CUPS."
at flag

I am a relatively new Linux user. I use Lubuntu 22.04, and I am enjoying Linux so far.

CUPS is up to date and I can access it through localhost, I have also installed the appropriate drivers from the Epson website and added my printer, which is an Epson L3110, to CUPS

I tried lp command and got an error in /var/log/cups/error_log:

Printer drivers are deprecated and will stop working in a future v ...

Score: -1
Seamus avatar
Why is `man 3 printf` almost one year behind `glibc ver 2.35`?
vn flag

glibc ver 2.35 was released 0n Feb 3, 2022, and added the %b and %B binary conversion specifiers. This is a long wished-for feature to display values as a string of "ones and zeros". I'd like to use it.

I am running Ubuntu 22.04. My glibc version:

$ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3.1) 2.35

I checked the Linux Programmer's Manual for printf:

man 3 printf

Unfortunately, there's not a word a ...

Score: 2
How to use hexadecimal code as a magic value in mime-type file
cn flag

I know to add a mimetype I must use a code like that:

<mime-type type="audio/x-gtp">
    <comment>GuitarPro file</comment>
    <glob pattern="*.gp5"/>
</mime-type>

I know to add a mimetype whose file extension is used for other mimetype I can use magic like that:

<mime-type type="audio/x-gtp">
    <magic priority="50">
        <match value="BCFZ" type="str ...
Score: 4
Kaziu avatar
Problem with Certbot after Ubuntu upgrade to 22.04
mv flag

I have a problem with Certbot after upgrading to Ubuntu 22.04. I tried to reinstall Certbot without success. Then I tried to install Certbot with snap, and I have the same problem:

 certbot --version
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 33, in <module>
    sys.exit(load_entry_point('certbot', 'console_scripts', 'certbot')())
  File "/usr/local/bin/certbot", ...
Score: 0
j0h avatar
convert image to gif fails with error
au flag
j0h

I have 506 jpg images I want to make into a gif. but convert fails with the error: convert-im6.q16: cache resources exhausted 2022-12-19-152850_210.jpg' @ error/cache.c/OpenPixelCache/4083`

is there something besides convert -delay 20 -loop 0 *.jpg my.gif

I should use to convert still images into a gif?

Score: 0
Byron Hawkins avatar
Create gnome terminal profile from current terminal settings
de flag

Many of the settings in the gnome terminal profile are numeric, such as the size in rows/columns, but these are configurable by simply resizing the window or setting the zoom level with shortcut keys. Is there a way to create a terminal profile to match an open terminal window? That way I don't have to always count the number of rows and columns when setting up a new desktop, which is basically impossib ...

Score: 0
LT_Orange avatar
Enabling UFW makes websites unreachable through VPN
tw flag

I am running openVPN on a ubuntu server VPS. I have set it up and can connect from my windows client successfully. On UFW I have only opened the SSH port and openVPN port. When the firewall is disabled websites load fine on the client however when it's enabled websites can be pinged successfully through CMD however the browser gives a unable to reach website error. Didn't think I needed to open any othe ...

Score: 1
carbonedavidee avatar
I can't ssh into my home server outside my home connection. Why?
ec flag

I can't ssh into my home server outside of my home connection.
(Notice that connected to my wifi, the same which is connected my server, and ssh into my server's local ip I've success).

On my server runs Ubuntu 20.04 (stable version) and the current SSH version is "OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022" and It runs on port 22(as default setting). I allow the port 22 from Anywhere in ufw set ...

Score: 0
TMG avatar
Pixelated borders around icons on dock/panel
zw flag
TMG

Currently using Ubuntu 22.04 LTS. Sometimes icons will have a pixelated border around them when selected which is a minor issue but still slightly annoying.

Examples:

1

2

Sometimes they look normal again after restarting the application or right clicking on the icon, so I'm really not sure what is causing the problem.

Edit:

inxi -G
Graphics:
  Device-1: NVIDIA GP108 [GeForce GT 1030] driver: nvidia v: 525 ...
Score: 2
How can I permanently change the default sort in Firefox's file picker?
in flag

Since upgrading to Ubuntu 22.04, I've noticed that Firefox (version 107.0.1 64-bit, Snap) will default to showing files sorted with most recent first when opening a file picker. This could be by trying to open a file (Ctrl+O), or when saving/downloading a file.

My preference is to display my files sorted by type, then alphabetically, so my directories appear first, then files below.

I can change the sor ...

Score: 0
Arty avatar
can't install gnome network display
de flag

Need help. Can't install gnome network display. Error ependency "libpulse-mainloop-glib" not found, tried pkgconfig and cmake

arty@arty-ASUS-TUF:~/gnome-network-displays$ meson build
The Meson build system
Version: 0.61.2
Source dir: /home/arty/gnome-network-displays
Build dir: /home/arty/gnome-network-displays/build
Build type: native build
Project name: gnome-network-displays
Project version: 0.9 ...
Score: 0
Jaszczurka avatar
When I launch Metatrader 5 it closes after few seconds
sy flag

I try to open Metatrader 5, and it closes after few seconds. My system is Ubuntu 22.04.1 LTS, 64bits. I don't know what happened. How do I fix it?

Score: 0
Lord Luke avatar
Ubuntu shows "no bootable device" all of a sudden
am flag

All of a sudden, on a good morning my ubuntu Acer Aspire E5-575 series PC was displaying "no bootable device" yet it has the ubuntu loaded HDD that was working the days before. Tried reinstalling the ubuntu but to no avail, then tried this advice of "ubuntu repair" but then it just got worse I guess. It no longer even shows no bootable device, it just keeps restarting itself at the POST stage and rep ...

Score: 0
FabioSpaghetti avatar
Is there an easy way to up or downgrade from Ubuntu 22.04 Jammy to focal Fossa?
in flag

I have installed Ubuntu 22.04 Jammy, and was trying to install ROS1 on it. After a long time of looking for the errors during installation I found out that ROS1 could only be installed on Focal Fossa ( stupid situation, nobody has mentioned it on ROS website in a clear form)

So now I need to switch between the two Ubuntus. I have installed my Ubuntu on an external HDD of 1 TB.

I recreated the bootab ...

Score: 0
Ubuntu 18.04.6 LTS on Azure VM can't run apt upgrade: ModuleNotFoundError: No module named 'apt_pkg'
in flag

I got this error message when I try to update the software installed with APT:

$ sudo apt update && sudo apt upgrade
Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-secur ...
Score: 0
igalsc avatar
Apache2 wildcard rewrite
cn flag

I have a php app on Apache2 that is supposed to treat subdomains on the code level.

My goal is to redirect any wildcard subdomain to the main domain's index.php. I do not use .htaccess.

I searched Stackoverflow and also googled for the solution, and could not find one. The virtual host looks like this:

<VirtualHost *:80>
      ServerAdmin admin@website.com
      ServerName website.com
      ServerA ...
Score: 0
Hardeep Singh avatar
Ubuntu Quick settings panel doesn't look right after updating to 22.10
in flag

I updated from Ubuntu 22.04 to 22.10 yesterday and the quick settings panel does not look right. It has huge out of place icons and looks nothing the sleek modern looking settings panel in the screenshots for 22.10. Request to you help fix this on my PC.

The icons looks huge and out of place

Score: 3
Steven J. Garner avatar
Should I be concerned that Paladin Shield is claiming upgraded Ubuntu LTS servers have critical vulnerabilities?
bz flag

Cyber insurance companies are offering a substantial discount if you sign up for "free" Paladin Shield cyber security services, and because of this, management leans heavily on the vulnerabilities they report.

Many of my clients are maintained with currently supported LTS Ubuntu servers (i.e. 20.04 LTS and 22.04 LTS). They are updated and upgraded regularly and are currently showing that "0 upda ...

Score: 0
Hans Kern avatar
upgrade to 22.04 fails, the log says: Failed to start OpenVPN connection to client
sc flag

When I try to upgrade to 22.04, the log says: Failed to start OpenVPN connection to client

As far as I know I have not used OpenVPN and did not realise it was on my system.

Following an idea posted elsewhere, I did:

$ sudo systemctl status openvpn@server.service
  openvpn@server.service - OpenVPN connection to server
     Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: en ...
Score: 0
ashton55 avatar
Boot pauses indefinitely with log rotation msgs
my flag

I have an intermittent boot issue, possibly pertaining to uncomplicated firewall log rotation, see photo of dmesg. Tried to access the dmesg file but cant locate lines referenced in photo.

enter image description here

I had this same issue about 4 weeks ago, rebooted with alt+Sysreq+ b and didn't recurr. Wondering if this is tout issue or should have waited? It happened again today. Again I was able to boot normally again after alt ...

Score: 0
dixego avatar
Vim on Konsole turns selected word invisible
bs flag

Recently (I would say, after the last big KDE Neon update) whenever I use Vim on Konsole, when I put the cursor at the start of a word the word turns invisible, or rather it becomes the same color as the background. I'd been messing with my Vim colorschemes before but I don't think the problem came from there, as it wasn't doing this until the aforementioned KDE Neon updates. It's obviously pretty annoy ...

Score: 0
always-learn avatar
lost file after do "mv" file in filename.sh
nu flag

I try to run filename.sh which contains:

mv /home/newdir/test1.jpg /home/backupdir
mv /home/newdir/test2.jpg /home/backupdir
mv /home/newdir/test3.jpg /home/backupdir
mv /home/newdir/test4.jpg /home/backupdir
mv /home/newdir/test5.jpg /home/backupdir

after that, my test.jpg file is not located on /home/backupdir, and that has 2 backupdir:

backupdir and 'backupdir'$'\r'

Then I try to "cd" to 'backupdir'$' ...

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.