Ubuntu libmtp error could not get filel from device [closed]

I don’t know why I’m getting this error It would seem to be a permissions problem but I don’t know how to set permissions on t

Issued a cloudflare SSL Certificate to ubuntu server but SSL gives error

I was given a Cloudflare SSL certificate issued by our DNS provider. As the server already has let’s encrypt, the domain I had to add is loaded the Cloudflare SSL (when I visit the site I have CERT INVALID & windows does not have enough information to verify the certificate). The SSL came with pem and key file. default-ssl.conf I added the SSL Engine On and added in the paths. It is reading the certificate but not enough information and certificate path is not showing. Please advise.

Ubuntu 16.04 Postfix works, but email goes to SPAM

Hello i follow this guide to install Postfix


and i added SPF, dmarc and DKIM
I follow this guide for dkim https://help.ubuntu.com/community/Postfix/DKIM

But still email going to SPAM.


dig +short txt muhammadumerfarooq.me

"-----BEGIN RSA PRIVATE KEY-----10MIICXQIBAAKBgQDW25bTkpFlqxFhUG1kgTtSVGq0jloWB0rN7iNdXy/6OHZIUvmm1040cZkqCn+AuiOeKYR68uA/wRabS2z3TkX2Xm25y4XArbc7LzRDg4M" "Eo79bm+q/Hr10RBfgkvKs7namKBP7krdXNDg0Das14+DQ5hNlKgyyfeH5ZHXsfli64zJnwwIDAQAB10AoGBAKeWE+jm074HVsEe6JSSMGEhMzGuLxorie9iJfd4fYWgcLIs9klz0UtjESiy100vAwUkwQ" "7dToir5SQwCshDJ1LpcarXlHTTt+wszEzvQsML8uv6HtfMLI8u3q9g0D10Vx266tK5CYUUV4JBJP1/a/CfUvaNwcG9LNHs5ECpUqE58t5xAkEA9whbib14P9of104iKIV3Q32+4ABPDTenbZMG7LXtFz" "1hktNDUMTV+KIwb3WTc4e4DO3U2wlks48/1510arRqW6up/wJBAN6oPBCt/P0l3Iedv/olDkUC0c60VCAt1wxG9rKw1wD6KrpQlRdc10cRoxBszhn/jaQKOVadD/+Yg/aRAUZr35Gj0CQQCDvEQ8dvra" "ajLYf/vfT02+jfQa10rmbIhvqZlmwDm4S/ZtuxXJy74jgjJ8LeI9GOIwmuAJEsBN9RVhnaqm2Rh0D3AkAq10tKXgpR5zB4IG2PDrb5QPFH1dYiUIjwJCLpI+r8BtRY5QcghGlMp0tZaSUWw3dNUV10CyF" "intYjldX26ZLTOSYZAkBeaZwaCPT/Y/sMf0iVGhxbwcn8DJmTLMW6uLtzdWyG10NWHaANKPwNqsl8426ZZ27YPtPUJpaFxTBy5mE2K+UXSc10-----END RSA PRIVATE KEY-----"
"v=spf1 include:_spf.google.com ~all"
"v=spf1 include:_mailcust.gandi.net ?all"

dig +short txt _dmarc.muhammadumerfarooq.me


Is there any way to fix this?

ubuntu – Python import error on startup of Autodocktools

I am trying to start Autodocktools from the command line on Ubuntu 18.04.4 which gives the following error:

Run ADT from  /usr/lib/python2.7/dist-packages/AutoDockTools
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/AutoDockTools/__init__.py", line 429, in runADT
    from Pmv.moleculeViewer import MoleculeViewer
  File "/usr/lib/python2.7/dist-packages/Pmv/moleculeViewer.py", line 19, in <module>
    from DejaVu.Geom import Geom
  File "/usr/lib/python2.7/dist-packages/DejaVu/__init__.py", line 201, in <module>
    from Viewer import Viewer
  File "/usr/lib/python2.7/dist-packages/DejaVu/Viewer.py", line 50, in <module>
    from DejaVu.Camera import Camera
  File "/usr/lib/python2.7/dist-packages/DejaVu/Camera.py", line 39, in <module>
    import Image
ImportError: No module named Image
hit enter to continue

I installed the module (pip install Image) which was successful. Since by default packages already present are ignored, I do not know if it was already installed. In any case the installation did not solve the error.

