linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

bappity, in Reddit API blew up and now I run Linux?
@bappity@lemmy.world avatar

the best timeline of events

demesisx, in Reddit API blew up and now I run Linux?
@demesisx@infosec.pub avatar

I think I see NixOS in your future. ;)

NotJustForMe,

Isn’t nix mostly for multi-system install? I did the nix thing a few years ago, spent a month on the config, and then never needed it again. Personally, I don’t see a use-case for single desktop installation ;)

d3Xt3r, (edited )

I use multiple systems and even I feel NixOS is overkill, especially with their confusing and sometimes incomplete documentation.

On the other hand, Nix the package manager has been fantastic - especially if you’re on an immutable OS, or running some ancient “stable” distro - you can get all the packages you want, without breaking your system - and no need to learn the Nix language and write convoluted config files.

theneverfox,
@theneverfox@pawb.social avatar

I’m running nix on my PC turned server, and there’s definitely a lot of advantages…I highly recommend it for people who can pick up languages easily and prefer fixing a problem once by brute force trial and error.

Doing easy things is much harder, but doing hard things can be laughably easy

I probably wouldn’t pick it as-is for my primary PC, but for a server? Amazing.

demesisx,
@demesisx@infosec.pub avatar

I guess you like to waste a whole day getting your machine back to the exact old configuration then.

mozz, in [not solved] I think I messed something up in the router settings but cannot understand what... now I have no internet connection
@mozz@mbin.grits.dev avatar

Does ping 8.8.8.8 work? (To check if it's DNS)

What's ip route show say? (Just to try to narrow down whether it's an issue with the server's config or the router's)

What's traceroute 8.8.8.8 display?

tubbadu,

thanks for the answer!

ping 8.8.8.8 fails, and I don’t have traceroute installed (and no internet to install it)


<span style="color:#323232;">tubbadu@debianserver:~$ ip route show
</span><span style="color:#323232;">0.0.0.0 dev veth3492bf7 scope link
</span><span style="color:#323232;">0.0.0.0 dev vethc1bf668 scope link
</span><span style="color:#323232;">0.0.0.0 dev vethb41fd7e scope link
</span><span style="color:#323232;">0.0.0.0 dev veth2e39932 scope link
</span><span style="color:#323232;">0.0.0.0 dev veth68451d9 scope link
</span><span style="color:#323232;">default dev veth3492bf7 scope link
</span><span style="color:#323232;">default dev vethc1bf668 scope link
</span><span style="color:#323232;">default dev vethb41fd7e scope link
</span><span style="color:#323232;">default via 192.168.1.1 dev enp1s0
</span><span style="color:#323232;">169.254.0.0/16 dev veth68451d9 proto kernel scope link src 169.254.210.75
</span><span style="color:#323232;">169.254.0.0/16 dev veth2e39932 proto kernel scope link src 169.254.242.12
</span><span style="color:#323232;">169.254.0.0/16 dev vethb41fd7e proto kernel scope link src 169.254.185.90
</span><span style="color:#323232;">169.254.0.0/16 dev vethc1bf668 proto kernel scope link src 169.254.225.22
</span><span style="color:#323232;">169.254.0.0/16 dev veth3492bf7 proto kernel scope link src 169.254.123.220
</span><span style="color:#323232;">172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
</span><span style="color:#323232;">172.18.0.0/16 dev br-56cf32fc7cde proto kernel scope link src 172.18.0.1
</span><span style="color:#323232;">192.168.1.0/24 dev enp1s0 proto kernel scope link src 192.168.1.9
</span><span style="color:#323232;">192.168.1.1 dev enp1s0 scope link
</span>
0v0,

Try removing all the superfluous default routes.

mozz, (edited )
@mozz@mbin.grits.dev avatar

This is kind of a nutty network config. It looks like docker is setting up extra default routes, which I could easily see fouling everything up. As a first experiment (warning, this may ruin your networking until the next reboot):

ip route flush 0/0
ip route add default via 192.168.1.1 dev enp1s0

... and see if that makes things work (start with ping 192.168.1.1 and ping 8.8.8.8). If that solves the problem, then I think something about your docker config is adding stuff to your networking that's causing the problem; maybe remove/disable docker completely and then re-add docker things one at a time to see where the problem comes in.

tubbadu,

okay, I thought to have solved the problem but I was wrong, here I go again. When I docker compose up -d the immich server (the only one I have installed) all those routes are created, and apparently some of them conflicts with something else and now my host has no internet connection. however it seems that ip route flush 0/0 solves the problem until the reboot, which is strange. the other command returns RTNETLINK answers: File exists

mozz, (edited )
@mozz@mbin.grits.dev avatar

