Skip to content

u/Fearless_Process

In this archive from Apr 2020 to Oct 2022

5
posts
254
comments
0
media
1.4k
score

Yeah I was actually curious about this topic as well a while back!

I guess another thing might be that wireguard has no option to use password authentication and can't be configured incorrectly. You have to use the public key based setup! Most people know to not use password auth with ssh though so it's not a huge deal in practice.

Also wireguard is a lot smaller implementation wise. The Linux kernel wireguard implementation is less than 4k lines of code! Using LOC as a metric is normally not very useful, and being small doesn't automatically make something more secure, but I think it's easier to avoid bugs when there is less complexity and less code to break.

The wireguard whitepaper is pretty cool. I would definitely recommend giving it a read!

2 points

Malware can just create a service to start itself upon boot via systemd or inject itself into one of the existing services that are required for a functional system. There are tons of other ways it can become persistent as well, that's just an example I thought of quickly.

Secure boot provides zero protection from malware that already has RCE as root. It does protect against someone physically tampering with your bootloader though, but only provides extra security if you use full disk encryption and hopefully some sort of verification scheme such as dm-integrity (encryption is not authentication!).

I guess if you somehow acquired malware and reinstalled the system but not the bootloader it would protect against this, but I don't really understand why you wouldn't reinstall the bootloader along with the rest of the system in this case.

82 points

Yeah makepkg is very nice. I actually considered trying to use Arch as a hybrid binary/source based distro by building stuff I wanted to customize with makepkg. It is actually very possible to do, but there are some rough edges that make it a not super great experience, and lots of things that would have to be done manually (or scripted, but no such scripts exist).

I would love to see some work put into that actually, I know there are a few people who have tried to write helper scripts for this but most projects have been abandoned. With some helper programs Arch could make a great source/binary hybrid distro!

It was something I was interested in attempting at some point but never actually got motivated enough to do anything.

3 points

It's not about it being advanced or elite, but it does allow for compile time feature flags to be configured as you please with is not possible on a binary distro.

Say I want to build nodejs but have no use for NPM to be installed? On gentoo you can do that with ease, but for every compile time feature for every package available.

There are also advantages in regards to linking and ABI compatibility. I can have whatever combination of different versions of software/libraries, stable or unstable installed at the same time because the package gets compiled on my end against the library I want, rather than by build servers for whatever version the distro chooses for me. This is impractical on a binary distro due to the explosion of different combinations possible.

Source based distros do have actual technological advantages over binary distros, even if the advantages aren't interesting to most people.

8 points

Yeah with (e)lisp it's not just the ability to set variables really. In lisp the entire programs state is dynamic, all variables and functions can be modified without limit during runtime, and this applies to the entire global state as well, not just what is in scope. Most languages are very far from being this dynamic, but python is pretty close, if not about the same.

This power gets multiplied since pretty much all of emacs is implemented in elisp itself, including most of the core functionality. This allows for almost any feature to be implemented as a first class feature, or core functions to be modified or overloaded with ease.

According to GitHub vim's source code is 45% C and 50% vimscript, which is more than I would have guessed!

Emacs is only 15% C in comparison, with 65% being a combo of Elisp and common lisp (emacs ships with most of common lisp with the cl-lib package).

Anyways both are highly extensible, and when you take neovim into consideration it competes even better than plain vim in regards to extensibility. I think having python and lua available was a really cool choice. I actually really enjoy lispy languages personally but I think most people would prefer python! There is no doubt that python is vastly more popular than lisp.

By the way, something cool that has been recently added to emacs is native elisp compilation via libgccjit! I think that feature at least wins some coolness points.

1 points

Lisp and lisp-like languages are inherently more extensible than python or lua IMO.

For example, the actual emacs config is written entirely in elisp itself. You just setq the variable to whatever you want in actual elisp source rather than having an external config format. This also allows to change and inspect the entire state of the interpreter while it's running which is very powerful. It also helps that elisp was actually designed to be used with emacs itself while python/lua are general purpose languages, but this also is a disadvantage since you lose access to all of the general purpose python libraries that exist.

Another major thing is that most of emacs core functionality is implemented in elisp itself, rather than it just being for extensions.

Don't take me wrong here, I am not claiming either are better or worse, but they certainly have different trade offs and appeal to different people. You bring up a good point about having the entire cli ecosystem available and each tool focusing on a specific task.

2 points

I used urxvt since 2015 until a few weeks ago because they broke support for pseudo transparency with my specific configuration. I went to their website to see if there was news about any major changes, and they did remove the feature for certain setups but mine should not have been effected.

