/obsd/ - OpenBSD General

OpenBSD is a free and open-source, security-focused, Unix-like operating system.

*Please remember that this thread is not meant to be a discussion about Linux vs OpenBSD*

FAQ:
>How do I get started?
-openbsd.org/faq/faq4.html

>What are the available graphics drivers?
-amdgpu(4): AMD Radeon GPUs using the amdgpu kernel driver (not enabled by default yet, still Work-In-Progress)
-intel(4): Intel integrated graphics chipsets
-radeon(4): ATI/AMD Radeon video driver
-efifb(4): EFI frame buffer
-vesa(4): Generic VESA video driver

>What are the available wireless drivers?
-man.openbsd.org/?query=wireless&apropos=1

>How do I set up Full-Disk Encryption?
-openbsd.org/faq/faq14.html#softraidFDE

>Why OpenBSD?
-sivers.org/openbsd
-over-yonder.net/~fullermd/rants/bsd4linux/01 (discusses *BSD in general)
-why-openbsd.rocks/ (shows up a random fact about OpenBSD whenever you load it)
-openbsd.org/innovations.html
-en.wikipedia.org/wiki/OpenBSD_security_features

>Should I use -release or -current?
-If you're using it in your home machine, then -current is most likely what you're looking for since it contains updated packages.

>How do I follow -current?
-openbsd.org/faq/current.html

>How do I upgrade -current to the latest snapshot?
-Just run sysupgrade(8) as root.

>How do I get help?
-OpenBSD man pages
-OpenBSD mailing lists: openbsd.org/mail.html
-daemonforums: daemonforums.org/
-OpenBSD FAQ: openbsd.org/faq/

>Book recommendations:
-Absolute OpenBSD (2nd edition)
-The Book of PF (3rd edition)

>Miscellaneous:

