New answers tagged

0

My solution was to put them in /etc/dhclient.conf e.g.: prepend domain-name-servers 210.232.10.246; prepend ...; This way, these nameservers are tried first, as opposed to when they are put in the /etc/resolv.conf.tail, and connecting to the VPN works (semi)automatically, as desired. To read more about how arrived to this solution and why I'm not a 100% ...


2

You have to add one or more mirrors to your /etc/pkg.conf. You can add multiple mirrors by using the += notation. installpath = http://ftp5.eu.openbsd.org/ftp/pub/OpenBSD/%c/packages/%a/ installpath += http://ftp2.eu.openbsd.org/pub/OpenBSD/%c/packages/%a/ %c and %a are placeholders that get replaced by the release and the architecture of your ...


2

You could try creating an empty file for each of the files listed, e.g.: touch /usr/local/share/locale/cs/LC_MESSAGES/pkg.qX9SMkCPZb and so on. Once the files are there use pkg_delete -qq to delete without comparing recorded checksums. If that doesn't work, /var/db/pkg/<pkg-name>/+CONTENTS lists the package's contents and locations where files ...


2

if [ "1024" == "$((32*32))" ]; then echo "The test worked" else echo "The test failed" fi This ought to work; if your shell does not use $(( )) for arithmetic, the strings will not match. You can also shorthand it with: [ "1024" == "$((32*32))" ] || echo "I can't math!"


2

The key to shell performance is to minimise the number of expensive system calls, in particular fork() and exec(). Don't use grep or sed inside a shell loop. Never use a pipeline with both; in most cases, it can be reduced to just sed or awk. If it gets complicated, use a language that can parse regular expressions, and do loops, like awk or perl. On the ...


1

for shell in for shell in $(sed '1d' /etc/shells); do # or use your own list of shells echo "$shell -" time $shell /path/to/script done


2

OpenBSD Requires hardware virtualization to be enabled. Versions 3.7 and later are supported. Guest Additions are not available yet. https://www.virtualbox.org/manual/ch03.html#guestossupport Shared clipboard With the Guest Additions installed, the clipboard of the guest operating system can optionally be shared ...


2

openbsd has a distinct concept of memory management in terms of security. therefore, statically linked libraries can not be preloaded: the code reads: shlib = _dl_load_shlib(cp, _dl_objects, OBJTYPE_LIB, _dl_objects->obj_flags); if (shlib == NULL) { _dl_printf("%s: can't preload library '%s'\n", ...



Top 50 recent answers are included