1
310
submitted 1 week ago by cyclohexane@lemmy.ml to c/linux@lemmy.ml

I thought I'll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I'll try my best to answer any questions here, but I hope others in the community will contribute too!

2
12
submitted 5 hours ago* (last edited 5 hours ago) by t0mri@lemmy.ml to c/linux@lemmy.ml

i did update my machine with pacman -Syu. after rebooting, i cannot login. i con see this error Failed to start Virtual Console Setup a tiny second right before log in screen. i had to capture it in slow mo to able to read it. i attach the image below.

and on the login, after i enter my username and hit enter it just hangs for a while without asking the password and asks for username again. it acts like when you enter wrong password.

3
11

Where would I look for a list of what network chips are supported in any given kernel? I'm looking to build my first computer designed from the ground up for Linux and want to be sure that the Ethernet port and WiFi chip will work without needing to do anything special.

4
53
submitted 11 hours ago by MazonnaCara89@lemmy.ml to c/linux@lemmy.ml
5
19
submitted 10 hours ago by VLDK@lemmy.world to c/linux@lemmy.ml

I've been using fedora but I would like to try something new and I think about arch linux but I don’t know if it’s good for gaming. What do you think?

6
92
How the Media Treat Linux (www.youtube.com)
submitted 13 hours ago by joojmachine@lemmy.ml to c/linux@lemmy.ml

Just sharing this really well produced video on Linux's public perception (since this channel has suprisingly not a lot of subscribers)

7
52
submitted 12 hours ago* (last edited 8 hours ago) by possiblylinux127@lemmy.zip to c/linux@lemmy.ml

I just though I'd share

Edit: I'm not sure if this actually works. All else fails fall back to Ansible

8
20
submitted 12 hours ago by flashgnash@lemm.ee to c/linux@lemmy.ml

I've got this idea in my head that I want a tofi based sound board that I can summon on a button press (and maybe fuzzy find through)

Should be fairly simple to do with the way tofi works to make the interface, but as far as I can find there's not a quick and easy way to mix sounds in with mic input using pactl

Is there any single line solution for playing a sound over mic (like a soundboard would) anyone can think of or do I need to mess around with virtual audio devices to achieve this

9
134
submitted 17 hours ago* (last edited 16 hours ago) by cyclohexane@lemmy.ml to c/linux@lemmy.ml

Whether you're really passionate about RPC, MQTT, Matrix or wayland, tell us more about the protocols or open standards you have strong opinions on!

10
26
submitted 14 hours ago by JRepin@lemmy.ml to c/linux@lemmy.ml

The beta versions of Lubuntu and Kubuntu 24.04 are out, showing that there's room to improve on the standard Ubuntu formula. The beta announcements for Lubuntu 24.04 and Kubuntu 24.04 don't reveal quite as much information as the Lubuntu's alpha-test announcement did. The Reg FOSS desk looked at the two Qt-centric remixes, and found some intriguing distinctions between them and their parent distro.

11
61
submitted 17 hours ago by bjoern_tantau@swg-empire.de to c/linux@lemmy.ml

This is too great not to share. Wayland devs hate this trick! I'll copy what I did from the bug report.

As a workaround you can use https://github.com/Supreeeme/extest to make Onboard work. Compile it as a 64 bit library and launch onboard with

env LD_PRELOAD=/usr/lib64/libextest.so onboard

If you want to use it with KDE you can add

X-KDE-Wayland-VirtualKeyboard=true

to its desktop-file.

I used kwin rules to get rid of window decorations and have it always on top without stealing focus. If someone knows how to make all other windows smaller when it's active that would be great.

Only problem remaining is that sometimes the keys get stuck on touch input. At least on my Steam Deck on OpenSUSE.

12
320
submitted 1 day ago by lemmyreader@lemmy.ml to c/linux@lemmy.ml
13
209
submitted 23 hours ago by jeena@jemmy.jeena.net to c/linux@lemmy.ml
14
32
submitted 19 hours ago by lautan@lemmy.ca to c/linux@lemmy.ml
15
2
submitted 11 hours ago by gramgan@lemmy.ml to c/linux@lemmy.ml

Fellas,

I've been using my current setup on NixOS (Xfce + i3) for about a month now---it's totally great, but I've got some minor things that bother me just a little bit, and I want to see if Wayland does anything for me. I like my combination of a lightweight desktop and tiling windows, so I thought maybe I could do something like MATE + Sway?

Does anyone run anything like this? MATE seems pretty close to Xfce, right?

Happy to hear any thoughts.

Cheers!

16
11
submitted 18 hours ago by MyNameIsRichard@lemmy.ml to c/linux@lemmy.ml
17
149
18
9
cryptsetup hanging? (lemmy.sdf.org)
submitted 19 hours ago by wesker@lemmy.sdf.org to c/linux@lemmy.ml

Anyone ever have cryptsetup just start hanging after entering password on boot? This seems like it's going to be a fun issue to try to resolve...

19
180
20
39

I've been seeing a lot of talk about CachyOS recently. Has anyone here tried it? It seems interesting and I might give it a go (currently on EndeavourOS) on a spare drive in my PC.

21
93

I often hear folks in the Linux community discussing their preference for Arch (and Linux in general) because they can install only the packages they want or need - no bloat.

I've come across users with a couple of hundred packages installed (likely fresh installs), but I've also seen others with thousands.