Hm. Yeah, that's weird. The default routes you're seeing should basically never exist, so it sounds like there's some kind of manual network config happening inside the Docker container that's creating a broken network.

What does docker network inspect [network] say for each of your Docker networks (substituting each Docker network for "[network]")? What's the network section of docker-compose.yml look like?

Strit, in Which terminal emulator do you use?
@Strit@lemmy.linuxuserspace.show avatar

I use what the DE usually provides, which is Konsole in Plasma. I don’t need fancy stuff as I only do basic stuff in the terminal.

ShittyBeatlesFCPres, in Which terminal emulator do you use?

I like the slide-down ones so Guake or ddterm (a Gnome shell extension). I always remap caps lock to control and the “Caps Lock” + tilde shortcut to get to the terminal is such a part of my muscle memory that I think I’d lose my mind trying to change at this point.

DichotoDeezNutz, in Which terminal emulator do you use?
@DichotoDeezNutz@lemmy.world avatar

No love for xfce4-terminal around here?

sighofannoyance, in Suggestions for consumer cloud syncing on Linux?
@sighofannoyance@lemmy.world avatar

Nextcloud is really great for this. There is clients for all desktop and mobile OS. I am hosting this myself on my VPS however you can however use this service here: nextcloud.com/sign-up/

their website says they host it for you and provides this list of providers…

greengnu, in Which terminal emulator do you use?

rxvt-unicode with tabbedex.

I refuse to use a terminal emulator that needs more than 100MB of RAM to display 80x24 green text on a black display

Rosco, in Which terminal emulator do you use?

st

yianiris, in Wine 9.0 is now available
@yianiris@kafeneio.social avatar

There is nothing "worth" running in wine, but it is good to know it exists, just to spite those choosing binary blobs.

@mr_MADAFAKA

OsrsNeedsF2P,

Dunno fam, I like LAN partying 2001 games with old friends during our biannual meetups.

henfredemars,

How about this then. While your neighbors are using wine, it attracts more commercial attention to develop the open source projects that you do actually use. It’s so impactful that you measurably benefit directly from its contributions, like optimizations to the Linux kernel.

You don’t have to agree with it, but you cannot deny the increased investment in open source projects it causes.

For a painfully blatant example see: Steam Deck.

Also for the binary blob purists, how do you feel about all that closed source firmware underpinning your pure world? Isn’t it practically impossible to get completely open source firmware down to the silicon? And even then, do you trust the silicon? Are you running everything on FPGAs?

Adanisi, (edited )
@Adanisi@lemmy.zip avatar

Hi! “Binary blob purist” here! Yes, it bothers us that so much firmware is proprietary, but we are working to fix that :).

It is possible to have fully free firmware on certain select devices.

The silicon is unchangeable, much like a chair is unchangeable. So being concerned about changing it isn’t really productive. But, RISCV looks promising and a good remedy to the issue of not knowing what it does.

FPGAs would be nice but they aren’t powerful enough yet.

But, at the same time, unless the silicon can make outside connections itself or modify behaviour (a la Intel ME), or has been updated with what is essentially software baked into it that can change it’s behaviour on the fly, I’d say it can be trusted to do the computing you tell it to do and nothing more (again, excluding those processors where we know that it doesn’t like those with the ME).

TCB13, in Wine 9.0 is now available
@TCB13@lemmy.world avatar

🎉🎉🎉

Yet another major release that fails do support basic Win32 APIs available since Windows 95 properly.

🎉🎉🎉

turbowafflz,

It’s a miracle we have wine at all, reverse engineering an entire operating system isn’t easy. Be grateful for what we have (which is already enough to run a ton of software really well)

TCB13,
@TCB13@lemmy.world avatar

Still ReactOS performs better in basic Win32 APIs… makes no sense.

_Sprite, (edited )
@_Sprite@lemmy.world avatar

Unrelated but everytime you end a sentence with an ellipsis I imagine someone’s nerdy youtube rantsona with their arms crossed and a sly grin

natsume_shokogami, (edited )

If you want some APIs implemented, make a feature request; you understand what you want

TCB13,
@TCB13@lemmy.world avatar

reverse engineering an entire operating system isn’t easy

Have you noticed the the NT / Windows XP source code was leaked years ago. There’s isn’t much of a need to “reverse engineering”, it’s just about reading their implementation and providing an alternative implementation that doesn’t copy code…

turbowafflz,

Well, since it’s so easy, go do it.

neo,
@neo@lemmy.comfysnug.space avatar

They are legally not allowed to touch it.

otter,

it’s just about reading their implementation and providing an alternative implementation that doesn’t copy code…

That sounds difficult though. Didn’t companies have to set up ethics walls to protect against lawsuits for things like that?

