linux

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

igorette, in Fully featured tilling window managers (like DEs) for lazy people
@igorette@lemmy.ml avatar
BlanK0,

Very interesting, but I do wish there was a equivalent but based on a dynamic tilling WM

priapus,

You use the autotiling script to make i3 dynamic

xavier666,

Regolith + autotiling (github.com/nwg-piotr/autotiling)

shotgun_crab, in This week in KDE: everything everywhere all at once edition

The wobbly windows fix is appreciated

slacktoid, in Thanks for my free therapist session
@slacktoid@lemmy.ml avatar

Hi … so … Um wanna be friends? whats your favorite font?

optissima,
@optissima@lemmy.world avatar

Iosevka

slacktoid,
@slacktoid@lemmy.ml avatar

I love finding other fonts with Code glyphs. It looks like it would look cool on a terminal. I use fira code.

optissima,
@optissima@lemmy.world avatar

Fira is my #2, but iosevka makes the terminal feel like home.

wwwgem,
@wwwgem@lemmy.ml avatar

Both iosevka and fira look nice.

slacktoid,
@slacktoid@lemmy.ml avatar

I get that, some just call you.

wwwgem,
@wwwgem@lemmy.ml avatar

Source Code Pro for writing and Nerd for symbols.

slacktoid,
@slacktoid@lemmy.ml avatar

Solid choice, I use Fira code with nerd for symbols.

Chewy7324, in Flathub Grows Past One Million Active Users

The issue with those numbers is that they don’t account for people having multiple devices. My PC, Laptop, and Steam Deck all download apps from flathub, so I’m likely counted multiple times. On the other hand most people only use one device, so the actual numbers probably don’t doffer much. It’s an estimate anyway.

Edit: I’m not surprised the amount of people using flatpak/flathub increased so much. It’s my preferred method of installing proprietary software and works on any distro, even unconventional ones like NixOS or Alpine. Sandboxing continues to get better, be it isolation or usability.

chaorace, in Does Nix's break from FHS cause problems?
@chaorace@lemmy.sdf.org avatar

You may be interested in reading this post about the process of packaging Steam.

tl;dr: It’s mostly an annoyance reserved for packagers to deal with. Dynamically linked executables can be patched in a fairly universal fashion to work without FHS, so that’s the go-to approach. If the executable is statically linked, the package may have to ship a source patch instead. If the executable is statically linked & close-source, the packagers are forced to resort to simulating an FHS environment via chroot.

matcha_addict,

So that means packaging software for nix is a pain, compared to, say, gentoo or arch’s AUR, but only for a small subset of packages.

I’ll keep this in mind as I’m exploring if I should switch from Gentoo.

hackeryarn,

I would say it’s actually easier in many cases. Nix has really fantastic packaging tooling. You do have to learn a bit of the nix language, however (not become an expert).

The issue comes when trying to build from source. In most other distros, ou just follow the readme. In nix, you have to package it.

matcha_addict,

If I am packaging software for gentoo, all I have to do is translate the build instructions from the project’s documentation to gentoo’s package recipe. In nix, it seems that it is not that simple and you’ll have to do some exploration. Am I wrong?

pastermil,

It’s just that most (if not all) build system in the source code package would assume some level of FHS compliance.

For example, they would install:

  • executables under /bin /usr/bin
  • libraries under /lib or /usr/lib
  • sysconfigs under /etc
  • manpages under /usr/share/man
  • and so on…

These build systems would include options to change these, but you’d then have to change all these values to adapt to nix structure. While it’s all been done by the nix package maintainers, you’d have to do all that if you’re to come up with a new package.

In the FHS compliant distros, the maintainers wouldn’t need to change anything since these values are already set to the values they want (there are actually minor details they’d change, but that’s another topic).

Atemu,
@Atemu@lemmy.ml avatar

If I am packaging software for gentoo, all I have to do is translate the build instructions from the project’s documentation to gentoo’s package recipe.

It’s the same for Nixpkgs.

In nix, it seems that it is not that simple and you’ll have to do some exploration. Am I wrong?

In well behaved build systems, it’s likely easier to package than most other distros. If it’s not as well behaved you will have to do some “exploration” and the complexity can get quite out of control if the build system is exceptionally terrible.

Here is the package for the GNU hello program which uses a well-behaved build system:

github.com/NixOS/nixpkgs/blob/…/package.nix

If you ignore the optional passthru.tests, this is very simple. You provide metadata, sources etc. to the generic mkDerivation function and that’s it. The most complex non-standard thing this derivation does is enable the build system’s tests.

You don’t even need to run the provided build instructions because Nixpkgs’ stdenv abstracts those away. If it finds a makefile, it’ll automatically run make and make install with the correct flags for instance. Same for other standard build systems; if you pass cmake into nativeBuildInputs, it’ll attempt to build, install, check etc. using cmake’s standardised interfaces.

