[-] [email protected] 44 points 4 days ago* (last edited 4 days ago)

VeraCrypt Volume Format Specification:

Each VeraCrypt volume contains an embedded backup header, located at the end of the volume (see above). The header backup is not a copy of the volume header because it is encrypted with a different header key derived using a different salt (see the section Header Key Derivation, Salt, and Iteration Count).

It may be possible to recover the encryption key. You might try asking on VeraCrypt forums/mailing lists or contacting a commercial data recovery service which understands VeraCrypt. Though I’m not familiar with VeraCrypt so I may be misunderstanding the cited documentation.

[-] [email protected] 2 points 4 days ago

This doesn’t mean it’s a bad format or that it shouldn’t be used. In fact, it should still be the default unless you need something it doesn’t support or really need to reduce file size.

I rather disagree. I’ve switched to lossless WebP for all my needs. There are practically no drawbacks and I get a smaller file.

[-] [email protected] 42 points 3 weeks ago* (last edited 3 weeks ago)

Unless commits are signed, you can always rewrite history. No matter the tool. Extreme example demonstrating that this is possible is the fact that I can change my machine’s time, change my user name and reply the tool’s commands to construct whatever history I want.

[-] [email protected] 13 points 1 month ago

This is not a legitimate issue. It’s like complaining that wget reads proxy settings from /etc/wgetrc. It’s absolutely proper for programs to read system- or user-level configuration if the configuration is not specified via environment variables or command line options.

The typical setting hierarchy goes something like:

  • command line options,
  • environment variables,
  • user-level configuration files and finally
  • system-level configuration files.
[-] [email protected] 47 points 2 months ago* (last edited 2 months ago)

It’s trivial. Use Linux Mint or Debian, enable non-free repositories if required, and that’s pretty much it.

I’ve never had issues with Nvidia drivers. Your mileage may vary.

[-] [email protected] 35 points 2 months ago* (last edited 2 months ago)

Admittedly, I’m probably not the best person to ask for recommendation of a noob-friendly distro, but I feel people are overthinking this. If someone produces a list which includes distros I’ve never heard of, I think they spent too much time on ‘Top 10 Noob Friendly Distros in 2025’ websites.

If you really care about my recommendation, just start with Mint.

PS. I should also add, this isn’t criticism of you or any other new user who does search online for recommendation. This is more a comment on state of the Internet where there are so many websites which seem to pad their list with obscure distros where really all such articles should give recommendation for one of the same three distributions. Which three I don’t exactly know.

[-] [email protected] 11 points 3 months ago

Yes, I agree. But the dispute is what ‘sends EOF’ actually means. The article I respond to claims Ctrl+D doesn’t send EOF but is like Enter except that new line character is not sent. This is, in some sense true, but as I explain also misleading.

34
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]

Response to a recent claim that Ctrl+D in the terminal is like pressing Enter. It kind of is but it’s also misleading to say so without further explanation.

[-] [email protected] 11 points 3 months ago

I used Claws Mail at some point in the past. Now notmuch+Emacs.

[-] [email protected] 30 points 3 months ago* (last edited 3 months ago)

Another interesting part is that HTML5 supports embedding SVG. That is, you can put SVG code directly in your HTML5 document and it’s going to render correctly. You can also style it through your website’s CSS file and manipulate the elements via JavaScript.

Though as others pointed out, it’s technically not HTML but XML. For example, you have to close all the elements and quote all the attribute values. But when you embed it inside a HTML document, those rules get relaxed to adhere with HTML. (I.e., you cannot write <circle r=5> in SVG (it must be <circle r="5" />) but you can when you embed it in HTML).

[-] [email protected] 12 points 3 months ago* (last edited 3 months ago)

Sure, though I advise against it. The following C program can do that:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char **argv) {
	if (argc < 2) {
		fprintf(stderr, "usage: %s <command> <args>...", argv[0]);
		return EXIT_FAILURE;
	}

	printf("Executing");
	for (int i = 1; i < argc; ++i) {
		printf(" %s", argv[i]);
	}
	puts("\nPress ^C to abort.");
	sleep(5);

	if (setuid(0)) {
		perror("setuid");
		return EXIT_FAILURE;
	}

	execvp(argv[1], argv + 1);
	perror(argv[1]);
	return EXIT_FAILURE;
}

As seen in:

$ gcc -O2 -o delay-su delay-su.c
$ sudo chown root:sudo delay-su
$ sudo chmod 4750 delay-su
$ ./delay-su id
$ id -u
1000
$ ./delay-su id -u
Executing id -u
^C to abort
0

This will allow anyone in group sudo to execute any command as root. You may change the group to something else to control who exactly can run the program (you cannot change the user of the program).

If there’s some specific command you want to run, it’s better to hard-code it or configure sudo to allow execution of that command without password.

[-] [email protected] 22 points 3 months ago* (last edited 3 months ago)

It’s not. You keep insisting that ^D doesn’t send EOF and yet:

$ stty -a | grep eof
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
$ man stty |grep -A1 eof |head -n2
       eof CHAR
              CHAR will send an end of file (terminate the input)

^D (which is an ASCII EOT character) signals EOF. The thing is that in C every line of a text file must be terminated by a new-line. And so, when you end a file with ^D without a return, you get funky results.

[-] [email protected] 39 points 3 months ago

Mint is fine. Rather than changing distros, rather keep using it and configuring it the way you want it. For the most part, GNU/Linux is GNU/Linux is GNU/Linux and many popular distributions are largely the same.

view more: next ›

mina86

0 post score
0 comment score
joined 3 months ago