File (libmagic) that reports the wrong MIME type on Debian

I have one on a Debian Buster server .avi file that is certainly an avi video.

However, file reports an incorrect result:

$ file -i "myfile.avi"
myfile.avi: image/x-tga; charset=binary

What could be the reason?

The same file on my PC (rsynced) is reported correctly as a video.

Looking for a solution, I saw the following:

$ sudo apt remove libmagic1 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.3-cgi : Depends: libmagic1 but it is not going to be installed
              Depends: php7.3-cli but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Does this thing help me solve my problem?

I want to install Ubuntu on my Google Coral. It comes with a custom derivative of Debian

I want to install Ubuntu on my Google Coral. It comes with a custom derivative of Debian. The included operating system is pretty limited. I can not do anything and many things are missing. It would probably be easier to run the extra software that you bundle with Ubuntu, or Ubuntu can use the TPU as an accelerator dongle.

debian – Routing packets based on the port to which the client is connected

I have a Debian server with an inbound interface (eth1) and three modems (modem1, modem2, modem3). On this server is an instance of Squid monitoring three consecutive ports (3128, 3129, 3130, to be exact).

I could choose to have all eth1 packets sent to one of the modems. However, I need to forward packets based on the port to which the client is connected. For example, if the client uses as a proxy, it redirects its packets through, the IP address of modem1. Is it possible?

debian – X11 control – a behavior under Linux

Something I really liked in my Xenodm / dwm / OpenBSD setup was the behavior when the a key was pressed. Instead of selecting all the text in the element to be edited (ie the address bar in Chromium), the cursor is moved to the beginning of the line (Emacs-like). The controls u, e, and k would also do their thing (erase everything to the beginning of the line, move the cursor all the way to the right, and then erase everything).

How can I achieve this behavior in xdm / dwm / Debian?

I've seen how this question fits into Linux key event handling, and I wonder if there's a better way to do it (ie without adjusting the source). I also did not know how to configure I have also seen X11 / xorg map ctrl j (or ctrl m) to return. OR control codes in GUI / X11. Does this apply to motion / control u?

Linux – Debian 11 Bullseye encrypted LVM runs on the first start attempt

I tried to install Debian Bullseye with an encrypted LVM and encountered this problem for the first time when I tried to boot after the installation.

Volume group "system" not found
Cannot process volume group system
Volume group "system" not found
Cannot process volume group system
Volume group "system" not found
Cannot process volume group system
Gave up waiting for root file system device. Common problems:
- Boot arge (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
- Missing modules cat /proc/modules; ls dev)
ALERT! /dev/mapper/system does not exist. Dropping to a shell!

BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) _

I know that the first part, claiming that the volume group can not be found, is an aesthetic problem that has always existed in Debian, based on my previous experiences with encrypted LVMs. However, I have never had such a break.

I have noticed /etc/fstab is empty. I'm not sure why this is the case, but I'm assuming this could be part of the problem (?)

I did not do anything unusual in terms of installation. I have tried both the manual encrypted LVM configuration and run it. Both have the same problem. I have used this configuration in the past on Debian systems without any problems. I'm not sure what I'm doing wrong or if / how to fix it. Even though I messed up the installation somehow, the reinstallation does not bother me because it's a brand new installation.

debian – Mail stuck without reason in the Exim queue?

On my server, the post is sometimes delayed for no apparent reason.

In this example, two mails were generated by systemd-cron about failed cronjobs:

mailq Output (edited domains):

 3m  1.9K 1i6W6d-0003UT-Ut 

 3m  1.8K 1i6W6e-0003Uh-1y 

After a few minutes or when I exhibit exim -qf The mail is finally sent without problems and delivered.

/var/log/exim4/mainlog (Domains / IPs edited):

