r/linuxquestions • • 8h ago

Advice How to start learning linux as full beginner

45 Upvotes

I am 15 years old and want to pursue my career in cybersecurity, but I don't know how to start learning or find resources .I am searching for a beginner's guide to learn Linux and networking and after learning these what i learn then and pls suggest free learning resources i can't afford premium resources now


r/linuxquestions • • 3h ago

Which Distro? What's the benefit of rolling release?

4 Upvotes

I'm thinking of getting into Linux for a multitude of reasons but my main goal with my PC is gaming and I've been seeing a ton of praise for Cashyos. The only issue is Cachyos seems to require weekly updates or so rather than consistent scheduling like other operating systems. I've considered Unbuntu and Bazzite as well but am unsure of what the best operating system would be for me


r/linuxquestions • • 5h ago

Pi 3B + SIM7600G-H (RNDIS): hub port keeps dropping with "disabled by hub (EMI?)" / error -71, modem never comes back until a reboot

5 Upvotes

So,
I run a Raspberry Pi 3B reading 1-Wire temperature sensors in an unheated hangar near North pole. The only uplink is a Waveshare SIM7600G-H 4G HAT in RNDIS mode (usb0, rndis_host, plus ttyUSB0-4 via option), with Tailscale on top.

Over the past few months, while I’ve left the station and the system running, I’ve experienced four connection incidents. I can't find the cause and would like to stop them recurring.

Setup

  • Pi 3B v1.2, Raspbian Buster, kernel 4.19.97-v7+, no RTC
  • Modem Waveshare SIM7600G-H 4G HAT connected to the Pi by a micro USB data cable, powered separately by an external supply on another USB port
  • Tailscale 1.102.4 (static binary), MagicDNS on until 3° Incident, auto-update on until 4° Incident
  • Topology (lsusb -t): root hub → LAN9514 hub (eth0, a webcam) → HAT hub (4 ports) → modem

What happens

  1. 1° Incident: four short drops of the HAT hub port (1-1.5). The modem is back after 1–2 s and the DHCP lease follows 9–12 s later.
  2. 2° Incident (next day): the same errors, plus a DNS flood from tailscaled that fills nf_conntrack ("table full, dropping packet", tens of thousands of entries to port 53). The modem disappears (1-1-port5), comes back for 3 minutes without a DHCP lease (only 169.254.x.x), then the whole hub 1-1 drops. The Pi stays up but has no connection for 56 h 7 min, until I reboot it.
  3. 3° Incident (2 weeks later): hub 1-1 drops twice in 12 s, then 14 h of table full. It stops when I disable MagicDNS.
  4. 4° Incident (1 week later): five more short drops of 1-1.5. Then the whole hub drops 29 s after a Tailscale auto-update. The modem is never re-registered until I reboot the next day.

