Linux

47941 readers
1716 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
251
252
253
 
 

Ok I know this sounds crazy but it's all about Linux and iptables all the way

I'm using a rooted android phone as a VPN router to keep confidential traffic separated between networks

A and B are in the same network, B provides a separate network for C

Device A: Linux ip 192.168.15.32 wlan0 Device B: rooted Android phone with Termux and VPN Hotspot wlan0 ip 192.168.15.21 wlan1 ip 192.168.38.173

Device C: Windows 10 with RDP wlan1 ip 192.168.15.176

I've tried the following

A: sudo ip route add 192.168.38.0/24 via 192.168.15.21 dev enp1s0

B: Termux, su: sysctl -w net.ipv4.ip_forward=1


iptables -t nat -A POSTROUTING -s 192.168.38.0/24 -o wlan0 -j MASQUERADE
iptables -A FORWARD -i wlan0 -o wlan1 -s 192.168.15.0/24 -d 192.168.38.0/24 -j ACCEPT
iptables -A FORWARD -i wlan1 -o wlan0 -s 192.168.38.0/24 -d 192.168.15.0/24 -j ACCEPT

C: default route via 192.168.38.173 metric 1

C is solely seeing the internet from B's VPN, and can even access wlan0's router, meaning it has access to its internal network. C can ping B, B can ping C

B can ping A and C

A can ping B, but not C, which also means no RDP access

What am I missing ?

254
46
submitted 3 weeks ago* (last edited 3 weeks ago) by countrypunk@slrpnk.net to c/linux@lemmy.ml
 
 

Someone gave me a Hisense C11 Chromebook and I'm wondering if there's absolutely anything I can do with it. It seems like a piece of junk and the Linux stuff I've seen for Chromebooks specify that they don't work with the ARM processor. Is there any distro that would work on it? Any other ideas about how to repurpose it?

Note: I don't have direct access to an Ethernet cable/router for setup. Also don't have the most technical knowhow.

255
256
 
 

What do you think of wakib? https://github.com/darkstego/wakib-keys

It's like emacs keybindings but keep today's default/ standard keybindings and adds other layers to it.

In the past months, I tried over and over to use emacs or vim. I dislike having to switch between the "modern" way and vim or emacs inside the editor. With wakib all common shortcut are the same and it adds shortcuts for movements.

I did not yet spend too much time with it but I really like that it simply extends on what I use anyway.

257
258
 
 

For those unaware, about umu-launcher

This is a unified launcher for Windows games on Linux. It is essentially a copy of the Steam Runtime Tools and Steam Linux Runtime that Valve uses for Proton, with some modifications made so that it can be used outside of Steam.

259
 
 

Hi, I'm trying to get SCALE to work but I'm so confused by what they mean by PATH and I'm stuck.

https://github.com/spectral-compute/scale-docs/blob/master/docs/manual/how-to-use.md

I'm at the CMAKE step.

This is the official guide I'm following. I do understand what they mean by SCALE_PATH though as that is clearly explained but PATH is just very vague to me or I'm just misunderstanding it completely.

260
 
 

Hello Linux community,

I need some help with shutting down my laptop when the battery reaches a low percentage.

I am using Debian 12 with the GNOME desktop. WARNING: Minimal installation with self selected packages.

What I want to achieve is, that the laptop just does a 'halt -p' or shuts itself down when the battery is below 20%.

What I did so far:

  • Look into GNOME settings in the power settings area and I found nothing helpful
  • I edited /etc/Upower/UPower.conf with my settings and changed the CriticalPowerAction to PowerOff, ensured the upower daemon is running via systemctl status and rebooted. The result was that I get a warning popup message in GNOME when the battery load reaches 21%, but it does not shutdown the laptop at 20% or under 20%, although I get another pop up announcing that the laptop would be shutdown
  • I ensured laptop-mode-tools and gnome-power-manager settings are installed

Any help/pointers for further help would be highly appreciated.

261
 
 

TLDR: perfctl is a crypto mining and proxy jacking malware that exploits about 20’000 common missconfigurations to install itself on Linux servers. Mostly using a 10/10 CVE on Apache RocketMQ.

It is very persistent and can reinstall itself even when you have deleted all the perfctl and perfcc files. It hides itself by removing logs, network packets, and stopping all activity once you login to the machine.

Monitoring cpu usage using tools (I use net data on my server) can help identify infections (100% cpu usage when « idle »).

262
28
submitted 4 weeks ago* (last edited 4 weeks ago) by taaz@biglemmowski.win to c/linux@lemmy.ml
 
 

I've remembered this exists and there seems to be some very recent activity in the repo so if you didn't know what was possible with TUI graphics now you know! (recommended watching with sound :)

Official site: https://notcurses.com/
Repo: https://github.com/dankamongmen/notcurses