Personally, I'm currently at 1.7k packages on my desktop and 1.3k on my laptop (both running EndeavourOS). There might be a few packages I could remove, but I don't feel like my system is bloated.

I guess it's subjective, but when do you consider a system to be bloated?

I'm asking as a relatively new Linux user - been daily driving for about 7/8 months

22
190
submitted 1 day ago* (last edited 1 day ago) by digdilem@lemmy.ml to c/linux@lemmy.ml

I host a few small low-traffic websites for local interests. I do this for free - and some of them are for a friend who died last year but didn't want all his work to vanish. They don't get so many views, so I was surprised when I happened to glance at munin and saw my bandwidth usage had gone up a lot.

I spent a couple of hours working to solve this and did everything wrong. But it was a useful learning experience and I thought it might be worth sharing in case anyone else encounters similar.

My setup is:

Cloudflare DNS -> Cloudflare Tunnel (Because my residential isp uses CGNAT) -> Haproxy (I like Haproxy and amongst other things, alerts me when a site is down) -> Separate Docker containers for each website. On a Debian server living in my garage.

From Haproxy's stats page, I was able to see which website was gathering attention. It's one running PhpBB for a little forum. Tailing apache's logs in that container quickly identified the pattern and made it easy to see what was happening.

It was seeing a lot of 404 errors for URLs all coming from the same user-agent "claudebot". I know what you're thinking - it's an exploit scanning bot, but a closer look showed it was trying to fetch normal forum posts, some which had been deleted months previously, and also robots.txt. That site doesn't have a robots.txt so that was failing. What was weird is that the it was requesting at a rate of up to 20 urls a second, from multiple AWS IPs - and every other request was for robots.txt. You'd think it would take the hint after a million times of asking.

Googling that UA turns up that other PhpBB users have encountered this quite recently - it seems to be fascinated by web forums and absolutely hammers them with the same behaviour I found.

So - clearly a broken and stupid bot, right? Rather than being specifically malicious. I think so, but I host these sites on a rural consumer line and it was affecting both system load and bandwidth.

What I did wrong:

  1. In docker, I tried quite a few things to block the user agent, the country (US based AWS, and this is a UK regional site), various IPs. It took me far too long to realise why my changes to .htaccess were failing - the phpbb docker image I use mounts the root directory to the website internally, ignoring my mounted vol. (My own fault, it was too long since I set it up to remember only certain sub-dirs were mounted in)

  2. Figuring that out, I shelled into the container and edited that .htaccess, but wouldn't have survived restarting/rebuilding the container so wasn't a real solution.

Whilst I was in there, I created a robots.txt file. Not surprisingly, claudebot doesn't actually honour whats in there, and still continues to request it ten times a second.

  1. Thinking there must be another way, I switched to Haproxy. This was much easier - the documentation is very good. And it actually worked - blocking by Useragent (and yep, I'm lucky this wasn't changing) worked perfectly.

I then had to leave for a while and the graphs show it's working. (Yellow above the line is requests coming into haproxy, below the line are responses).

Great - except I'm still seeing half of the traffic, and that's affecting my latency. (Some of you might doubt this, and I can tell you that you're spoiled by an excess of bandwidth...)

  1. That's when the penny dropped and the obvious occured. I use cloudflare, so use their firewall, right? No excuses - I should have gone there first. In fact, I did, but I got distracted by the many options and focused on their bot fighting tools, which didn't work for me. (This bot is somehow getting through the captcha challenge even when bot fight mode is enabled)

But, their firewall has an option for user agent. The actual fix was simply to add this in WAF for that domain.

And voila - no more traffic through the tunnel for this very rude and stupid bot.

After 24 hours, Cloudflare has blocked almost a quarter of a million requests by claudebot to my little phpbb forum which barely gets a single post every three months.

Moral for myself: Stand back and think for a minute before rushing in and trying to fix something in the wrong way. I've also taken this as an opportunity to improve haproxy's rate limiting internally. Like most website hosts, most of my traffic is outbound, and slowing things down when it gets busy really does help.

This obviously isn't a perfect solution - all claudebot has to do is change its UA, and by coming from AWS it's pretty hard to block otherwise. One hopes it isn't truly malicious. It would be quite a lot more work to integrate Fail2ban for more bots, but it might yet come to that.

Also, if you write any kind of web bot, please consider that not everyone who hosts a website has a lot of bandwidth, and at least have enough pride to write software good enough to not keep doing the same thing every second. And, y'know, keep an eye on what your stuff is doing out on the internet - not least for your own benefit. Hopefully AWS really shaft claudebot's owners with some big bandwidth charges...

EDIT: It came back the next day with a new UA, and an email address linking it to anthropic.com - the Claude3 AI bot, so it looks like a particularly badly written scraper for AI learning.

23
11
submitted 1 day ago* (last edited 1 day ago) by PaX@hexbear.net to c/linux@lemmy.ml

can someone else use my machine as a router to forward traffic to anywhere else on the internet?

I'm not entirely sure what the security implications of that would even be if true but probably nothing good

I don't have any other routes in my routing table other than my "default" route and this machine is reachable via a globally routable IPv4 address. Also I think there are probably other machines on the same subnet (cloud VPS)

24
77
25
227
submitted 1 day ago by schizoidman@lemmy.ml to c/linux@lemmy.ml
view more: next ›

Linux

43994 readers
1713 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 4 years ago
MODERATORS