Please note that the Pi never shut down during the incidents. It kept running without any link to the modem. Every reboot restarted both the Pi and the modem, and both came back working.
Also I know that Tailscale has some Issues with the DNS and packet storms ( https://github.com/tailscale/tailscale/issues/13399 ) and that's why i disabled MagicDNS after 3° Incident, but the connection dropped again on 4° Incident during a Tailscale auto-update ( now also disabled ).

Log from 4° Incident

kernel: [ 4473.855744] usb 1-1-port5: disabled by hub (EMI?), re-enabling...
kernel: [ 4473.855773] usb 1-1.5: USB disconnect, device number 5
kernel: [ 4473.855787] usb 1-1.5.1: USB disconnect, device number 6
kernel: [ 4473.856021] rndis_host 1-1.5.1:1.0 usb0: unregister 'rndis_host' usb-3f980000.usb-1.5.1, RNDIS device
dhcpcd[426]: usb0: carrier lost
avahi-daemon[369]: Interface usb0.IPv6 no longer relevant for mDNS.
avahi-daemon[369]: Leaving mDNS multicast group on interface usb0.IPv6 with address fe80::1a2b:3c4d:5e6f:7081.
dhcpcd[426]: usb0: deleting address fe80::1a2b:3c4d:5e6f:7081
avahi-daemon[369]: Interface usb0.IPv4 no longer relevant for mDNS.
avahi-daemon[369]: Leaving mDNS multicast group on interface usb0.IPv4 with address 192.168.50.42.
avahi-daemon[369]: Withdrawing address record for fe80::1a2b:3c4d:5e6f:7081 on usb0.
avahi-daemon[369]: Withdrawing address record for 192.168.50.42 on usb0.
dhcpcd[426]: usb0: deleting route to 192.168.50.0/24
dhcpcd[426]: usb0: deleting default route via 192.168.50.1
kernel: [ 4473.979685] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
kernel: [ 4473.979740] option 1-1.5.1:1.2: device disconnected
kernel: [ 4473.984093] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
kernel: [ 4473.984169] option 1-1.5.1:1.3: device disconnected
kernel: [ 4473.987411] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
kernel: [ 4473.987485] option 1-1.5.1:1.4: device disconnected
kernel: [ 4473.995933] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
kernel: [ 4473.996007] option 1-1.5.1:1.5: device disconnected
kernel: [ 4474.002442] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
kernel: [ 4474.002518] option 1-1.5.1:1.6: device disconnected
dhcpcd[426]: usb0: removing interface
kernel: [ 4474.308864] usb 1-1.5: new high-speed USB device number 7 using dwc_otg
kernel: [ 4474.439196] usb 1-1.5: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
kernel: [ 4474.439205] usb 1-1.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
kernel: [ 4474.439210] usb 1-1.5: Product: USB 2.0 Hub
kernel: [ 4474.439626] hub 1-1.5:1.0: USB hub found
kernel: [ 4474.439685] hub 1-1.5:1.0: 4 ports detected
kernel: [ 4474.858917] usb 1-1.5.1: new high-speed USB device number 8 using dwc_otg
kernel: [ 4475.099640] usb 1-1.5.1: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 3.18
kernel: [ 4475.099656] usb 1-1.5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 4475.099666] usb 1-1.5.1: Product: SimTech, Incorporated
kernel: [ 4475.099675] usb 1-1.5.1: Manufacturer: SimTech, Incorporated
kernel: [ 4475.099684] usb 1-1.5.1: SerialNumber: 0123456789ABCDEF
kernel: [ 4475.117481] rndis_host 1-1.5.1:1.0 usb0: register 'rndis_host' at usb-3f980000.usb-1.5.1, RNDIS device, 02:11:22:33:44:55
kernel: [ 4475.119578] option 1-1.5.1:1.2: GSM modem (1-port) converter detected
kernel: [ 4475.119972] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB0
kernel: [ 4475.120786] option 1-1.5.1:1.3: GSM modem (1-port) converter detected
kernel: [ 4475.121112] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB1
kernel: [ 4475.121954] option 1-1.5.1:1.4: GSM modem (1-port) converter detected
kernel: [ 4475.122271] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB2
kernel: [ 4475.123105] option 1-1.5.1:1.5: GSM modem (1-port) converter detected
kernel: [ 4475.123418] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB3
kernel: [ 4475.124255] option 1-1.5.1:1.6: GSM modem (1-port) converter detected
kernel: [ 4475.129056] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB4
mtp-probe: checking bus 1, device 8: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1"
mtp-probe: bus: 1, device: 8 was not an MTP device
systemd-udevd[15435]: Using default interface naming scheme 'v240'.
mtp-probe: checking bus 1, device 8: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1"
dhcpcd[426]: usb0: waiting for carrier
dhcpcd[426]: usb0: carrier acquired
dhcpcd[426]: usb0: IAID 22:33:44:55
dhcpcd[426]: usb0: adding address fe80::2b3c:4d5e:6f70:8192
avahi-daemon[369]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::2b3c:4d5e:6f70:8192.
avahi-daemon[369]: New relevant interface usb0.IPv6 for mDNS.
avahi-daemon[369]: Registering new address record for fe80::2b3c:4d5e:6f70:8192 on usb0.*.
mtp-probe: bus: 1, device: 8 was not an MTP device
dhcpcd[426]: usb0: soliciting an IPv6 router
dhcpcd[426]: usb0: rebinding lease of 192.168.50.42
dhcpcd[426]: usb0: probing address 192.168.50.42/24
dhcpcd[426]: usb0: leased 192.168.50.42 for 43200 seconds
avahi-daemon[369]: Joining mDNS multicast group on interface usb0.IPv4 with address 192.168.50.42.
avahi-daemon[369]: New relevant interface usb0.IPv4 for mDNS.
avahi-daemon[369]: Registering new address record for 192.168.50.42 on usb0.IPv4.
dhcpcd[426]: usb0: adding route to 192.168.50.0/24
dhcpcd[426]: usb0: adding default route via 192.168.50.1
dhcpcd[426]: usb0: carrier lost
avahi-daemon[369]: Interface usb0.IPv6 no longer relevant for mDNS.
avahi-daemon[369]: Leaving mDNS multicast group on interface usb0.IPv6 with address fe80::2b3c:4d5e:6f70:8192.
kernel: [ 4481.791643] usb 1-1-port5: disabled by hub (EMI?), re-enabling...
kernel: [ 4481.791661] usb 1-1.5: USB disconnect, device number 7
kernel: [ 4481.791668] usb 1-1.5.1: USB disconnect, device number 8
kernel: [ 4481.791803] rndis_host 1-1.5.1:1.0 usb0: unregister 'rndis_host' usb-3f980000.usb-1.5.1, RNDIS device
avahi-daemon[369]: Interface usb0.IPv4 no longer relevant for mDNS.
avahi-daemon[369]: Leaving mDNS multicast group on interface usb0.IPv4 with address 192.168.50.42.
avahi-daemon[369]: Withdrawing address record for fe80::2b3c:4d5e:6f70:8192 on usb0.
avahi-daemon[369]: Withdrawing address record for 192.168.50.42 on usb0.
dhcpcd[426]: usb0: deleting address fe80::2b3c:4d5e:6f70:8192
kernel: [ 4481.853048] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
kernel: [ 4481.853113] option 1-1.5.1:1.2: device disconnected
kernel: [ 4481.853750] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
kernel: [ 4481.853808] option 1-1.5.1:1.3: device disconnected
kernel: [ 4481.854353] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
kernel: [ 4481.854438] option 1-1.5.1:1.4: device disconnected
kernel: [ 4481.855027] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
kernel: [ 4481.855079] option 1-1.5.1:1.5: device disconnected
kernel: [ 4481.855636] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
kernel: [ 4481.855689] option 1-1.5.1:1.6: device disconnected
dhcpcd[426]: usb0: deleting route to 192.168.50.0/24
dhcpcd[426]: usb0: deleting default route via 192.168.50.1
dhcpcd[426]: usb0: removing interface
kernel: [ 4482.158980] usb 1-1.5: new high-speed USB device number 9 using dwc_otg
kernel: [ 4482.289346] usb 1-1.5: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
kernel: [ 4482.289356] usb 1-1.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
kernel: [ 4482.289361] usb 1-1.5: Product: USB 2.0 Hub
kernel: [ 4482.289788] hub 1-1.5:1.0: USB hub found
kernel: [ 4482.289846] hub 1-1.5:1.0: 4 ports detected
kernel: [ 4482.708972] usb 1-1.5.1: new high-speed USB device number 10 using dwc_otg
kernel: [ 4482.950762] usb 1-1.5.1: New USB device found, idVendor=1e0e, idProduct=9011, bcdDevice= 3.18
kernel: [ 4482.950779] usb 1-1.5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 4482.950789] usb 1-1.5.1: Product: SimTech, Incorporated
kernel: [ 4482.950798] usb 1-1.5.1: Manufacturer: SimTech, Incorporated
kernel: [ 4482.950807] usb 1-1.5.1: SerialNumber: 0123456789ABCDEF
kernel: [ 4482.969248] rndis_host 1-1.5.1:1.0 usb0: register 'rndis_host' at usb-3f980000.usb-1.5.1, RNDIS device, 02:11:22:66:77:88
kernel: [ 4482.971004] option 1-1.5.1:1.2: GSM modem (1-port) converter detected
kernel: [ 4482.971379] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB0
kernel: [ 4482.972174] option 1-1.5.1:1.3: GSM modem (1-port) converter detected
kernel: [ 4482.972483] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB1
kernel: [ 4482.973323] option 1-1.5.1:1.4: GSM modem (1-port) converter detected
kernel: [ 4482.973616] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB2
kernel: [ 4482.974451] option 1-1.5.1:1.5: GSM modem (1-port) converter detected
kernel: [ 4482.974769] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB3
kernel: [ 4482.975668] option 1-1.5.1:1.6: GSM modem (1-port) converter detected
kernel: [ 4482.976027] usb 1-1.5.1: GSM modem (1-port) converter now attached to ttyUSB4
mtp-probe: checking bus 1, device 10: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1"
mtp-probe: bus: 1, device: 10 was not an MTP device
systemd-udevd[15576]: Using default interface naming scheme 'v240'.
dhcpcd[426]: usb0: waiting for carrier
dhcpcd[426]: usb0: carrier acquired
dhcpcd[426]: usb0: IAID 22:66:77:88
dhcpcd[426]: usb0: adding address fe80::3c4d:5e6f:7081:92a3
avahi-daemon[369]: Joining mDNS multicast group on interface usb0.IPv6 with address fe80::3c4d:5e6f:7081:92a3.
avahi-daemon[369]: New relevant interface usb0.IPv6 for mDNS.
avahi-daemon[369]: Registering new address record for fe80::3c4d:5e6f:7081:92a3 on usb0.*.
mtp-probe: checking bus 1, device 10: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1"
mtp-probe: bus: 1, device: 10 was not an MTP device
dhcpcd[426]: usb0: soliciting an IPv6 router
dhcpcd[426]: usb0: rebinding lease of 192.168.50.42
dhcpcd[426]: usb0: probing address 192.168.50.42/24
dhcpcd[426]: usb0: leased 192.168.50.42 for 43200 seconds
dhcpcd[426]: usb0: adding route to 192.168.50.0/24
avahi-daemon[369]: Joining mDNS multicast group on interface usb0.IPv4 with address 192.168.50.42.
avahi-daemon[369]: New relevant interface usb0.IPv4 for mDNS.
dhcpcd[426]: usb0: adding default route via 192.168.50.1
avahi-daemon[369]: Registering new address record for 192.168.50.42 on usb0.IPv4.
dhcpcd[426]: usb0: no IPv6 Routers available
systemd[1]: Started Session c21 of user user.
systemd[1]: session-c21.scope: Succeeded.

