/r/debian

Photograph via snooOG

Subreddit to discuss all the Debian things, the Universal Operating System

/r/debian

87,897 Subscribers

3

Login and... black screens.

Debian Bookworm.

I have GRUB managing Windows & Debian on a multiboot system. Wasn't using Debian for several months. W11 is my daily while I get around to migrating to Linux.

Booted Debian this morning. Login shows. Enter correct PW, then nothing. Black screen on both monitors.

D/L & reinstall current ISO network installation Bookworm. Image is created using Rufus DD mode. Reinstallation & network updates gives no indication of any issues.

Still black screens after pressing enter on password. Wrong password simply fails login, allowing repeat tries.

Trying to boot with same image (live) USB gives file not found errors when trying to load splash screen. Might not be related.

Some hardware specifications:

Motherboard

Micro-Star International Co., Ltd. MAG B650 TOMAHAWK WIFI (MS-7D75) (AM5) 41 °C

Graphics

LG TV SSCR2 (3840x2160@60Hz)

Acer ET430K (3840x2160@60Hz)

4095MB NVIDIA GeForce RTX 3070 (ASUStek Computer Inc)	53 °C

512MB ATI AMD Radeon Graphics (MSI)

SLI Disabled

CrossFire Disabled

Storage

298GB Western Digital WDC WD3200AAKS-00B3A0 (SATA )	30 °C

232GB Samsung SSD 850 EVO 250GB (SATA (SSD))	24 °C

931GB Seagate ST1000LM024 HN-M101MBB (SATA )	24 °C

1397GB Western Digital WDC WD15EARS-00Z5B1 (SATA )	27 °C

1863GB Western Digital WDC WD20EZRZ-00Z5HB0 (SATA )	27 °C

3726GB Western Digital WDC WD40EZAX-00C8UB0 (SATA )	27 °C

1863GB Samsung SSD 990 PRO 2TB (Unknown (SSD))

1863GB Samsung SSD 980 PRO 2TB (Unknown (SSD))

5588GB Western Digital WD Elements 25A3 USB Device (USB (SATA) )	30 °C

Optical Drives

No optical disk drives detected

Audio

FxSound Audio Enhancer
2 Comments
2024/10/19
01:56 UTC

3

External display help

I was running debian bookworm v12.4 on an Acer laptop and I could connect a 4K monitor via USB or HDMI seamlessly. I needed encryption on the HD so I clean installed v12.7 for LUX and now I can't get the external display to work in debian.

In Windows 11 the external display works fine. The laptop has Optimus with a i7-13700HX with an NVIDIA 4050 discrete adapter.

This article talks about the video adapter switching and I decided to pick the method for using discrete graphics only since what I have isn't working for me anymore and the discrete powers the HDMI port that I want to use for the 4k display.

I found switcheroo-control that I thought would allow you to manually switch on the discrete adapter and its installed, but I'm not sure how to invoke it since there is no icon for it and I don't know what binary to call. Does anyone have tips on how I can get my external display to work?