PS: dank (the guy behind it) is definitely one of a kind, just read the releases haha

PPS: here is a doom running through notcurses in the terminal: https://www.youtube.com/watch?v=a_w5rh3c76g

263
 
 

So I'm looking for a laptop, but before you downvote and move on, I've got a twist: I'm looking for a laptop with Linux support that's going to intentionally be console-only and rely on TUIs to make a lower-distraction device.

I was looking at older Thinkpads with 4:3 screens and the good keyboard before Lenovo went all chicklet with them, but I'm kinda concluding they're both way too expensive AND way too old to be a reasonable choice at this point.

A X220 or T40-whatever would be great and be the perfect aesthetic, but they're expensive, hard to find parts for, and using enough crusty old shit that this becomes yet another delve into retro computing and not one into practical, useful computing which is the goal here.

So, anyone have any recommendations of any devices in the last decade that have a reasonable keyboard, screen, use modern enough components that you can source new drives and RAM and batteries and such, and preferably aren't coated in a coating that's going to turn to sticky goo?

Thin(ner) and light(er) would be nice, but probably not a dealbreaker if the rest of the pieces align. This will be almost entirely used at a table for writing and such.

264
25
submitted 4 weeks ago* (last edited 4 weeks ago) by B0g3nNutz3r@lemmy.ml to c/linux@lemmy.ml
 
 

Hello,

I think everyone here is already aware of the current problems regarding Intels 13/14th generation CPU-chips. If not this article should explain your questions.

Since Intels new ucode update came and went, I was looking for an update on the situation and wanted to ask you (the users) for your experience using an Intel 13/14th gen CPU.

Are you still facing issues regarding degradation or are there any other issues potential users should be aware of?

Thanks in advance :)

265
 
 

This was inspired by debian guy on the same community you can check out his story here i hope i aint stealing anything

Why did i decided to move to linux?
Windows is getting slower with win11 + the microsoft recall thing, (tho windows 10 solved this issue. am prob gonna fully switch linux once windows 10 ends support, and i dont think windows 12 is gonna be any better and idk why am considering buying macos as a secondary os.) and also Linux gives you more frames as well in gaming.

The story:
So i wanted to try Linux, the first distro i ever used if you count is Ubuntu, i hardly used it in the vm, but really it was Linux mint, i loved the speed,simplicity,etc i would download distros on my brothers laptop when he takes my gaming pc bcs how windows 11 is slow on his laptop i also used tails os(on my main pc) and some nix (didnt like Nixos config when i was new) and i used Tails os as well and i didnt know why discord isnt working :) i found my favorite distro: Cachyos ,some grauda linux (a little bloated sadly i only used it for 2 days before switching back to cachyos since A nvidia driver problem has been solved), btw i also tried building regular arch, and use bazzite but regular arch was too hard + building regular arch is hard i also love the aur, And i also tried blendos yeah the installer kept overriding the usb :P.

My main Pc specs i used linux on:
intel I3 12100f
Gtx 1650
16gb of ram (Originally 8gb but suddenly the other 8gb stick decided it wants to work again after Distrohopping to Cachyos)

The laptop specs(used on Linux Mint and Nixos):
i3 115g1
4gb ram
integrated graphics

How is my experience going:
Its alright. but i wish app support improves ngl, below is my experience with (more?) apps and games.


Gaming:
Its not that bad most of my library on steam works fine under proton AND natively, and i didn't test my epic games library, but sadly i suffered with some games:
Roblox (I can use sober but no thanks, dont wanna use a android emu to play roblox, but ngl i wanna quit roblox due to the moderation thingy, its a fun game tho on my dualbooted windows ssd.)
~~Fortnite~~ (The anticheat. not a problem anymore, i quit it too boring. i would dual boot windows to play Roblox/and this game as well.) Gmod (I need to run a script to fix it but it rarely happens for me and when am in game no problems so far)
Beam.NG drive (Lags on some maps and i need x11 to play it with Vulkan render and native linux build that is hidden in the files no steam integration and you cannot add mods due to a "network issue" but ig firewall? due to Cachyos auto enabling that.)
Discord (Idk if this counts as gaming but i bearly had any problems except with streaming i rarely stream so its fine)
fact ig: On my previous Lemmy account, when i instance hopped. i even ask help with gaming.


Nvidia:
Tbh its not that horrible like people call(+The linux creator) Nvidia, its actually good on linux (even on Wayland)


Web dev:
I like to web dev my personal site on Vscode and thats on Linux, Nothing to say here its going great. and i use git to publish it to codeberg and it will be displayed on the world wide web.


