r/linuxquestions • u/Ok_Heat8254 • 11h ago
r/linuxquestions • u/TuxLibertario • 12h ago
Arquivos .bash_history-XXXXX.tmp permanecendo no diretório pessoal.
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 • u/CarrotOne5284 • 12h ago
Support Discord Audio Not Working on Kubuntu
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 • u/PrestigiousHoney9480 • 7h ago
Which Distro? Cachyos, arch or gentoo
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 • u/WetmoisttySocks • 4h ago
Which Distro? Which distro suits me?
Im a student cyber security associate.
Im new to linux and im searching for a distro.
I want to use kali-linux to dual boot etc but i heard that kali isn't meant for for dual boot so im searching a distro that feels like kali so i can learn myself linux.
Sorry for my bad English im from EU
r/linuxquestions • u/UsernameWhole6854 • 22h ago
Using USB portable display for TTY from headless Ubuntu
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 • u/mr_bigmouth_502 • 1d ago
Which Distro? Which distros have the best legacy support and/or the longest support windows for each release?
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 • u/Late_Worldliness_681 • 14h ago
LVM2 Rootfs fills up unexplained, and undetectable in anyway
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/1001sudo 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/afsI 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 • u/NumberNo2031 • 1d ago
making a media computer for kids
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 • u/mindstormer12 • 18h ago
Is it worth optimizing calls to external commands? Polling, events
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 • u/Professional_Fly6407 • 19h ago
Ubuntu Pro token problem
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 • u/No-Exam-8660 • 15h ago
Como quito el frp en linux
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 • u/DrunkAndUnaware • 1d 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?
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 • u/EstablishmentDue7326 • 20h ago
HELP! (Ubuntu on chromebook)
reddit.comr/linuxquestions • u/Appropriate-Cat569 • 14h ago
Advice AI Agents in Fedora
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 • u/hersoncruz • 1d ago
Which distro are you running on your daily driver going into 2027, and why?
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?
r/linuxquestions • u/oui-systemes • 1d ago
What about Linux for Families and Kids / pour familles et enfants
I've read some of the posts here and there ! about linux for kids ... linux for old computers
I had a look to endless os, edubuntu, a few others ...
I had in mind a project I tested years ago Kano Os which was running on raspeberry PI.
Anyway didn't find what I was exactly looking for. I wanted to setup an old computer for my daughter, I gave it to her a few years ago, it was running an older version of windows and couldn't be updated (over 10 years old). The computer was running so slow, and I remember parental control was a nightare to setup.
Which way did you go for your kids ?
Et pour les français qui me liraient quels choix aviez vous fait pour une interface en français ?
r/linuxquestions • u/EdgarAllanPin • 1d ago
Trust GXT 970 Morfix on Linux
Hi folks!
I got myself this mouse model and am struggling to get it to work on Linux. I'm only now really dipping my toes into Linux, so I'm still scouting and getting everything to work before potentially making the jump and this is the first road block. The mouse driver to configure it is Windows only. Now, Steam's Proton (magic) was able to install it and run it, but the program does not see the mouse despite the mouse being connected.
Since I'm honestly sure the program would work if it could just. See. The mouse, does anyone know of a way to sort of "point it" into the right direction? The only open source Linux driver someone (a user on GitHub called fgonga) made by reverse engineering the Windows one is Portuguese and is missing a good amount of features. Sadly, it no longer seems active either.
If anyone knows of a different program that can properly interface with this specific mouse, I would be happy to hear about it too.
Thanks in advance!
Edit: since this mouse model is capable of remembering its configuration, and since I do not need to change it often on the spot, using a virtual Windows 10 machine with USB passthrough in VirtualBox worked. I was able to configure it using Trust's own software.
r/linuxquestions • u/ChucklesArt • 1d ago
Which Distro? Good distro for HP 2 in 1
Hello all. I have an old HP Spectre x2 12-C012DX that I'm hoping to use with linux. It's been collecting dust because of some damage that came to the screen and some swelling that came to the battery, but I'm finally replacing those things and figured it'd be a good place to start experimenting with Linux.
My dream would be to match the 2 in 1 experience, but most important to me is that it supports a stylus as I originally bought the machine for art programs on the go.
Bought refurbished and unable to verify right now, but the specs according to the listing are
360 GB SSD
8 GB RAM
7th gen intel core i7 processor
Intel iris plus graphics 640
Is any of what I'm hoping to do possible with linux or am I looking for a lightweight distro and using this bad boy for a home server or something?
Thank you all for your expertise!
r/linuxquestions • • 1d ago
Advice What do people being a little bit tech savvy do with Linux nowadays?
So I'm in that situation, not a hardcore nerd but not completely unaware either, I used Linux in the past most for experimentation and similar projects (Raspberry with Retropie for example) though I feel I didn't completely make use of all of its functionalities.. Just want to have some nice distro and something to do with it to regain some nerds roots :)
r/linuxquestions • u/Common_Tomatillo8516 • 1d ago
For bare bone linux users with Openbox/Debian: a small script to check / install updates
reddit.comr/linuxquestions • u/varithmetic • 20h ago
Advice Wayland or X11
I have been using linux for quite a while now, for around 2 or 2.5 years at this point. In my initial days of linux, I didn't bother which display protocol to use (and used wayland and x11 interchangably). Then I was sucked down the rabbithole of linux ricing and I used x11 from then on. used bspwm, i3, etc before eventually settling on dwm a while back. Ever since then I have been using dwm because, well, it's "suckless". You just edit a single file, give it a few patches, compile it and youre good! And the small code makes it easy to do whatever the hell I want. But i've come to the realization that I haven't really been using the tiling as intended, and am now planning on exploring alternatives. So, give me some good reasons as to why wayland > x11 (or perhaps why x11 > wayland), and perhaps recommend me some WMs along the way.
TL;DR if i am a x11 user, why should i consider wayland?
r/linuxquestions • u/Confident_Expert877 • 1d ago