Linux

49036 readers
794 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
2
3
4
 
 

I was recently intrigued to learn that only half of the respondents to a survey said that they used disk encryption. Android, iOS, macOS, and Windows have been increasingly using encryption by default. On the other hand, while most Linux installers I've encountered include the option to encrypt, it is not selected by default.

Whether it's a test bench, beater laptop, NAS, or daily driver, I encrypt for peace of mind. Whatever I end up doing on my machines, I can be pretty confident my data won't end up in the wrong hands if the drive is stolen or lost and can be erased by simply overwriting the LUKS header. Recovering from an unbootable state or copying files out from an encrypted boot drive only takes a couple more commands compared to an unencrypted setup.

But that's just me and I'm curious to hear what other reasons to encrypt or not to encrypt are out there.

5
 
 

SOLVED

Edit: Solved using workaround of creating a systemd service that disables GPP0 wakeup: https://forums.linuxmint.com/viewtopic.php?t=364220&start=20


Hey everyone!

The suspend feature has never worked on my system, so I always turned it off in the settings. But now, with the electricity prices going up in my country (we have the most expensive electricity in Europe, lol), I figured it’s a good time to tackle this.

When the system tries to go into sleep mode, it just wakes up right away, and the monitors don’t show anything (no signal). I’ve got a backlit keyboard and an RGB mouse, but they don’t light up during this, and the caps lock key doesn’t respond when I press it.

I’m on kernel 6.12.7 and I updated the BIOS a few days ago, but the problem is still there.

My hardware:

  • CPU: Ryzen 5 5600
  • MOBO: GIGABYTE B550 GAMING X V2 (rev. 1.3)
  • GPU: RX 6700 XT
  • PSU: SilentiumPC Supremo M2 (600W I guess?)
  • CASE: be quiet! Pure Base DX500

If anyone has any ideas on how to fix this, I would really appreciate your help!

6
 
 

Hi,

I would like to pass the arguments to apt trough a .sh script.

apt install "${1}/opensnitch_${1}_amd64.deb" "${1}/python3-opensnitch-ui_${1}_all.deb"

so for example if I launch test.sh 1.6.5 the script should run apt install 1.6.5/opensnitch_1.6.5_amd64.deb 1.6.5/python3-opensnitch-ui_1.6.5_all.deb

but it's not wokring it pass to apt only 1.6.5 and not the rest of the string... any ideas ?

7
 
 

I am trying to restrict access to our workgroup shares so no one can accidentally delete or move them.

Basically /path/to/parent/SHARE WITH TEAM FOLDERS/

The directory in caps is all the different team shares in the company. Hr, sales, etc. the issue we have is everyone has access to the directory with all the shares and from there it’s governed by groups on the acl.

Sometimes users accidentally drag a folder into a different teams folder or deletes a team folder.

I can’t find a way to restrict access so that the groups applied can still have access but restrict delete or moves.

Any help would be greatly appreciated….i might actually cry if something works too.

8
 
 

I have been going strong for 34 days and 5 hours.

You can check by running inxi in the command line or checking the CPU in Mission Center

9
10
 
 

cross-posted from: https://programming.dev/post/24130558

My Win10 work laptop has a network share of a remote windows server. I access it everyday. If i change passwords, i have to remap the share.

I have a linux vm that does the builds for my project. It too has a mounted directory mapped to that remote windows share, using my credentials.

I tried mapping the share in another linux vm but got errors so ended up quitting as it wasn't that important.

However, now i can't access said share in any device, by name or IP address. WTF happened?

The mount command i use in linux is mount -t cifs -o rw,relatime,vers=default,cache=strict,username=my.username,domain=,uid=118,noforceuid,gid=130,noforcegid,addr=10.10.10.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 //10.10.10.10/dir1/dir2 /media/remoteshare, the UID/GID are of the user that runs the builds.

I'd get having errors on mounting the remote share, but i'd expect that to be limited to the local computer i was trying to mount on, not that it would propagate to any device that has this share mapped!

11
 
 

Comrades I challenge you to find the stupidest, most convoluted way to run a Windows app !

The rules are :

  • You start with Windows and end with a Windows app
  • All steps must be different, so no using 4 different VM software

Here is my entry, with a score of 9 beautifully stupid steps :

  • Windows > WSL > WSL Wayland compatibility layer > Linux Wayland session > XWayland > QEMU > macOS > Wine > Windows app !

Can anyone do better ? I'm sure whoever get the highest score will gain eternal fame !

12
10
submitted 1 day ago* (last edited 1 day ago) by Rikj000@discuss.tchncs.de to c/linux@lemmy.ml
 
 

Up till now I've been using only OpenVPN connections.
Which can be integrated nicely in NetworkManager to connect + disconnect from them, through NetworkManager's UI.

However since recently I also need to use Netbird for some connections.

