Linux

50029 readers
1601 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
1
 
 

For some time I missed the notification icon of discord. I mean the little number in the taskbar icon that appears, when you get a message.

Today I found a fix for it in the archwiki.

You need to have libunity version packaged for your distro installed. For me on debian it was libunity9. After installing it, you get the notification icon again!

2
 
 

Here's the setup:

  • Fedora 41 Server host
  • Libvirt/QEMU
  • Alma 9 guest running ssh

My goal is to forward ports from the guest to the host, but change them. I set up a hook(as in the libvirt docs) and it worked on my last server. My hook looks like:

#!/bin/bash

if [ "${1}" = "Jellyfin" ]; then

   # Update the following variables to fit your setup
   GUEST_IP=192.168.101.4
   GUEST_PORT=22
   HOST_PORT=2222

   if [ "${2}" = "stopped" ] || [ "${2}" = "reconnect" ]; then
    /sbin/iptables -D FORWARD -o virbr1 -p tcp -d $GUEST_IP --dport $GUEST_PORT -j ACCEPT
    /sbin/iptables -t nat -D PREROUTING -p tcp --dport $HOST_PORT -j DNAT --to $GUEST_IP:$GUEST_PORT
   fi
   if [ "${2}" = "start" ] || [ "${2}" = "reconnect" ]; then
    /sbin/iptables -I FORWARD -o virbr1 -p tcp -d $GUEST_IP --dport $GUEST_PORT -j ACCEPT
    /sbin/iptables -t nat -I PREROUTING -p tcp --dport $HOST_PORT -j DNAT --to $GUEST_IP:$GUEST_PORT
   fi
fi

However, when I ssh to my server:2222, it doesn't work, "Connection refused." I can ssh from inside my server to my guest's ip address, so I know it's not an issue with ssh itself. The guest's iptables rules are:

-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

so that's probably not the issue.

My server's iptables rules include:

-A FORWARD -d 192.168.101.4/32 -o virbr1 -p tcp -m tcp --dport 22 -j ACCEPT

, so it appears the forwarding happened, but an nmap scan reveals the port is closed:

2222/tcp closed EtherNetIP-1

I'm baffled by this issue. Any help would be greatly appreciated!

3
28
submitted 8 hours ago* (last edited 7 hours ago) by 3dmvr@lemm.ee to c/linux@lemmy.ml
 
 

What would you reccomend/use for an alienware laptop m17r5 with amdcpu (idr) and gpu 6850mxt. Idc about adjusting the keyboard lights, I changed it once and never touched it again. I play games like cities skyline, noita, etc. and some vr stuff rarely like vtolvr and warthunder. I use blender and houdinifx.
I've seen PopOs reccomended for Blender users but I think thats because it comes with a lot of stuff you need for Nvidia, which isn't relevant to me with an all amd setup.

Cachyos seems to be the move for best performance with rendering and simulating, was wondering about other options I have since I dont need to worry about nvidia drivers.

I dont like the idea of using ubuntu because of snap packages, but its not a big deal.

While I like tinkering, I do want it to be relatively stable, not suprising me with issues when I need it.

Currently Interested in: CachyOs Debian (leaning towards here if I go the stable route) EndeavorOs Mint (seems popular, is it just simplified?)

4
 
 

This is just me celebrating a small win. I've been slowly learning bash scripting, and just now I was able to quickly write a simple bash script to automate a file moving task without referring to my notes or the web!

It's not a super complicated script, I'm just happy I'm starting to internalize the knowledge I've been building.

I've been organizing my media files after ripping our DVD collection. I had all the files for The Smurfs cartoon (love the Smurfs) in the main Smurfs show folder. I wanted to put them all into their respective season folders (Season.XX). Here's the script:

#! /bin/bash

for number in {01..09}; do
	find . -type f -name "The.Smurfs.S$number*" -exec mv {} Season.$number/ \;
done

I could have done it as a one liner, but I like to keep things like this for future reference.

5
6
 
 