anon@lt:~$ sudo lshw -c DISPLAY
  *-display                 
       description: VGA compatible controller
       product: AD107M [GeForce RTX 4050 Max-Q / Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list fb
       configuration: depth=32 latency=0 mode=1920x1200 visual=truecolor xres=1920 yres=1200
       resources: iomemory:600-5ff iomemory:620-61f memory:86000000-86ffffff memory:6000000000-61ffffffff memory:6200000000-6201ffffff ioport:4000(size=128) memory:87080000-870fffff
  *-display
       description: VGA compatible controller
       product: Alder Lake-HX GT1 [UHD Graphics 770]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1200
       resources: iomemory:620-61f iomemory:400-3ff irq:213 memory:6204000000-6204ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
anon@lt:~$
0 Comments
2024/10/18
22:13 UTC

0

Why can I not do a partitionless install of debian?

i have a small SSD thats only 4 gigabytes, this is where i do infact partition the system into a bootable flag /boot.

but the 2 larger disks for / and /home do not need partitions why doesnt the installer just let me format a raw a disk?

edit: i should clarify that it does work if u manually create the formatted disks ahead of time. which no one should have to do.

9 Comments
2024/10/18
20:50 UTC

1

Wifi traffic routed through ethernet?

Hi all,

I am trying to get a Proxmox System to also use the internal Wifi to connect to a network I am already connected via LAN.

I get the Wifi up and running and am connected to the Wifi and can see the ip the box gets from the DHCP in the Unifi Controller.

Pinnging the IP also does work but when I disconnect the LAN Port the connection drops.

I already made sure the Power Saving is disabled for the Wifi.

So it looks like even though there is a Wifi connection it is not used and the traffic is going through the LAN Interface...

I seem to have a splinter in my brain as I can not figure out what could be the reason for this... any Idea anyone?

1 Comment
2024/10/18
18:23 UTC

0

How do I automatically restart a program installed via Discover when it crashes?

I've installed qbittorrent via the Discover "store". Occasionally it crashes (spontaneously) and I'd like for it to automatically restart.
My searches have turned up lots of discussion of systemd services, but I have not been able to get anything working, and I'm not even sure if it's the correct approach.
I can launch the program simply by typing 'qbittorrent' at the command line, if that helps.

Any ideas?

I'm running Debian 12, Plasma 5.27.5, kernel 6.1.0-26-amd64

9 Comments
2024/10/18
16:28 UTC

0

Is Debian good for gaming why & why not?

20 Comments
2024/10/18
13:49 UTC

2

How to test password PAM options without changing password

I notice there are settings in `/etc/pam.d/common-password` to define minimum password strength. For example:

...

password    requisite      pam_pwquality.so retry=3 maxrepeat=0 minlen=19 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1 reject_username enforce_for_root dictcheck=0

password    required       pam_pwhistory.so remember=10 use_authtok enforce_for_root
...

These checks are run when `passwd` is run. I want to check if a given string will pass these checks but I don't want it to actually modify the user's password if it succeeds. Essentially I am looking for something like `passwd --dry-run`. 

From google (and a suggestion from chatGPT) it seems like pamtester might be able to do this. However I am not able to work out how to do this from documentation.

Does anyone have any suggestions on how to achieve this?

0 Comments
2024/10/18
11:30 UTC

1

Gnome install errors

Installed SID yesterday on one of my machines. It threw errors trying to DL and install Gnome so ended up on KDE. Gnome also won't install from terminal. Anyone else having this issue? I run stable with gnome on my main desktop. Cheers

5 Comments
2024/10/18
11:20 UTC

0

Tribute to F2FS

The existing ext4 format is often recommended for storing data on every media like hard drive, SSD and USB thumb drives. In case of local SSDs, the ext4 file format is indeed the best option because its used since a long time and many users are preferring this format. But for external USB thumb drives the situation is different.

Most users won't connect possible read/write errors to the ext4 file format. They assuming, that they haven't synchronized the device correctly, or used the wrong mount command. Sometimes the assumption is, that the USB thumb drive has a hardware defect. A closer look to the problem will show, that ext4 is the single cause of failure. After replacing the format with F2FS, all the mentioned issues are gone. F2FS is working fine even with cheap flash drives, has a higher transmission speed and is reliable.

Its a bit complicated to explain the reason why F2FS should be preferred for external USB thumb drives. Information about the firmware on these devices isn't available so the only source of information are anecdotes. The story is, that users who are formatting an USB thumb with ext4 drive are affected by read/write errors and data loss, while users who are preferring F2FS have no problems.

2 Comments
2024/10/18
09:41 UTC

4

In the year 2024 I had to install ntp out of a fresh install to sync my clock and update my packages

Why? All the other times I installed Debian I didn't have to.

9 Comments
2024/10/18
07:52 UTC

3

What new paradigm or unique concepts from Debian do you advise me to learn?

Hi,

I have installed debian + kde for my brother, we are quite happy with this change.

I am an arch btw user. And what I loved most was how intuitive it was to install and its universal OS philosophy.

What I want to know is what concepts regarding administration and installation I should learn (that are unique to Debian) that I might encounter in the future.

Let me explain a little more. What new problem or paradigm can I encounter later regarding stability or installation and package control? For example, I realized that to install steam or lutris I have to go to specific repositories. Or enable 32-bit compatibility (I'm still working on it). I don't know if it's the equivalent of enabling multilib in arch?.

4 Comments
2024/10/18
05:18 UTC

2

Getting this error after power surge

Hi, not really sure what to say other than I know almost nothing about linux and or debain, I really only use this server for MC with friends, but regardless I still don't want to lose the data I have stored, so if anyone could help me with this I would really appreciate that, thank you!

Error message:

/dev/sda1: recovering journal
/dev/sda1: Clearing orphaned inode 7345351 (uid=1000, gid=0, mode=0100644, size=64392)
/dev/sda1: Clearing orphaned inode 7081298 (uid=0, gid=999, mode=0100640, size=373808)
/dev/sda1: clean, 77507/7757824 files, 12159208/31008256 blocks
[ TIME ] Timed out waiting for device dev-sdb1.device - /dev/sdb1.
[DEPEND] Dependency failed for /mnt-second-drive.mount - /mnt/second-drive.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
[DEPEND] Dependency failed for systemd-fsck-sdb1.service - File System Check on /dev/sdb1.
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to continue.

Reloading system manager configuration
Starting default.target
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode.

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.

Press Enter to continue.

Reloading system manager configuration
Starting default.target
9 Comments
2024/10/18
01:39 UTC

0

SAMBA not ask password (avahi)

I have a samba4 server on my openwrt. I created two users each with their own shares. I set hide unreadable = yes and access based share enum = yes so that "everyone sees their own" and disabled map to guest = Bad User so as to immediately request the password as soon as you connect to the server. The problem is that when I try to open the share on Linux (for example on gnome with smb://192.168.1.2) an empty folder appears and it doesn't ask me for the password. On Windows however everything works fine, if I enter the server in the file explorer I am shown a prompt where I can enter the user and password. Only on Linux I am not asked for the password. How is this possible? and how can I solve it? Thank you

config samba:

Global parameters

[global]

deadtime = 15

disable spoolss = Yes

enable core files = No

load printers = No

mdns name = mdns

netbios name = MYSTORAGE

passdb backend = smbpasswd

printcap name = /dev/null

security = USER

server string = MyStorage Router

socket options = IPTOS\_LOWDELAY TCP\_NODELAY

idmap config \* : backend = tdb

access based share enum = Yes

aio read size = 0

aio write size = 0

delete veto files = Yes

hide unreadable = Yes

invalid users = root

use sendfile = Yes

veto files = /Thumbs.db/.DS\_Store/.\_.DS\_Store/.apdisk/  
0 Comments
2024/10/18
01:19 UTC

10

How to set up APT pinning to automatically get the highest backport on debian stable?

Hey everyone, so I love Debian however I also want at least somewhat newer packages without having to switch distros and not get all the great help and support that Debian gets online. I looked into Sid and Testing/Trixie but I've heard they are best for developers and have a lot of issues, so I think stable is the best choice. I'm aware Ubuntu exists but I don't want snaps and Canonical's bullshit.

So I heard about backports and APT pinning, and basically I want APT to scan for the highest package version from all the repos and take the highest one. But I'm not sure how to set this up, or if it is even a good idea. I am fine with the occasional instability that comes from this.

If anyone could help out with getting this to work, thanks!

20 Comments
2024/10/17
16:30 UTC

0

Formatting or cleaning a bootable usb using disks

https://preview.redd.it/4ltn5u8bvbvd1.png?width=1920&format=png&auto=webp&s=94f3285927931306a44bd6bf6b1eacce82e7aeb6

Hey guys,

can anybody please tell me what the issue here is, I can't format it using the disks(I was using this for formatting in ubuntu)

Edit: Solved

7 Comments
2024/10/17
14:37 UTC

1

sshd.config values ignored

I've tried securing my ssh login by altering values in /etc/ssh/sshd.config:

Include /etc/ssh/sshd_config.d/*.conf

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
MaxAuthTries 5
MaxSessions 2

but it seems these values are completely ignored by Debian. Did the usual systemctl restart of sshd and even reboot of the server, but still the maxAuthTries and LoginGraceTime have no effect. I am able to do 5 or more failed login attempts and then still login, with no ill effects. Anyone know why Debian is ignoring the sshd config file? It would be nice if, at least once, something could work how it's supposed to.

5 Comments
2024/10/17
13:25 UTC

13

What is your preferred Debian Host IDS?

Let's even break it down further... open source vs not.

7 Comments
2024/10/17
12:38 UTC

2

Help booting Debian (No Bootable devices error)

I’m very new to Linux in general, I’ve used raspberry pi os lite and am comfortable with command lines. So I decide to download the latest Debian 12
with no graphical interface (Debian console) on my old Dell Optiplex 7040 mini (i5 6500) which used to run windows 10 pro but I have wiped the drive.

As usual I flash a usb and go to boot the installer off my dell. There was a message before loading in: “Failed to open \EFI\BOOT\ - Invalid Parameter” “Failed to load image - Invalid Parameter” “start_image() returned invalid Parameter, falling back to default loader” It still got to the installer so I have no idea if this has to do anything with the no bootable devices error.

I finished the graphical installation and everything seemed fine, i saw no errors during the installation. However I go to boot Debian through selecting it on the boot screen, it returns with no bootable devices.

I really don’t know what to do. I’ve tried doing research but everything was vaguely telling me how to fix it. I’ve tried wiping both my ssd drive and my flash drive and installing both the installer and Debian fresh. I’ve set my boot mode to UEFI and turned off secure boot. Still no bootable devices.

Looking online I can see this issue is common with dell systems, there were multiple saying fresh downloads and changing bios setting to what I have (they didn’t help, gave me the same boot error).

It could be an issue with grub boot loader. I tried reinstalling through rescue mode (shell installer environment). Installing said no errors but gave me a warning: “EFI variables are not supported on this system” I updated grub too, with no errors, and still no bootable devices.

I feel as I’ve looked everywhere, yet I can seem to be able to boot Debian. I really want to run Debian but if it is impossible to do so then I wouldn’t mind downloading another Linux distribution similar to Debian.

  • sorry for the long post, I’ve been at this problem for a week and I also been having a hard time getting my head around just booting a different distro than raspberry pi os.
16 Comments
2024/10/17
06:26 UTC

2

Setup for Windows C/C++ development in Debian using VC++ and EWDK.

Hay guys, anyone know how to set up Debian for Windows C/C++ development using EWDK. EWDK now is an iso disk, I have read an article about how to use it with virtio for Windows development but now the artical cannot access to. I'm considering switch to Debian but I also want to learn more about Windows development. I also considered about cross platform compiler such as mingw or clang but I still prefer using EWDK. Want a setup that I can write code in Linux and then test it inside a virtual Windows machine.

0 Comments
2024/10/17
02:50 UTC

10

fragments, arrived on Debian Repos

the little modern BitTorrent client for GNOME is a front-end for transmission. Thanks Matthias Geiger and the Gnome Team. Packaging these rust-based apps takes time and effort.

9 Comments
2024/10/17
02:11 UTC

2

Debian alternative to mkinitcpio.conf Hooks & Modules

Hello, I am trying to do a seamless/smooth transition between GRUB & Plymouth.

In one guide for Arch, it mentioned to do the following to mkinitcpio.conf:

  • Add plymouth to HOOKS
  • Add i915 to MODULES

What is the Debian/initramfs-tools equivalent of this?

2 Comments
2024/10/17
01:44 UTC

0

Help setting up 2fa SSH

I am following the guide at https://www.linuxbabe.com/debian/ssh-two-factor-authentication-debian. I want to configure it such that a user may connect with (a valid identity file AND otp) OR (a valid password AND otp).

Any thoughts?

2 Comments
2024/10/17
01:19 UTC

0

Debian 12 desaparece mi Wi-fi cuando suspendo la laptop

Alguien me puede ayudar? Tengo una Lenovo Thinkpad L15 y hace algunos meses le hice un double boot con Windows 11 y Debian 12, uso debian desde ese momento y todo funciona normal, excepto por algunos momentos donde suspendo la computadora o entra en ahorro de energía y cuando vuelvo a querer usarla el Wi-Fi desapareció de las configuraciones y cuando quiero apagarla o reiniciarla no me permite hacerlo desde las configuraciones, no me deja opción mas que hacerlo desde el botón de la laptop. No encuentro info por ningún lado, alguien sabe como se puede solucionar? Adjunto fotos

https://preview.redd.it/s3iksmnhw7vd1.jpg?width=720&format=pjpg&auto=webp&s=3cbb55da974f658ffaf5199c658aa7f3b8c7404b

https://preview.redd.it/o9q5vmnhw7vd1.jpg?width=720&format=pjpg&auto=webp&s=d12c8ec39c718610fbaba820fe16171c69361238

15 Comments
2024/10/17
01:15 UTC

1

Trying to install Debian 12.7, Grub-install dummy failed' error - on both laptop and desktop

I'm trying to install debian 12.7 with LVM and enceyption on both a laptop and my desktop (which is dual boot with win11... and was working fine until I broke it the other month).

I've wiped my nvme for a fresh start and used the following instructions with the help of Perplexity AI but the error I get is 'GRUB-install dummy' failed:

Here's a step-by-step process for installing Debian 12 with disk encryption, LVM, and EFI:

Boot from the Debian 12 USB installer in UEFI mode.

Follow the initial steps (language, location, keyboard) until you reach the partitioning section.

Choose "Manual" partitioning.

Create the EFI System Partition: Create a new partition at the beginning of the disk Size: 1GB Use as: EFI System Partition Format: FAT32 Mount point: /boot/efi Flags: boot, esp (if available)

Create the encrypted partition:

Create a new partition using all remaining space Use as: Physical volume for encryption Configure encrypted volume: Choose the encrypted partition you just created (will be ed crypto, do not select efi/esp) Select "Configure encrypted volumes" Finish and write changes Choose a strong passphrase when prompted

Set up LVM:

Select the newly created encrypted device (usually named something like sda2_crypt or mapper

Choose "Configure the Logical Volume Manager"

Create a new volume group, name it (e.g., "debian-vg") Create logical volumes within this group:

root: 50GB laptop/100gb desktop

swap: 8GB home: remaining space

Set up filesystems for logical volumes:

root LV: Use as Ext4, mount point / swap LV: Use as swap area home LV: Use as Ext4, mount point /home Review the partition layout to ensure it's correct: EFI System Partition (1GB, FAT32, /boot/efi)

Encrypted partition containing LVM:

root LV (50GB, Ext4, /) swap LV (8GB, swap) home LV (remaining space, Ext4, /home)

Select "Finish partitioning and write changes to disk"

Confirm changes and continue with the installation When it asks about the desktop environment deselect desktop environment and gnome and select kde plasma Complete remaining installation steps (user setup, software selection, etc.) Install GRUB bootloader when prompted, typically to the main drive (e.g., /dev/sda) Finish installation and reboot Remember, you'll need to enter the encryption passphrase at each boot. This setup provides a secure, flexible system with separate partitions for root, home, and swap, all within an encrypted LVM container, and a properly sized EFI partition for UEFI booting.

I can only imagine the instructions are perhaps misleading me. I even used a new Debian install USB for my desktop.

Any help is much appreciated.

2 Comments
2024/10/17
01:02 UTC

10

Upgraded my pc yesterday

Out with the old overclocked Sandy Bridge-E platform and in with a used X570 board and a 5800X

I was so nervous about my Debian install. But I literally booted it up, set all the BIOS settings how I wanted, and booted into Debian first try no issue. My VM’s, gpu passthrough, and looking glass even worked first try without having to touch anything!!!

It was never this easy what seems like only a few years ago. I jumped like 8 years of hardware and basically had to do nothing. Thats amazing!! Im so happy :)

Sidenote, I wasn’t too sure how much better the new platform would be, but the difference in just responsiveness alone is astonishing, lol. Upgrade those old systems! (If you daily them anyway, retro tech is still cool)

4 Comments
2024/10/17
00:54 UTC

43

Mesa added to backports in debian 12! This is huge news for us gamers!

I've been saying that we should've had that. Finally it's here. Here is how it's done. I assume you know you added the backports repo. Then do this:

sudo apt install -t bookworm-backports mesa-vulkan-drivers

It will pull all stuff anyway. This is a huge news actually, why there is no news about this in Linux communities?

15 Comments
2024/10/16
23:04 UTC

1

Remote desktop control

I am looking for a way to remotely control machine that is running Debian 12. I am setting this up for my grandma, who likes to watch old TV shows, but no way she could handle computer herself. Consider the following scenario:

  1. Laptop is being powered on
  2. She calls me, asking me to setup some show
  3. I connect to a laptop (while I am, obviously, outside of laptop's LAN)
  4. I play videos for her (so it is very important that I should be controlling her existing session, and not creating a new one)

I tried setting up xrdp, but it seems to be always creating a new separate user session, which does not fit my needs. I am able to achieve what I need when using Ubuntu's "Screen Share", but I'm afraid that Ubuntu might be too heavy of a distro, since the laptop is really old and is, probably, 32-bit (can't say the exact specs right now, but I might be able to in a few days, if needed).
So, software suggestions and any help is greatly appreciated. Thank you!

7 Comments
2024/10/16
22:45 UTC

7

Following the securing debian manual for a debian desktop user

I've been using debian for a month and so far so good! So to be more secure I decided to read the securing debian manual, I haven't finished it yet but I think that some of the safe configurations are meant for debian running on a server not for a regular desktop user. I use debian for university (studying, code and stuff) and for gaming(mostly indie games) and I use packages from the debian repositories or flatpaks from flathub, only if I really need one, and I always make sure to check that said flatpak is verified on flathub. So it is really necessary to follow each and every step of the securing debian manual being a desktop user? And if that's the case, are there any hardening documentation or guide for debian/linux for desktop users? Thanks for reading!

15 Comments
2024/10/16
21:40 UTC

0

Google drive sync with Rclone after some time not working

I set up my Google Drive using Rclone on Debian Linux, but I have to do it again every day, and I'm getting this error message: CRITICAL: Failed to create file system for "gdrive:": couldn't find root directory ID: googleapi: Error 401: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. More details: Reason: authError, Message: Invalid Credentials

What should I do?

I followed this page: https://ucr-research-computing.github.io/Knowledge_Base/how_to_mount_google_drive.html

1 Comment
2024/10/16
18:24 UTC

Back To Top