Overall this isn't a big deal really, but according to the maintainer(s), people on Gentoo may not submit bug reports because "almost all gentoo installs are broken" and some nonsense about headers and libraries being out of sync or missing (which is completely false), so bugs must be reproducible on Arch or another binary distro before being considered.

I didn't really intend on submitting a bug in the first place but I decided to give some other terminals a spin since I was annoyed. I tried kitty and alacritty, and alacritty blows away all of the other options that I have tried so far! I love the truecolor support, and ability to change the colors and theming of everything, I managed to make my terminal have the same color scheme as my emacs setup does! Overall it's very nice and polished, I would not even consider going back to urxvt now.

1 points

Using gentoo like this wouldn't involve compiling on the end users machines. They would probably compile the packages on their side and setup a binary package repo. Portage knows how to compile from source as well as install regular binary packages. They would pretty much be making their own custom distro on top of gentoo rather than using gentoo and it's repos directly.

I personally think gentoos tooling is superior for making custom distros in general, since that is sort of what it was designed for, but the arch build system/pacman is very nice as well.

1 points

Bubblewrap is a nice lightweight wrapper around namespaces that can totally disable all network access, among other things.

bwrap --bind / / --unshare-net firefox

Firejail and bubblewrap are similar but bwrap is much more simple and a bit lower level, it also provides lots of flexibility.

You can use namespaces directly with the unshare command as well. I don't remember the exact flags but you need to unshare user and network namespaces.

49 points

Nothing broke anything at all. Anything that links to a library that gets updated must get rebuilt before being able to use it again, because the old version of the library is no longer on the system. This is how dynamic linking works in general, it's in no way unique to Arch. It's really not that difficult to understand, and blaming Arch's "instability" is just flat out incorrect. This is actually a perfect example of someone blaming user error on the distro and calling it unstable.

3 points

Some AUR packages recursively depend on other AUR packages for dozens and rarely even hundreds of packages deep. I highly doubt anyone wants to deal with manually installing something like that.

Not to mention, if you have many packages installed, and many of them have many dependencies, managing that becomes close to impossible.

So really, it's like asking what advantages does pacman have over just git cloning and running make?

5 points

More often than most probably! I've switched between computers a few times this year, from laptop, to PC, back to laptop, and then finally back to PC again!

I also install somewhat often into virtual machines for various reasons. Now that I don't have a bare metal arch install, I need access to an Arch VM so I can maintain some of the AUR packages that I created.

All of my cache files for Gentoo and Arch only take up like 10GB or something, totally worth the space to have near instant downloads :^)

1 points

Yeah the cache is recreated but everything will have to be redownloaded again. Pacman keeps every file it ever downloads in the cache and never clears it. If you manually clear it, it will just redownload the files and put them back, but if they are already in there it won't have to download them in the first place! Some of the packages will become out of data and useless to have around, but a surprising amount of packages don't get updated very often!

This is a very helpful for people with slow internet as well. I only have 20mbps at home, so downloading a few GB worth of packages takes a fairly long time (an hour or two). When stuff is already in the cache it's downloaded instantly more or less, so that's a lot of time saved!

2 points

I would exclude it but keep the pacman package cache somewhere other than the backup. That way if you need to reinstall you will mostly have all of the files in cache and won't need to download them! Other than the pacman package cache I would not worry about backing up /var/cache.

I keep the package caches for every distro I use or have used around just to prevent having to needlessly redownload stuff and waste bandwidth for mirrors.

2 points

Partial upgrades are not supported. Do not attempt to half-update the system.

It is okay to install packages without updating every time though. Pacman has a database file that tells it which versions of packages to install, and so long as all of your software is in sync with that database, you will not have breakage. If you update the database(s) and then try to install software, you will have package versions from the new and old database installed at the same time, which is what is referred to as a "partial upgrade" and can cause severe instability if something like libc gets partially upgraded.

6 points

Yeah it's somewhat of a poor practice but if you're downloading over https and from a secure source you should be fine.

If you are paranoid you can download and hash the file locally and on a vps in a different area to compare against, or see if you can find a hash someone else has uploaded somewhere.

You could also ask them nicely to consider hashing and preferably also signing their software releases and see if they will consider it.

Remember that a checksum delivered over non-https connection is next to useless, and checksums over https aren't really more secure than just downloading the package over https in the first place. The exception to this is if the package OR the checksum (but not both) is delivered over https or the package or checksum is signed.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.