Any recommendations for a linux distro that i can set up and be reasonably sure my non techy SO won't break accidentally? The set up doesn't have to be easy it just has to not break once I leave her alone with it. My first thought was popOS.

My plan is to have 2 profiles and not give her access to sudo. I just don't want to have to go into it unless she needs a new program.

7
 
 

Good day nice people.

I, like many I'm sure, am taking Microsoft's discontinuation of Windows 10 support as an opportunity so switch over to Linux. As such, I have some questions about various things. I have included some context as to my personal use case at the end of the post should it be relevant.

  1. Does the distro I pick matter? There seems to be a lot of debate around which distro is best but a lot of the discussion I've seen breaks down to what each distro comes packaged with. This confuses me as if a distro doesn't come prepackaged with something can you not just install it? Or is there some advantage to preinstalled packages other than mild convenience? Are some components difficult to integrate into your local environment?

  2. One of the more salient differences I've seen between distros has been what the various companies and teams include aside from installed packages (such as snap and rolling out amazon search as a defult search), and the data they choose to retain/sell. Part of the reason I'm switching is due to Microsoft's forcing in of unwanted features and advertising. Is the company that owns whatever distro I choose likely to be a problem in the future? Are there particular ones to avoid/ones to keep an eye on?

  3. I am the sort of person who does like to tinker with things from time to time but I do also want to use my computer most of the time so I'd like to end up using a mature distro. I have identified a few frontrunners in my search but I have seen conflicting information on which of them is "mature" (sufficiently stable so I spend less time fighting my computer than I do using it as well as having a large enough community and resources to help me remedy issues I might come across). Do any of these seem like they wouldn't fit that bill? The frontrunners are: fedora, kubuntu, mint, pop and tuxedo.

  4. Does linux have issues interfacing with multiple monitors? Does it handle HDR okay?

  5. In terms of UI and workflow I really don't mind putting in some time tinkering with the DE, exploring it and getting it how I like. It seems Plasma KDE might be good for this? Please let me know if this is an incorrect assessment. If it is, does it matter what DE I choose? If so, is there something you could recommend for my use case.

My use case: I have a Nvidea build (RTX 2080). I have heard this can be an issue with Linux. I also have intermediate experience with linux through university and my job (with servers) as well as tinkering with SteamOS.

Things I use/do on my PC (roughly ordered in terms of priority):

  • Gaming including emulation
  • Firefox
  • VLC
  • Spotify
  • Discord
  • Godot
  • Visual Studio
  • Git
  • Photoshop cs6, audacity, davinci resolve
  • Misc "Tinkering" (Handbrake, dvd burners/rippers, Really any weird thing I come across that I want to tinker with)

Thank you very much for your time and help in cleaing up my confusion.

8
 
 

Following the R4L debacle "you are cancer, you are the problem, we are the thin blue line", another maintainer steps down from the Linux Kernel

9
10
 
 

I'm running KDE on Nobara, and every time I power on my computer, there's something in the clipboard leftover from the previous session despite that setting being turned off. I'm not 100% sure, but sometimes I think that it's not even the last thing I copied. I'd have to make a mental note to check every time.

Is there something I can do to fix this besides the basic system settings dialog?

So far it looks like KDEConnect may be passing my clipboard back and forth between my PC and my phone. I'll have to wait and see how it changes after disabling clipboard sharing.

11
12
 
 

This is from a fresh boot of the system, except sshd I have not started anything else. ram consumption used to be just 126-200 mb now it has jumped so significantly that I am concerned I might have unnecessarily bloated my system:

I intend to use the system as a local server with an optional fully featured WM(Hyprland which is installed, but this screenshot was taken before it was loaded) for occasional use.

Ram conservation is a top priority and I would like to know if such a big jump in usage is normal or are there is something wrong with my system config

13
14
15
39
submitted 1 day ago* (last edited 1 day ago) by eldavi@lemmy.ml to c/linux@lemmy.ml
 
 

my home server needs to be reconstructed and i'm seeking ideas on how to future proof it. here's some ascii art in a screenshot to help describe how it's currently setup:

current server