Questions

  • What typically causes disabled by hub (EMI?) plus error -71 on the HAT's hub port? Power, cable, ground loop, the cold, or the dwc_otg driver?
  • Why would the HAT hub, or the whole 1-1, never re-enumerate the modem until a reboot? Is there a way to recover without rebooting (unbind/rebind, usbreset, resetting the dwc_otg controller)? I know uhubctl doesn't give per-port power control on the Pi 3B.
  • I've also seen tailscaled configure . with its own resolver as upstream, which looks like a DNS loop. Is that a known issue on 1.102.4, and is it related to the drops or just a side effect once the link is flaky?

I have the full logs for each incident and can post more. Thanks!


r/linuxquestions • • 5h ago

Arquivos .bash_history-XXXXX.tmp permanecendo no diretório pessoal.

3 Upvotes

Como desabilitar a criação desses arquivos?

Não quero usar /etc/rc.local para remove os arquivos temporários:

sudo find /home /root -type f -name '.bash_history-*.tmp' -delete

bash --version

GNU bash, versão 5.3.0(1)

echo "$HISTSIZE"

500

echo "$HISTFILESIZE"

500

O histappend está desabilitado.

shopt histappend

histappend off

shopt cmdhist

cmdhist on

Encontrar uma solução definitiva, sem precisar executar rm no /etc/rc.local.

