Linux Questions

Subscribe to Linux Questions feed Linux Questions offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 4 hours 56 min ago

Startx not working on fresh SLACK 64 live install

Sun, 05/28/2023 - 20:54

I installed Slackware 64 live on HP ELITEBOOK G3 840 and the graphics of system is messed up bc it keeps blinking and a black screen flickers on and off. I have Intel graphics and use elilo in edition to kde. Here are pics of my computer hardware as told by Linux. I think it may be something with the Linux kernel and what not for some reason this is a problem in slackware 15 anyway s I edited elilo and put nomodeset but that causes the graphics to stop but when I click startx it doesn't start so I ugh posted the respective error logs of xorg and idk what to do.
Categories: Software and Help

LXer: FYI: Windows XP keygen made to work on Linux

Sun, 05/28/2023 - 20:15
Published at LXer:

The unkillable OS rises from the grave� Again. Over 21 years after it first came out, the Microsoft operating system that will not die is receiving another lease of life. It's possible to activate new installations, safely and securely, without a crack, offline and while using Linux.�

Categories: Software and Help

LXer: Advancing the future of the internet with Adam Bouhenguel

Sun, 05/28/2023 - 18:01
Published at LXer:

More than ever, we need a movement to ensure the internet remains a force for good. This post introduces the Mozilla Internet Ecosystem (MIECO) program, which fuels this movement by supporting people who are looking to advance a more human-centered internet. With MIECO, Mozilla is looking to foster a new era of internet innovation that [�]

Categories: Software and Help

LXer: MX Linux 23 Is Now Available for Beta Testing Based on Debian 12 �Bookworm�

Sun, 05/28/2023 - 15:42
Published at LXer:

The MX Linux developers announced today the general availability for public testing of the beta version of the upcoming MX Linux 23 �Libretto� release.

Categories: Software and Help

ACPI boot error, applications freezes

Sun, 05/28/2023 - 10:56
Hi, I get this ACPI error message at boot.
When a high-resolution video or Firefox runs for the first time after the system starts, the program freezes shortly after and must be killed, only after that all programs run normally.
I do not know if it has anything to do with it but when the screensaver is activated the second time, the system hangs up so I leave it inactive.

Code: $ sudo dmidecode -s bios-version
F9a Code: $ sysctl vm.swappiness
vm.swappiness = 60 Code: $ free | awk '/^Mem:/{print $2}'
8125104 Code: $ lspci -nn | grep "VGA\|Display"
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cypress XT [Radeon HD 5870] [1002:6898] Code: $ sudo cat /var/log/boot.log | tail -n 3
        Starting ospd-openvas.service - OSPd Wrapper for the OpenVAS Scanner (ospd-openvas)...
[FAILED] Failed to start logrotate.service - Rotate log files.
See 'systemctl status logrotate.service' for details. Code: $ cat /etc/default/grub | awk '/GRUB_CMDLINE_LINUX_DEFAULT/'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" thanks for help
Categories: Software and Help

dkim=fail reason="signature verification failed"

Sun, 05/28/2023 - 08:33
My next issue in my ongoing series of sendmail issues ...

I am getting a DKIM failure. I'm using mutt 2.1.5 on Slackware 15.0 (kernel 5.15.94). My muttrc file for this message is:
Code: set from="Mark Foley Jr <>"
set use_from=yes

