Linux

47941 readers
1093 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
101
30
submitted 1 week ago* (last edited 1 week ago) by N0x0n@lemmy.ml to c/linux@lemmy.ml
 
 

TIL something new... My hate for MacOS took over common logic. 2.8GB, 3 seconds file transfer on USB was to beautiful to be true. After some further investigation and hints from @JonnyRobbie@lemmy.world @nanook@friendica.eskimo.com I learned that Linux writes to cache before writing it to the device, to see whats happening in the background: sync & watch -n 1 grep -e Dirty: /proc/meminfo.

Still, the transfer speed on Linux was slightly faster than on MacOS. My rant was unjustified, It just my fault for being clueless on some more advanced Linux stuff. But I learned something new today, so this post was actually helpful !

Howerver, I still hate MacOS and will probably give Asahi remix a try.

Thanks to everyone !


Hey guys ! I'm getting tired/bored of MacOS' shenanigans... Yesterday was the last drop that make me think of trying an alternative.

While trying to upload a 2.8 GB file over to an USB-C stick it took like 8 minutes? Okay that's "good" enough if you only do it from time to time... But 25 files takes literally 1h30min... Are we in 2001?

I mean the exact same 2.8GB file, with the exact same USB-C stick took FU***** 3 seconds on Linux !!

Ohh and don't think I didn't tried to "fix" the issue, after a long search on the web I came across a lot of people having similar issues that aren't fixed since 2 major updates? With a total radio silence from the shiny poisonous Apple...

Among other things I tried:

  • Disable Spotlight indexing sudo mdutil -a -i off
  • Reformat the USB stick from Mac
  • All available filesystem FAT32, exFAT...(yes even MacOS native APFS)
  • Another USB stick
  • ....

Enough is enough. I was willing to learn their way of thinking for my personal experience and somehow always got my way around to reproduce what I learned on Linux to Mac. But now that there is an alternative OS, I think I'm ready to get back home.

So does anyone here already gave Asahi Remix a try? If so what was your experience with it?

I read their FAQ and most of their documentation and it seems good enough for daily drive (except for some quirks here and there) but I wanted to hear from people who already made the jump and how was their personal feeling.


PS: I got that MacOS for my birthday from a family member with good intentions. That wasn't a personal choice. While I'm more than happy and thankful for the gift, I totally hate it more and more... Especially because MOST of my self-hosted services, applications, scripts, are open source.

102
 
 
103
 
 

Which is the better option + spinning a vm is possible and ltsc the only issue is I have to repirte a windows license for ltsc(and according to Microsoft ltsc was mostly designed for embedded systems) thanks for any help and I decided to post it on the linux community bcs I couldn't find a suitable place to post it and this is related to linux but man I love linux tho and if I go with the jumpship method I have to sadly leave some games behind like roblox (it's fine due to some moderation issues bad games etc etc but ngl its a fun game ik sober exists but i kinda dont wanna use a android emulator to play roblox i could use it since its our only option for linux and also i need to wait some time for my affinity subscription to end orrrr i try running it on bottles/wine again)
Edit: I have delete roblox due to 2 reasons one to ease deleting windows and their management
Edit 2: i might test first If I ever boot into my windows disk to see if I need it anymore

104
105
106
 
 

(Dell Optiplex 3070 mini) Edit: Successfully installed thanks to all of you! In this specific case all I had to do was change from RAID to ACHI which I was able to do in the bios settings themselves. A warning to anyone who might do this if you want to keep windows I believe you have to edit the windows registry somehow but I did not care to keep windows at all so simply changing boot order to boot the USB with Debian installer first and then change from RAID to ACHI and boom, the windows partition will be discoverable.

Original post: What am I doing wrong here? The computer has Windows 11 on it but I don't want to use it I want it all the way off the machine.

Can this installer not overwrite the Windows OS with Debian? Edit: Just want to say thanks to all of you I'm going to experiment around with the advice you all have given and see how it works out! Absolutely love the passion and helpfulness of this community here on Lemmy for real!

107
201
submitted 1 week ago* (last edited 1 week ago) by mfat@lemdro.id to c/linux@lemmy.ml
 
 

