Linux News

How to Auto Hide Default Dock in Ubuntu

Linux Today News - Tue, 01/31/2023 - 21:00

Check out this quick tutorial on how to auto hide the default GNOME desktop dock in Ubuntu from the settings.

The post How to Auto Hide Default Dock in Ubuntu appeared first on Linux Today.

Categories: General News

Bluez documentation

Linux Questions - Tue, 01/31/2023 - 20:34
I'm trying to wrap my head around how bluez works and usage of it.

But I'm really struggling to find good documentation for it.

What are the best bluez resources that you have bookmarked?
Categories: Software and Help

Microsoft Upgrades Defender To Lock Down Linux Devices For Their Own Good

Slashdot - Tue, 01/31/2023 - 20:02
Organizations using Microsoft's Defender for Endpoint will now be able to isolate Linux devices from their networks to stop miscreants from remotely connecting to them. The Register reports: The device isolation capability is in public preview and mirrors what the product already does for Windows systems. "Some attack scenarios may require you to isolate a device from the network," Microsoft wrote in a blog post. "This action can help prevent the attacker from controlling the compromised device and performing further activities such as data exfiltration and lateral movement. Just like in Windows devices, this device isolation feature." Intruders won't be able to connect to the device or run operations like assuming unauthorized control of the system or stealing sensitive data, Microsoft claims. According to the vendor, when the device is isolated, it is limited in the processes and web destinations that are allowed. That means if they're behind a full VPN tunnel, they won't be able to reach Microsoft's Defender for Endpoint cloud services. Microsoft recommends that enterprises use a split-tunneling VPN for cloud-based traffic for both Defender for Endpoint and Defender Antivirus. Once the situation that caused the isolation is cleared up, organizations will be able to reconnect the device to the network. Isolating the system is done via APIs. Users can get to the device page of the Linux systems through the Microsoft 365 Defender portal, where they will see an "Isolate Device" tab in the upper right among other response actions. Microsoft has outlined the APIs for both isolating the device and releasing it from lock down.

Read more of this story at Slashdot.

Categories: General News

LXer: helloSystem 0.8: A friendly, all-graphical FreeBSD

Linux Questions - Tue, 01/31/2023 - 19:03
Published at LXer:

Not complete yet, but getting closer to welcoming Mac migrants and systemd scorners. After almost a year, version 0.8 of the helloSystem is here: an easy-to-use graphical distribution based on FreeBSD 13.1 aiming to offer a different way forward for people looking to leave Apple's macOS � or contemporary Linux.�

Read More...
Categories: Software and Help

Open-Source Security Index Lists Top Projects

Linux Today News - Tue, 01/31/2023 - 19:00

Two venture investors have launched an index to track the most popular open-source security projects. Learn more here.

The post Open-Source Security Index Lists Top Projects appeared first on Linux Today.

Categories: General News

helloSystem 0.8: A friendly, all-graphical FreeBSD

LXer Linux News - Tue, 01/31/2023 - 18:56
Not complete yet, but getting closer to welcoming Mac migrants and systemd scorners. After almost a year, version 0.8 of the helloSystem is here: an easy-to-use graphical distribution based on FreeBSD 13.1 aiming to offer a different way forward for people looking to leave Apple's macOS – or contemporary Linux.…
Categories: General News

O_TRUNC on open(2)

Linux Questions - Tue, 01/31/2023 - 18:19
when calling open() for writing with flag O_WRONLY set, and all flags O_CREAT, O_EXCL, and O_TRUNC not set, what is the behavior of the first write() call. what will be seen as happening to the file if it is written to without truncating?

unfortunately, the man pages tend to describe flag behavior when set, but do not describe the effect when not set, or the behavior of combinations with other flags.
Categories: Software and Help

Oracle virtualbox 7 not working on kernel 5.19 linux mint 21.1