description (left to right):

  • laptops, smartphones, tables, etc connect to an access point configured on a windows 10 virtual machine (vm). the windows10 vm uses pci passthrough on the wireless adapter and this is done to get gigabit wifi speeds since intel's drivers won't allow linux to do this in ap mode; but will allow it just fine if you're using windows.
  • requests from the wifi clients are passed via dns & ip masquerade to another virtual machine based on pfsense
  • pfsense serves as the router, firewall, vpn, ad blocking & web hosting and it's also configured to use pci passthrough on the primary network interface to gap internet traffic from the server
  • the center of the drawing shows how i perform data backups using a 3 gig wired connection with a hardware switch and i setup the host ubuntu server to manage dhcp on the secondary network interface & the devices that are connect to the switch. the data is stored using rsync and harddrives are setup to use an extremely large lvm made of several different types of hard drives.

i've rebuilt this server multiple times each time i encountered a "gotcha" or a surprise that i had not anticipated and it made some needful component stop working; so i'm seeking advice from Lemmy on how to redesign this to mitigate future surprises.

some of the surprises i've encountered so far are:

  • the pfsense logs overfilled the root volume of the bsd based vm because logrotate was configured for linux. the image is hardcoded with a single volume so i will need to find a way to borrow some space from the backup volume using nfs and configure the logs to write there instead of locally.
  • i have no key for the windows10 vm; so i'm forced to clone it's qcow image and manually configure the hotspot each time the 30 day free trial from microsoft expires. I intend to improve upon this creating an ansible job to rotate this virtual machine every 30 days automatically and include powershell based tasks to configure the hotspot in windows automatically
  • intel limits the speed for linux native internet connection sharing to 100 megabits (already mentioned & fixed above)
  • the local users home volume overfills when trying to take my google backups (already fixed)
  • my cats & dogs LOVE the taste of cat6 capables and cat6 is required for 3 gigabit speeds (also fixed)

constraints:

  • don't spend anymore $$$
  • gigabit wifi speed is A MUST
  • 3 gigabit backups speeds are a must too
16
 
 

Unless I'm using the wrong terms in my search it really seems like there's no tool for Linux that can tell me what processes used the most CPU (typically this has a high correlation with energy usage) in the last hour or 24 hours.

Basically I want something like the Android battery usage app but for Linux.

17
18
 
 

Just posting this since I spent over an hour trying to figure out why I couldn't open my desktop today.. After booting and logging in I got a black screen. Switched to a terminal but did not see any obvious errors in the logs.

Not fixed for Fedora 41 KDE yet, so I installed plasma-workspace-x11 to use in the meanwhile. Anyone who hasn't updated to 6.3 yet could probably change their display settings to not use ICC profiles to avoid it.

19
 
 

or be boring and alias sl=ls

20
 
 

Hey everyone, I am currently tly running openSUSE tumbleweed on my daily driver and I am looking to use ProtonVPN on it. I installed the ProtonVPN GUI from the repos but it's really slow and does not seem to actually work.

I did find I can manually configure it with wireguard but I would prefer a GUI.

Any advice?

21
22
23
24
 
 

screenshot

Jottr is a simple, opinionated, plain text editor I developed primarily for my personal use. It's mainly intended for writers, researchers and journalists or anyone who needs a simple, distraction-free tool for writing. It's cross-platform and can be used on Linux, macOS or Windows. The app is released under the GPL v3 license.

It has the following features:

  • Dark, Light and Sepia (paper-like) themes
  • Focus mode - Distraction-free writing made easy by hiding all UI elements (can be toggled with mouse or a keyboard shortcut)
  • Search for any word without leaving the editor using the integrated web browser
  • Snippets - Save any word or block of text as snippets and quickly insert using mouse or through typing snippet name
  • User dictionary
  • Inline auto-completion for words added to user dictionary
  • Add custom search websites to your right-click menu
  • Custom font for editor
  • Zoom controls

RPM and DEB packages are provided at the project's github page.

Feel free to share your feedback/thoughts.

screenshot2

25
view more: next ›