I had a Chinese Android box gathering dust in a drawer. It had been sidelined because it was stuck on an outdated version of Android, with no updates in sight from the manufacturer. I started considering alternatives like a Raspberry Pi or a budget x86 mini PC to set up a PVR with TVheadend. But before placing an order, I wondered if I could repurpose the Android box as a Linux server. After all, it had decent specs: an Amlogic S905X2 chip, 4 GB of RAM, and 32 GB of internal storage.

A quick search revealed that it was possible to boot Linux on the box using a microSD card or USB stick. Within an hour, I had CoreELEC up and running. One of the great things about CoreELEC is the ease with which you can install Docker and TVheadend. This meant that my forgotten Android box was now transformed into a functional Linux server.

I hooked up a TV tuner (yes, I'm aware it's not exactly cutting-edge, but I need OTA TV for work) and installed TVheadend. It essentially turned the box into a budget-friendly HDHomeRun. I even set up AdGuard Home and configured my router to use it as a network-wide ad blocker.

Once you have Docker running, the possibilities are endless. To my surprise, I even discovered that you can boot Armbian on these inexpensive boxes and use them as a lightweight desktop. Or turn them into a router or pihole box using openwrt.

108
109
 
 

On Debian's website it is saying to write the image to the USB stick I should use a bash script "# cp Debian.iso /dev/sdX

sync"

Is there another way to do this without using root access?

110
 
 

cross-posted from: https://lemmy.world/post/21065836

Hi friends, as promised, I'm back with my second post. I'll be hanging around in the comments for any questions!

In this post, I take a look at a typical deployment process, how long each part of it takes, and then I present a simple alternative that I use which is much faster and perfect for hobbit software.

111
 
 

Userland library functions such as allocators and threading implementations often require regions of memory to act as 'guard pages' - mappings which, when accessed, result in a fatal signal being sent to the accessing process.

The current means by which these are implemented is via a PROT_NONE mmap() mapping, which provides the required semantics however incur an overhead of a VMA for each such region.

With a great many processes and threads, this can rapidly add up and incur a significant memory penalty. It also has the added problem of preventing merges that might otherwise be permitted.

This series takes a different approach - an idea suggested by Vlasimil Babka (and before him David Hildenbrand and Jann Horn - perhaps more - the provenance becomes a little tricky to ascertain after this - please forgive any omissions!) - rather than locating the guard pages at the VMA layer, instead placing them in page tables mapping the required ranges.https://lore.kernel.org/lkml/cover.1729196871.git.lorenzo.stoakes@oracle.com/

112
113
114
 
 

My old 4790k finally died, and I need to replace both the CPU & MB. I was wondering if there would be any conflict in having an AMD CPU and an Nvidia GPU.

I want to use Bazzite on it. I'm running the same distro on my main rig and I'm very happy with it.

Any suggestions?

115
 
 

I've got a Linux server running Xubuntu at the moment (It was a media player first), and it also runs two Minecraft servers for the family. It has two network cards that are both connected to the internet. Is there a way to bind the VPN to one of the cards and use the other one for regular use?

I've got Surfshark as my VPN, and it doesn't allow port forwarding under Linux. I've got some software that I want to keep behind the VPN, but the lack of port forwarding is stopping me from sharing the Minecraft servers, and when the VPN is active, it slows down the connection to some of my services like Plex.

I've tried to look it up, but I just don't know enough to get myself anywhere. I've found results that talk about name spaces and routing tables, but they assume a level of knowledge that I just haven't got yet.

I want to use the Arr suite and qBittorrent as the main programs behind the VPN, and Plex, Mylar (a comic manager), Syncthing, and Minecraft as the main programs without it. If I set up qBittorrent and the Arrs as Docker containers, can I use Gluetun to bind just them to the VPN? The VPN is using OpenVPN connections if that makes a difference.

Thanks in advance :)

116
31
submitted 1 week ago* (last edited 1 week ago) by clark@midwest.social to c/linux@lemmy.ml
 
 

I'm considering buying a secondhand Yoga Slim 7 with AMD/Ryzen 7 for 400 dollars. Is this a good deal? My parents advise against it because the laptop is old (3-4 years), so I'm not sure. I also don't know how well Linux (Fedora/KDE) runs on this particular model. It comes with 512/16GB. I need advice cause I need to make a decision in like 2 days.

117
 
 