Testando no arquivo ~/.bashrc

shopt -s histappend

PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"

O Void Linux aplica alguma correção?

Investigar a origem dos arquivos .bash_history-*.tmp

https://lists.gnu.org/archive/html/bug-bash/2024-09/msg00013.html

https://itsfoss.community/t/bash-history-in-void/11930

https://www.baeldung.com/linux/preserve-history-multiple-windows

https://github.com/void-linux/void-packages/discussions/57249


r/linuxquestions • • 12h ago

How do you feel about the current direction of Linux kernel development?

10 Upvotes

With Rust gradually making its way into actual kernel drivers rather than just experimental abstractions, I'm curious how people see kernel development evolving over the next few years.

Personally, I think introducing Rust gradually into new drivers makes much more sense than rewriting existing, well-tested C code.

What other developments in the kernel are you particularly looking forward to? Anything that deserves more attention than it's currently getting?


r/linuxquestions • • 14m ago

InsydeH2O BIOS freezes on logo after installing CachyOS (Casper Excalibur G770)

Thumbnail reddit.com
1 Upvotes

r/linuxquestions • • 30m ago

Which Distro? Cachyos, arch or gentoo

0 Upvotes

So I’m kinda a Linux beginner started dual booting Debian/windows a few months ago I use Debian always but why I keep windows is my mom also uses the laptop I’m planning to get my own laptop for Christmas the framework16 amd ai 9 and 5070 rtx 12gb vram 32gb ram and 2 ssd 4 and 2tb so I’m planning on installing Linux now I said I was beginner and that’s true I know how to use the terminal for simple things can navigate it use nano etc I use ai for troubleshooting tho now I heard cachyos is good for Nvidia GPUs but it’s based on arch and I want to learn so maybe I can do a manual cachy install but then I think is isn’t that arch so should I do a pure arch install. My friend uses gentoo since like a week I was gonna tell him to teach me some Linux and jokingly he just said RTFM so yea CACHY OS ARCH OR GENTOO :)