TCB13,
@TCB13@lemmy.world avatar

Didn’t companies have to set up ethics walls to protect against lawsuits for things like that?

What are you talking about? There’s copyright infringement that when you copy the leaked Windows source code into something like Wine or ReactOS and then there’s reading it to understand what Microsoft did and coming up with an alternative implementation that will provide a compatible API for programs to use. There’s no “gray zone” or ethical BS - it’s either copied or not.

otter, (edited )

What are you talking about?

Ah the term I was looking for was “clean room”

en.wikipedia.org/wiki/Clean_room_design

See the bit about examples and IBM. While you could probably look, the easiest way to defend against a giant tech company’s legal team is to do the clean room setup

dario, (edited )

Paragraph «Don’t», bullet point number 3: Don’t look at any Microsoft source code. wiki.winehq.org/Clean_Room_Guidelines

maness300,

Lol.

Imagine shooting yourselves in the foot like this.

TCB13,
@TCB13@lemmy.world avatar

Guess that rule was in place because some people would look at it and proceed to copy it. The rule should be “if you copy code from Microsoft you’ll be kicked from the project and the code removed”. While I see why this is place and what it protect the project from this is also a very big roadblock to the project’s evolution and a clear example of what’s wrong with it and why we still have compatibility issues.

OsrsNeedsF2P,

That’s a lot of words to emphasize you don’t understand copyright law

RubberElectrons,
@RubberElectrons@lemmy.world avatar

Succinctly.

maness300,

If only there were ways to subvert copyright law…

Cqrd,

Nope, because if you write code and they can prove you were influenced by leaked proprietary code in any way then they will sue the shit out of you and shut you down.

Also see Halt and Catch Fire for a show with this as a plot point. It’s very real though.

troyunrau,
@troyunrau@lemmy.ca avatar

Ask for a refund

TCB13,
@TCB13@lemmy.world avatar

Too bad time isn’t refundable. Free software is only free if you don’t factor in the time you spend making it work.

maness300,

So true.

troyunrau,
@troyunrau@lemmy.ca avatar

Wow, you’re the most entitled user of free software I’ve met in a while. Just but a windows license next time.

maness300,

Since when is having standards being ‘entitled’?

Just because something is free doesn’t mean it has to be janky.

TCB13,
@TCB13@lemmy.world avatar

Well at least I’m not here perpetuating the delusion that desktop Linux desktop is as user-friendly and productive for every use-case as Windows and macOS are. If one lives in a bubble and doesn’t to collaborate with others then native Linux apps might work and might even deliver a decent workflow. Once collaboration with Windows/Mac users is required then it’s game over – the “alternatives” aren’t just up to it.

Windows licenses are cheap and things work out of the box. Software runs fine, all vendors support whatever you’re trying to do and you’re productive from day zero. Sure, there are annoyances from time to time, but they’re way fewer and simpler to deal with than the hoops you’ve to go through to get a minimal and viable/productive Linux desktop experience.

It all comes down to a question of how much time (days? months?) you want to spend fixing things on Linux that simply work out of the box under Windows for a minimal fee. Buy a Windows license and spend the time you would’ve spent dealing with Linux issues doing your actual job and you’ll, most likely, get a better ROI.

Just buy a windows license next time.

Here’s the thing, I can get a legit Windows license by various means. I don’t need to go into microsoft.com and get it for 300$, a second hand windows machine with an old i5 CPU will sell for 50$ and that includes a valid Windows license. Computers selling on retail stores also include a Windows license, students can get them for free etc. what else?

uzay,

Well at least I’m not here perpetuating the delusion that desktop Linux desktop is as user-friendly and productive for every use-case as Windows and macOS are.

Wait, are you saying Windows and macOS are user-friendly and productive for every use-case? That’s hilarious!

lemmy_user_838586,

Bro. Why are you even here, then? Use whatever works for you, clearly you don’t value Linux.

TCB13,
@TCB13@lemmy.world avatar

Oh yes, I value and like Linux a LOT… just not for desktop as it doesn’t deliver as everyone says it does. To be fair I believe that only someone who values Linux as much as I do would be comfortable to criticize what’s wrong with it.

lemmy_user_838586,

For someone who keeps complaining about how much time you lost to Linux, you sure spend a lot of time complaining on Linux forums, bashing it.

TCB13,
@TCB13@lemmy.world avatar

Well I can’t spend all my time trying to fix ridiculous issues that would’ve been fixed by now if people had the balls to look at Windows XP source code…

lemmy_user_838586,

Yeesss, keep going man, waste more time!

TCB13,
@TCB13@lemmy.world avatar
lemmy_user_838586,

C’mon, keep doing it!