Is it possible to add Netbird as an entry in NetworkManager, for easy connection + disconnection?
If so, how would one go about setting that up?

Or is adding Netbird in NetworkManager not possible,
and is the Netbird CLI/GUI really the only option?

Edit:
It's not possible yet.
First Netbird needs to add Wireguard config support,
see: https://github.com/netbirdio/netbird/issues/2504

13
15
submitted 1 day ago* (last edited 1 day ago) by SpongeB0B@programming.dev to c/linux@lemmy.ml
 
 

Hi,

On my Debian 12 Bookworm ( raspberry pi )

My nftables do not block DHCP packets ! according to this basic rules

nft -y list rulesset

table ip Tip {

	chain chIN {
		type filter hook input priority 0; policy drop;
		ct state established,related accept
	}
	chain chFW {
		type filter hook forward priority 0; policy drop;
	}
	chain chOUT {
		type filter hook output priority 0; policy drop;
		udp dport 67 drop #DHCP
		udp dport 53 accept
		tcp dport { 80, 443} accept
		ct state established,related accept
	}

}

DHCP should be blocked... but it's not as I get an IP from it..

Any ideas ?

Thanks.

14
15
14
submitted 1 day ago* (last edited 1 day ago) by SolarPunker@slrpnk.net to c/linux@lemmy.ml
 
 

I use this HDMI switch between PC and PlayStation4, it seems that PS4 has no problems at all but PC often struggles to get signal back and no longer appears on screen after the switch. Looks like PC can perfectly switch without issue in the BIOS or when I boot in "nomodeset", so it should be something Linux related. I've also tried with my intel iGPU bypassing my RX580 and the issue persist.

My setup:

EndeavourOS (Arch Linux), KDE Plasma, systemd-boot, SDDM, amdgpu, a cheap nobrand HDMI switch with a simple but respectful job to do

Additional notes:

  1. If I manually unplug the monitor's hdmi switch and plug it back in it works, maybe something related to power options?
  2. Maybe I have to load graphics modules earlier at kernel startup? I don't know if they are already like this by default on recent kernels but it's a consideration.
  3. Another hypothesis is that it's BIOS related, I've already tried to set the PCIe GPU as primary. I have disabled secure-boot and fast-boot to use the distro.
  4. Thanks for any advice, in these days I will also try other consoles and devices, I will update this post.
16
 
 

We all know this. We need to do a specific task and with the help of the internet we find a specific tool alongside command line parameters to do the job right from the shell.

What is a good way of collecting/documenting these snippets on your own for future reference and use? Just a text file in the home folder?

17
37
submitted 2 days ago* (last edited 2 days ago) by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
 
 

Changes:

  • Add Ctrl+N shortcut for creating a new bottle
  • Add Shortcuts window
  • Remove support for the runtime sandbox
  • Add mnemonics in main menu
  • Polish and rework the new bottle dialog
  • Polish and rework the environment variables dialog
  • Fix CSS warnings in the terminal
  • Fix bug where Bottles would not start when running the --executable flag in the terminal