Linux Questions - Tue, 01/31/2023 - 17:15
I try to run my VM's on the newest oracle virtualbox 7.0 with kenel 5.19.0-28-generic x86_64, on linux mint 21.1. I successfully installed oracle's virtualbox 7.0, but when I try to run my VM's, I get the error "Kernel driver not installed (rc=-1908)". Now, I know that is because I have secure boot enable and need to signed the keys for UEFI secure boot to load the drivers. I have not found a clean and standard way to do the MOK (Machine Owners Key), procedure on linux that I seen on google's searches, and some are incomplete or do not work, when I try oracles's virtualbox 7 and run a VM. And, there is no way to know what latest kernel will work with the latest oracle virtualbox. I also found this https://forums.virtualbox.org/viewto...p?f=7&t=107289 post from agaskew, about a comflict of gcc compiler versions and location, if this helps. So, can some one, give a clear and simple english steps to do the MOK procedure, and help me understand the post I found, please? I not an expert but I know a little more than a novice. :) I'm including his posting here, see below.

"Re: VM not starting when using Linux kernel 6.0
by agaskew � 16. Nov 2022, 22:43
This isn't pretty, but it worked for me.
I had this error with VirtualBox 7 and Kernel 6.0.8 on Linux Mint:
7/9The VirtualBox Linux kernel driver is either not loaded or not set up correctly....etc
I reran 'sudo /sbin/vboxconfig' manually and it failed to build the kernel module. Checked
the log file /var/log/vbox-setup.log. The log file indicated syntax errors with the gcc
command, and at the top was a warning that the 6.0.8 kernel had been built with gcc version
12 whereas the system was still using gcc version 11.
Installed gcc-12 via 'sudo apt get gcc-12'
Deleted /usr/bin/gcc as its just a symlink to /usr/bin/gcc-11 and recreated it via 'sudo ln -s
/usr/bin/gcc-12 /usr/bin/gcc'. Checked the version of gcc being called is correct via 'gcc --
version' - result shows 'gcc (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0'
After that I moved /var/log/vbox-setup.log out of the way, reran 'sudo /sbin/vboxconfig' and
this time no errors were generated.
Finally my Guest VMs would run."

Rudolf-CZ wrote:

"God bless you! This was exactly my issues a Virtualbox works flawlessly since then (Kernel
5.19.17 & Virtualbox 6.1.40). Just to add existing symlink could be directly changed by using
"-f" so using "sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc -f" so deleting is not required."
Categories: Software and Help

Discover 5 Interesting Plug-Ins for Your Neovim System

Linux Today News - Tue, 01/31/2023 - 17:00

In this article, we are going to show you five plug-ins for your Neovim system to further increase your productivity.

 

The post Discover 5 Interesting Plug-Ins for Your Neovim System appeared first on Linux Today.

Categories: General News

Touchpad not detected on Lenovo 300w gen 3 (82J1)

Linux Questions - Tue, 01/31/2023 - 16:59
Recently I bought a Lenovo laptop 300w gen 3 (82J1). This computer comes with Windows pre-installed. When testing the computer with a live usb, I soon noticed that the touchpad was not working. I tested several distros, and in none the touchpad worked. I then installed Debian Sid, preserving the original Windows installation.

My first suspicion was that with a BIOS update the problem would be solved. I installed the latest version (GACN43WW) and disabled Secure Boot, Fast Boot, etc. None of it worked.

As you can see, lspci and lsusb do not list the touchpad (ELAN0642):

Code: lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev e9)
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
02:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
02:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven2 USB 3.1
02:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
02:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
02:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Sensor Fusion Hub Code: lsusb
Bus 002 Device 003: ID 0bda:0316 Realtek Semiconductor Corp. Card Reader
Bus 002 Device 002: ID 0bc2:2322 Seagate RSS LLC SRD0NF1 Expansion Portable (STEA)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 30c9:0028 Luxvisions Innotech Limited Integrated Camera
Bus 001 Device 003: ID 0bda:c123 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I tried adding parameters to the kernel boot that in many cases worked for similar laptops (Lenovo Ideapad). I tried several (pci=nocrs, i8042.nopnp=1, i8042.nomux=1, i8042.reset), but nothing worked.

During boot, before systemd starts, an acpi interface error message appears on the screen. Using journalctl, the following appears:

Code: Jan 27 14:24:08 kernel: ACPI BIOS Error (bug): Failure creating named object [\CDAT], AE_ALREADY_EXISTS (20220331/dsfield-637)
Jan 27 14:24:08 kernel: ACPI Warning: NsLookup: Type mismatch on CDAT (Integer), searching for (RegionField) (20220331/nsaccess-696)
Jan 27 14:24:08 kernel: ACPI: 9 ACPI AML tables successfully acquired and loaded
Jan 27 14:24:08 kernel: ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored I don't know if this error is related to the problem with the touchpad, but it seems to me that it is.

