/r/linuxquestions
A subreddit for asking question about Linux and all things pertaining to it.
This subreddit is for any question pertaining to Linux from beginner to advanced. For general Linux news and info, see /r/linux.
Please try to only make helpful replies to questions. This is not the place for low effort joke answers.
If you find a solution to your problem by other means, please edit and add the steps you used to solve your problem to the bottom of the original post, and edit the flair on your post to [Resolved] (available in the drop-down list).
/r/linuxquestions
Fedora, Budgie desktop.
In Windows you can do this in the GUI. I tried setting up "nitrogen --random --set-auto" either as a cronjob or an autostart, but in either of those cases nitrogen appears to depend upon too many session variables to work when started by the system (I would fix one error and another would come in its place, after about an hour I got too pissed off and quit).
I’ve always heard that X11 will always limit multi-monitor refresh rates to the slowest monitor. Yet my setup has a 60hz secondary and a 240hz primary that I can clearly tell are running at full speed. Mouse movements on my primary would be visibly smoother on my primary, my model of monitor would ghost badly if I had it running slower than 240hz, and games with vsync always recognized my 240hz refresh rate. Is this because X11 is using AsyncFlipSecondaries to synchronize the refresh rates to my main monitor’s, or because I’m using the proprietary NVIDIA drivers? When using the proprietary drivers, nvidia-settings recognizes the refresh rate of my main as 240hz specifically, while my secondary is recognized as “auto” by default unless changed from within nvidia-settings.
Desktop Environment: Cinnamon X11, Gnome X11 Graphics Driver: NVIDIA 550, NVIDIA 560, NVIDIA 565 Graphics Mode: Hybrid Graphics (all video output funneled through Intel iGPU), Discrete Graphics (not PRIME switchable graphics, but an actual hardware side MUX switch)
So ive been beating my head against this damn pi for hours now setting it up for the nth project. Right now im working on a script that writes my Open Hardware Monitor info to a log on my server, i want my raspberry pi to watch the log.
I want the pi to boot then run this command terminator --fullscreen -e "tail -n 35 -f /mnt/jeeshcloud/JeeshLogs/JeeshLog.txt"
Ive tried so many different things, crontab with a zsh file, rc.local file, xinitrc, and the i3 config even!
I just want it to turn on and watch my log.
Looking for an Ubuntu alternative for my media server.
A week or so ago snap decided to override my plex install. Couldn't figure out why plex was detecting "new" media and adding items to recently added that were years old. I then noticed my plex backup script is no longer running as it didn't detect a recent enough plex DB. Further investigation, the path plex is using for the scheduled backup is pointing to /var/snap/plexmediaserver/ instead of /var/lib/plexmediaserver.
edit: prelim searching led me to believe snap could not be disabled, perhaps that is not correct?
Until I had to deal with Snaps, the whole Snap debate sounded silly to me. Now I know that the reason Snaps in Ubuntu are so controversial is because the way Canonical integrated Snaps deep into and throughout the OS makes it impossible to opt out of using Snaps without potentially breaking something. A lot of people have reported successfully purging snapd, and there is even a whole distro out there that is literally Ubuntu without Snaps, but I'm not confident enough in my abilities to be comfortable removing what seems to be a key and core part of the OS.
I'm currently volunteering at a non-profit computer recycling center that refurbishes old desktop and installs Xubuntu 24.04 on each one with a checklist of manual changes made to each one. Would it be possible to either add these changes into the installer itself or create a post install script to automate all of this? Thanks for any assistance!
(These first two can be done manually if everything else can be done in a post-install script). 3. Configure audio CDs to "/usr/bin/vlc cdda://" and video DVDs to "/usr/bin/vlc dvd://" 4. Add icons to the desktop for Firefox, Chrome, VLC, Zoom, a link to YouTube, LibreWriter, and LibreCalc. 5: Set the wallpaper to the default Jammy Jelly jellyfish wallpaper. (Can be downloaded from the Internet or already stored in the same USB as the script.)
I want to write a little startup script for my system and for fish startup and thinking what I might add to it
I'm trying to run a persistence external SSD of parrot so I can work on coding projects and networking experiments while keeping my main system completely isolated. I'm primarily a music producer, so I want to keep my windows system isolated from any issues. When I boot into parrot, I'm met with GRUB and when I type in boot I get an error saying to load the kernel. That's the closest I've gotten. I've tried basically everything at this point. In BIOS, secure boot is off; I've set the drive to USB hard disk; I've changed the boot priority and tried both the default and USB hard disk in top priority. I cannot switch the bios out of UEFI into legacy. I've tried using both balena and rufus and rufus did not offer the DD option. When I flash with balena it doesn't show up in both the windows and MSi boot loader. As I'm sure you all know, windows 11 does not play well with dual booting on the main SSD and I'm not willing to risk bricking this laptop because I'm also using it for school. I know the drive is working properly because I was able to boot into parrot fine on my 2013 Mac Book pro. If anyone has a fix I'd be super grateful.
external 256G mz 7ty2560 ssd
Parrot 6.2 Home
MSi GF63 B12VE thin i7
Windows 11 23H2
Call me dumb, but where in the heck is the start, main screen? I'm new to Linux. I got it downloaded and updated using tips on ubuntu/help. Is there some kind of interface like Windows? Only able to get to terminal screen.
pls help
anyone know of a portable OS that routes everything through TOR like Tails, but is more for everyday use and preferably comes with pentesting tools and stuff like kali does
I have been using Linux for over 20 years. I have primarily been using Red Hat derivatives. Those distributions come with the rpm or now with the dnf package manager.
I have had cases where I wanted to do an entire system verification and this is really easily done with "rpm -Va". It tells me what all files have been changed since installation.
What is the Debian equivalent where it just verifies the entire system? Thank you.
Okay, so I'm just trying to set up this old laptop for a friend, a Dell Latitude 3460 (BIOS Version: A11), and at first, everything seems fine. I'm able to boot to a USB stick (shows up in the BIOS just fine) with Linux (tried several, currently working with Debian 12). I'm able to boot to the drive see the Debian 12 boot menu and boot the live OS. From there, I can see that the hard drive is there, just as it should be (/dev/sda
).
From this live disk, I'm able to get through the entire install process, so that hard drive DOES have Debian 12 on (tried both MBR
and GPT
), it, which I can browse to in the file system! However, no matter what I do, the BIOS won't see the hard drive and boot to it?! UEFI, Legacy, tried all the options, but the internal HD never shows up.
Does anyone have any grub magic or kernel options that might work to get the freshly installed Linux partition visible to the BIOS?! Thanks!
hello everybody, I'm a 16 y/o cs student and I'm interested in learning ethical hacking and cybersecurity. I've already learned something with Kali Linux like password hacking but I want to learn more. I see that everyone out there suggests to learn Linux before diving in security, but I already know it and I use linux distros on my devices, so I decided to ask you what should I do. Thank you in advance for your help
I have intel 7 and rtx 3070
And other stuff i cant remember but those 2 i heard cause problems, if i want to go linux, would it be better to just wait like 5 or 7 or idk how many years for a new pc build and buy amd and stuff that specifically for linux or is it not that bad with nvidia?
Also what doesnt work on linux? Steam? Blender? Antivirus (bitdefender yearly subscription)
Is there a site or app that checks my pc to see what wont work? isnt there a list somewhere i can look up myself?
I used to like windows 7, then i was pissed when they killed it, then i started to notice how much better it could be with out following trash evil corporations
Switched from google to brave browser with duck duck go search and omg is so much better
Went from gmail to proton and omg its so much cleaner and smoother
Went from straight to gae- wait no
I’m looking for a laptop with build quality similar to a MacBook, including an excellent input experience (such as a Touch Bar or similar alternatives) and a high-quality display. It must have full compatibility with Linux without driver issues or functionality limitations. I’d like multiple options across different price ranges so I can choose the best one for my needs.
Ive got a victus and I made a new drive E with 150 gb exfat
When in the installation it tells me that theres one disk available with 5.3 mib free, which Im guessing is the D drive
Ive browsed different forums and many say that its because the storage mode is in raid when it needs to be in ahci, problem is here it says that you cant do that
I havent been able to find other solutions so far, can anyone help?
Specs: https://pastebin.com/nmUqutqZ
Video of issue: https://streamable.com/yl3xr9
I'm getting these flashing colored rectangles all over the screen in Final Fantasy XIV. Doesn't seem to happen in other games. I've tried Witcher 3 and Marvel Rivals. I've disabled FreeSync in both the OS and on my monitor. I've reinstalled the game, tried various versions of Proton (including some custom ones in XIV Launcher). On my old PC with the same GPU (7900xtx), I never encountered this issue (running Kubuntu then). The same issue is not present on the same PC while running windows, which is installed on a separate physical drive to Nobara.
If anyone has any insight, it would be appreciated.
I recently started to work at a large organization and I have been provided a secure remote VM (ubuntu) where we can do our build.. Right now I'm using VS code to Ssh and use it to code. The thing is, the code base is fairly large therfore surfing through the codebase is slower and LSP, intellisense are not working. I know terminal editors like Vim is the fastest way. But I can't install plugging or neo Vim there..
What do you suggest me to have VS code like feature.
Completely new to Linux, but Im pretty ok with following directions. So far got everything installed updated, got Jellyfin up and running, installed samba and created a share. So here is the question. I have an internal drive where my media is located. Which I mounted to a root /mnt folder to get Jelly to see it. I also want to store my files on that same drive but how to I map that specific folder to the share I created with Samba? I’ve tried several things but instructions that I have found have not been great. Thank you so much.
Hi. I've ncftp
in my Alpine machine and primitive ftpd
on my android device. "Normal" ncftp
works perfectly with commands like ncftp -u user -password ftp://XX.XX.XX.XX:portnumber
, but if I try to do a ncftpput -u user -p password -P portnumber ftp://XX.XX.XX.XX remotefolder/ ./localfile
it just tells me "unknown host". In every example that I see, ncftpput
works with a URL and not an IP address, but still seems weird to me and I don't think I've read anywhere that it shouldn't work that way, but I may be mistaken.
I'd really love to use the ncftpput & ncftpget
commands for scripting and automatically backing up some of the files on my phone (I know that there're probably other options, but I love the simplicity of it and using a standard unix tool across devices).
Any ideas of what might be the problem? I appreciate any help.
I just started using Linux as my main OS. A while ago i was dabbling with it a bit and there was this website that let me remote acces a linux server and there were challenges to do that got increasingly harder. Every passed challenge revealed me with a new adress to connect to the next one.
I just cant for the life of me find the site i was using. Did they take it down or am i just blind? Is there an alternative?
Hello I wanted to know your thoughts of how to solve the design problems in Linux.(and I don't mean a philosophy like simple tools or simple bruh.. or customization) What I mean is the UX and UI of the default application and desktop environments a user would face. Like what can be a solution to this bad UI/UX problem or it can't be solved due to fragmentation of resources and ideas (just the nature of the way open source is). I doubt a single man contribution will solve that
Basically, I haven't learned linux yet. Partly because my main system hosts my games in windows 11 and I've heard dual booting with windows is a joke. Secondly, my laptop right now is an M1 Mac. The screen is looking so bad right now that I'm in the market for a new laptop and wanted to take advantage of an x86 processor to finally learn linux on my new laptop.
I was looking around and found the new ultra core 200 series from intel very good -- even matching macbook battery life in some cases -- and thought that I would pull the trigger on it.
Are linux drivers for intel and Xe graphics polished, if so, what laptop brand is the most compatible hardware wise with linux?
I would appreciate any help thanks in advance!
I wanted to change the resolution on my NVIDIA and Arch Linux Powered Laptop (Open source) so I can play Minecraft with shaders at a much more reasonable frame rate (from 100 to 150 on windows on an empty world), but, when I went to change it, I had no options. only to change between 60 and 240 hz. I would rather not use xrandr via terminal just because I am scared I am going to make my laptop stuck on a blackscreen, but I will do It if you guys are certain that It wont do stupid stuff. And I also want to be able to change the res thru the gnome and kde settings. (BTW, when I freshly installed Arch, before I got the drivers, it did let me change it, but it was stuck at 60hz if on lower resolutions)
Also, my screen is 16:10 with max res being 2560:1600
This is the full code of the program in question:
listSTR=(
'str ab str'
'ab'
'word be period'
'ka ab be js'
)
pattern="^.*[abe]{2}*.$"
for i in "${listSTR[@]}"; do
echo -n $i", ";
[[ $i =~ $pattern ]] \
&& echo "Match" "${BASH_REMATCH[0]}" \
|| echo "No match";
done
#Desired Ouput:
# ab
# ab
# be
# ??? [1]=ab [2]=be
The eventual purpose is to traverse lines in a text file, and see if each lines has a matching pattern, e.g. in time format HH:MM:SS
.
I'd also like to utilize things like 'Parameter Expansion', to get the substring position of the matching regex, and fully truncate it. This would be useful for things like media filenames containing extraneous 'information' like seek time/video time position.
$BASH_REMATCH is displaying the entire line, instead of the substring regex that triggered true.
I'm aware I could convert each line to a sub/temp-array, and then see if each element matches the regex. But this raises potential problems of variable delimiters, e.g.: comma instead of space.
Is there any way to find all the ports opened by my processes when I do not have root privileges?
ss -ltupn | grep [my_info]
does not seem to work because ss -ltupn
almost never reports which process opens the port.
Background: on a multi-user system, opening a port, even on localhost, can be a security risk. So I want to find out.