gomp

joined 2 years ago
[–] gomp@lemmy.ml 10 points 1 month ago (2 children)

What's crashing? the Linux host? Virtualbox? the windows guest?

(personally I won't be able to help you, but other people might)

[–] gomp@lemmy.ml 3 points 2 months ago

I don't use that so I'm mostly shooting in the dark, but.. does caps:escape_shifted_capslock do what you want?

(source: localectl list-x11-keymap-options | grep esc)

[–] gomp@lemmy.ml 9 points 4 months ago (1 children)

And... what started out as honest advice, ended up being a preventive strike against Internet villains. Very Internet-villain-like, I must say :D

[–] gomp@lemmy.ml 23 points 4 months ago (1 children)

(rightfully) does not like mixed language codebases for projects as large and important as Linux

You make it sound like it's a matter of taste rather than a technical one (and I suspect it actually might be just about taste in the end)

[–] gomp@lemmy.ml 9 points 4 months ago (2 children)

I stopped at "secret" (yes, the occurrence in the title) :)

TBH the checksums are pretty useless for humans who download an .iso and install it... they are mainly for mirrors and similar that download files without using them

[–] gomp@lemmy.ml 5 points 4 months ago (1 children)

Yank is Copy, you heathen!
Only in inferior software it is Paste.

(for the uninitiated: it's Copy in vim and Paste in emacs; also if it wasn't clear, I'm just joking)

[–] gomp@lemmy.ml 5 points 4 months ago* (last edited 4 months ago) (1 children)
  1. By and large, distros package the same software so which one you pick is a matter of taste. As a beginner, you won't have the knowledge to take advantage of documentation/instructions that are not written for your specific distro, so pick one of the more popular ones.

  2. No, distro owners won't be a problem in the same way that Microsoft or Apple are. Don't worry about that: the moment they do something unsavory (even remotely) their projects will be forked, and switching to a different distro is not that big of a deal anyway.

  3. If you like to tinker you will break your system, not because linux is fragile (it is not) but because knowledge of low-level stuff is widespread and the temptation to thinker with it is too great. I recommend you look into system snapshots and how they integrate with boot options (eg. opensuse tumbleweed automatically snapshosts your system when you update it and during boot you can choose to boot into a previous state - surely other distros do the same and, if yours doesn't, you can set it up yourself).

  4. The short answer is "use KDE" :)

  5. KDE is great and seems to suit you. The DE you choose matters (IMHO) more that the distro, because once you are familiar with a DE and its shortcuts it's a pain to switch, and also because once you are used to some feature it's enormously frustrating to switch to a DE that doesn't have it :)

From what I hear (I switched to AMD years ago), it's not hard to make the Nvidia cards work properly, but it's a recurring hassle and there are lots of things that are more fun to thinker with. Unless specific reasons you need an Nvidia card, I'd suggest selling it off and replacing it with a second-hand AMD/Intel one.

[–] gomp@lemmy.ml 9 points 4 months ago (2 children)

I'm sorry if this sounds rude, especially after not reading what must have taken you a long time to write...

Have you tried writing "distro that looks like macos" into a search engine?

[–] gomp@lemmy.ml 6 points 5 months ago

Configure it like the current router and keep it as a backup?

You can run a lot of stuff on it, but those boxes aren't really that powerful... a cheap, old raspberry pi from ebay (or anything really) will serve you better.

[–] gomp@lemmy.ml 2 points 5 months ago* (last edited 5 months ago)

sudo zypper packages --unneded will give you a list of packages that have not been explicitly requested and are not dependencies of explicitly requested packages. As for how to remove them... IDK (I do it manually, once in a blue moon: it's not like there's new unneded packages every week).

It's been a while since I've used debian, but IIRC apt autoremove will leave behind config files (unless you specify --purge).

In tumbleweed (and I think all rpm-based distros?) config files are removed per default together with packages (well, the config files installed with the package, not others that may have been created later such as the ones in your \~ - basically zypper rm is the same as apt purge).

[–] gomp@lemmy.ml 1 points 5 months ago (1 children)

Assuming you are using networkmanager, the first thing would be to check the DNS settings on your home wifi connection (assuming you are using Gnome, it should be inside "Settings" and then "Network" - sorry if that's wrong, I don't use Gnome).

If you can't locate the setting to change, you can try deleting the whole connection and connecting again (as you would to a new wifi network).

124
submitted 6 months ago* (last edited 6 months ago) by gomp@lemmy.ml to c/linux@lemmy.ml
 

I remember a story where people asked about blobs included in Ventoy and there were no comments from the devs, leading to suspicion.

At the time it wasn't clear to me if there was any substance to the story or if it was the usual Internet exaggeration, so I resolved to ignore it for the time being and saved a reminder to look into it after a while.

Now my reminder fired off and I looked around, but couldn't find how the story ended... do you know?

 

Over the years I have accumulated a sizable music library (mostly flacs, adding up to a bit less than 1TB) that I now want to reorganize (ie. gradually process with Musicbrainz Picard).

Since the music lives in my NAS, flacs are relatively big and my network speed is 1GB, I insalled on my computer a hdd I had laying around and replicated the whole library there; the idea being to work on local files and the sync them to the NAS.

I setup Syncthing for replication and... everything works, in theory.

In practice, Syncthing loves to rescan the whole library (given how long it takes, it must be reading all the data and computing checksums rather than just scanning the filesystem metadata - why on earth?) and that means my under-powered NAS (Celeron N3150) does nothing but rescanning the same files over and over.

Syncthing by default rescans directories every hour (again, why on earth?), but it still seem to rescan a whole lot even after I have set rescanIntervalS to 90 days (maybe it rescans once regardless when restarted?).

Anyway, I am looking into alternatives.
Are there any you would recommend? (FOSS please)

Notes:

  • I know I could just schedule a periodic rsync from my PC to the NAS, but I would prefer a bidirectional solution if possible (rsync is gonna be the last resort)
  • I read about unison, but I also read that it's not great with big jobs and that it too scans a lot
  • The disks on my NAS go to sleep after 10 minutes idle time and if possible I would prefer not waking them up all the time (which would most probably happen if I scheduled a periodic rsync job - the NAS has RAM to spare, but there's no guarantee it'll keep in cache all the data rsync needs)
 

Lately I noticed that when I want to ssh to a server using a password I need to specify -o PubkeyAuthentication=no or I won't be asked for a password and the authentication will fail (well, for all I know, setting some other option may work too).

I use password authentication only once on freshly installed servers/vms, so it's not a huge deal, but... it still bothers me (mainly because I don't remember which option to set).