set envelope_from_address="Mark Foley Jr <>"
set use_envelope_from=yes The mutt command is:
Code: # mutt -F $MAILDIR/muttrc -s "test from to, test dkim" -b < $emailBody The message header is:
Code: From  Sun May 28 09:30:15 2023
Return-Path: <>
Received: from ( [])
        by (8.15.2/8.15.2) with ESMTPS id 34SDUD7K005101
        (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
        for <>; Sun, 28 May 2023 09:30:13 -0400
        dkim=fail reason="signature verification failed" (1024-bit key) header.b=EKiPto2I
Received: from (localhost [])
        by (8.17.1/8.15.2) with ESMTPS id 34SDU75F026920
        (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO);
        Sun, 28 May 2023 09:30:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;
        s=cols8; t=1685280612;
Received: (from daemon@localhost)
        by (8.17.1/8.17.1/Submit) id 34SDU6tN026915;
        Sun, 28 May 2023 09:30:06 -0400
Date: Sun, 28 May 2023 09:30:06 -0400
From: Mark Foley Jr <>
Subject: test from to, test dkim
Message-ID: <>
Reply-To: Mark Foley <> Why is the DKIM failing? The sending server does have a DKIM for
Code: $ dig +short TXT
"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDN2m/RbPMkfuHIKLEvJe3ESsAL..." but why is it even trying to validate's DKIM in the first place? The envelope header From and the From: address are both Should it not be validating with's DKIM?

And even if it's legit to use the DKIM, what would cause "signature verification failure"?
Categories: Software and Help

Backup Image Q -- Old image >> New laptop

Sun, 05/28/2023 - 08:30
I have 2 HP Laptops, new laptop has a 17" display and the thought crossed
my brain...could I use an old image (created by RescueZilla) from my older laptop on my new laptop? Would it be as easy as running RescueZilla on the new machine? Using the restore function.
Categories: Software and Help

[SOLVED] SLackbuild config function ( problem

Sun, 05/28/2023 - 07:56

I just built snapper package which have a configuration file in /etc/conf.d/snapper.
According slackware documentation i added the following content in my
Code: config() {
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  # Otherwise, we leave the .new copy for the admin to consider...

config etc/conf.d/ when I run "slackpkg install snapper", I see this output:

Code: [1/1]  Package: snapper-0.10.3-x86_64-1_Sdom.tgz
        Linking /home/domenico/Slackdom/x86_64/snapper/snapper-0.10.3-x86_64-1_Sdom.tgz
        Linking /home/domenico/Slackdom/x86_64/snapper/snapper-0.10.3-x86_64-1_Sdom.tgz.asc
[1/1]  Package snapper-0.10.3-x86_64-1_Sdom.tgz is already in cache - not downloading
        Installing [Slackdom]:snapper-0.10.3-x86_64-1_Sdom...
snapper-0.10.3-x86_64-1_Sdom: Snapper is a tool for Linux file system snapshot management ......................................................................... [ 3.8M]
cat: etc/conf.d/ No such file or directory
Searching for NEW configuration files...
Some packages had new configuration files installed (1 new files):


What do you want (K/O/R/P)?

        (K)eep the old files and consider .new files later

        (O)verwrite all old files with the new ones. The
          old files will be stored with the suffix .orig

        (R)emove all .new files

        (P)rompt K, O, R selection for every single file
K As you can see, cannot be found and it is right, but
must it work in this way ? or am i wronging anything?
Another point which is not clear for me, after the installation,
if I edit "/etc/conf.d/snapper" changing its content then
its md5sum will change, thus, if I run "slackpkg reinstall snapper"
i expect to find /etc/conf.d/snapper and /etc/conf.d/
but I only find /etc/conf.d/snapper with its original content losing the
previous changes.
What am i wronging?

Categories: Software and Help

LXer: How to Install DragGAN AI editing Tool on Ubuntu 22.04

Sun, 05/28/2023 - 07:36
Published at LXer:

DragGAN AI is a powerful AI editing tool that allows users to change photos with ease using a unique dragging and dropping interface. This new tool is the outcome of a cooperation between Google, the Max Planck Institute for Informatics, and MIT CSAIL researchers.

Categories: Software and Help

Cannot upload an image file possible through Tomcat 10

Sun, 05/28/2023 - 05:12
The purpose of the code:

The following page code is intended to upload an image file (from the Windows desktop) to the Linux 8 server where the Tomcat 10 server is running.

My application name: TESTS
I have these libraries:

I have in my Tomcat 10 library:
-rw-r--r--. 1 tomcat tomcat 365905 Apr 25 12:16 servlet-api.jar

The code:

<%@ page import="org.apache.commons.fileupload.*" %>
<%@ page import="org.apache.commons.fileupload.disk.*" %>
<%@ page import="org.apache.commons.fileupload.servlet.*" %>
<%@ page import="*" %>
<%@ page import="java.util.*" %>
<%@ page import="jakarta.servlet.*" %>
<%@ page import="jakarta.servlet.http.*" %>
<%@ page import="jakarta.sql.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory" %>
<%@ page import="org.apache.commons.fileupload.FileItemFactory" %>
// Set the upload directory
String uploadDir = "/tmp/";
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List<FileItem> items = upload.parseRequest(request);
// Process the uploaded items
Iterator<FileItem> iter = items.iterator();
while (iter.hasNext()) {
FileItem item =;
// If the item is a file, save it to the upload directory
if (!item.isFormField()) {
String fileName = new File(item.getName()).getName();
String filePath = uploadDir + fileName;
File uploadedFile = new File(filePath);
<title>File Upload Example</title>
<h1>File Upload Example</h1>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<br />
<input type="submit" value="Upload" />

The error I get:

org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [24] in the jsp file: [/index.jsp]
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required type org.apache.commons.fileupload.servlet.ServletFileUpload
21: ServletFileUpload upload = new ServletFileUpload(factory);
23: // Parse the request
24: List<FileItem> items = upload.parseRequest(request);
26: // Process the uploaded items
27: Iterator<FileItem> iter = items.iterator();

It looks like:
But this is a different case.

Does someone has any idea what the problem can be ?

Kind Regards
Categories: Software and Help

Encrypting page content

Sun, 05/28/2023 - 05:08
I am working with CentOS 7, OEL 7, OEL 8.
Is there a way to encrypt ascii files (like a bash script) that contain code ? Is there also a way to decrypt it if necessary ?

Kind Regards.
Categories: Software and Help

LXer: KDE Plasma 6 Will Support Night Color on Wayland for NVIDIA Users

Sun, 05/28/2023 - 03:06
Published at LXer:

The upcoming KDE Plasma 6 desktop environment series looks to offer support for the Night Color feature that automatically adjusts the color temperature of your screen to protect your eyes during long night computing sessions for users with NVIDIA graphics cards when using the Plasma Wayland session.

Categories: Software and Help

pipewire autostart

Sun, 05/28/2023 - 02:31
/usr/sbin/ does not provide /etc/rc.d script. It instead gives xdg autostart file. As a dwm user, how am I supposed to use it?
Categories: Software and Help

LXer: Microsoft has made Azure Linux generally available. Repeat, Azure Linux

Sun, 05/28/2023 - 00:45
Published at LXer:

Come for the Kubernetes, stay for the containers. After using Azure Linux internally for two years and running it in public preview since October 2022, Microsoft this week finally made its distribution generally available.�

Categories: Software and Help

lutris vulkan and diablo ii Resurrected

Sun, 05/28/2023 - 00:35
I am trying to run Diablo II resurrected using lutris (which was installed from sbopkg) and have had
some success but have run into a problem with vulkan. Now slackware 15 64 bit multilib has vulkan- along with it's 32 bit compatibility package but i have only managed to build slackware
current's vulkan-sdk-1.3.204-x86_64-1.txz and not it's 32 bit compatibility package. Now my question
is how would i do that in this case. And yes the current 1.3.204 does get diablo II res. to work but
i would like to see if the compatibility package would help in this case and also for other games as
well. It seems only recently that the lutris logs started mentioning the need for a more recent
version of vulkan (1.3) and it seems to be effective in this case, granted said game tends
to break compatibility with lutris sometimes (possibly because it is patched frequently) but there
you have it.
Categories: Software and Help

How to completely erase an ssd drive?

Sun, 05/28/2023 - 00:17
I have an old laptop. Using rsync, I back up everything I have that is important to me from my current laptop to my old laptop. I use the old laptop like a usb stick.

This year I will leave China and go back to England. I won't take the old laptop with me, it's too old.

I want to completely erase the ssd, write zeroes over everything. I want to wipe out everything.

How can I do that?

Not that I have any great secrets, but as a matter of principle.
Categories: Software and Help

LXer: Flatpak App of the Week: Cartridges, a Simple Launcher for All of Your Games

Sat, 05/27/2023 - 22:36
Published at LXer:

Yes, our �Flatpak App of the Week� articles are back and this week I would like to introduce you to an app launched in March 2023 as a simple game launcher for all of your game accounts, Cartridges.

Categories: Software and Help

[SOLVED] inconsistent time storage

Sat, 05/27/2023 - 21:45
My old laptop normally runs Slackware15/64, but it is a shared machine that also has a Windows 10 partition. I normally run the following script to set the hardware time and store it:

/etc/rc.d/rc.ntpd stop && ntpdate && hwclock --systohc --localtime && /etc/rc.d/rc.ntpd start

If the machine is there booted to windows, it will display the proper time, but returning to Slackware the time will have to be reset. What should I change to eliminate the discrepancy?

Thank you.
Categories: Software and Help


Sat, 05/27/2023 - 20:55
Good day, my name is Gerard and I am new to Linux. I hope to write LPIC-1 as soon as possible and I will need all the support I can get. Can anyone tell me which Linux distribution I should install to get started. Thanks
Categories: Software and Help

LXer: Debix Model B SBC targets industrial embedded applications

Sat, 05/27/2023 - 20:12
Published at LXer:

The Debix Model B is a single board computer integrating the NXP i.MX8M Plus processor with 2.3 TOPs NPU and with extended operating temperature range. The new embedded device comes in a Raspberry Pi form-factor and offers similar peripherals.** The company states that the only difference between the Debix Model A launched last year and [�]

Categories: Software and Help