Content creation:
Tbh i never really tried it, bcs am too lazy to make videos on Odysee/Peertube and originally youtube, But sadly affinity is not on Linux(I can use photopeas once my 6month trial of affinity ends), they say its hard and they had struggles porting it from mac to windows as well. and Davinci resolve(Which i used on windows) its not that bad like people say. but sadly there is no AAC support, but Mp3 is supported, Tho i had way more trouble on fedora i needed distrobox.


small issues with some apps (all catagories)
Whatsapp(Tbh i can use the web version i rarely/almost never call people on whatsapp)

266
267
 
 

This is a 12 year dream. I have always run a Windows workstation along side a Debian laptop. I am no stranger to Debian. I have a 12 year association with it. I am not a Linux wizard yet but have been adept with it.

Why not use Debian daily then? My personal computing usage unfortunately centered around consumption rather than creation. I watched videos, listened to podcasts, read technical articles, and browsed social media. On top of this, inertia and great software like Visual Studio, Notepad++, Excel, OneDrive held me back.

Visual Studio is an absolute must-have for all .NET developers. I built small pieces of complex web projects only occasionally. VS Code on Linux is decent for .NET development but it is not the same. Though Jetbrains Rider existed along-side, it is unthinkable to drop Visual Studio. At least for dark matter developers.

Notepad++ is a fabulous software program that had no complete alternatives on Linux. I used it for scripting, text manipulation, note taking, dumping and editing thoughts. Scintilla-based equivalents Geany, SciTE exist, but do not come close.

MS-Office Excel is another remarkable software program with no real alternatives in other ecosystems. It is worth the 5K INR per year. Organizing data, life planning, and creating simple reports are a few of its greatest capabilities. Also, the formulas system is amazing. OneDrive is another great and a utilitarian software program from the Microsoft stable.

So, why now? I had the most fun and growth when I built things. I love the independence that comes with the experience of building things. As far as I can remember, I was always a tinkerer, thinker, builder, doer and explorer. After a decade or so of inaction, I needed a change. A few things fell into place recently.

  • Windows is about to get a whole lot more annoying. An increase in ads, baked-in Copilot, and a suffocating push to outlook user-linked usage.
  • Jetbrains Rider became formidable now for CLI and web app development.
  • I learnt enough of apt-pinning, backports and makedeb repository.
  • The last straw is from an unexpected experience. I set up a Win 11 VM recently using the KVM+QEMU route. I noticed that the VM's performance was quite responsive. KVM+QEMU despite all the pain felt worthy. I cannot recommend it enough.

Immediately I decided to remove Windows, install Debian with a Windows VM inside. I will write about various experiments and experiences over the next year. These are some of the sub-projects on my mind in no particular order.

  • Write about this setup
  • Implement a nice 3-2-1 backup strategy
  • Write about significant alternatives
  • Write about significant issues
  • Linking to phone
  • Configure monitoring, notifications and alerts
  • Configure auto dark mode
  • Find a way to play an old strategy game on Linux
268
269
 
 

I just got hold of an AMD RX7800 XT to replace my current Nvidia RTX3080.

I'm likely overthinking this but from what I understand I should just be able to swap the cards then uninstall the Nvidia drivers correct?

I'm running EndeavourOS which I installed with the option to include the Nvidia drivers by default so dunno if that changes anything? I've been daily driving Linux for exactly a year as of this month but I still kinda feel like a newbie sometimes lmao. Thanks in advance!

(Update) I got my AMD card installed and loaded up Wayland with no issues, only thing I had to install was the AMD Vulkan drivers for Steam.

270
 
 

cross-posted from: https://fedia.io/m/pine64@lemmy.ml/t/1266175

A new community update! New hardware to announced and previous hardware to return!

271
272
 
 

Hi,

by doing a

ps aux | grep UserName

The output do not keep the LF[^1] 😡

I've found some solution online by they involve 3 or more pipe | !

On my side, I've made this

ps -fp $(pgrep -d, -u UserName)

But still I found it not super human readable.

Is their a native way with ps to filter users ? or to grep it but the keep the LF ?

[^1]: linefeed https://en.wikipedia.org/wiki/Linefeed#Representation

273
274
 
 

I know there choice of distro is really meaningless as you can install almost any program on almost any distro. But I have been playing with kali which is for security people and pen testers. Is there a similar distro for programmers? Like a few ides installed some profiling tools some virtual environment tools etc?

275
 
 

Update to this post. Please read it before commenting!

So I ended up following instructions I found online and disabled secure boot in my BIOS and then tried to boot Linux Mint (version 21.2, Cinnamon Edition) with UEFI OS. However, as soon as I did that, i got a "Perform MOK management" screen that said the following:

Continue boot Enroll MOK Enroll key from disk Enroll hash from disk

Can anyone tell me what this means and what I should do? Do keep in mind I'm a total newbie when it comes to Linux. Thanks in advance!

view more: ‹ prev next ›