[-] suprjami@lemmy.sdf.org 11 points 11 months ago

If you run your scripts through https://shellcheck.net it'll pick up things like this. Also available as a Linux package for offline use.

[-] suprjami@lemmy.sdf.org 15 points 11 months ago* (last edited 11 months ago)

What have you found bad about bash arrays? I have some simple usage of those (in bash) and they work fine.

[-] suprjami@lemmy.sdf.org 11 points 11 months ago

You added the Flatpak repo as a "system" repo with:

flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo

As such, the downloaded applications are stored by the system in /var like you said.

If you run installs as user installs, eg:

flatpak --user install com.example.appname

Then the application is stored in your home directory, not in /var.

You can also add the Flatpak repo as a "user" repo, eg:

flatpak --user remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Now all installs will behave as if you passed --user to the install command. All installs will go to your home directory, none will go to /var

[-] suprjami@lemmy.sdf.org 10 points 11 months ago

It's fine. I give my systems a 20G or 30G root file system.

If you use Flatpak then make sure you do user installs. If you add the remote as a user remote then all installs are user installs.

If you use VMs then create a storage pool for the disks in your home filesystem. I create a /home/libvirt/ for this.

Basically just be mindful not to fill your root filesystem.

[-] suprjami@lemmy.sdf.org 26 points 11 months ago

aiui apt will compare downloads from repositories against the repository signing key, whereas downloading a deb and installing it manually with dpkg bypasses that.

So theoretically the Debian website could get compromised and provide you a malicious deb package. That has happened to other Linux distros before so it's not entirely unrealistic.

Practically I think that's very unlikely.

I know apt has the --download option if you'd like to fetch deb packages on the commandline, though I'm not sure if apt compares the package with the key during this process. I hope it does. You could probably run apt in verbose mode and hopefully see this happen.

Some references:

[-] suprjami@lemmy.sdf.org 6 points 11 months ago

I've tried several dotfile managers, but after adding my files I interact with them so infrequently I forget how to use them.

The thing which finally stuck is this method from Atlassian: https://www.atlassian.com/git/tutorials/dotfiles

Your entire home directory is a bare git repo which ignores untracked files. It's just plain git so there is no additional tool to learn or forget.

I've put my vim plugins as git submodules so they're easily and efficiently tracked and updated too.

[-] suprjami@lemmy.sdf.org 13 points 11 months ago* (last edited 11 months ago)

I don't care but it's annoying that they won't put a normal application name into $PATH.

There is a denied GitHub Issue for it but I can't be bothered finding it. It'll never happen so it doesn't matter.

[-] suprjami@lemmy.sdf.org 20 points 11 months ago

It is pretty nice but ultimately it's just Debian with a slightly different package set and a theme. You can boot the regular live image and set the theme to Adwaita-dark and there's not really much difference.

[-] suprjami@lemmy.sdf.org 8 points 1 year ago

I am a huge Vim nerd, but I do a lot of copy-paste with one-off minor formatting in between. Sometimes Vim is more efficient at this, but often it really isn't and I'm quicker to use a dumb Notepad-like.

I've previously used Gedit in Gnome 2, Pluma which is MATE's equivalent, Xed which is Linux Mint's equivalent, and currently on Mousepad which is XFCE's equivalent. That's also mostly the history of my desktop environments over the last two decades.

[-] suprjami@lemmy.sdf.org 8 points 1 year ago

Use an open source 2FA which lets you export

You can store your recovery codes as files in KeepassXC

[-] suprjami@lemmy.sdf.org 47 points 1 year ago

Only if I can drive the spaceship with a Logitech wireless controller.

[-] suprjami@lemmy.sdf.org 7 points 1 year ago

Vita for me, does everything I want.

I love following these Chinese handhelds but there is always one deal-breaker which turns me off in each device. Maybe they'll get it right one day.

I owned a GP2x back in the day, that was a fun device at the time. Playing portable SNES was unheard of but I could do it.

view more: next ›

suprjami

joined 1 year ago