-c0ffee.net/blog/openbsd-on-a-laptop/ (tips for a laptop installation, contains some useful information)
-openbsd.org/lyrics.html (OpenBSD's songs)
-cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ (list of available packages)

Feel free to ask questions and discuss topics that are related to OpenBSD.

Attached: openbsdcomic.jpg (1300x804, 161K)

Other urls found in this thread:

man.openbsd.org/mount_tmpfs
en.wikipedia.org/wiki/Internet_troll
knowyourmeme.com/memes/cultures/trolling
openbsd.org/faq/faq4.html#SendDmesg
etymonline.com/word/Libre
pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html
pubs.opengroup.org/onlinepubs/9699919799/functions/fscanf.html
pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
androidauthority.com/meltdown-spectre-kpti-827527/
marc.info/?l=openbsd-ports&m=155527382622473&w=2
twitter.com/AnonBabble

>general about actual tech is DOA

Should've made a post about youtubers and/or bitcoin, better luck next time.

Attached: 1557027666957.jpg (1376x3152, 973K)

Friendly reminder to ignore the troll(s) and to report them whenever you find them. Don't reply to them.

Don't recommend mixes between GNU userlands and BSD kernels. It's almost always a bad idea.
The Gentoo ones are dead too AFAIK.

>FreeBSD, NetBSD
>Endless configuration errors.
>Failuers
As much as I like OpenBSD this is actually false and misleading.

>Fucking shit and botnet
>TrueOS
It's just FreeBSD with a pre-installed DE AFAIK, what's so bad about it?

I think it's a meme image.

Who's excited to run OpenBSD on the Raspberry pi 4? It sounds awesome!

>no RAVEN graphics support

Attached: 2.jpg (550x476, 32K)

If you're talking about AMD Raven Ridge APUs, they are supported using amdgpu(4).

>be me
>install openbsd in a vm
>they changed sudo to doas
>they changed openssl to libressl
>libre anything sounds homo

DROPPED

Attached: 78e832d5f2d9aa019c95a0d44240e19d.jpg (494x679, 61K)

>Not aliasing doas to sudo
>Not realizing that LibreSSL's binary is still called OpenSSL because he never used it
C'mon, troll harder next time.

Attached: summer.png (1000x1000, 731K)

Hey guys I want to setup an OpenBSD home NAS, anything I should know before doing that? I want it to be available to my local network only.

how do I disable touchpad tapping?

If you mean tap-to-click, it's disabled by default.

No it's not. Do you think I am imagining things or something?

Don't; OpenBSD has poor FS support

What does the following command return?
cat /etc/wsconsctl.conf

I don't need you to lecture me about OpenBSD, I just asked about tips for running a home NAS.

My tip is to not use OpenBSD. It has its strengths but running a NAS is not one of them

cat: /etc/wsconsctl.conf: No such file or directory

What does this command return?
wsconsctl -a

>wsconsctl -a
keyboard.type=pc-xt
keyboard.bell.pitch=400
keyboard.bell.period=100
keyboard.bell.volume=50
keyboard.bell.pitch.default=400
keyboard.bell.period.default=100
keyboard.bell.volume.default=50
wsconsctl: Use explicit arg to view keyboard.map.
keyboard.repeat.del1=400
keyboard.repeat.deln=100
keyboard.repeat.del1.default=400
keyboard.repeat.deln.default=100
keyboard.ledstate=0
keyboard.encoding=no
mouse.type=ps2
display.type=inteldrm
display.width=1280
display.height=800
display.depth=32
display.fontwidth=12
display.fontheight=24
display.emulations=vt100
display.screentypes=std
display.focus=4
display.brightness=100.00%
display.screen_on=250
display.screen_off=0
display.vblank=off
display.kbdact=on
display.msact=on
display.outact=on

what is the free command equivalent?

Attached: 1482466910934.png (706x412, 278K)

There doesn't seem to be anything that indicates mouse.tp.tapping is enabled. Which is weird.
I'll instruct you to disable it, even though it doesn't seem to be enabled:
edit /etc/wsconsctl.conf with your favourite editor and put this into it:
mouse.tp.tapping=0
Then reboot

(or how do I see used RAM in OpenBSD)

I didn't try this, but it should work:
top -n | grep Mem

/etc/wsconsctl.conf doesn't exist

>locate wsconsctl
/etc/examples/wsconsctl.conf
/sbin/wsconsctl
/usr/share/man/man5/wsconsctl.conf.5
/usr/share/man/man8/wsconsctl.8

do I just copy the one from /etc/examples?

Just create it and put what was in the comment in it.

>Memory: Real: 54M/472M act/tot Free: 3373M Cache: 305M Swap: 0K/1824M
so it's using 54M?
what is the 472M number?
does that overlap with Cache?
how does this work
is there an equivalent to /proc/meminfo?
htop tells me it's using 167M btw
neofetch tells me it's using 59MiB
which is the correct number?

>167M
That's your memory with the cached stuff and whatnot, not important, can be used when other apps need it.
>59M
This is the actual usage of the memory by apps and the operating system and whatnot.

no change. same with /etc/mixerctl.conf. no matter what I put in there it always goes back to the default whenever I reboot. I'm starting to think this os might be a little shitty.

Well, if you don't like it, you always have the option of not using it.

why does it say "operation not supported" when I try to mount tmpfs?

but I want to get it to work

What did you do and what were you trying to achieve? You didn't provide much info.

I just tried running `mount -t tmpfs tmpfs /mnt`, it says
>mount_tmpfs: tmpfs on /mnt: Operation not supported

Not sure if it helps, but read the man page, there's an example on mounting it on /mnt
man.openbsd.org/mount_tmpfs

>bsd

Attached: 1467516237905.png (883x1024, 105K)

does it work if you try it?

Bros, I am in need of some help.
What is the wireless adapter you would recommend? I read the manpages, and it seems between the ones that respect my freedoms, the ral RT2800 and the athn AR9280 are the latest and most powerful models.
Am I correct about this?
ShouldI just sell my sould and get an Incel 7260?

I use an Atheros one, werks fine for my needs.

How much mpbs do you get with that?

I don't know, haven't tested it.

What model are you using?

>dat pic

Attached: 382.jpg (403x394, 34K)

Has anyone here tried the new Steam client?

try dragonfly

I wish Draonfly/Gentoo was a thing

>Gentoo is a kernel

>le kernel must come before the slash
I was referring to the image.

>Speaking like a redditfag
You're autistic.

>le you
>le lefag
>le autism maymay
>le le
>le kill le self
>le le and le lepilled
>le necro skullfuck
>everything went better than expected

Attached: 1449254118208.gif (400x306, 475K)

It's that retard from the Haiku general who shitposted that great wall of cringe again.

For those who are unfamiliar with the concept of "trolling" and are replying to the so-called "trolls", these links might help:
en.wikipedia.org/wiki/Internet_troll
knowyourmeme.com/memes/cultures/trolling
Interesting parts:
>11.All your carefully picked arguments can easily be ignored.
>12.Anything you say can and will be used against you.
>13.Anything you say can be turned into something else – fixed.
>14.Do not argue with trolls – it means that they win.
>15.The harder you try the harder you will fail.

>Some psychologists have suggested that flaming would be caused by de-individuation, or decreased self-evaluation.

_Just report and move on_

Thanks, I'll give it a look.

Why would you want that? DragonFlyBSD has its own ports system so that you can compile your packages yourself.

USE flags

I prefer to configure packages myself instead of relying on some abstraction like USE flags, configuring packages manually gives fine-grained control over your packages and allows you to cover edge-cases that aren't always available in Gentoo's portage.

The most convenient part is actually the documentation around the flags in Gentoo.

Yeah I agree with that. Fortunately many projects are starting to document their packages and building process fairly well so that might not be a concern in the future.

*blocks your path*

Nice lack of ZFS, Hammer2, Jails,and Trim you got there lad.
>braps on your Bhyve implementation.
Would be ashame if someone were to rot those bits of yours... ;)

Attached: beastie.png (1040x650, 26K)

The Atheros ones are known to work well. I recommend getting one if they suit your needs.
If you need a supported card that needs a supported proprietary firmware, that's fine because the firmware is loaded in the card and is not executed by your host CPU. OpenBSD does not include binary drivers that get executed by the CPU.

