Linux News

After 18 Years, Gtk Native File Chooser Gets Thumbnail View

LXer Linux News - Thu, 12/15/2022 - 22:24
Gtk native file chooser dialog now gets thumbnail and icon views based on the recent merge request in the gtk main branch.
Categories: General News

Am I at the right place?

Linux Questions - Thu, 12/15/2022 - 21:31
Tries LXLE yesterday and found it is very good, I mean good for me.
I need help. Tried to register to LXLE forum. They asked me for the reason registering at LXLE forum. My answer was: Learn Linux. I was denied. I do not know whether I am allowed to ask questions about LXLE here ?
Categories: Software and Help

Catalogic’s DPX 4.9 Strengthens Proactive Ransomware Shield

Linux Today News - Thu, 12/15/2022 - 21:00

DPX 4.9 extends GuardMode to Linux servers and Samba shares and improves the quality of alerts for backup administrators.

The post Catalogic’s DPX 4.9 Strengthens Proactive Ransomware Shield appeared first on Linux Today.

Categories: General News

LXer: Google debuts OSV-Scanner - a Go tool for finding security holes in open source

Linux Questions - Thu, 12/15/2022 - 20:42
Published at LXer:

Witness the awesome power of this somewhat operational bug-buster. Google this week released OSV-Scanner � an open source vulnerability scanner linked to the OSV.dev database that debuted last year.�

Read More...
Categories: Software and Help

Google debuts OSV-Scanner - a Go tool for finding security holes in open source

LXer Linux News - Thu, 12/15/2022 - 20:35
Witness the awesome power of this somewhat operational bug-buster. Google this week released OSV-Scanner – an open source vulnerability scanner linked to the OSV.dev database that debuted last year.…
Categories: General News

Is LXLE not of Linux?

Linux Questions - Thu, 12/15/2022 - 20:11
Just tries LXLE and found it very good, I good for me. I intend to use it. Have to find a forum to help me on many questions regarding to LXLE. It is not listed here under Linux sub-forums. Is it not Linux?

Thanks
Categories: Software and Help

next-20221216: linux-next

Linux Kernel - Thu, 12/15/2022 - 19:37
Version:next-20221216 (linux-next) Released:2022-12-16
Categories: Linux Kernel

Distribution Release: AV Linux MX-21.2.1

DistroWatch.com - Thu, 12/15/2022 - 19:10
Glen MacArthur has announced the release of AV Linux MX-21.2.1, the latest version of the project's Debian and MX Linux-based distribution for "content creators". Some of the changes in this version include: "The Openbox window manager is gone, replaced by native xfwm; Nitrogen is gone replaced by native....
Categories: Distributions

Upgrade Your Video Creation Workflow With Kdenlive 22.12

Linux Today News - Thu, 12/15/2022 - 19:00

Kdenlive 22.12, the free and open-source video editor, scores another sizable update in terms of UI improvements, new filters, and more.

The post Upgrade Your Video Creation Workflow With Kdenlive 22.12 appeared first on Linux Today.

Categories: General News

LXer: Enjoy two-panel file management on Linux with far2l

Linux Questions - Thu, 12/15/2022 - 18:54
Published at LXer:

Far2l is a port of the Windows text-based file manager Far. And to be clear, that's a lower-case L (as in "Linux") not a number 1. It runs in the terminal and is designed around a plug-in structure, enabling compatibility with SSH, WebDAV, NFS, and more. You can compile and run far2l on Linux, Mac, and BSD, or Far on Windows.

Read More...
Categories: Software and Help

Enjoy two-panel file management on Linux with far2l

LXer Linux News - Thu, 12/15/2022 - 18:46
Far2l is a port of the Windows text-based file manager Far. And to be clear, that's a lower-case L (as in "Linux") not a number 1. It runs in the terminal and is designed around a plug-in structure, enabling compatibility with SSH, WebDAV, NFS, and more. You can compile and run far2l on Linux, Mac, and BSD, or Far on Windows.
Categories: General News

VirtualBox alternative for slackware 15

Linux Questions - Thu, 12/15/2022 - 18:21
Are there any alternatives to Virtualbox for slackware 15?
Categories: Software and Help

LXer: Find Files and Directories in Linux from Command Line Examples

Linux Questions - Thu, 12/15/2022 - 17:01
Published at LXer:

Comprehensive guide to using the find command in Linux to find files and directories based on various criteria with examples.

Read More...
Categories: Software and Help

Puppy Linux 22.12 ‘S15Pup’ Released Based on Slackware 15

Linux Today News - Thu, 12/15/2022 - 17:00

Check out the highlights of Puppy Linux 22.12 “S15Pup,” a release based on Slackware 15.0, bringing the latest packages.

The post Puppy Linux 22.12 ‘S15Pup’ Released Based on Slackware 15 appeared first on Linux Today.

Categories: General News

Find Files and Directories in Linux from Command Line Examples

