Questions tagged [openbsd]

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

Filter by
Sorted by
Tagged with
57
votes
1answer
76k 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 ...
25
votes
9answers
28k 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 ...
18
votes
3answers
11k 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 ...
17
votes
3answers
1k 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 ...
15
votes
4answers
23k 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,...
12
votes
3answers
20k 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 ...
11
votes
1answer
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 ...
10
votes
5answers
22k 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 ...
10
votes
4answers
1k 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 ...
10
votes
2answers
7k views

Google Chrome on OpenBSD

How can I install Google Chrome on OpenBSD?
10
votes
2answers
3k 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 ...
9
votes
2answers
1k 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 ...
9
votes
2answers
559 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 ...
9
votes
2answers
192 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. ...
9
votes
1answer
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 ...
8
votes
3answers
2k 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 ...
8
votes
2answers
4k 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 ...
8
votes
1answer
1k 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 ...
8
votes
2answers
5k 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 ...
8
votes
1answer
405 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 ...
8
votes
2answers
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 ...
7
votes
1answer
6k 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 ...
7
votes
2answers
5k 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....
7
votes
2answers
11k 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 ...
7
votes
2answers
3k 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 ...
7
votes
2answers
17k 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 ...
7
votes
6answers
1k 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 ...
7
votes
1answer
689 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/...
6
votes
3answers
2k 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 ...
6
votes
4answers
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 ...
6
votes
1answer
972 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 ...
6
votes
3answers
6k 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.
6
votes
1answer
3k 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 ...
6
votes
2answers
14k 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 ...
6
votes
1answer
550 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 ...
6
votes
2answers
3k 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 ...
6
votes
2answers
1k 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' ...
5
votes
3answers
1k 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 ...
5
votes
3answers
1k views

Why does a default Linux installation run more processes than a default OpenBSD installation?

If I ps -aux on Ubuntu (or any GNU/Linux distribution) without GUI I see ~100 processes running. If I ps -aux on OpenBSD without GUI, then I get ~10 processes. What is the explanation/reason for ...
5
votes
3answers
9k 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?
5
votes
2answers
3k 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) ...
5
votes
2answers
359 views

Emacs on OpenBSD for DEC VAX?

I have managed to install OpenBSD 5.2 on my DEC VaxStation 4000 Model 90 but to my surprise have not found a binary for Emacs (any version) for the VAX architecture. As best as I can tell I do not see ...
5
votes
2answers
4k views

OpenBSD: 32 bit or 64 bit

I would like to use the 64 bit version of OpenBSD, but I'm not really sure how good it works. Are there any known problems? Is the 32 bit version more recommended for productive environment?
5
votes
3answers
4k 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 $ ...
5
votes
2answers
3k 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? ...
5
votes
3answers
494 views

OpenBSD patch system

If I install OpenBSD from CD-ROM: http://www.openbsd.org/ftp.html with install48.iso then is it patched? All 10 patches from here are in the ISO file? If those are not included, how can I apply these ...
5
votes
4answers
956 views

Move files between Linux and OpenBSD and keep file properties

I would like to move/share some files between Linux and OpenBSD. What would be an easy and simple way to achieve this? These are the solutions I have found so far and why I am not fully convinced: ...
5
votes
1answer
559 views

Why doesn't GCM HTTPS work with nginx?

Since these two are using GCM (Galois/Counter Mode): www.ssllabs.com: ECDHE-RSA-AES256-GCM-SHA384 www.google.com: ECDHE-RSA-AES128-GCM-SHA256 We wanted to make our webserver's HTTPS connection more ...
5
votes
3answers
787 views

Why does time/ident/daytime/comsat run after an OpenBSD 5.2 install?

I installed an OpenBSD 5.2 using "-* & +etc* & +base* & +bsd". After finished with the install, I rebooted, then netstat -at | grep LISTEN, this is what I get for output: Why does so ...
5
votes
2answers
1k views

How can I peek at the output of a running crontab task on OpenBSD?

I have an hourly hour-long crontab task running with some mtr (traceroute) output every 10 minutes (that is going to go for over an hour prior to it being emailed back to me), and I want to see the ...