If the build system is poorly behaved however (like for instance Anki’s), you will have to get into the weeds and do some rather advanced things:

github.com/NixOS/nixpkgs/blob/…/default.nix

Luckily though, most packages aren’t like this.

matcha_addict,

Thank you for the thorough comment!

lemmyreader, (edited ) in Breaking Windows to let the penguin in...

Welcome to the Penguin party ! 🐧 And thanks for sharing your story.

chemicalwonka,
@chemicalwonka@discuss.tchncs.de avatar

and GNU party

lemmyreader,

Thanks for the reminder :)

KarnaSubarna, (edited ) in I feel like I'm missing out by not distro-hopping
@KarnaSubarna@lemmy.ml avatar

If your use cases (a.k.a. requirements) are met by your current distro, never switch.

If you are satisfied with stability, availability of support, quick availability of security patches, never switch.

This is particularly important when you are using your Linux desktop as your daily driver.

Most you can do is to check what additional features other distros are offering (rolling release, hardened/zen kernel, x86-64-v2/3 support, file system type, user base, availability of packages, package formats, overall documentation etc.), validate if you really need those features.

If you are interested or just curious to test those features, install that distro on a VM (QEMU/KVM) to try it out first safely. Use it on VM for a while, make yourself comfortable with it. Once you are satisfied with it, only then switch.

herc3141, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Backed up the whole disk image to an external drive because I didn’t have time for a proper backup but knew I would need some of those files later.

Installed a fresh new OS on the same disk, used it for a couple of months.

Needed to make some space on the external drive I had the backup on so I’ll just delete the backed up system files from it.

cd /mnt/external_drive

rm - r /usr /boot …

As you can probably see, a fresh new install was happening again

Scribbd,

Took me a solid second to get it as well.

martinb,

☠️

lemmyreader, in [QUESTION] I installed Apache OpenOffice

Go for LibreOffice or OnlyOffice. Both can be installed natively or with Flatpak or Snap (or maybe AppImage) is a safer bet.

moreeni,
lemmyreader,

Thanks.

Kanedias, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@Kanedias@lemmy.ml avatar

Just straight up overwriting boot sector and superblock of my hard drive thinking it’s the USB drive.

Udev tried to warn me, saying there’s no permission, and I just typed sudo without thinking.

Then after a second I remembered USB block devices are usually writable by users, but it was too late.

Jordan_U,

USB block devices containing mountable filesystems (on Desktop systems) can generally have those filesystems mounted and files written to them by regular users; But the block device itself stays only root writeable.

So, you need root privileges either way.

(Going from memory, but also decently confident)

mofongo, in How to fool a laptop into thinking a monitor is connected?

On windows I think you need a HDMI dummy plug as others mentioned here before but Linux has to have a way to run headless. You can run Linux in Qemu without a connected display. If you find anything on why it’s not booting please let me know!

skeletorfw, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

My own classic was fiddling with the nvidia PRIME config to try and get rid of some very mildly irritating screen tearing. No graphics output at all. Now this is fixable of course, but it’s a pig.

And I’d decided to do this 2 hours before an incredibly important progress review meeting for my PhD.

Got it back with about 10 mins to spare and decided just to leave the driver config alone after that.

Bonus round

Also a friend managed to bork his ubuntu 16 laptop by trying to switch from unity to gnome and ending up with sort of neither. That was reinstall territory right there.

carcus, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Learned about the importance of trailing slashes in rsync by using the -delete flag.

fhein, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

I have a stupid one, but far from funny… I’ve been using and building computers for a very long time so I’m far from a noob, but I’m still quite cautious, bordering on paranoid, so I like to unplug all other drives when re/installing an OS just to avoid stupid mistakes. I go through the installer on the livecd, there’s only one drive to choose from so I don’t think much about it, select that it should erase everything, I set up the new partition structure, and start the process. After about a minute I begin wondering “why is it taking so long?”, and “what is that ticking noise? SSDs shouldn’t be making any sounds when written to”, when I realize that I had unplugged the wrong drives and that I was currently overwriting my main storage drive. Of course I had backups of the most important things like photos and code, though not really synced for a couple of months so I lost some stuff permanently.

rzlatic,
@rzlatic@lemmy.ml avatar

I can totally feel that sudden clot in the gut the moment you realize on which drive the action is happening, just by reading this.

henfredemars, in What software is best to have in a flatpak on tumbleweed?

I use flatpak for virtually everything because sandboxing your applications from each other and from your private data is a great idea to improve your system security. This helps prevent one compromised app from taking actions that affect the rest of your system.

For example, I have the VLC flatpak and used flatseal to revoke internet access because I only use it to play files. If a file tries to exploit VLC, it will not be able to upload any data or communicate with the attacker’s servers. I revoke any permissions my apps don’t actually need.

There are a few exceptions though. I run development and administrative tools directly because I do actually want unrestricted access to the system for these apps.

lemmyvore,

But what if someone attacks a development tool!

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