Dev Release Notes

  • fix[close #3599]: CLI no longer works when starting a Bottle by @jntesteves in #3605
  • Use GtkButton for donate button by @TheEvilSkeleton in #3603
  • Add keyboard shortcuts dialog by @TheEvilSkeleton in #3588
  • Integrate pre-commit by @TheEvilSkeleton in #3592
  • Use FileDialog for all file/path pickers by @penguinpee in #3554
  • Delete sandbox and runtime, and clean up directory structure by @TheEvilSkeleton in #3615
  • Fix missing combo letter when removing a drive by @EmoonX in #3616
  • Save pre/post-scripts paths with None instead of "" on reset by @EmoonX in #3620
  • window: Add mnemonics in primary menu by @TheEvilSkeleton in #3665
  • Rework New Bottle dialog by @TheEvilSkeleton in #3653
  • Fix forums link by @Qronikarz in #3672
  • Start "Add Shortcuts" dialog at the root of the bottle by @XBagon in #3688
  • Rework Environment Variables dialog by @jntesteves in #3679
  • bottle-row: Port to AdwWrapBox by @TheEvilSkeleton in #3700 ___
18
 
 

Just wondering since I know a lot of people quietly use a screen-area-select -> tesseract OCR -> clipboard shortcut.

  • I separate subjects of interest into different Firefox windows, in different workspaces -- so I have an extension title them and a startup script parse text to ask the compositor to put them in the correct workspace (lets me restart more conveniently).
  • I have automatically-set different-orientation wallpapers for using my 2-in-1 depending on whether I use it in portrait or landscape (kind of just for looks, but I don't think if anyone else adds a wallpaper change to their screen rotation keybind).
19
 
 

like not doing anything, just a spare laptop in case i ever need one, what if i use it years after i installed debian on it?? i would have to update like 300 packages and would take a lot??

20
 
 

I came across this old IBM screen saver on a old machine and thought it was pretty cool. I set it up on my work laptop, but not Im curious if there are any cool linux or other screen savers you guys know?

21
 
 

cross-posted from: https://lemmy.ml/post/24744907

I rewrote some popular games for the terminal! You can play 2048, the snake game, tic-tac-toe, connect 4, and many more.

There's still a bunch of games to be made, so feel free to contribute :)

All contributions are welcome!

22
 
 

I'd learned about this last week, and this stuff is a bunch of Wikipedia searches so forgive me if I miss anything :]

Similar to git master and whitelist/blacklist having addressed racist origins, I've just learned that "ricing" -- i.e. way-far-from-default, colorfully souped-up *nix customizations -- came from a derogatory word for Asian "riced out" cars.

(click to enlarge spot where I came to learn about this)


Example in the lemmy.ml/c/linux community.

The linked Wikipedia article doesn't list *nix ricing specifically, but it's probably not a far reach -- for example, tech's master-slave came from cars too.


Now I'm not here to start a debate on whether the term itself is bad. The arguments are done to death and predictable (old thread~hope~ ~I~ ~can~ ~link~ ~here~). Rather, I posit that we could probably invent a new term if we forced it hard enough.

For example, 4chan forcibly invented the use of the ok hand for "white power", as a collective prank (Wikipedia).

Further, Tumblr invented 'then beg' as an insult response to 'I beg your pardon/to differ'. (click to enlarge)

Based on Pukicho.

So why can't Lemmy invent something too?

Here are some earlier takes. (click to enlarge for source, but they are listed below anyway)

I surmise it has to be (1) somewhat unique and (2) short and nounable/verbable.

  • Customization doesn't fit -- it's too broad. Changing the wallpaper is a customization -- diagonalizing your screen is a rice (term to be replaced...).
  • Bespoke doesn't fit either. That's for a duct-tape script you hack together.
  • Pimping out... is not a good alternative. It preexists^(citation^ ^needed?)^ and has inertia but it's not any better.
  • Souping up... doesn't roll off the tongue so much. But it's food-related (and thus not far from "rice"). Though I can't see myself saying "Yo, check out this epic soup."

Brainstorming welcome :P

23
 
 

I bought a laptop with windows 11 instaled in its 256gb nmve ssd. I want to install linux but I want to first create an image of the ssd and store it in an external 4tb ssd with a ext4 filesystem (that I use for different backups) so in case I want to sell the laptop later I can restore windows 11 to the same ssd from the image. So what i'm planning to do is:

  • dd if=/dev/drive_device of=external_ssd/images/windows11.img

for creating the image and swapping if and of for restoring. My question is if creating the image of a drive with a windows 11 filesystem and storing it in a ext4 filesystem is possible or can have any issue. I ask this because I read that in the case of cloning the target drive will end up with the filesystem of the source drive in case they are different, which caused me some hesitation.

24
56
submitted 2 days ago* (last edited 2 days ago) by narr1@lemmy.ml to c/linux@lemmy.ml
 
 

Hello all,

So I have this old Samsung RV520 laptop. You can see the specs there. I've installed and reinstalled a few different linux distros on it for the past 12 years or so, the last one being Arch (btw) which is what I use as my daily driver on my main desktop as well (by the btw). But I really don't need this laptop anymore, so I was thinking I'd give it as a birthday present to my friend's son, who turns 2 this month. It would be used as a "media station" to basically just play kids' videos from Youtube.

The problem is that I basically need to install an extremely windows-like (or otherwise simple) distro on it, because while my linux-fu is somewhat high level, my friend uses windows daily so system maintenance must be simple. Ubuntu is for me the obvious choice, but I'm not sure if the laptop can even run it anymore :D of course the HDD in it is also 16 years old and I'm pretty sure I'll upgrade it to an SSD before set up. So, taking all this preamble into account, what would you recommend? Some Ubuntu-derivative, pure Debian, maybe even Arch with linux-lts? Give me your thoughts!

25
358
Immutable Distro Opinions (www.linuxfordevices.com)
submitted 3 days ago by Kroxx@lemm.ee to c/linux@lemmy.ml
 
 

I recently took up Bazzite from mint and I love it! After using it for a few days I found out it was an immutable distro, after looking into what that is I thought it was a great idea. I love the idea of getting a fresh image for every update, I think for businesses/ less tech savvy people it adds another layer of protection from self harm because you can't mess with the root without extra steps.

For anyone who isn't familiar with immutable distros I attached a picture of mutable vs immutable, I don't want to describe it because I am still learning.

My question is: what does the community think of it?

Do the downsides outweigh the benefits or vice versa?

Could this help Linux reach more mainstream audiences?

Any other input would be appreciated!

view more: next ›