TCB13,
@TCB13@lemmy.world avatar

Guess not, we’re just wasting lemmy’s resources :P

lemmy_user_838586,

Noo, keep going man, I got an apt-get error you need to waste time fixing for me

kurwa,

You’re doing something worse, complaining about something that no one really does. The average Linux user doesn’t want the average computer user to install Arch Linux. Stop spamming this garbage.

UnsavoryMollusk,

Which one? Am curious since I worked with the winapi for a long time.

OsrsNeedsF2P, (edited )

Sorry, I missed the part where you submitted an MR

neo,
@neo@lemmy.comfysnug.space avatar

Then perhaps you can open a pull request?

aniki,

No one ever promised infinite compatibility forever. It’s most certainly NOT a microshit product.

dinckelman,

Instead of leaving snide comments like this, you can use your head to open up an IDE, implement the features you want, and make a pull request. Keep it to yourself

maness300,

Oh no, how dare he have higher standards!

Sarcasmo220, in Yubikey on Linux?

usually when I have problems with YubiKey being detected it is because the pcscd service has not been started, or I forgot to enable it so it would start automatically on boot.

You can follow the instructions here on how to do so: linuxhandbook.com/systemd-start-service-boot/

vhstape,
@vhstape@lemmy.sdf.org avatar

Unfortunately, pcscd is running… At this point I am thinking it is a hardware issue with my setup

Fizz, in On the Road to Plasma 6, Vol. 5 – Kai Uwe's Blog
@Fizz@lemmy.nz avatar

I’m going to need to get a better monitor to really appreciate the polish and work that’s been put into fractional scaling

1984,
@1984@lemmy.today avatar

4k monitors are awesome, you will never go back. Icons are sharp and looks almost as good as on mac OS.

jntesteves, (edited ) in [SOLVED] How to customize dead keys under Wayland / Electron apps?
@jntesteves@lemmy.world avatar

I’m using GNOME Wayland on Fedora 39 and I don’t have the problem you describe. I just go to settings and select my keyboard layouts:

  • English (US, intl., with dead keys)
  • English (intl., with AltGr dead keys)

And everything just works. I specially like the second one because it doesn’t interfere with keybindings in games, which can be a problem in GNOME Wayland.

Oh, I think I get the issue you’re having, you can’t find the Çç character on the Linux layout 😅 I always have to explain this to people migrating from Windows, it’s AltGr+, (right Alt key plus Comma). I like this shortcut better than the Windows layout, but I understand some people might not like it. Unfortunately, I can’t answer your question, as I too don’t know how to customize the keyboard layout. I just got used to the Linux layout.

pathief, (edited )
@pathief@lemmy.world avatar

Yes, I’m using the US international with dead keys layout. I also used it in Microsoft Windows. Here’s a couple of annoying examples:

  • + c-> result: ć; expectation: ç
  • + m -> result: ḿ; expectation: 'm (particularly annoying when typing in english; workaround: + space key + m)
  • + t -> result: nothing happens; expectation: 't (particularly annoying when typing in english; workaround: + space key + t)

Right Alt + Comma does work for ç so at least I have that going for me. It’s still weird to have a different layout for electron apps :/

jntesteves, (edited )
@jntesteves@lemmy.world avatar

You should be able to type ç the way I described for all apps, so you could just remove your custom layout. I highly recommend the English (intl., with AltGr dead keys) layout, it’s perfect for coding and writing in English. It’s a bit more work to write in Portuguese, though, so it took me a while to get used to it, but it’s worth it if coding is what you’re doing most of the time. In this layout, you must hold AltGr to get the dead keys, otherwise it’s a normal English layout.

You can also use two layouts — one for English/coding, one for Portuguese — and the keyboard shortcut Super+Space to switch between them. I always have two layouts setup like this, but I never switch anymore because I just learned to love the English (intl., with AltGr dead keys) layout — and I don’t write much Portuguese nowadays.

pathief,
@pathief@lemmy.world avatar

Thank you! It’s not exactly what I wanted but at this point I’m just happy to have a solid workaround to my problem that works everywhere.

8osm3rka, (edited ) in Yubikey on Linux?

Are you talking about 2FA login for your own user account or U2F/PIV/WebAuthn in your browser? The latter seems to work out of the box on any non-snap or flatpak browser, but the former needs a bit more setup as that is not a standard feature in Ubuntu yet. I recommend using ykman and yubico-piv-tool for configuring yubikeys in linux, but Yubico also provides a GUI application on their website

vhstape,
@vhstape@lemmy.sdf.org avatar

Definitely the latter. I have only tried using the Flatpak version of Firefox, but the system won’t even detect the key so it’s no shock Firefox can’t either…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 23423320 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 174

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38