LXer Linux News - Thu, 12/15/2022 - 16:58
Comprehensive guide to using the find command in Linux to find files and directories based on various criteria with examples.
Categories: General News

errors when trying to connect to Ubuntu from win7 through samba

Linux Questions - Thu, 12/15/2022 - 16:44
I have set up samba on my Ubuntu 22.04 server. I'm trying to connect to it from a Win 7 computer, but I get these errors in /var/log/samba:

Code: [2022/12/14 23:03:29.931470,  3] ../../source3/smbd/process.c:1957(process_smb)
  Transaction 0 of length 137 (0 toread)
[2022/12/14 23:03:29.931488,  3] ../../source3/smbd/process.c:1549(switch_message)
  switch message SMBnegprot (pid 388051) conn 0x0
[2022/12/14 23:03:29.931689,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2022/12/14 23:03:29.931697,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [LANMAN1.0]
[2022/12/14 23:03:29.931700,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [Windows for Workgroups 3.1a]
[2022/12/14 23:03:29.931703,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [LM1.2X002]
[2022/12/14 23:03:29.931707,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [LANMAN2.1]
[2022/12/14 23:03:29.931710,  3] ../../source3/smbd/negprot.c:637(reply_negprot)
  Requested protocol [NT LM 0.12]
[2022/12/14 23:03:29.931750,  3] ../../source3/smbd/negprot.c:758(reply_negprot)
  reply_negprot: No protocol supported !
[2022/12/14 23:03:29.931865,  3] ../../source3/smbd/server_exit.c:239(exit_server_common)
  Server exit (no protocol supported
  )
[2022/12/14 23:03:43.856407,  3] ../../source3/smbd/service.c:1125(close_cnum)
  blackbeard_3 (ipv4:10.0.0.5:52585) closed connection to service IPC$
[2022/12/14 23:03:43.859906,  3] ../../source3/smbd/server_exit.c:239(exit_server_common)
  Server exit (NT_STATUS_END_OF_FILE) I'm not sure what this means - if it's a problem on the Windows computer or the Ubuntu computer - and how to fix it.
Categories: Software and Help

Basic C programming question

Linux Questions - Thu, 12/15/2022 - 15:42
Hi,

I am taking the Harvard CS50 online course. The programme is to check credit card number validity.

Why does the checkfunction() fail with a floating point error, when tested with a valid Mastercard number?

I also tried using gdb, but it gave an error to do with get_long being not declared.

Any other comments on how to improve the code very welcome.

NB. I'm not sure if the maths works yet...

Code: #include <cs50.h>
#include <stdio.h>

 // x is the input
long x;
 // y is the calculated checksum
int y = 0;
 // i is an integer for calculations
int i = 1;

// Function to loop through the digits of the card number, beginning with the last digit. See HP Luhm algorithm for further details
int checkfunction(void)
{
    printf("made it here also\n");
    //
    for (i = i + 0; i <= x; i *= 1e2)
            {
                //  Divide the number by a multiple of 10 and take the remainder. Multiply the digit by 2 and add to the checksum.
                int z;
                z = x % 10;
                if (z <= 4)
                {
                    y = z * 2 + y;
                }
                // If the product would be >10, add each digit of the product separately to the checksum
                else if (z >= 6)
                {
                    y = ( z * 2 ) - 10 + 1 + y;
                }
                // Add the next digit along (from right to left)
                y = (x % (i * 10)) + y;

            }
    return y;
}

int main(void)
{

    x = get_long("Number: ");

    // Exclude numbers shorter than 13 digits, longer than 16 digits, or that are 14 digits
    if (x < 1e12 || x > 1e16 - 1 || (x >= 1e13 && x <= 1e14))
    {
        printf("INVALID\n");
    }
    else
    {
        // For 15 digit cards
        if (x > 1e14 && x < 1e15 - 1)
        {
        // Check first two digits are 34 or 37, for Amex
        if ((x < 34e13 && x > 1e14 - 1) || (x > 37e13 && x < 38e13 - 1))
        {

            // Loop through the digits of the card number, beginning with the last digit
            checkfunction();

            // If checksum is divisible by 10, then credit card number is valid
            if ((y % 10) == 0)
            {
                printf("AMEX\n");
            }
            else
            {
                printf("INVALID\n");
            }
        }
        }
        // For 13 digit VISA cards, beginning with 4
        else if (x > 4e12 && x < 5e12 - 1)
        {
            // Loop through the digits of the card number, beginning with the last digit
            checkfunction();

            // If checksum is divisible by 10, then credit card number is valid
            if ((y % 10) == 0)
            {
                printf("VISA\n");
            }
            else
            {
                printf("INVALID\n");
            }
        }

        // For 16 digit VISA cards, also beginning with 4
        else if (x > 4e15 && x < 5e15 - 1)
        {
            // For 16 digit cards, set i to 1
            i = 1;
            // Loop through the digits of the card number, beginning with the last digit
            checkfunction();

            // If checksum is divisible by 10, then credit card number is valid
            if ((y % 10) == 0)
            {
                printf("VISA\n");
            }
            else
            {
                printf("INVALID\n");
            }
        }
        // For Mastercards (16 digits), beginning with 51, 52, 53, 54 or 55
        else if (x > 51e14  && x < 56e14 - 1)
        {
            printf("made it to this point\n");

            // Loop through the digits of the card number, beginning with the last digit
            checkfunction();
            printf("%i", y);

            // If checksum is divisible by 10, then credit card number is valid
            if ((y % 10) == 0)
            {
                printf("MASTERCARD\n");
            }
            else
            {
                printf("INVALID\n");
            }
        }
        else
        {
            printf("INVALID\n");
        }
    }
}
Categories: Software and Help

complie error in libx11-1.8.1

Linux Questions - Thu, 12/15/2022 - 15:32
host: debian 11(testing/bulleyes)
lfs version : 11.2
in section bfs, compile the libx11-1.8.1 failed.
-----
i had finished LFS, added wireless support and working fine, so continue to working on BFS about X-WINDOW(Xorg Libraries)

everything is fine at ./configure as follow:

Code: ./configure $XORG_CONFIG --disable-thread-safety-constructor result is:

Code: X11 will be built with the following settings:
 Loadable i18n module support:            no
 Loadable xcursor library support:        yes
 Threading support:                      yes
 Use Threads safe API:                    yes
 Threads stubs in libX11:                no
 XCMS:                                    yes
 Internationalization support:            yes
 XF86BigFont support:                    yes
 XKB support:                            yes
 XLOCALEDIR environment variable support: yes
 Compose table cache enabled:            yes
 Functional specs building enabled:      yes but got errors when execute make, error msg just like this:

Code: /usr/X11/include/X11/extensions/XKBproto.h:702:41: error: expected ':', ',', ';', '}' or '__attribute__' before '_X_NONSTRING'
  702 |    CARD8        over[XkbKeyNameLength]  _X_NONSTRING;
      |                                        ^~~~~~~~~~~~
In file included from ../../include/X11/XKBlib.h:31,
                from XKBlibint.h:31,
                from XKB.c:33:
/usr/X11/include/X11/extensions/XKBstr.h:405:41: error: expected ':', ',', ';', '}' or '__attribute_ ' before '_X_NONSTRING'
  405 |        char    name[XkbKeyNameLength]  _X_NONSTRING;
      |                                        ^~~~~~~~~~~~
/usr/X11/include/X11/extensions/XKBstr.h:409:41: error: expected ':', ',', ';', '}' or '__attribute_ ' before '_X_NONSTRING'
  409 |        char    real[XkbKeyNameLength]  _X_NONSTRING;
      |                                        ^~~~~~~~~~~~
make[3]: *** [Makefile:519: XKB.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:519: XKBBind.lo] Error 1
make[3]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src/xkb'
make[2]: *** [Makefile:1266: all-recursive] Error 1
make[2]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src'
make[1]: *** [Makefile:824: all] Error 2
make[1]: Leaving directory '/opt/repository/X/sources/lib/libX11-1.8.1/src'
make: *** [Makefile:526: all-recursive] Error 1 tks for your reply.
Categories: Software and Help

LXer: PINE64 Announces the PineTab2 Linux Tablet with Up to 8GB RAM and RK3566 SoC

Linux Questions - Thu, 12/15/2022 - 15:14
Published at LXer:

Linux hardware vendor PINE64 announced today the PineTab2 Linux tablet as a drop-in replacement for the first-generation PineTab table that�s no longer in production.

Read More...
Categories: Software and Help

QEMU/KVM openSuSE LEAP: Audio on Server, no audio in VM (also openSuSE)

Linux Questions - Thu, 12/15/2022 - 15:09
Had CentOS running KVM/QEMU, had sound in both Linux and Windows VMs.
Just standard build/installed the main system, and the VMs, the builds saw what I had and just did the right thing(s).

Couple of years ago, replaced with better machine, loads of memory, good quality components etc., went with openSuSE LEAP 15.2

WkStation VM, also openSUSE 15.2, no audio in Firefox or social media, etc.

Messed with it some, no avail, finally just lived with it and sent things I wanted to see & hear to my iMac. Upgraded to 15.3 maybe two years ago, hoped it'd fix itself, it did not, I didn't mess with it.

Just upgraded to openSusE LEAP 15.4, saw some interesting things and thought I'd try it again. And again, nothing I'm finding in the web-searches and the forums is moving this along.

I'm listening to Internet radio at the top-level (Server: openSuse-LEAP 15.4), but no audio in VM (openSuse-LEAP 15.4) -- testing with uTube.

Long standing problem. Where do I begin?
Categories: Software and Help

Pages