The kernel module responsible for the touchpad should be elan_i2c. Using modinfo elan_i2c, the following appears:

Code: sudo modinfo elan_i2c
filename:      /lib/modules/6.1.0-2-amd64/kernel/drivers/input/mouse/elan_i2c.ko
license:        GPL
description:    Elan I2C/SMBus Touchpad driver
author:        Duson Lin <dusonlin@emc.com.tw>
alias:          i2c:elan_i2c
alias:          acpi*:ELAN1000:*
alias:          acpi*:ELAN0637:*
alias:          acpi*:ELAN0636:*
alias:          acpi*:ELAN0635:*
alias:          acpi*:ELAN0634:*
alias:          acpi*:ELAN0633:*
alias:          acpi*:ELAN0632:*
alias:          acpi*:ELAN0631:*
alias:          acpi*:ELAN062F:*
alias:          acpi*:ELAN062E:*
alias:          acpi*:ELAN062D:*
alias:          acpi*:ELAN062C:*
alias:          acpi*:ELAN062B:*
alias:          acpi*:ELAN062A:*
alias:          acpi*:ELAN0629:*
alias:          acpi*:ELAN0628:*
alias:          acpi*:ELAN0627:*
alias:          acpi*:ELAN0626:*
alias:          acpi*:ELAN0625:*
alias:          acpi*:ELAN0624:*
alias:          acpi*:ELAN0623:*
alias:          acpi*:ELAN0622:*
alias:          acpi*:ELAN0621:*
alias:          acpi*:ELAN0620:*
alias:          acpi*:ELAN061F:*
alias:          acpi*:ELAN061E:*
alias:          acpi*:ELAN061D:*
alias:          acpi*:ELAN061C:*
alias:          acpi*:ELAN061A:*
alias:          acpi*:ELAN0619:*
alias:          acpi*:ELAN0618:*
alias:          acpi*:ELAN0617:*
alias:          acpi*:ELAN0616:*
alias:          acpi*:ELAN0615:*
alias:          acpi*:ELAN0612:*
alias:          acpi*:ELAN0611:*
alias:          acpi*:ELAN0610:*
alias:          acpi*:ELAN060F:*
alias:          acpi*:ELAN060C:*
alias:          acpi*:ELAN060B:*
alias:          acpi*:ELAN0609:*
alias:          acpi*:ELAN0608:*
alias:          acpi*:ELAN0607:*
alias:          acpi*:ELAN0606:*
alias:          acpi*:ELAN0605:*
alias:          acpi*:ELAN0604:*
alias:          acpi*:ELAN0603:*
alias:          acpi*:ELAN0602:*
alias:          acpi*:ELAN0601:*
alias:          acpi*:ELAN0600:*
alias:          acpi*:ELAN0100:*
alias:          acpi*:ELAN0000:*
depends:       
retpoline:      Y
intree:        Y
name:          elan_i2c
vermagic:      6.1.0-2-amd64 SMP preempt mod_unload modversions
sig_id:        PKCS#7
signer:        Debian Secure Boot CA I noticed that the touchpad hid is not listed in the module. I then downloaded kernel 6.1.8, edited /linux-6.1.8/include/linux/input/elan-i2c-ids.h, which lists the devices, inserting hid ELAN0642, and compiled.

The touchpad didn't work, but the acpi error message changed to ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-95).

Building on what has been done here and here, I've disassembled the acpi table to look for mentions of the touchpad. I found the following entry:

