Tag: Kali Linux

How to install Python as a CGI module in Apache on Linux

Table of contents 1. How to run a Python script on a web server 2. How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint, Kali Linux) 2.1 Setting up Python CGI for a single directory 2.2 Setting up Python CGI for the entire web server 3. How to set up Python as a...

How to set up Python as a CGI module in Apache on Debian (Ubuntu, Linux Mint)

Setting up Python CGI for a single directory Run the command to enable the CGI module: sudo a2enmod cgi Restart the web server for the changes to take effect: sudo systemctl restart apache2 Create file /usr/lib/cgi-bin/test.py: sudo gedit /usr/lib/cgi-bin/test.py Copy the following content to this file: #!/usr/bin/python3 print ("Content-type: text/html") print ("") print ("") print ("<html><head>") print ("") print ("</head><body>")...

How to update the GRUB bootloader on Debian and derivative distributions (Kali Linux, Ubuntu, Linux Mint)

The GRUB operating system loader is installed and updated on Linux like any other software package. But the peculiarity of the bootloader is that even after updating the package, the actual working files of the bootloader, which are located on the partition mounted along the /boot/grub/ path, are not automatically updated. That is, when new versions of GRUB are released,...

Error “No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*:80) failed” (SOLVED)

Debian and derivative distributions (Ubuntu, Linux Mint, Kali Linux, and many others) may experience a “FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*:80) failed” error when migrating from PHP 8.1 to PHP 8.2. Apache web server log sudo tail /var/log/apache2/error.log contains the following error messages: [Sun Jan 29 03:05:45.213609 2023] [proxy:error] [pid 1313500] (2)No such file or directory:...

How to disable “did you mean…” feature in Linux shell

How to disable offers to install a package with an incorrectly entered command In case the command you entered into the Linux console is not found, some distributions show additional information suggesting which packages the entered command might be in and how it can be installed. An example of such a message: Command 'magick' not found, did you mean: command...

Xfce boots without Taskbar and Start button (SOLVED)

From time to time my Kali Linux with Xfce desktop environment boots up without the taskbar and start button. Only desktop shortcuts and the desktop itself are visible, that is, the system looks like this (this is a full, uncropped screen). It is almost impossible to work in such a system, although Linux works, it allows you to open a...

How to connect a TV to a computer in Linux in Xfce (Kali Linux, Xubuntu)

Is it possible to connect a TV or a second monitor to a computer in Linux This post will show you how to connect a TV or a second monitor to a Linux computer with the Xfce desktop environment. It will also talk about the available settings and solutions to typical problems that arise when connecting a TV to a...

How to install Kali Linux with encrypted user’s home folder (manual partitioning)

If the above automatic disk layout template with encryption of the home folder does not suit you, then you can configure disk layout manually, below is shown how to do it. With manual marking, remember that for a normal installation you need at least two partitions: EFI – 200 Megabytes is enough / (root of the filesystem) – this is...
Loading...
X