2019-09-07 10:30:04 1i6W6d-0003UT-Ut <= U=nobody P=local S=1914
2019-09-07 10:30:04 1i6W6e-0003Uh-1y <= U=nobody P=local S=1875
2019-09-07 10:34:13 Start queue run: pid=13447 -qf
2019-09-07 10:34:14 1i6W6d-0003UT-Ut =>  R=smarthost T=remote_smtp_smarthost ( X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes DN="…" A=plain C="250 2.0.0 Ok: queued as 268D26139FAA"
2019-09-07 10:34:14 1i6W6d-0003UT-Ut Completed
2019-09-07 10:34:14 1i6W6e-0003Uh-1y =>  R=smarthost T=remote_smtp_smarthost ( X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes DN="…" A=plain C="250 2.0.0 Ok: queued as BA7EE6139FAC"
2019-09-07 10:34:14 1i6W6e-0003Uh-1y Completed
2019-09-07 10:34:14 End queue run: pid=13447 -qf

If I sent an e-mail from the command line echo 'Test' | mail -s test rootthe mail is delivered immediately without log entries for start / end queue run:

2019-09-07 10:35:21 1i6WBk-0003V9-VR <= U=root P=local S=397
2019-09-07 10:35:21 1i6WBk-0003V9-VR =>  R=smarthost T=remote_smtp_smarthost ( X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes DN="…" A=plain C="250 2.0.0 Ok: queued as 723116139F77"
2019-09-07 10:35:21 1i6WBk-0003V9-VR Completed

Do you know the reason for the delay? How can I process all emails immediately from exim?

My configuration:

  • current Debian Buster
  • Exim version 4.92-8 + deb10u2
  • both, root and www-data (among others) have aliases to (external)
  • Standard Debian Exim Configuration (with update-exim4.conf)


dc_local_interfaces=' ; ::1'

How can I pack a DEBIAN folder into a Debian package on Windows?

So I created a "unique" program that generates a Debian control file for a project I was working on:
IPA to DEB, which easily converts an IPA file to a redistributable Debian package for Cydia on IOS

Someone has already done that, but I need a faster and more reliable offline version.

I've already written the C # program, which is capable of writing a full Debian control file, a Postinst, and the DEBIAN and Applications folders.

Enter image description here

Now all I have to do is figure out how to compile it into a deb.

I tried to look for an API that is .NET compatible and that can be compiled into a customer for me. So I do not have to worry about getting external programs.

Unfortunately, not only does not it seem to give ASP or .NET APIs, but there is limited information on current updated Windows applications that can do this.

If anyone can figure out how to compile a deb or know an API that can do it, I'd like to use it as a cmd app and control it in my winform

If it really mattered, I could manually write a program that would compile it with the right algorithms even in a command application, but I'd rather spend another 2 hours researching a new topic

KVM Virtualization – RDP always works under Windows, but only twice under Debian

Recently, I came across a very strange problem. I'm using a Windows server over KVM and it works fine for a while. Yesterday I extended the size of the underlying qcow2 file, and this strange problem has occurred.

The following operations are normal:
(1) Use the VNC client on Debian to connect to the Windows server vm. (2) On Windows, connect to the Windows Server VM using the standard RDP client.

Under Debian, however, I can only connect to the Windows server TWICE with the RDP client (I use xfreedrp, but I also tried Vinagre). When I try to connect for a third time, the whole system hangs. Even if I try to connect via VNC (the VNC function is provided by the KVM host computer instead of a Windows guest service).

Other observations:

  1. The Windows VM seems to work to some extent as I can
    ping it after freezing. When I connect to the VNC client, the splash screen and time will still be displayed, but I can not serve it.
  2. I can NOT shut it down with the command "virsh shutdown my_server"
  3. I can make it normal again if I try to connect to the RDP Windows client a couple of times, but VNC can not do the same. ,
  4. For debugging purposes, I disabled virtual memory. It does not help
  5. The Windows server is running on a qcow2 file stored on a logical LVM volume (I think this point should not be relevant).
  6. The permission should be alright as I tried to write a lot of data to the Windows server and I see that the actual size of the qcow2 file has increased without any problem.
  7. If I manually log off my user while connecting to Windows Server VM on Debian, it will work normally and I can connect as usual several times. The strange scenario happened only when I just closed the RDP window or clicked the Disconnect button on my Windows guest.

debian – Configuration Apache2 – Super User

the first thanks for your help, my question is:

In the file / etc / apache2 / site-enabled I have the configuration of my site https // on server 1.

I would like to change the configuration so that the URL points to another server 2 with the private IP address (x.x.x.x.x.x).
Can you please tell me how I can change the configuration to get the expected result?

debian – openvpn: Route the client's traffic through a different interface than the one used to connect to the openvpn server

I'm trying to set up a raspberry Pi with Raspbian as a VPN server. I have successfully installed OpenVPN and got it running according to this guide: OpenVPN is configured by default: UDP to port 1194, Tun mode.

Everything works well with eth0.

My final goal is to run it over a 4G connection provided by a USB modem, and this will not work: I have forwarded port 1194 to the 4G modem for UDP and disabled the firewall (for testing) , It seems that it comes from the 4G ISP (this type of network does not seem to behave like classic fiber / VDSL ISPs). From then on, I tried to use port 443 in TCP to overcome ISP blocking, but it does not work either.

My last thought is to have two network connections on the raspberry Pi: one on eth0 to connect clients to the OpenVPN server (using a non-4G ISP and port forwarding – what works), and usb0 over 4G connected to the internet.

My goal now is to forward all traffic for connected OpenVPN clients via the USB0 interface. You should not access the Internet through eth0 when connected to the VPN.

This scenario looks complicated, but it requires that a client's traffic be routed over the 4G connection.

I've tried different things and am a bit lost because I'm not a network expert.

Any help would be appreciated!

Many thanks.