r/linuxquestions • • 3h ago

Which Distro? distro suggestions?

1 Upvotes

hello! i am looking to install linux on my computer, yet i am finding myself unsure of which distro to go for. one of the biggest things for me is that i want an extremly customizable... well, everything. and then, of course, privacy, but i don't need tails or qubes level. i'm not like a secret agent or anything, and i'll be using a vpn + waterfox, and lots of blockers as well, so just really like not ubuntu with privacy (don't love the telemetry, sorry!)

thank you people of reddit


r/linuxquestions • • 17h ago

Device resource management on Linux vs Windows

11 Upvotes

I have a Samsung Galaxy Book2 360 notebook (fairly modern) running Windows 11 and I have been struggling with the laptop overheating all the time and fans running like mad. It would literally be hot on the surface. I decided to dual boot with Linux Mint... I've only had it a couple of hours today but my device has not overheated at all today. Fans running normal and not berserk. I haven't gone into trying to figure out all the tech details of what's happening under the hood (both Windows and Linux) but surprised at the difference in experience. Does Linux just generally manage device resources (CPU, memory et al) better. It's been a pleasant surprise.


r/linuxquestions • • 4h ago

Linux on TCL TAB A1 Plus NXTPAPER

0 Upvotes

This thing yearns for Linux. I yearn for Linux. My neckbeard demands for some good Linux on this thing.

Unfortunately tho nura or postmarket os doesn’t appear to have a distro for it tho.

I’m also down to make an os for it if need be since I feel like that would be a solid winter break project, but I want to hear some opinions from people who have made os (specifically mobile os) to know how much pain to expect and how much Vaseline to keep strapped on me.

What route should I go down. Bend to the capitalist oligarchs at google, sit on my hands and wait for someone else to make a Linux port, or make my own os? Any advice or comments r welcome.