Code: Name (CDAT, 0x00)
    Scope (_SB.I2CD)
    {
        Device (TPD0)
        {
            Name (_HID, "ELAN0642")  // _HID: Hardware ID
            Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */)  // _CID: Compatible ID
            ICMS = 0x0A
            DCMS = 0x01
            ICMS = 0x20
            CDAT = DCMS /* \DCMS */
            If ((CDAT == 0x02))
            {
                _HID = "SYNA2392"
            }

            If ((CDAT == 0x01))
            {
                _HID = "ELAN0642"
            }

            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                If ((CDAT == 0x00))
                {
                    Return (0x00)
                }
                Else
                {
                    Return (0x0F)
                }
            }

            Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
            {
                If ((Arg0 == ToUUID ("3cdff6f7-4267-4555-ad05-b30a3d8938de") /* HID I2C Device */))
                {
                    Switch (ToInteger (Arg2))
                    {
                        Case (0x00)
                        {
                            Switch (ToInteger (Arg1))
                            {
                                Case (0x01)
                                {
                                    Return (Buffer (0x01)
                                    {
                                        0x03                                            // .
                                    })
                                }
                                Default
                                {
                                    Return (Buffer (0x01)
                                    {
                                        0x00                                            // .
                                    })
                                }

                            }
                        }
                        Case (0x01)
                        {
                            If ((^^^PCI0.LPC0.H_EC.ECRD (RefOf (^^^PCI0.LPC0.H_EC.TPTY)) == 0x01))
                            {
                                Return (0x01)
                            }

                            If ((^^^PCI0.LPC0.H_EC.ECRD (RefOf (^^^PCI0.LPC0.H_EC.TPTY)) == 0x02))
                            {
                                Return (0x20)
                            }
                        }
                        Default
                        {
                            Return (0x00)
                        }

                    }
                }
                Else
                {
                    Return (Buffer (0x01)
                    {
                        0x00                                            // .
                    })
                }
            }

            Method (_CRS, 0, NotSerialized)  // _CRS: Current Resource Settings
            {
                Name (SBFG, ResourceTemplate ()
                {
                    GpioInt (Level, ActiveLow, ExclusiveAndWake, PullUp, 0x0000,
                        "\\_SB.GPIO", 0x00, ResourceConsumer, ,
                        )
                        {  // Pin list
                            0x0009
                        }
                })
                If ((^^^PCI0.LPC0.H_EC.ECRD (RefOf (^^^PCI0.LPC0.H_EC.TPTY)) == 0x01))
                {
                    Name (SBFB, ResourceTemplate ()
                    {
                        I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80,
                            AddressingMode7Bit, "\\_SB.I2CD",
                            0x00, ResourceConsumer, , Exclusive,
                            )
                    })
                    Return (ConcatenateResTemplate (SBFB, SBFG))
                }

                If ((^^^PCI0.LPC0.H_EC.ECRD (RefOf (^^^PCI0.LPC0.H_EC.TPTY)) == 0x02))
                {
                    Name (SBFC, ResourceTemplate ()
                    {
                        I2cSerialBusV2 (0x002C, ControllerInitiated, 0x00061A80,
                            AddressingMode7Bit, "\\_SB.I2CD",
                            0x00, ResourceConsumer, , Exclusive,
                            )
                    })
                    Return (ConcatenateResTemplate (SBFC, SBFG))
                }
            }
        }
    } At this point, I'm not sure what to do anymore. I saw that some people have written dkms packages to enable elan touchpads as can be seen here.

Any ideas?
Categories: Software and Help

wsl2 ubuntu 22.04 repository

Linux Questions - Tue, 01/31/2023 - 16:44
I am using window 10 subsystem for linux trying to learn linux better and downloaded audio software to fix the no sound problem and now the update repository can not update properly. How can you fix the update issue when there is no available repository?
Categories: Software and Help

LXer: DIGI SOMs integrate pre-certified dual-band Wi-Fi 5/BL5 and Gigabit Ethernet connectivity

Linux Questions - Tue, 01/31/2023 - 16:35
Published at LXer:

The Digi ConnectCore MP1 is an industrial embedded System-on-Module* platform which integrates the STM32MP157C microprocessor and a 3D GPU (Vivante � OpenGL ES) 2.0. This SoM offers up to 176x GPIOs ports and security features such as TrustZone, tamper pins, cryptographic processors, etc.* The datasheet specifies the Vivante 3D GPU has a performance up to [�]

Read More...
Categories: Software and Help

DIGI SOMs integrate pre-certified dual-band Wi-Fi 5/BL5 and Gigabit Ethernet connectivity

LXer Linux News - Tue, 01/31/2023 - 16:33
The Digi ConnectCore MP1 is an industrial embedded System-on-Module  platform which integrates the STM32MP157C microprocessor and a 3D GPU (Vivante – OpenGL ES) 2.0. This SoM offers up to 176x GPIOs ports and security features such as TrustZone, tamper pins, cryptographic processors, etc.  The datasheet specifies the Vivante 3D GPU has a performance up to […]
Categories: General News