Fun fact: your CPU itself is most likely relying on proprietary firmware.

thanks, figured it out, I needed to compile amdgpu in kernel which is only in -current. Now everything is working. Also
>lost half of my cores
How do I get them back?

I mean not much to it if you do not mind lack of a filesystem like ZFS or Hammer. Depending on what you are putting on there it could be a non issue.

>Nice lack of Hammer2
It's coming to OpenBSD.

meanwhile on GNU/Linux

Attached: 2019-06-27-200448_561x57_scrot.png (561x57, 5K)

I've always consistently memed all over OpenBSD, but if they legit add that I may unironically get into using it, at least for servers.

Those aren't cores, those are threads.
OpenBSD disables Hyperthreading by default because of the associated security risk.
You can enable them if you want.

Hey OP, thanks for helping OpenBSD by testing the new AMDGPU driver. Can you please do the OpenBSD guys a favor by sending a dmesg to them via email? It would help them improve the driver. :)
Here's how to do it:
openbsd.org/faq/faq4.html#SendDmesg

classic Jow Forumsatekeeping

It's a meme.

tmpfs is disabled in the default kernel. mfs is on by default though.

I'm trying to enable
Option "TearFree" "true"
for amdgpu in xorg.conf but the display manager won't start. Does it work for anyone?

Does it work without it?

yes, but there's some screen tearing and I have to use compton

I don't know about that then
Any specific reason you don't want to use compton? If you dislike it, OpenBSD comes with xcompmgr by default, you can use that instead of compton.

Any C programmers here? What's your setup for programming on OpenBSD?

who came up with libre? like liberal, left wing ass to mouth homo?

vade retro!

I know you're probably trolling, but if you actually want to know, it's a French word:
etymonline.com/word/Libre

Last night, when trying to get my USB microphone to work on FreeBSD, my audio became broken. Perhaps permanently, since even after undoing what I did, it was still fucked up.
Life is suffering.

RPI 4 is vulnerable to meltdown and spectre

Umm, this is an OpenBSD general.

Meltdown is Intel-specific only. Spectre depends on the processor implementation, OpenBSD disabled Hyperthreading by default so it wouldn't matter anyways.

The default hard drive partition won't use all your disk space. You'll have to manually set it up so it doesn't just leave hundreds of gigabytes unused.
In reality, all of the default partition sizes are far too small to be useful.
I just use vi and the default compiler, clang. My projects are small enough that I haven't had to learn ctags yet, but I really should.
As for setup, I normally have a few xterm open. Two or three. One for vi, one for man pages, and one for compiling and running the program. Sometimes I use the same terminal for vi and for compiling and running the program. I usually have a browser open (typically firefox) with POSIX pages open, too:
pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html
pubs.opengroup.org/onlinepubs/9699919799/functions/fscanf.html
pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
Those are some examples of how useful they can be.
Occasionally, but less often, I'll have the C99 or C18 standard PDF open in another tab too, but I find I need those less often than I need the POSIX website. Also less often, I sometimes check the man pages for other BSDs or even for GNU/Linux, in my browser.

Thanks for the answer, it would be really awesome if vi supported keybindings so that I can set one for compiling and running like how I used to do in vim, but I can live with that I guess.

You can install vim if you like vim. There's no shame in using what you like on OpenBSD.

No I actually like using vi more than vim, I feel like vim is bloated and has a lot of features that I don't need. It would just be awesome if they implement keybindings.

I'll note that you should avoid GCC on OpenBSD since the version is ancient and doesn't even fully support C99. (C99 is only fully supported since GCC 5. OpenBSD has GCC 4.2.1 from 2007) Make sure you're running OpenBSD on an architecture where clang is the default compiler. 64-bit and 32-bit Intel both use Clang as the default, and I think one of the ARM architectures does too.
I wish OpenBSD would just update the base GCC so that both compilers would be up to date, or get rid of GCC so it wouldn't be there at all.
Oh okay.

>Meltdown is Intel-specific only
Actually the Cortex A75 is vulnerable to meltdown according to this article androidauthority.com/meltdown-spectre-kpti-827527/

Although I was mistaken, the A72 (which is what the RPI 4 has) is only vulnerable to Spectre. But it doesn't have hyperthreading, and hyperthreading is related to various security vulnerabilities but not spectre.

How do you manage without text objects? Stuff like yi{ to copy everything in curlies, di" to delete/cut everything between quotes, or yip to copy a paragraph.

I don't use vim very often (I don't install it on BSDs, so I only end up using it elsewhere) so I might not understand what you mean.
Would y% work for you? If not it, you could do yf} or yt} as needed, if you weren't trying to deal with nesting. But I think y% would make more sense.

You can set up @ macros for that.

I think they still keep the old versions of GCC because some ports need it, I'm not sure though.

The list is pretty short, base gcc is not long for this world.
marc.info/?l=openbsd-ports&m=155527382622473&w=2

I'm so excited to see gcc go away from the base system.

What did you do exactly?

Why would you ever use sudo over doas?

It’s been the standard for decades, that’s why.