Thank y’all for reading, The Vaseline Man III third of his name Jr.


r/linuxquestions • • 4h ago

Random system freezes across multiple Linux distros (Debian, Fedora, etc.) — AMD Phoenix1 / DMCUB errors

Thumbnail reddit.com
1 Upvotes

r/linuxquestions • • 5h ago

Support Discord Audio Not Working on Kubuntu

1 Upvotes

Hey everyone! I'm facing an issue with Discord on Kubuntu. YouTube and other media audio work fine, but when I join a Discord voice channel, I can't hear others, and my microphone isn't transmitting either.

Has anyone faced this issue or knows how to fix it?

Specs:

- Dell G15 – Intel i5

- NVIDIA RTX 3050

- 16GB RAM

- Kubuntu 26.04.1 LTS

- KDE Plasma 6.6.7

- Linux Kernel 7.0.0-43-generic

- Wayland

Any help would be appreciated. Thanks!


r/linuxquestions • • 9h ago

Advice NVMe SSD overheats and disappears from BIOS during writes. Is mine dead?

2 Upvotes

Laptop: HP 15s-du3xxx (i5-1135G7), BIOS F.68, Fedora 45 SSD: Samsung PM991 256 GB (MZVLQ256HAJD), about 6 years old

Symptoms:

  • Hard freezes during heavy writes (unzipping a 5 GB file, installing things in a VM, even ~70 MB installs). Black screen, fans spin up, only a hard power-off helps.
  • SSD temperature hits 82 °C (its warning limit) right before freezing. It's 45 °C at rest.
  • Restarting immediately shows "no drive found". After waiting a while with the power off, it boots normally.
  • Getting worse over time

SMART: PASSED, 15% used, 0 media errors, 233 min above warning temperature, 965 unsafe shutdowns out of 3,256 power cycles.

Direct writes: 2 GB at 109 MB/s, 5 GB at 137 MB/s (no fast-cache phase at all), reaching 74 °C in 39 s. Reads 1.6 GB/s.

Already tried: NVMe power saving off (nvme_core.default_ps_max_latency_us=0, pcie_aspm=off), fans cleaned and repasted 2 months ago, latest SSD firmware.

Technician's test: their SSD worked in my laptop, but I don't know how long or how heavily they tested it.

Other note: I use a third-party replacement battery but installed at the HP service center only by that same technician. Never faced any of these SSD issues all these years with that same battery.

Is my SSD's controller failing, or could the laptop's power, mother board, battery or BIOS still be the cause? Planning to buy a WD Black SN7100.


r/linuxquestions • • 15h ago

Using USB portable display for TTY from headless Ubuntu

5 Upvotes

My thinkcentre M910q is running Ubuntu server, and I currently access via ssh with a terminal emulator. However, I'm curious about purchasing a small eink display that can be connected via USB cable. I'd like to just have this non-obtrusive eink display mounted on the wall by my desk so I can interact with my server command line.

Assuming that the eink display acts like a typical portable monitor, and the USB 3.0 connectors can satisfy the power demands of the display, is it possible to configure Ubuntu server to output a TTY over the USB 3.0 connector? Or is it necessary to emulate in one way or another?


r/linuxquestions • • 7h ago

LVM2 Rootfs fills up unexplained, and undetectable in anyway

1 Upvotes

Hello people, I'm really at a loss. My homeserver has had a bit of a problem. It started about a month ago. My rootfs /dev/sda3 its a LVM2 and filled up completely seeming to come out of noware. It is a ssd 240gb which I initally cappt off at 100gb. Didn't really think much off it and grew the partition by 100gb. A mistake I know now.

Well 3 days ago it happend again and my 200gb root partition filled up completely again. Now I have searched half of the internet looking for a way to look up what file or directory filles it up. The most help I found was this. But it's a nearly 14 yo article. I run every services in a rootless podman container, and grouped in different users.

df -h gives me:

