Questions tagged [openbsd]

OpenBSD is a BSD variant with a strong security and code correctness focus.

Filter by
Sorted by
Tagged with
94 votes
1 answer
118k views

Redirect both stderr and stdout to /dev/null with /bin/sh

I have tried all sorts of ways to redirect both stdout and stderr to /dev/null without any success. I have almost my entire life run bash which I've never had this issue with, but for once in BSD I'm ...
Torxed's user avatar
  • 3,637
26 votes
8 answers
40k views

How to apply updates on OpenBSD, NetBSD, and FreeBSD?

I'm using OpenBSD for quite a while now. All I do, however is go from one release to the next, always just doing an update. I configured the system so it works as my router and firewall, and it works ...
polemon's user avatar
  • 11.5k
23 votes
3 answers
7k views

What is OpenBSD's pledge in short?

Can someone please describe, for a non-programmer, but IT person, what is pledge? Ex.: there is a program, ex.: "xterm". How can pledge make it more secure? It pledge inside the programs code, or ...
Peter's user avatar
  • 521
22 votes
6 answers
49k views

Prevent a USB external hard drive from sleeping

Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing ...
gabe.'s user avatar
  • 11.8k
19 votes
3 answers
14k views

How should one set up full-disk encryption on OpenBSD?

Is there a preferred method to set up full-disk encryption under OpenBSD, similar to dm-crypt under Linux? I'm looking for full-disk encryption, as if someone were to steal my notebook they could ...
LanceBaynes's user avatar
  • 40.2k
17 votes
4 answers
49k views

How do I send a shutdown event to a QEMU guest (OpenBSD)?

I'm using virtualisation solely to install OpenBSD onto the bare hardware, and during the installation, the redirection to the serial port didn't get configured, so, I ended up with the system running,...
cnst's user avatar
  • 3,283
13 votes
3 answers
30k views

How to block abusive IP addresses with pf in OpenBSD?

We can see from the nginx logs that there is an IP address doing nasty things. How can we block it with a pf command and then later permanently with the /etc/pf.log? How can we block a x.x.x.x/24 ...
somelooser28533's user avatar
13 votes
2 answers
7k views

OpenBSD: How to follow -current?

This question is similar to this one, but more specific. I have a -stable OpenBSD machine and I want to start following -current. I know about the upgrade procedure from one release to another. How ...
Gradient's user avatar
  • 3,669
12 votes
4 answers
2k views

Unix on a DEC VAX?

I just picked up a DEC VaxStation 4000 model 90 with a built in CDROM and an auxiliary SCSI storage module with tape archive drive. I believe it is functional although I cannot test it yet since I ...
haziz's user avatar
  • 2,241
12 votes
5 answers
7k views

nginx: Long filenames in directory listing

Using nginx/1.4.1 with OpenBSD 5.4, 64bit: How could we set nginx to show the full filename (or at least show more from the filename then the default) when using directory listing? Googling around ...
evachristine's user avatar
  • 2,623
12 votes
1 answer
3k views

What is "Charlie &" in the gecos field on OpenBSD for root?

Question: what is "Charlie &" for the root user? I didn't gave "Charlie &" for gecos field, I think I didn't gave any at all. ps.: the "/sbin/nologin" doesn't matters, I just tested ...
gasko peter's user avatar
  • 5,514
12 votes
2 answers
817 views

Behaviour of "eval" under "set -e" in conditional expression

Consider the commands eval false || echo ok echo also ok Ordinarily, we'd expect this to execute the false utility and, since the exit status is non-zero, to then execute echo ok and echo also ok. ...
Kusalananda's user avatar
  • 335k
11 votes
2 answers
10k views

Google Chrome on OpenBSD

How can I install Google Chrome on OpenBSD?
LanceBaynes's user avatar
  • 40.2k
11 votes
1 answer
2k views

How to mitigate Spectre and Meltdown kernel memory leaking CPU bug on OpenBSD?

Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign and Reading privileged memory with a side-channel In recent news people could read about a kernel memory leaking CPU ...
whoonetets's user avatar
10 votes
1 answer
15k views

Why I can't unpack .tar.bz2 or .tar.xz files?

I'm having a problem unpacking files when I try to build from source on my OpenBSD First I thought it was just corrupted files but after it happened to many different programs and from different ...
Freedo's user avatar
  • 1,255
10 votes
2 answers
9k views

How to edit a .gpg file with vi?