So I've been looking into moving back entirely to Linux, but I play a lot of games so would likely need access to windows. I'm considering using KVM as dualbooting isn't really something I'd want. I've some questions I don't really get from how this setup would work:

  • I have 3 monitors. I have 1 Nvidia 2060. I imagine I might have to get a cheap-ish 2nd video card for Linux as the 2060 would have to be passed through to the guest (windows) VM.. right? (I have integrated graphics, but not enough connections for the 3 monitors on it)
  • how do you switch between playing on the host and playing on the guest? I.e. if a game runs fine native on Linux, I'd want to use that instead of the windows vm. Is it possible to use the Nvidia card I'd normally pass through on the host? The only thing I can think of here is to run a Linux VM on the Linux host so the card can be passed through to it..? Or is it just not worth it and better to stick to just playing on the windows VM?
  • how do multiple monitors behave in this? E.g. I connect the 2 monitors on the left/right to the weak card which I dont have yet. I connect the middle monitor to both cards. Once I launch the VM I change the input on the main monitor to the connection with the Nvidia card. How will my monitors behave (and will I have any control over it)? E.g. will I be able to move the cursor across from the left monitor through the middle monitor and to the right or would they act more like 2 different PCs?
  • how do other things work, like microphone? E.g. can I have discord running on Linux and talk in voice chat, while also using the microphone to talk in game chat in the windows VM?

Answering any of them is useful, thanks in advance. Also if I misunderstood how this setup is meant to work, feel free to correct me.

118
 
 

I like my Breeze-hacked cursor but I think it's time to find a native Wayland replacement.

I have some problems with X11 cursors and that's quite normal with Wayland obviously. For example, my cursor can become invisible if my screen sleeps. Additional controllers that control mouse cursor don't control X11 cursor, however they still work, I just don't know where the cursor is unless it highlights something. Things like this.

It's becoming kinda inconvenient so I'm asking for a replacement. Currently I don't really care how it looks.

I'm on River by the way.

119
 
 

I used GDM Settings and broke GDM, every normal fix doesn't work to restore GDMs first login screen back to normal (all colors are black except background and icon, trails when items move).

I switched to LightDM and its working perfectly EXCEPT my monitor doesn't sleep when LightDM lockscreen is up.

I'm newer to Linux so I don't know how the Monitor sleeping system works, or what the hierarchy is, or configuring it.

I know that Pop_OS and dconf editor can both edit the Monitor timeout time, but that doesn't seem to affect LightDM, any suggestions? (I'd rather work on this than GDM because I've spent hours on GDMs theme being busted)

120
15
submitted 1 week ago* (last edited 1 week ago) by SaltyIceteaMaker@lemmy.ml to c/linux@lemmy.ml
 
 

So. I have a soundboard application (Soundux) running in Hyprland. I got shortcuts to work by force running it in XWayland however these only work when the application is focused. Is there ANY way that the shortcuts work when i focus another window?

Edit: spelling

121
40
You're overcomplicating production (paravoce.bearblog.dev)
submitted 1 week ago* (last edited 1 week ago) by something_random_tho@lemmy.world to c/linux@lemmy.ml
 
 

cross-posted from: https://lemmy.world/post/21023181

Sharing some lessons I learned from 10 years/millions of users in production. I’ll be in the comments if anyone has any questions!

I hope some of the lessons in this series help people learn to adopt Linux directly into their stack as a simple tool that can be managed easily on a server.

122
 
 

Greetings, I am asking whether Linux has helped your family or not going from Windows to a friendly distribution that caters to young or elderly.

How was your experience with helping relatives or your kids with Linux? Was it because of an older spec machine? Costs etc?

I helped get my grandmother (dad's side) to move from windows 8.1 to Linux Mint which so far has been good, she only really browses and required some basic budgeting apps.

This was on something like an older core i3 or i5 but I didn't hear that many problems apart from getting drivers for her Epson printer to work.

So how has it been for you?

123
124
 
 

You know, immutable enterprise systems.

I installed HeliumOS (Almalinux bootc) on a corebooted Chromebook. Works really well, but audio needs to be configured.

The script needs a recent python which is not available there.

Go and rust can be installed for a user only. Is there something similar for python?

125
view more: ‹ prev next ›