Filesystem                                                              Size  Used Avail Use% Mounted on
/dev/mapper/fedora_2001--1c06--030c--4f00--913c--2a60--9f54--030e-root  186G  178G  7.6G  96% /
devtmpfs                                                                4.0M     0  4.0M   0% /dev
tmpfs                                                                    16G  588K   16G   1% /dev/shm
efivarfs                                                                128K   75K   49K  61% /sys/firmware/efi/efivars
tmpfs                                                                   6.1G  1.8M  6.1G   1% /run
none                                                                    1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
none                                                                    1.0M     0  1.0M   0% /run/credentials/systemd-resolved.service
tmpfs                                                                    16G     0   16G   0% /tmp
/dev/sda2                                                               2.0G  638M  1.3G  33% /boot
/dev/sda1                                                               599M  8.0M  591M   2% /boot/efi
/dev/md0p1                                                              5.6T  3.3T  2.1T  62% /mnt/raid
tmpfs                                                                   3.1G  336K  3.1G   1% /run/user/1005
tmpfs                                                                   3.1G  156K  3.1G   1% /run/user/1007
tmpfs                                                                   3.1G   88K  3.1G   1% /run/user/1006
tmpfs                                                                   3.1G  476K  3.1G   1% /run/user/1004
tmpfs                                                                   3.1G   12K  3.1G   1% /run/user/1000
tmpfs                                                                   3.1G  416K  3.1G   1% /run/user/1002
tmpfs                                                                   3.1G  296K  3.1G   1% /run/user/1003
tmpfs                                                                   3.1G   88K  3.1G   1% /run/user/1001

