HNHacker News
TopNewBestAskShowJobs

ayushnix

499 karma · joined April 15, 2021

https://ayushnix.com
submissionscomments
ayushnix··on uBlacklist – Block specific sites from appearing in Google search results
I was considering subscribing to Kagi but $10/month is almost as expensive as my fiber broadband connection and I don't think I can justify this expense. I would likely subscribe if it was $5/month.
ayushnix··on Linux Laptop – HP Dev One Is Available
You'll find devs who would be okay with a 720p screen just because "muh battery life".

Sure, I mean, go ahead with that but at least provide an option for others who need a highdpi 2x integer scaled display. I refuse to use a laptop without a highdpi screen.

ayushnix··on VSCodium – Free/Libre Open Source Software Binaries of VS Code
I stopped using Code-OSS and Vscodium after this bug. For the longest time, the "solutions" suggested in that issue tracker were disabling CORS validation.

https://github.com/eclipse/openvsx/issues/306

ayushnix··on System Font Stack
So in both cases, it's just poor web design. This is disappointing.

I could maybe forgive the use icon fonts (Google websites end up breaking the most, android's documentation website for example) but it's unforgivable to write `pre code { font-family: my-random-webfont }`.

ayushnix··on System Font Stack
> ① Use Firefox. Other browsers may have something similar; dunno; but Firefox is good anyway. ② Settings (about:preferences) → Fonts → Advanced → untick “Allow pages to choose their own fonts, instead of your selections above”.

I've been doing this for several years now and I love that Firefox can do this and Chromium can't. However, as you've mentioned, icons break on several websites including DuckDuckGo and rust mdbook (the search icon is replaced as "fl"). In addition, several websites assume that their monospace web font will always load and when it doesn't, code blocks are displayed in sans-serif fonts which is a huge turn off.

I guess both of these issues happen because people assume everyone's using Chromium web browsers?

ayushnix··on The Problem with Dark Mode
> The issue with colors is that there's a slight variation for everyone. No one sees all colors exactly the same. The best thing to do is make this configurable for people who have serious issues with certain colors. Of course, good defaults are better but 1 color pair cannot fit everyone.

Yup, this is why I intend to add a feature similar to what mdbook offers on my website and zola theme if a visitor has 1st party javascript enabled.

ayushnix··on Ly – A TUI Display Manager
> 2- Isn't it better to use a login manager that is 1- graphical and 2- uses the same GUI tech as your DE

You're assuming everyone using Linux uses a DE.

ayushnix··on The new and upgraded Framework Laptop
> A gentle reminder that every retina MacBook has been shipping with fractional scaling as default for years now (and it's not even 1.5).

You're saying MacOS deliberately uses fractional scaling by default on the 14 inch and 16 inch MBP models, the iMac, Studio Display, and the Pro Display XDR, even though all of them have a PPI that's deliberately meant for integer scaling? If that's true (which I really doubt), it would be extremely counterproductive, to say the least.

The M1 Air and the 13 inch MBP are the only Macs that don't have a suitable PPI for integer scaling.

ayushnix··on Lenovo ThinkPad P1 Gen3 Review – with Linux
It's safe to say that never again will I buy a laptop with a display which can't scale properly to integers (2 or higher). If it's a 15 inch laptop, 4K is the absolute minimum resolution I'm going for.

Even after using a 27 inch 4K display with an abhorrent 163 PPI , I can't imagine using a display with lesser PPI. No matter what tricks (anti aliasing) you use, the fonts will look like shit compared to fonts on a retina display.

ayushnix··on Show HN: We launched a new web browser
> Why exactly? I honestly do not understand HN fascination with Firefox.

Well, for starters, uBlock Origin works as intended on Firefox as opposed to Chromium and this will become more apparent with manifest v3.

I don't know about others but I also like how Firefox lets me choose the fonts that I want to see on the web while Chromium browsers don't.

ayushnix··on Neovim 0.7 Released
I installed helix a few days ago and I realised that I've been using my neovim setup with much higher input latency than I'd like. I'm not sure which plugin is responsible for the increased typing latency or if there's an easy way to find out.

I wish helix had a mode where its keybindings become the same as that of neovim for easier transition. After years of using (neo)vim, it's almost impossible for me to switch to a different set of modal keybindings. I always ended up pressing x to delete characters in helix which, in turn, ended up selecting the entire line.

ayushnix··on Using Windows after 15 years on Linux
Not really, I haven't used Windows in a long time so I won't comment on it but on Linux, it's your choice. I've chosen to use a Raspberry Pi for my DNS but it's certainly not necessary. Before I had the RPi, I was using dnscrypt-proxy on my system locally and it was responsible for handling DNS. You can choose a network management service to make changes for you in /etc or you can do it yourself.

Hell, the simplest thing you can do is not use either NetworkManager or systemd-resolved and edit /etc/resolv.conf to point to your favourite DNS server. That file will never change automatically and you can use whatever DNS you want.

ayushnix··on Using Windows after 15 years on Linux
If it helps, I've installed AdGuard Home on a Raspberry Pi 4 and I've configured my router to make my devices use the RPi for DNS queries. This would ensure devices with DNS management services (Android) use the DNS I want. For devices that don't use DNS management services, I've changed /etc/resolv.conf manually to point it to my RPi and that file never gets modified automatically.

It's upto you how you manage your settings in /etc. A software will never modify anything in /etc without your choice.

ayushnix··on Using Windows after 15 years on Linux
> You've never had something like NetworkManager undo your edits to /etc/resolv.conf within microseconds?

I've never really used NetworkManager on my personal setup but if you're using it, you are willingly giving control of your network settings inside /etc to it, including the DNS, which is why /etc/resolv.conf gets changed automatically. You can choose not to use NetworkManager or systemd-resolvd (while still using systemd) and they won't mess around with /etc/resolv.conf.

For network management, I do use systemd-networkd and it hasn't overwritten or changed my files in /etc/systemd/network in the past 6 years of me using Linux, not that I recall at least.

ayushnix··on Using Windows after 15 years on Linux
> Debian based systems will change some config files on updates; I had a systemd customization that was overwritten out from under me, and I evntually found there was one place for apt to manage and a different for me to manage.

The only place where a package manager should overwrite changes is /usr. If you made any changes inside /usr, then yes, it'll be overwritten. A user isn't supposed to mess around inside /usr, unless there's a very good reason for it. There's /usr/local but it's better to just use $HOME/.local instead.

ayushnix··on Using Windows after 15 years on Linux
> Downloading and executing an MSI does not seem to be a meaningfully different operation than writing the apt-get command

If nothing else, unlike downloading and executing a MSI, apt will download the package, verify its checksum, and verify the signature of the package itself.

ayushnix··on Using Windows after 15 years on Linux
> in a /etc/config file that is silently changed by services?

I'm not really invested in the Windows vs Linux thing but config files in /etc never get silently changed or removed. If they are, it's a critical bug, although I've never really seen it happen.

If there are any updates to the service files, they'll be installed alongside the original file. For example, on Arch Linux, it'll be /etc/systemd/journald.conf.pacnew while the original journald.conf file will never be touched.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
Oh, I didn't realize you were talking about not using your SSH keypair as the SSH CA keypair. Well, that's kinda expected. The SSH CA keypair is the single point of failure in this case, which sounds worse than it is but it's okay to have such a thing because of the benefits, so it should be protected and isolated.
ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
> One of the first things the article mentions is rekeying. Since the step utility does in fact regenerate keys when obtaining certificates, it actually does have a lifespan.

I went through the article again. Essentially, rekeying makes sense if the private keys in question, whether they are host private keys or client private keys, are kept unencrypted on disk. Host private keys typically are, so it might make sense to rekey host private keys. However, if your user private key is kept encrypted on disk, as it should be, there isn't really a good reason to rekey.

The step tool seems to abstract that process and it also generates a new key pair on each login but that keypair never even touches the disk, according to the article. This makes sense assuming the step tool generates a key pair and doesn't encrypt the private key. In that case, yes, rotating/regenerating the client keypair on each login make sense.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
> This is also true for X.509, there is exactly zero reason to generate new key (if it was not compromised) or even new CSR for certificate renewal.

It might make sense to regenerate the private key on each certificate renewal if the private keys are kept unencrypted, as they often are in the X.509 scenario. If the keys are encrypted and if your web server manages to get the password to decrypt that key each and every time it serves a request, then yeah, I don't see the point of regenerating the private key on certificate renewal.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
> The certificate would just be another layer of indirection. I fail to see how that would be a meaningful change.

That certificate would only be issued after you've gone through SSO or some other certificate management process and it would have a defined expiry period, maybe even as short as a few minutes. It is a meaningful change.

When using key based authentication, as long as you had your public key in the authorized_keys file on the server, you would be able to login without issues, even if your keypair is compromised. With certificates, even if your keypair is compromised, you wouldn't be able to login to that server because you'd have to compromise the SSO/MFA authentication step as well, which adds another layer of meaningful security in the process.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
> If you are constantly regenerating uncompromised SSH keys, you are probably doing something wrong.

Yup, there's no real reason to generate a new SSH key pair each and every time you want to get a short lived certificate. The SSO or CA management system (like Vault) is responsible for verifying your identity.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
I doubt we're getting rid of traditional long lasting keys anytime soon. They do have their uses and it'd be a waste not to use them.

> Signing certificates with your existing keys kind of make the whole point moot.

You mean getting signed certificates from a SSH CA with an existing client public key? Why does it make the whole point moot? The SSO is responsible for verifying your identity. Rather, it seems pointless to generate a new SSH keypair each and everytime you want to get a certificate and login to a machine. You can certainly do it if you want but I don't see the point. You can keep using your existing SSH public keys to get short lived certificates and login to a machine, do you job, logout, and repeat the process with the same keys.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
Which is why I installed openssh-server on my OpenWrt hosts. However, due to a bug [0] in openssh-server package in the latest 21.02.2 release of OpenWrt, OpenSSH doesn't allow you to login in failsafe mode on an OpenWrt host. Because my OpenWrt host lacked a recovery mode, it was essentially soft bricked.

I was able to recover it using the serial port but even after all this, the comfort of using SSH certificates on all of my nodes was enough to keep making me use it instead of Dropbear.

[0]: https://github.com/openwrt/packages/issues/17833

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
I'm using SSH certificates to manage a few nodes in my homelab and it's a pleasure to not have to deal with managing the known_hosts file on my clients and authorized_keys file on my servers. There's only 1 line in my known_hosts for my nodes and authorized_keys doesn't even exist on any of my servers. If I add a new node to my homelab, I don't have to make any changes in known_hosts or authorized_keys in the existing nodes and it's easy to bootstrap the same known_hosts and sshd_config that I use everywhere in the new node.

SSH keys would make managing these few nodes a lot more complex that it is.

ayushnix··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
Umm, please correct me if I'm wrong but I think you're confusing SSH keys with SSH certificates. A SSH client key can be reused to create short lived SSH client certificates. You can keep using that SSH client key to encrypt data, sign data, login to GitHub etc. There's no such thing as "short-lived keys", there's short lived SSH certificates.
ayushnix··on Start Self Hosting
Even in that case, if you're manually editing anything inside /usr either by being root or by using sudo, you're doing something wrong or unexpected.

Anything inside /usr should only ever be modified by the package manager, not by the root user, or any other user for that matter.

If you want to make system wide changes, make them in /etc. If you want to make user specific changes, make them in $HOME/.config, $HOME/.local. Your package manager should never overwrite anything in /etc or $HOME. If it does, it's a bug.

ayushnix··on KeePassXC 2.7.0
Looks like a known issue.

https://github.com/keepassxreboot/keepassxc/issues/2281

I'm considering adding support for keepassxc in tessen but autotype works only on wlroots based compositors like sway right now.

https://github.com/ayushnix/tessen/issues/19

ayushnix··on Start Self Hosting
> I want to edit a service to harden it for example. Oh, wait I shouldn't edit it directly with vi? Because it gets overwritten by package updates.

I don't think you're supposed to edit anything inside /usr, except perhaps /usr/local, but even that has a better alternative in the form of $HOME/.local, which is a well defined standard at this point.

Maybe I'm unaware or mistaken but if you're editing anything inside /usr as a normal user, you're either using Linux wrong or doing something unexpected or unusual. This is why requests to make GUI file explorers have root escalation capabilities sound absurd to me. I can't think of a reason why one would need root access when using a file manager, especially a GUI file manager.

ayushnix··on KeePassXC 2.7.0
I'm going to take a guess and say that you're using GNOME if you're using Fedora and yeah, I don't think auto type works on GNOME's wayland version yet. They're working on their own protocol called libie the last time I checked.

However, auto typing on Wayland works pretty well if you use wlroots compositors/window managers like sway.

← PreviousPage 2 of 7Next →