Start > Administration > Software Manager = Nothing Happens!

Linux Questions - Tue, 01/31/2023 - 15:56
Guys, in my attempt to delete flatpaks, I managed to screw up my access to Software Manager! :banghead:

Software Manager appears, under Start > Administration, but when I click Software Manager, nothing happens! :confused:

Please tell me there's an easy fix for my naivete!
Categories: Software and Help

[SOLVED] For loop iterating endlessly - C

Linux Questions - Tue, 01/31/2023 - 15:29
They've got me doing tic tac toe now. It works save the winner check. The for loop goes endlessly. I'm calling the for loop with all variables.

I've tested the variables are getting passed via printf statements. It just keeps looping till I stop it. Thank you in advance for any assistance.

Code: void winner_check_launch(char gameboard[], char player)
{
    // horizontals
    winner_check(gameboard, player, 1, 3, 1);
    // verticals
    winner_check(gameboard, player, 1, 7, 3);
    // diagonals(
    winner_check(gameboard, player, 1, 9, 4);
    winner_check(gameboard, player, 3, 2, 7);
}

void winner_check(char gameboard[], char player, int ctr1, int ctr2, int ctr3) {
    int counter = 0;
    for (int i = ctr1; i <= ctr2; i + ctr3) {
        if (gameboard[i] == player) {
            counter += 1;
        }
    }
    if (counter == 3) {
        printf("%c wins! game over and thank you for playing\n", player);
        exit(0);
    }
} Full source I'm on now. https://gitlab.com/jmgibson1981/mycp...0-%2068/main.c
Categories: Software and Help

GNOME Survey Results: A Window Into User Behavior

Linux Today News - Tue, 01/31/2023 - 15:00

GNOME has published the results of its last year August user survey. The findings are expected and telling. Here they are.

The post GNOME Survey Results: A Window Into User Behavior appeared first on Linux Today.

Categories: General News

Virustotal scan said url was clean. But when I clicked on the url, I was redirected. A subsequent Virustotal scan showed potential trouble.

Linux Questions - Tue, 01/31/2023 - 14:55
A "friend" in Facebook sent me this link. h ttps://tiktok.fb3lite.com/rQaDYRw
(I put a space between the "h"and "ttps" so no one would click on it accidentally. LQ kept illuminating it as a link)

I ran the link through Virustotal and it came out clean. https://www.virustotal.com/gui/url/c...cd3f/detection

So I clicked on it but it took me to youtube.com

Suspicious of tiktok.fb3lite.com I ran it through Virustotal and it showed https://www.virustotal.com/gui/url/4...9059/detection

I'm not very knowledgeable but I didn't like the looks of "base64-embedded" and "multiple-redirects." And when you click on "Details" it looks even scarier.


I am a bit worried. Do I need to be? Thank you.


PS. I am on a Linux computer (Xubuntu distro)
Categories: Software and Help

LXer: elementary OS 7 �Horus� Launches Based on Ubuntu 22.04 LTS, Here�s What�s New

Linux Questions - Tue, 01/31/2023 - 14:12
Published at LXer:

elementary OS Founder and CEO Danielle For� announced today the general availability for download of the long-anticipated elementary OS 7 �Horus� distribution based on the latest Ubuntu LTS and packed with many new features and improvements.

Read More...
Categories: Software and Help

elementary OS 7 “Horus” Launches Based on Ubuntu 22.04 LTS, Here’s What’s New

LXer Linux News - Tue, 01/31/2023 - 14:10
elementary OS Founder and CEO Danielle Foré announced today the general availability for download of the long-anticipated elementary OS 7 “Horus” distribution based on the latest Ubuntu LTS and packed with many new features and improvements.
Categories: General News

Can't change postfix server configuration

Linux Questions - Tue, 01/31/2023 - 13:32
I have inherited a dedicated web server (CentOS 7, LAMP, Drupal 7) that I am trying to clone to VPS. Everything works except sending email from PHP, which results in "Network is unreachable". It appears the request is going on port 25, but I cannot see where that setting is coming from and thus have been unable to change it. Moreover, it appears the address of the SMTP server postfix is attempting to use is actually coming from our DNS records -- is that for real?

How do I configure my server to use another port, and ideally, modify the server name as well.
Categories: Software and Help

Pages