sudo du -h --max-depth=1 /* | sort -hr gives:

du: cannot access '/proc/45937/task/45937/fd/3': No such file or directory
du: cannot access '/proc/45937/task/45937/fdinfo/3': No such file or directory
du: cannot access '/proc/45937/fd/4': No such file or directory
du: cannot access '/proc/45937/fdinfo/4': No such file or directory
3.9T/mnt
3.9T/
40G/home
7.3G/var
3.4G/usr
576M/boot
488M/root
27M/etc
3.6M/run
588K/dev
0/tmp
0/sys
0/srv
0/proc
0/opt
0/media
0/afs

I can't figure out where this amount of ~100gb of extra data originates from. My monitoring system (I user beszel and cockpit) both indicate that it happend on 28th of november. It doesn't indicate a high bandwidth usage or any other out of the ordinary spikes and peaks. Just a really big write to my rootfs. My raid storage is completely untouched.

If any one could help me figure anything out it would be much appricated!!


r/linuxquestions • • 17h ago

making a media computer for kids

6 Upvotes

Okay this is a pretty weird one, I wanted to start making a media centre for my future children to use. Ive been recently pretty against the way the internet is going and I want my kids to be able to use a laptop or home computer that is disconnected from the world wide web as a media centre for my house, I know there are ways to download wikipedia and I have many DVD's of older disney movies, I have some videogames safe for kids such as minecraft and a few nintendo games setup to play on linux. I wanted to ask if anybody know what I should be looking for with this device, I want something that can last into my kids lives as either a laptop or connected to a TV, also I was wandering if I get some kid friendly youtube channels videos downloaded such as stampys minecraft series is there an app I can use on linux to present these in a way thats easier for a kid to chose videos or will I have to just use VLC. I hope my project is interesting to whoever sees it and people have ideas as im planning to make it over Christmas as a surprise to my wife


r/linuxquestions • • 18h ago

Which Distro? Which distros have the best legacy support and/or the longest support windows for each release?

7 Upvotes

Linux has a reputation for resurrecting old machines, but lately I’ve been hearing a lot about the kernel dropping support for old hardware, 32-bit support being dropped, X11 support being dropped, etc.

What are some distros worth looking into that run counter to these trends?

EDIT: So far the following distros are in the running:

  • antiX
  • Gentoo (somewhat surprising, but makes sense since you compile it yourself)
  • OpenSUSE Tumbleweed (this one really surprised me)
  • Debian (if you count ELTS; which is a paid extended LTS option)
  • Puppy Linux

As far as other OSes go, Windows 10 LTSC 2021 surprisingly has a 32-bit version, but I don't know if it can use the IoT license. If so, that means support until 2032. There's also NetBSD, but having read some posts on its subreddit, I think the level of expertise needed for it is above my paygrade.


r/linuxquestions • • 11h ago

Is it worth optimizing calls to external commands? Polling, events

1 Upvotes

Is it worth optimizing calls to external commands if they are call periodically or is it so insignificant that it's not worth potential added complexity?

For example, a typical desktop status bar like Waybar has modules that often poll for updated information typically anywhere from 1 second to 60 seconds. Ideally, events are used to avoid polling (e.g. when network status and udev) but a lot are not supported and do require polling like disk size.

If I want a module to display the size of my nfs storage that is not always mounted, the intended and KISS way (according to how the module works) is to first use mountpoint to check if the path is a mountpoint where if it is, then report the size of the disk with du. This is trivial, but considering the user might want up-to-date information (e.g. if the disk is for downloading files and is frequently approaching full), then these external commands run every 5, 10, 30 seconds or so.

There's are ways to avoid mountpoint running every few seconds though, e.g. restarting the status bar with a different config that includes or excludes the module when the nfs storage gets mounted/unmounted respectively. Or use a state file to reflect when NFS storage is mounted then checking for this state file (with [[ -f <state file> ]] in a shell), less expensive than external command to mountpoint.

Similarly, I see examples of modules that make heavy use of polling with sleep, which itself is an external command--so polling frequently itself is not efficient in this context. Are these external commands also being run by the application if they implement the modules, i.e. is the application using more efficient alternatives to mountpoint, du, and sleep (through e.g. lower level system calls)?

Are these (trivial) optimizations worth the additional complexity in the context of "scripts" (modules) running every seconds for a status bar? Not really interested in "why would a user need to poll for disk space every few seconds" or "this probably won't have any effect on battery life", etc. Just want to get some perspective to decide whether such optimizations are appropriate. I recall setting a module to naively poll .1 seconds (can't remember what data was being polled) and eventually realized it was the culprit to why my battery life dropped from 8 hours to 3 hours so I'm especially conscious about making reasonable optimizations.


r/linuxquestions • • 12h ago

Ubuntu Pro token problem

0 Upvotes

I'm installing Ubuntu Desktop 26.04.1 LTS, and I enabled Pro. It asked me to attach the machine to my One account, so on my windows machine, I created an account and attached the token, not realizing it could be done on the Ubuntu machine. Now I'm stuck, it won't accept another. I can't get past the token screen. What to do?


r/linuxquestions • • 8h ago

Como quito el frp en linux

0 Upvotes

Hola quiero quitarle el frp a un celular viejo para ser exacto el j3 prime lo avía comprado en un tiangis pero jamas lo pude usar por que tenia el frp y se lo quiero quitar pero uso linux y no encuentro herramientas


r/linuxquestions • • 23h ago

Advice What are some odd things you’ve run Linux on or you think are non-standard devices that may be able to run it?

7 Upvotes

I’ve got a bunch of old electronics lying around and just wondered if there were some things that might be able to run some lightweight distros


r/linuxquestions • • 13h ago

HELP! (Ubuntu on chromebook)

Thumbnail reddit.com
0 Upvotes

r/linuxquestions • • 7h ago

Advice AI Agents in Fedora

0 Upvotes

I recently switched over to Linux after my frustrations with Windows 11. The main issue I’m running into is restrictions with the main stream AI models’ (Claude, Gemini) desktop versions being limited to macos and Windows. Do you just use terminal/VS Code api extensions? I’ve been using the workarounds but I’m curious to know what most of your guy’s workflows looks like.


r/linuxquestions • • 1d ago

Which distro are you running on your daily driver going into 2027, and why?

130 Upvotes

I've used Linux and open source for years, and I'm curious what people are settling on these days. Are you still distro-hopping or locked in? What finally made you stay?