Do you guys have any idea what it may be?

client's ~/.ssh/config

Host 127.*.*.* 192.168.*.* 10.*.*.* 172.16.*.* 172.17.*.* 172.18.*.* 172.19.*.* 172.2?.*.* 172.30.*.* 172.31.*.*
  LogLevel quiet
  Stricthostkeychecking no
  Userknownhostsfile /dev/null

Host *
  ForwardAgent no
  AddKeysToAgent no
  Compression yes
  ServerAliveInterval 10
  ServerAliveCountMax 3
  HashKnownHosts no
  UserKnownHostsFile ~/.ssh/known_hosts
  ControlMaster no
  ControlPath ~/.ssh/master-%r@%n:%p
  ControlPersist no

server's /etc/ssh/sshd_config (it's from the nixos install iso)

AuthorizedPrincipalsFile none
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
GatewayPorts no
KbdInteractiveAuthentication yes
KexAlgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
LogLevel INFO
Macs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
PasswordAuthentication yes
PermitRootLogin yes
PrintMotd no
StrictModes yes
UseDns no
UsePAM yes
X11Forwarding no
Banner none
AddressFamily any
Port 22
Subsystem sftp /nix/store/78mv13w9mgh0s0rd7rnr6ff4d7a39bpd-openssh-9.7p1/libexec/sftp-server 
AuthorizedKeysFile %h/.ssh/authorized_keys /etc/ssh/authorized_keys.d/%u
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

 

Solution:
hd-idle is the way to go (if you read their README, they explain that most drives don't support idle timers)

I've been looking into spinning down the drives of my NAS, as I use it infrequently and that brings power drain down from ~30W to ~17W.

Problem is, hdparm -S doesn't seem to do anything for these particular drives: if I set it and wait for the appropriate amount of time (eg. 5 seconds if set to 1) the drives are still reported as "active/idle" and power drain doesn't go down.

Both hdparm -y and hdparm -Y work fine, but I don't seem to be able to find settings for them in tlp (probably because they are commands rather than settings?).

Besides the caveats about disks living longer if they are kept spinning, are there reasons why I shouldn't setup a cron job (well, a systemd timer) that runs hdparm -Y every 10 minutes? (for example, could hdparm -y cause errors if run while the drive is being backed up?)

PS: According to hdparm's manpage, -y puts the drive standby mode while -Y puts it into sleep mode. Considering that in my case power drain seems the same either way, should I prefer one or the other?

 

I want to have my screen (the "dev" workspace) split in three "zones":

  • on the left side, a tabbed group with all the text editors I start (ie. if I start a new one, it goes there in a new tab)
  • on the top-right, a tabbed group of whatever many terminal I feel like launching
  • on the bottom-right, my browsers (and possibly other stuff), in a group without tabs
  • a key combination to cycle between: all three "zones" visible, text editors on the left - terminal on the right, text editors on the left - browser on the right, fullscreen browser

So far I've been looking at hyprland (for no particular reason except the hype) and I don't think I can do the above with it (I am by no means an expert, so... maybe it can actually be done?).

Do you know of any WM where it would be possible? (possibly, one with automatic splitting a-la bspwm, that I would use for the other workspaces)

 

I've been looking around for a scripting language that:

  • has a cli interpreter
  • is a "general purpose" language (yes, awk is touring complete but no way I'm using that except for manipulating text)
  • allows to write in a functional style (ie. it has functions like map, fold, etc and allows to pass functions around as arguments)
  • has a small disk footprint
  • has decent documentation (doesn't need to be great: I can figure out most things, but I don't want to have to look at the interpter source code to do so)
  • has a simple/straightforward setup (ideally, it should be a single executable that I can just copy to a remote system, use to run a script and then delete)

Do you know of something that would fit the bill?


Here's a use case (the one I run into today, but this is a recurring thing for me).

For my homelab I need (well, want) to generate a luhn mod n check digit (it's for my provisioning scripts to generate synchting device ids from their certificates).

I couldn't find ready-made utilities for this and I might actually need might a variation of the "official" algorithm (IIUC syncthing had a bug in their initial implementation and decided to run with it).

I don't have python (or even bash) available in all my systems, and so my goto language for script is usually sh (yes, posix sh), which in all honestly is quite frustrating for manipulating data.

 

After years of my desktop environment (kde) being configured the same way, I tried enabling auto-hiding in my panel and I quite like the extra screen estate.

Now, the only reasons why I have a panel in the first place are the clock and the system tray (I don't use the ~~start~~ applications menu and I don't care for the task manager) so I've started wondering if I could completely dispose of the panel.

Do you know of any launcher (I use krunner but switching to something else is fine) that satisfies (or can be configured to satisfy) the following?

  1. shows the current date/time
  2. integrates a system tray
  3. launches applications
  4. does math, unit conversion and currency conversion
view more: next ›