So I created a gpg encrypted file with password: gpg -c passwords.txt.gpg how can I open it with vi, edit it, then close it? (So that no passwords.txt file will be created, the decrypted passwords....
gasko peter's user avatar
  • 5,514
10 votes
3 answers
6k views

Dropbox on OpenBSD

Has anyone had any success getting dropbox installed with dropboxd running properly on OpenBSD (FreeBSD would work for me too..)? I have built from source and everything installs just fine but when I ...
unclejamil's user avatar
9 votes
2 answers
2k views

What does "Do you expect to run the X Windows System?" do when installing OpenBSD?

When installing OpenBSD 5.1, I got the question: Do you expect to run the X Windows System? What change does the installer make to my system if I say "yes"? I know what X Windows is, but I don't ...
gasko peter's user avatar
  • 5,514
9 votes
6 answers
27k views

List all connected devices in OpenBSD

How do I list all connected (including unmounted) devices on OpenBSD? I'm looking for something similar to lsblk for Linux or camcontrol devlist for FreeBSD: # List devices on FreeBSD $ ...
Alexej Magura's user avatar
9 votes
2 answers
22k views

How to permanently connect to WPA2AES wifi with OpenBSD (through cli)

I have an OpenBSD 5.1 i386 installed. I have no GUI/X. I googled for the answer but I can't find authentic one. How can I connect to a WPA2 PSK/AES wifi network using only the terminal? (so I don't ...
gasko peter's user avatar
  • 5,514
9 votes
2 answers
2k views

OpenBSD: Defining a new loopback interface

I need one more loopback interface in my OpenBSD 6.1, with the IP address 127.0.0.2. I can create it by hand with the command: ifconfig lo1 127.0.0.2 And to have it at boot time, I just inserted ...
Rui F Ribeiro's user avatar
9 votes
2 answers
28k views

Why is sudo telling me my password is wrong?

I recently installed OpenBSD 4.9 in my computer, so I could learn a little bit about Unix-like operating systems. I added a new user to the system called bruno. Ok. When I use the 'sudo' command, it ...
Bruno Calza's user avatar
9 votes
1 answer
2k views

How can I send power on/off signals to a VGA monitor?

I've used some old spare parts to make a sort-of kiosk for my kitchen. It's running OpenBSD and has a simple text based UI (no X Server). I plan to add an Arduino with a motion sensor that ...
ellipse-of-uncertainty's user avatar
9 votes
1 answer
2k views

USB audio only outputs white noise

I am running OpenBSD/i386 5.1 on a 5 year old laptop. The speakers and headphone port work, but the headphone port is a little loose so I am trying to install an external USB sound card (Fiio E17 USB ...
ssh2ksh's user avatar
  • 420
8 votes
2 answers
697 views

Bounds in awk regular expression do not work on OpenBSD

This awk expression prints inet 34.45 as expected on OpenBSD: echo "inet 34.45" | awk '/inet [0-9]+\./ { print }' However, when I replace the + with a bound {1,3}, I am not getting any match: echo "...
Fabian Ritzmann's user avatar
8 votes
2 answers
7k views

Does OpenBSD have a limit to the number of file descriptors?

What's the maximum number of file descriptors that a process can get on OpenBSD successfully? For example, there is an openfiles limit in login.conf(5) in OpenBSD. If I want to have as many file ...
cnst's user avatar
  • 3,283
8 votes
2 answers
6k views

Adding Ctrl-L as "clear" hotkey in OpenBSD's ksh

I've been looking for a way to use Ctrl-L to clear the monitor instead of typing clear in each time. I found nothing except a patch which didn't work for me. How do I add hotkeys/shortcuts to my ...
user avatar
8 votes
1 answer
659 views

Packaging binary release on OpenBSD

I have a tiny application written in go and I've cross-compiled it to various operating systems. Currently my Makefile generates myapp-VERSION-OS-CPUARCH.tar.gz packages to be used as a source ...
raspi's user avatar
  • 1,376
8 votes
1 answer
558 views

How to use /etc/fbtab in OpenBSD to secure X11?

OpenBSD's man page afterboot(8) suggests: "You might wish to tighten up security more by editing /etc/fbtab as when installing X." How might one do this? What lines when added to /etc/fbtab would ...
Nicholas's user avatar
8 votes
2 answers
3k views

NAT and source IP filtering in PF, using OpenBSD >= 4.7

I just read a book about PF (The Book Of PF, No Starch), but there's one question not answered by it. If I have a gateway machine using two interfaces, $int_if and $ext_if, and I NAT the packages ...
dermesser's user avatar
7 votes
3 answers
12k views

Are there any virtualization solutions for OpenBSD that aren't from ports?

I'm searching for a virtualization solutions for an OpenBSD host and a CentOS guest. What are my options? I'm searching for one that doesn't use packages from ports. Are there any?
LanceBaynes's user avatar
  • 40.2k
7 votes
3 answers
5k views

OpenBSD 6.0 ntpctl says "clocked synced" but is ~26 seconds behind

My OpenBSD host is running NTPD but is 26 seconds slow, despite it saying "clock synced": user@host:~# ntpctl -sa 4/4 peers valid, clock synced, stratum 3 peer wt tl st next poll ...
RobIII's user avatar
  • 217
7 votes
5 answers
5k views

Is there a valid alternative to top for OpenBSD?

I like very much htop, on GNU/Linux is very nice, I would like a similar software for OpenBSD 5.6. Anyone knows something about that?
b3h3m0th's user avatar
  • 352
7 votes
2 answers
5k views

OpenBSD SMP support

The OpenBSD 4.9 release announcement says "SMP kernels can now boot on machines with up to 64 cores;" So OpenBSD does support several CPU's/cores? If i have a Core2Duo cpu in my laptop (t7100) ...
LanceBaynes's user avatar
  • 40.2k
7 votes
2 answers
5k views

Is it possible to store user's crontab in user's git repository on OpenBSD?

On OpenBSD and with OpenBSD's cron and crontab, is it possible to store the crontab(5) of a user in a git repository of the same user? What would be the proper way to accomplish something like this? ...
cnst's user avatar
  • 3,283
7 votes
1 answer
6k views

How to check dependencies of a package under OpenBSD?

AFAIK this is the way that I can install for ex.: XYZ on OpenBSD: pkg_add -Uvi XYZ How can I get a list for all the dependencies regarding XYZ package? -> So I need a list about .tgz filenames ...
gasko peter's user avatar
  • 5,514
7 votes
1 answer
701 views

How to install an old version of OpenBSD inside VirtualBox?

I'm reading an old Phrack article and I would like to install OpenBSD 3.0 inside VirtualBox. I remember installing this very version using actual physical floppy disks in 2001, but nowadays I don't ...
alecail's user avatar
  • 1,623
7 votes
6 answers
2k views

Can I use Unix to load-balance two Linux servers?

I'm trying to work out a solution in my head where two backend linux-servers run HTTP, SMTP, XMPP mirrored and should load balance connections between them. My current solution is an OpenBSD box ...
Stefan Midjich's user avatar
7 votes
1 answer
858 views

Realtek audio issues on OpenBSD 5.2

I am running OpenBSD/amd64 5.2 stable on a new machine, using a gigabyte motherboard with a realtek alc898 audio chipset. When I try to play any audio (sources include mpd, aucat, and cat > /dev/...
512's user avatar
  • 71
6 votes
3 answers
2k views

Equivalent to "source" in OpenBSD?

Trying to open a python3 virtual environment I have created with python3 -m venv myVenv by doing source myVenv/bin/activate as I do in Linux, but I get ksh: source: not found which mean it is ...
Salviati's user avatar
  • 189
6 votes
2 answers
306 views

ssh-keygen and its -Z option on OpenBSD and on RHEL

I'm following along a rather good text about SSH certificates written for RHEL 6 and openssh-5.3p1-94.el6 (which makes it about 10 years old) while trying to mimic the examples on my OpenBSD-current ...
Kusalananda's user avatar
  • 335k
6 votes
4 answers
2k views

Mount filesystems after boot to avoid fsck delay for sshd

I'm trying to optimise the overall downtime and improve availability in case of system failure. I'm specifically concerned about the reboot (e.g. after a kernel panic) taking so long that I don't ...
cnst's user avatar
  • 3,283
6 votes
3 answers
7k views

How to properly enable httpd with rcctl on OpenBSD so that it starts automatically?

On a OpenBSD machine running OpenBSD 6.2 amd64, httpd cannot be started by using rcctl: # rcctl start httpd httpd(failed) However, when started by just entering httpd, it works; but this is not the ...
Michael Kremser's user avatar
6 votes
1 answer
6k views

Write an image to a flash drive under OpenBSD

Under Linux, I can simply do a: dd if=ubuntu-14.04.1-desktop-amd64.iso of=/dev/sdb and boot up the /dev/sdb which is a device for a flash drive. It finishes in 263 seconds. But: If I boot up an ...
user avatar
6 votes
3 answers
9k views

How to disable IPv6 on OpenBSD?

I'm sure that in my network I will not use IPv6 only IPv4. So according to the KISS principle I will need to disable it. How can I do it? OS is OpenBSD 5.1.
gasko peter's user avatar
  • 5,514
6 votes
1 answer
4k views

What are the daemon user and group for?

I am configuring a web server on OpenBSD and I can see in /var/www/ that all directories except /var/www/cache/ are root:daemon. I then see that the user for the daemon group is daemon $ grep daemon /...
Paul's user avatar
  • 507
6 votes
2 answers
22k views

Gnome desktop environment: how to get it working on OpenBSD?

I have OpenBSD 5.7-amd64 installed and patched with all the latest available fixes. I would like to have a minimal Gnome desktop environment and I did the following to my user account (not root ...
virvegto's user avatar
6 votes
1 answer
510 views

Dvorak Programmer Layout with OpenBSD

I've recently installed OpenBSD. When installing the OS I selected the normal Dvorak layout as the Dvorak Programmer wasn't present on the list. After the install I wanted to change the layout with ...
user avatar
6 votes
2 answers
4k views

Getting better resolution using X on OpenBSD w/VMWare Fusion

Just setup an OpenBSD 4.8 VM for VMWare Fusion. Can't seem to force X to any decent resolution. I attempted to try and use the VMWare tools for FreeBSD, but no dice. Any suggestions to try and get ...
Justin's user avatar
  • 201
6 votes
2 answers
3k views

Incorrect UTF-8 accents in vi/vim on OpenBSD 6.2

After a default install of OpenBSD 6.2 with FVWM, I open an xterm on the FVWM GUI, with normal user, create a test file: $ echo 'árvíztűrő tükörfúrógép' > test.txt $ echo 'ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP' ...
Hessnov's user avatar
  • 591

1
2 3 4 5
11