/r/debian

Photograph via snooOG

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

/r/debian

77,659 Subscribers

4

SD card not recognized in Debian

Hello, I am noob overall with Linux. Recently installed Debian in t480 thinkpad. Computer shows I have SD card slot, but when inserting SD card in nothing happens. After bunch of attempts, once I inserted and all card contents showed up instantly with no issues, but that happened only once.

I tested also on t470s Ubuntu and SD card works flawlessly there.

Can you tell me how I can solve the problem? And since I am still new to Linux please be more descriptive. Thanks!

4 Comments
2024/04/11
11:58 UTC

2

Does anyone know how to add "Image Preview" to Nemo file Manager?

Nemo is like the perfect file manager for me I love it! But I hate that there is no image preview.

Coming from MAC OS I'm so used to just taping the spacebar and getting a full size image preview it's SO annoying to have to click like 4 times just to get a preview of an image.

I found some old tutorials out there about adding an image viewer addon or something but I haven't been able to get it to work.

Any suggestions?

2 Comments
2024/04/11
07:14 UTC

5

How to set up debian so that my laptop still runs with the lid shut

Im running a SSH Server through debian and I want it to run even when the lid to my laptop is shut. Is there any way to achieve that?

4 Comments
2024/04/11
01:52 UTC

1

apt does not find package

I'm currently trying to install Thunderbird with sudo apt update and sudo apt-get install thunderbird I get the following message:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package thunderbird is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'thunderbird' has no installation candidate