I did some research and found relevant information on what I suppose are similar problems. These did pertain to code written by the user, though (https://stackoverflow.com/questions/12024397/no-module-named-image/32166371). None of the software involved in my problem is written by me and I do not know if I can or should modify the code of the relevant python file.
Otherwise, I found a bug report for another software which seems to indicate that the problem is not specific to autodocktools (https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/1112496) and also appears for other software. Unfortunately, the information is rather old, so I do not know, if it applies.

Does somebody know a fix / workaround for this?

linux – Use Sony A7RII as a webcam or tethering for Ubuntu

How can I configure my camera/computer in order to use the camera as a pc webcam to livestream and / or tethering stills?

I read darktable should do the job for tethering but I cannot understand hoe to configure all the stuff.

I have USB or HDMI cable, but no capture dongle.

Running Ubuntu 20.04 Focal Fossa

networking – Ubuntu transmits TTL 0 multicast packets

IP packets with TTL 0 shall not leave host.

But when I start application which multicasts UDP packets with TTL 0, I see packets with TTL 0 leaving host for few seconds, and coming to normal behavior of TTL 0. This most likely happens after reboot and first start of application.

I confirmed packets with TTL 0 leaving host with tcpdump:

05:31:39.048304 IP (tos 0x0, id 14487, offset 0, flags (DF), proto UDP (17), length 1344) > UDP, length 1316
05:31:39.049594 IP (tos 0x0, id 14488, offset 0, flags (DF), proto UDP (17), length 1344) > UDP, length 1316
05:31:39.051601 IP (tos 0x0, id 14489, offset 0, flags (DF), proto UDP (17), length 1344) > UDP, length 1316
05:31:39.053584 IP (tos 0x0, id 14490, offset 0, flags (DF), proto UDP (17), length 1344) > UDP, length 1316

As we can see ttl is not displayed which means TTL 0, as confirmed from tcpdump man page: https://www.tcpdump.org/manpages/tcpdump.1.html (search ttl, it clearly indicated: ttl is the time-to-live; it is not reported if it is zero).

There are no any iptables rules running.

uname -a: Linux mydevice 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

What can be the cause for this behavior, and how can I resolve this?

linux – Ubuntu Server – Network card could not be found in ifconfig

Stack Exchange Network

Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

postgresql 9.5 – pgAdmin III crash the moment Query Tool is opened [Ubuntu 20.04]

So when I tried to use the query tool in pgAdmin3 the program closes, and wont’t let me do anything at all.

Here’s the console error when I launch it with the terminal:

19:33:14: Debug: Adding duplicate image handler for 'PNG file'

(pgadmin3:35238): Gtk-CRITICAL **: 19:33:21.574: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(pgadmin3:35238): Gtk-CRITICAL **: 19:33:21.647: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(pgadmin3:35238): Gdk-CRITICAL **: 19:33:21.665: The window 0x5611b9f071e0 already has a drawing context. You cannot call gdk_window_begin_draw_frame() without calling gdk_window_end_draw_frame() first.

(pgadmin3:35238): Gdk-CRITICAL **: 19:33:21.665: gdk_drawing_context_get_cairo_context: assertion 'GDK_IS_DRAWING_CONTEXT (context)' failed
zsh: segmentation fault (core dumped)  pgadmin3

The crash happen if I open the program with or without the terminal.

I can’t use pgAdmin 4 now, because my teacher want us to use pgAdmin III, so change pgAdmin is not an option.

I alredy try something I found on the Internet:

  1. DBA
  2. Stackoverflow

And I see another people struggling with this:

  1. FreeBSD
  2. Postgrespro

But it is supposed to be fixed on early releases. So IDK what to do now, I month ago everything was fine.

Here’s how it happend:

enter image description here

ubuntu 18.04 – Every Apache request returns a AH01797 error

Every request to the Apache server is returning an access error in the error.log file. This happens both on 404 and when the file is returned successfully. Here is the example error that is logged for a given file:

(Tue May 19 14:10:12.268558 2020) (access_compat:error) (pid 28303) (client x.x.x.x:62392) AH01797: client denied by server configuration: /var/www/…

Do you know what could be causing this? My error.log file is huge and hard to use for its intended purpose.

I am running Server version: Apache/2.4.29 (Ubuntu)

webserver – How to protect web server private keys on Ubuntu with Nginx without exposing any plain text credentials?

I’m developing a set of internal websites and services for a customer who has high levels of bureaucracy and strict formal rules about many things, one of them being “not storing passwords in plain text”.

So, when they inspected my system configuration manual, they immediately pointed out that they could not accept storing private key passwords in a text file for Nginx to load on startup. It doesn’t matter that the file is readable only by root.

My arguments, such as “if someone got root access to your server then you have bigger problems than leaked private keys”, “The attacker could extract the keys from server process RAM anyway, no matter what encryption is being used”, “It’s a recursive problem because if I encrypt the password file, Nginx will need the password to decrypt the password file to decrypt the keys” did not work.

It seems, the customer is just used to how IIS works – the private keys are protected by CNG mechanisms and you don’t have to store plain text passwords or keys or API tokens anywhere.

How do I achieve that on Ubuntu and Nginx without making things too messy?

I really don’t want to migrate everything to Windows and then explain the customer why they need one more Windows Server licence when the initial idea was to use free Ubuntu server.