According to the Ubuntuwiki is this the right apt package (https://wiki.ubuntuusers.de/Thunderbird/Installation/)

My /etc/apt/sources.list looks like:

#deb cdrom:[Debian GNU/Linux testing _Trixie_ - Official Snapshot amd64 NETINST with firmware 20240306-22:49]/ trixie contrib main non-free-firmware

deb http://deb.debian.org/debian/ trixie main contrib non-free-firmware non-free
deb-src http://deb.debian.org/debian/ trixie main contrib non-free-firmware

deb http://security.debian.org/debian-security trixie-security main non-free-firmware
deb-src http://security.debian.org/debian-security trixie-security main non-free-firmware

# trixie-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ trixie-updates main non-free-firmware

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

I'm running a fresh install of Debain 12 Weekly build

lsb_release -a :

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux trixie/sid
Release:        n/a
Codename:       trixie

Why can't I install thunderbird?

12 Comments
2024/04/10
22:58 UTC

3

Debian 12 10gb nic issue?

Hi.

I hope someone could help. I have a hp t740 thin client with a 10gtek rj45 10gb pcie nic runing debian 12. It randomly drops back to 1gb on the nic. The nic was brand new, new cat 6a lead and new switch. Other devices are using other rj45 10gb ports without flapping sync rate. I have tried another identical new card which does the same behavior and I have tried other ports on the switch with the same result...

Is it possible to force the sync rate rather than auto negotiation? If so how do I do this.

Any other suggestions appreciated as my time to return the card/cards is running out. Can't both be faulty??

Card type X540-BT1 Controller

Many thanks

2 Comments
2024/04/10
19:11 UTC

0

fresh install of debian, ssh connection refused?

ssh localhost works fine, but when i try to connect from elsewhere i get connection refused. i did change the port to 993 in ssh_config and sshd_config and i specify that. any ideas?

forgot to mention, i don't have iptables, ufw, nor firewalld installed. i also don't have a firewall folder in my /etc/ so im pretty sure no firewall was installed by default (is this normal?)

10 Comments
2024/04/10
19:06 UTC

2

Dual Booting Macbook Pro 2019 with Debian 12 (Weekly): But, NO WiFi

After struggling a lot, I could finally dual boot Debian 12 (Weekly) using ISO CD & Ethernet cable on MacbookPro 2019 with Intel & T2:

I did the following:

$ sudo iwconfig

lo no wireless extensions.

enx00e04c680318 no wireless extensions.

$ lspci -nn | grep Network

05:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4364 802.11ac Wireless Network Adapter [14e4:4464] (rev 04)

/etc/modprobe.d$ ls -l

total 12

-rw-r--r-- 1 root root 180 Dec 26 2022 broadcom-sta-dkms.conf

-rw-r--r-- 1 root root 127 Mar 7 10:33 dkms.conf

-rw-r--r-- 1 root root 154 Mar 12 23:28 intel-microcode-blacklist.conf

$ sudo apt-get install linux-image-$(uname -r)

linux-image-6.6.15-amd64 is already the newest version (6.6.15-2).

$ sudo apt-get install linux-headers-$(uname -r)

$ sudo apt-get install broadcom-sta-dkms

$ find /lib/modules/$(uname -r)/updates

/lib/modules/6.6.15-amd64/updates

/lib/modules/6.6.15-amd64/updates/dkms

/lib/modules/6.6.15-amd64/updates/dkms/wl.ko.xz

$ sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

$ sudo modprobe wl

$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface

auto lo

iface lo inet loopback

$ nmcli networking on

Added the PATH to modprobe in .bashrc file:

export PATH=$PATH:/sbin:/usr/sbin

Still the WiFi is NOT showing up.

Any Help?

5 Comments
2024/04/10
18:03 UTC

3

Debian graphical installer

Does the Debian graphical installer provide a complete system to use or is it necessary to do post-installation configurations? Thanks

8 Comments
2024/04/10
16:50 UTC

2

Internal drive unmounting

Hey there fellow Debianers. I have just moved to the distro and in the middle of configuring it, I have noticed that my internal drive automatically unmounts itself between reboots. It is already on ext4 as I had replaced another distro with debian. This obviously is not expected behavior. System details: [EDIT] I fixed it by manually adding an entry for the drive in question. Now it is mounted after booting, however steam cannot install any game to it ("disk write error")
OS: Debian GNU/Linux 12 (bookworm) x86_64  
Host: MS-7D25 1.0  
Kernel: 6.1.0-17-amd64  
Uptime: 9 mins  
Packages: 2941 (dpkg), 15 (flatpak)  
Shell: bash 5.2.15  
Resolution: 1920x1080, 1920x1080  
DE: Plasma 5.27.5  
WM: KWin  
WM Theme: Breeze  
Theme: [Plasma], Breeze [GTK2/3]  
Icons: [Plasma], Gently-Color-Dark-Icons [GTK2/3]  
Terminal: konsole  
CPU: 12th Gen Intel i5-12600KF (16) @ 4.900GHz  
GPU: NVIDIA GeForce RTX 3060 Ti Lite Hash Rate  
Memory: 2767MiB / 31953MiB

8 Comments
2024/04/10
14:14 UTC

1

How to fix bug: KDE screen flicker when cursor near bottom of screen, only in Debian

I've had a persistent bug in KDE but only on my Debian installation; I've never seen it in the other distros I use. Searching hasn't brought me to any reports like it elsewhere, but I hesitate to make a formal report to KDE; this isn't an up-to-date version, after all.

So I'm asking for pointers in how to track such a bug. Are there pertinent logs to look at after it has occurred again? Other steps to try in order to isolate the problem?

The issue

Often when I have the cursor at a particular y-value in the area about 1–3 cm from the bottom of the screen, the whole screen will begin flickering, and a horizontal line of white pixels in about a 10-pixel-tall 50% grayscale pattern will appear with the flickering across the length of the screen in that same 1–3 cm zone, though not necessarily at the same height as the cursor.

Moving the cursor up or down by even a little stops the flickering.

The cursor may be over the active window, an inactive window, or the wallpaper.

This happens in both X11 and Wayland sessions.

Conditions

  • Debian-stable 12.5, installed on a flash drive from the ISO image
  • KDE Plasma 5.27.5-2
  • Standard Breeze Dark theme. OK, I tweaked the colors a bit.
  • SDDM 0.19.0-5
  • Nvidia proprietary drivers 525.147.05-7. I installed them after experiencing this with the default Nouveau drivers too. I had issues trying to install the drivers from the bookworm repository but they seem to be working now coming from bookworm-updates.
  • Host: 80Q0 Lenovo ideapad Y700-17ISK (Windows 10 installed there)
  • CPU: Intel i7-6700HQ (8) @ 3.500GHz
  • GPU: NVIDIA GeForce GTX 960M
  • GPU: Intel HD Graphics 530
  • I have been using the Oxygen yellow cursors. I did try changing them back to Breeze Dark, and still had the issue.
0 Comments
2024/04/10
13:19 UTC

2

Fresh Minimal Install

What types of packages should I install on a fresh minimal install? I chose to go with KDE as my DE and I'm not happy with some of what it offers so I'm going to wipe my system and start fresh. Build my system from the ground up.

I'm going with I3 window manager instead of a full DE.

What are some recommendations for things like:

  • managing bluetooth devices
  • managing audio
  • notifications
  • photo viewer
  • video viewer

Also... what am I forgetting about? What am I going to come across that I forgot to set up?

I'd love to hear everyone's thoughts on this.

4 Comments
2024/04/10
12:54 UTC

1

Impossible to connect to bluetooth device on MBP 2012 Debian

Hey, I have installed Debian on my MBP 9,2 from 2012, everything works fine (even the wifi lol), EXCEPT the bluetooth. I mean it detects devices but there are two problems : it shows me many MAC adresses of bluetooth devices, idk if it's supposed to show so many adresses, and my bluetooth device appear with its correct name among all of these adresses. But then when I try to connect to it it says that there's an error when configuring the bluetooth device, so I can't connect to my bluetooth device. Tried with multiple devices and it doesn't work, does anybody have a solution pls? thx!

0 Comments
2024/04/10
12:03 UTC

9

Scanning from a wireless all-in-one HP printer

Not sure if any Debian devs are on this sub, but I have a small suggestion.
Please make libsane and libsane-hpaio part of the default install.
Installing them is all I had to do to get Debian to see the wireless scanner. I already had hplip installed.
Going through the docs is a bit tedious for such a thing, but they are indeed useful: https://wiki.debian.org/SaneOverNetwork

Cheers and thanks!

2 Comments
2024/04/10
11:26 UTC

3

How to set up my other drives to be auto-mounted without asking for a password?

they are NTFS

5 Comments
2024/04/10
10:39 UTC

2

scanning multiple pages using scanimage command?

Debian Bookworm and a Kyocera ECOSYS printer/scanner.

The following command works once, but fails with a "device busy" error if run again within two minutes of the previous scan.

scanimage  --format jpeg --mode Gray --resolution 400 -l 5 -t 5 -x 140 -y 200  -o 1996_p045.jpg

Running it the second time ends with this output:

scanimage: sane_start: Device busy
 503 Service Unavailable 503 Service Unavailable 503 Service Unavailable 503 Service Unavailable

I first tested with the default "apt install sane", and then removed this sane package and tried with the latest "kyocera-sane". The result is identical.

Waiting two minutes will allow one other scan. It looks like the command ends properly, but without telling the printer that it ended. Any ideas?

(Disclaimer: similar to my question from yesterday in linuxquestions)

3 Comments
2024/04/10
07:54 UTC

0

Connect to wifi on debian cli

my wifi is broken on my homelab and I can't connect. What do I do? How do I connect to a wifi network? I don't have ifconfig. Treat it like a stok debian install

24 Comments
2024/04/10
07:19 UTC

3

Patching, rebuilding, and installing the stock stable kernel should not be this hard.

The problem is if you just rebuild it as the debian handbook tells you, the package will have the same name and conflict with the currently installed kernel.

 

If I had used dpkg-buildpackage I am assuming I could have used "--append-to-version", but the only line the handbook gives is "dpkg-buildpackage -b -nc -uc" which builds literally eveything.

 

I only wanted to build binary-arch_amd64_none_amd64. So the only way listed was to use:

 

$ debian/rules source
$ DEB_RULES_REQUIRES_ROOT=no make -f debian/rules.gen binary-arch_amd64_none_amd64

 

So this is literally the only way I knew to get what I wanted. It is complete and total kludge.

 

apt source linux  
cd linux-version  
patch -p1 <  path/to/patch  
export DEB_BUILD_PROFILES='pkg.linux.nokerneldbg pkg.linux.nokerneldbginfo'  
nano debian/changelog (change version line)  
debian/rules source (fails)  
md5sum debian/control > debian/control.md5sum
debian/rules source
DEB_RULES_REQUIRES_ROOT=no make -f debian/rules.gen binary-arch_amd64_none_amd64   
cd ..
mkdir package-edit
cd package-edit
ar x ../linux-image-6.1.0-18-amd64-unsigned_6.1.76-1+ACSO1_amd64.deb
mkdir control
tar xvf control.tar.xz -C control 
sed -i s/linux-image-6.1.0-18/linux-image-6.1.0-18-ACSO/ control/control
tar -cv --lzma -f control.tar.xz -C control .
ar r ../linux-image-6.1.0-18-amd64-unsigned_6.1.76-1+ACSO1_amd64-fixed.deb debian-binary control.tar.xz data.tar.xz

 

I wanted to make a guide for doing VFIO passthrough in Debian, but if it is this hard to get a kernel with the ACS patch I obviously can't.

 

Obviously it would have been easier to just grab the tarball from kernel.org, but I didn't want to have to screw around with make nconfig.

 

Also, I haven't even gotten secure boot going yet with this new kernel, which will have to wait until tomorrow.

 

Can someone please tell me a better way to do this? Both for building the kernel and it would help to also have easy instructions for getting the shim setup, or just simply signing this new kernel?

 

It would be even nicer if there was a backport or something one could use with the ACS patch pre-installed.

 

Also, before someone shrugs me off with "well the ACS patch isn't stable". It is with the vast majority of modern motherboards, and if there is an issue it usually would have been an issue even without the ACS patch.

2 Comments
2024/04/10
06:25 UTC

4

Remote desktop

I got a laptop with debian 12, I wanted to use this laptop so I can access my main computer (which has Win 11 home) when I'm not home, however I just learned that I need the win 11 pro version so I can remote into the main computer. Are there any alternative you guys have used? I've seen some sites recommend teamviewer or google remote desktop to do this, are these options viable and safe?

24 Comments
2024/04/10
05:14 UTC

4

How to add user to id_rsa?

Workstation and remote system are both Debian. I setup no-password ssh and it has been working fine. But I have added a new user to the remote system and now need to be able to login as that user via ssh. Naturally I cannot just ssh user@host as password is disabled. I don’t want to lose my current keys, that would be rough.

Is there a way to use ssh-keygen easily so I can add newuser@host via ssh-copy-id? Or something similar?

Thanks!

12 Comments
2024/04/10
03:56 UTC

8

pipewire, Firefox and battery life

So, I'm new to Linux and Debian and am working my way through this brave new world. In reviewing my battery usage, I noticed PulseAudio was a little bit of a CPU pig, so I replaced it with pipewire. This had a rather noticeable benefit to battery life and I was quite happy.

Taking this a step further, when viewing YouTube videos, I noticed pipewire using a little bit of CPU when non-active YouTube tabs were idle. This causes a constant ~1.5W of battery usage with nothing playing, and closing all idle YouTube tabs gives me over an hour of battery life back!

Anyone else experiencing this issue? Anyone else know of a better fix?!

Cheers.

5 Comments
2024/04/10
00:58 UTC

1

Brightness buttons suddenly stopped working

Only the brightness buttons stopped working, they still work in Ubuntu live usb, and this started after I downloaded a torrent overnight and set qbittorrent to shutdown pc after torrent finish. It did, and in the morning when i turned it back on, the brightness keys weren't working anymore. Screenshot with system info below

https://preview.redd.it/jxlbs0bodjtc1.png?width=788&format=png&auto=webp&s=e1d0cc8e665ebeb62820d10c97db4fa62abcbf88

15 Comments
2024/04/09
23:14 UTC

0

Can't install Nvidia proprietary drivers.

Proprietary drivers not loading.Have error - nvidia persistence module not loaded.I don't have secure boot.RTX 2080 Ti Card.Any advice?

17 Comments
2024/04/09
21:07 UTC

1

Permission Issues or Something Else?

I recently started having some strange issues that seem to be permissions based. First things is that I used to be able to autofill my wireguard .conf files when using the wg-quick command but lately they have required all manual typing. Also, I just download the Discord deb, and when I try to install it I get a message of

``N: Download is performed unsandboxed as root as file '/home/jonathan/Downloads/discord-0.0.49.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)``

Does this mean I somehow changed the permission of some things or a user since this is two different directories giving me trouble?

1 Comment
2024/04/09
20:08 UTC

0

No wifi adapter

Hello guys, is this common, is there a way to fix it. I did minimum Debian install because I did want bloated normal gnome which comes with other applications that I don’t need. But my I now have a problem with my wifi adapter.

Though as gnome was installing i saw on logs network manager being installed. What could be the problem

5 Comments
2024/04/09
19:18 UTC

6

Is there a way to find out if a specific commit is backported in Debian kernel?

I am on another distro, and after updating to the 6.8.2 kernel, my WiFi now works out of the box. Before that It had no connectivity at all with the default kernel driver, so I had to install driver that I found on github (with dkms). Thanks to this recent commit that's not the case anymore. Although, it has some issues (like drops when connected to bluetooth headphones) and I am using it for a couple of days, so I am not sure how it will work in the future. I want to install Debian on some laptops with the same driver. The author says that the fix is also available in older kernels. Is there a way to check if it's available in the Debian kernel without installing (since the live ISOs are with kernels dated before the fix)?

4 Comments
2024/04/09
17:11 UTC

3

Encrypted .7z Not Opening on Double Click But Works on “Open With” context menu

Hi all!

I am a recent Debian convert. During my switch over from Mint, I backed up my files in an encrypted .7z that I stored on a cloud drive. When I tried to open it by double clicking it from the file browser, I got the error message “Headers are encrypted, but not supported” even after I had installed the non-free versions of p7zip-full and unrar. However, right clicking the file and selecting “Open with -> File Roller” worked perfectly fine. Does anybody know why that might be? Apologies if this question is better suited to r/gnome since it is with the default gnome apps.

7 Comments
2024/04/09
16:57 UTC

4

Help understand chroot

I just installed Debian 12 with the following setup:

LVM + encrypted + btrfs file system

If my system ever breaks and need to chroot, what is the process and steps?

I am trying to learn and be ready if in case I ever need to fix it without reformatting.

If someone can help with steps that would be greatly appreciate it.

I installed using the network install iso

Do I need to download a different iso for live boot or this would work for chroot?

Thank you.

17 Comments
2024/04/09
14:11 UTC

1

I lost my shell... help!

So I have this raspberry with Debian 12 freshly installed and I accidentally locked myself out of it... I was trying to install zsh and when it was time to make it the default shell I wrote wrong the directory and now when I try to log in there's no shell... so it loops into login forever. Plus, since I just installed it, I had yet to create another user (that I could use now to restore the shell... oops!)

Any idea about how to recover my raspy before I actually start all over again? It would be nice to use the opportunity to learn a bit!

Things I've tried so far:

  • Execute commands via SSH

  • Try logging in manually

  • Try sending via NC

  • Single user

  • Mount on another FS

Any idea appreciated, thanks!

5 Comments
2024/04/09
12:40 UTC

1

Filter BTOP

Hi,

When using the filter in BTOP for de processes, will the filter also be applied tot the bandwith usage? In other words; when filtering a process, will the graph display the bandwith usage WITH the filter applied and thus only showing the bandwith usage from those processes.

0 Comments
2024/04/09
10:50 UTC

Back To Top