I've decided to continue learning Unix by OpenBSD instead of Linux (came from Debian).
Installed it on my laptop, there is no wifi, no network-manager, no alsamixer, and it's considerably slower than Linux, but I'm OK with all these.
Only one thing that I can't live without is GoldenDict. I'm not a native English speaker and I need this to be able to read man pages and books and etc. I want this particular program and not any others because all of them suck except this one that sucks less.
So I would be grateful If you could guide me how to install it on OpenBSD. It's not in packages or ports. But it seems there is one in FreeBSD's port. Is there any way to import it to OpenBSD?
Thanks
Hey, I can have a go at a port or some instructions to do it yourself. I'll post back soon.
Please try following these instructions to alleviate most if not all of your first series of issues:
https://www.c0ffee.net/blog/openbsd-on-a-laptop
Unless your adapter is not supported, then none of those are actually problems once you configure things. Wifi under openBSD is light years better than in Linux (no network-manager is a HUGE plus, and no wpa-supplicant!), especially in 6.4 with the new join program.
Hope you can get GoldenDict working!
and no wpa-supplicant!
Unfortunately it's unavoidable if you need to connect to WPA2 Enterprise networks AFAIK.
Useful link, Thanks. Mine is BCM4313 and seems it's not supported.
Hi there, I am not sure whether my experience can help you, but
speed I use triple boot Win10 + OpenBSD + Arch Linux. OpenBSD is the fastest of 3 on my 12 years old laptop, so I use it 99% of my time at laptop. Win10 is the slowest, but I keep it only because of its maps app, which allows to download maps and use them offline having no internet but only GPS unit connected to USB port. Very handy in the mountains where neither cell phone signal nor internet. I use Arch Linux for watching videos/movies on large TV screen via HDMI (OpenBSD does not support sound over HDMI).
wifi This is 50-50. If your wi-fi card is supported, just run this script https://github.com/n0xa/wiconn and you'll see all available w-fi around you. My wireless card Realtek RTL8192SE is not supported, so my only option is cable.
network manager there is not much to manage :-) Switching between wifi/cable is just 2 or 3 lines of commands:
ifconfig rw0 -inet down
(optionally) route -n flush
ifconfig re0 -inet up
where rw0 is your wifi card (from /dev), re0 - your Ethernet (cable) card (also from /dev)
GoldenDict I've had some success of compiling those Linux programs, which were ported to FreeBSD. It's usually all about memory allocation. In simple words, dowload the source code of FreeBSD port, go through all the *.h and *.c (*,cpp) files and replace
#ifdef __FreeBSD__ with #ifdef __OpenBSD__, could be #if defined (__FreeBSD__) or #if !defined (__FreeBSD__)... instead of #ifdef
I do apologize for such a stupid instructions, I just don't know your level of skills in C/C++.
If you give up with GoldenDict, consider compiling the ancient StarDict. It has similar functionality but significantly smaller amount of dependencies.
If you are patient enough, contact the developer of GoldenDict. His name is Konstantin Isakov, he is Russian, very nice and honest person. Ask him to support OpenBSD with next release. Most probably he'll do it.
as a matter of a fact, mixerctl provides the same functions as alsamixer does. The only difference is writing down numbers versus watching colourful bars and pressing arrows.
Hi Bckld, Thanks a lot for your detailed post. about Speed, do you believe that I'm waiting for last 40 minutes for pkg_add to finish extracting and installing qt4?! I don't know what is the problem with my laptop, but pkg_add takes a lot of time for adding even small packages than linux. Also although I enabled layers.acceleration.force-enabled in firefox, It's way slower than firefox in linux. I'm using DWM with nothing fancy else and I can feel the sluggishness easily compared to linux. about wifi, I think my card is not supported (Broadcom4313) but It's not a big problem. about Goldendict, I'm installing dependencies now based on the instructions on FreeBSD's ports. And unfortunately I don't know C or any other languages. isn't it better to use find ./ -type f -exec sed -i 's/FreeBSD/OpenBSD/gI' {} ; for replacing the content?
I use triple boot Win10 + OpenBSD + Arch Linux. OpenBSD is the fastest of 3 on my 12 years old laptop
Ditto - for dual booting Linux and OpenBSD.
I primarily boot OpenBSD however for its better security - as I mostly browse.
Only one thing that I can't live without is GoldenDict. I'm not a native English speaker and I need this to be able to read man pages and books and etc. I want this particular program and not any others because all of them suck except this one that sucks less.
I know you're used to GoldenDict and prefer it, but in the meantime have you considered installing WordNet? It's a command line app you can use to look up definitions, synonyms, antonyms, etc.
Here's how you'd install it: doas pkg_add -iv wordnet
Here's how you'd use it in a terminal: wn <word> -over | less
I'm an author, and I've used WordNet for years as a tool for checking definitions when I'm not sure I'm using the right word.
Thanks for the suggestion.
But suppose that you are in the middle of a man-page, you have either to get out of that page to check the word, and return. or you have to open another terminal to check for that (in this case it's not different with a GUI dictionary because in both you have to copy-paste or type the word and see the meaning). Furthermore, you have no pronunciation, you can't have many dictionaries (I had simultaneously 5 dictionaries in GoldenDict) neatly displaying.
Compare this to GoldenDict which by only selecting a word a tiny window shows in the middle of any text, whether you are in terminal or in a browser or anything else, you first hear a human voice which pronounce that word and the definition of multiple dictionaries are displaying without having to type the word. This is something I can't find in any program except the Babylon (windows).
Do you mean this?
https://github.com/goldendict/goldendict/blob/master/README.md
Did you try compiling it yourself? If the dependencies are met, it should just work. If you find an error, then you can open a ticket on github.
the problem is there are many dependencies that I couldn't find in OpenBSD packages.
man <command>
Why do you need a gtk interface for this? It'd be a considerably faster and easier typing man into the terminal than looking something up in GoldenDict.
there is no wifi,
Tell us your hardware and it might be solvable. Or buy an $8 Edimax dongle and you've got wifi.
no network-manager,
Just like man, it's really not necessary. Just a gui for an extremely simple task editing two lines of a file to change ssid and pass.
no alsamixer
mixerctl is actually very easy to use and has a great man page explaining everything clearly.
considerably slower than Linux,
Yes unfortunately that's true.
- I don't need GoldenDict for reading manuals, I use that to translate some English "word"s I don't know which found in man-pages/books/web-pages/etc.
GoldenDict has a good feature that when you select a word, It automatically shows a pop-up window with the definition of that specific word in one or multiple dictionaries with the natural pronunciation of that word. It's a necessary feature for non-native speakers IMO.
- It's not a big problem not to have GUIs for everything. I have to get used to command line as soon as possible. So yes, I can find an alternative to network-manager or other things by reading more about OpenBSD. But only if I have necessary tools first, to understand what I read. Which in my case one of them is GoldenDict.
considerably slower than Linux,
Yes unfortunately that's true.
I'd say it's fast enough given that the developers' emphasis is on doing things properly and as securely as possible. I run it on a ThinkPad T430s with 4GB of RAM and it runs fine as long as I don't have more than a dozen tabs open in Firefox. (Still gonna upgrade to 8GB this weekend.)
Cracking open /etc/fstab and editing partition entries to add softdep,noatime should give a noticeable boost, though.
I've been looking for ways to give back to the OpenBSD community and am currently learning about ports while I write my first program. I have a list of packages I see people wanting and have added goldendic. I can't promise it'll happen anytime soon as I still have no idea how to port and such, but the moment I am able to I port this if possible and if it hasn't already been done.
Hi
I need everyone who is trying to connect to port 80 not be able to download with a speed more than 60 megabits per second. But I couldn't find a solution. yet, this is my pf.conf which limits the whole interface, not every single IP:
...
queue std on $interface bandwidth 1G
queue web parent std bandwidth max 60M default
...
match proto tcp from any to any port 80 queue web
...
I don't want people to be able to download with high speeds from my server, but allocate all the 1G for downloading, for hundreds of people downloading simultaneously. Even If there is only one person downloading and all of the bandwidth is free, the speed should not be more than 60M for him.
I would be grateful for any solution
I am in need of a little smtpd config assistance. I'm looking to configure my external OpenSMTPd server to allow Nextcloud to send email. I've got Nextcloud setup with the correct mail server info, just need to add a line to smtpd.conf to authorize it, but unsure of the syntax. Could someone kindly point me in the right direction?
Anybody else here unable to decide between OpenBSD and FreeBSD?
I'm looking into moving away from Arch Linux to BSD for quite some time now and I'm just not able to make up my mind.
It's mainly about some more or less older laptops / netbooks for me, my wife and the kids (used for work and school, not really for any gaming), but also possibly about a future home cinema computer, home server, firewall router and hosted dedicated server or VPS.
The catch is, that from what I've read so far I would generally prefer OpenBSD, but with a noticeable difference in available or up-to-date ports it will be quite a challenge to find possible alternatives to accustomed software if at all (for example Calibre, which I need for converting ebook formats for the kids' Amazon Kindle devices).
My idea was to stick to one OS for all purposes to keep it as simple as possible and not having to concentrate on different concepts of maintenance.
Just noticed that a package for nextcloudclient is available on -current. I had used the owncloud client once upon a time, but eventually abandoned it, figuring I would just use the web interface for the time being.
Installed it yesterday, but for some reason it would not connect to my server, with only a vague error reported. Is anyone currently using the Nexcloud proper client with any success?
Is it as simple as installing to the USB stick and editing fstab to send everything into memory file systems?
If the USB stick is using full disk encryption, will it still be possible to detach the drive with bioctl and unplug it after the system boots?
I'm curious if anybody here runs OpenBSD completely in RAM from a USB stick and what sort of problems I'm likely going to encounter.
I saw the mod_php has been removed from apache-httpd. Can someone point me in the direction of getting Apache working with PHP-FPM? I have it configured and at least I know that data is being passed to php73_fpm. However, I keep getting "File Not Found" errors and script errors in the logs. I have made certain to specify the full directory where the website is located, /var/www/htdocs/website/. I tried creating an info.php file and putting it in /var/www/htdocs and still no love. I am tearing my hair out here so I welcome any and all tips.
UPDATE: I solved the issue by configuring php73_fpm to not run chrooted.
I'm having a hard time figuring it out. The man pages are awesome, default X setup gets the configuration right about 99% of the time, but I can't wrap my head around this one. I just want to click by tapping on the touchpad instead of mushing the whole plate down. This being on Lenovo X240, as mentioned.
I took /usr/X11R6/share/X11/xorg.conf.d/70-synaptics.conf and stuck it under /etc/X11/xorg.conf.d. I tried a few options and it seems to make a difference since X failed to start when I screwed things up.
Anyone got this figured out?
Whatever happened to Xorg -configure?
Edit: Should have mentioned that this is OpenBSD 6.6 release (stable branch) for amd64.
The Acer store said my Acer Aspire 3 A135-41-R790 has an Intel chipset, but it doesn't seem like it as the iwm firmware isn't loaded.
Has anyone managed to compile GTK+3 without glib2 and dbus as hard dependencies? If I wanted those I would just use Linux.
Is there a chat client on OpenBSD that supports OMEMO Encryption? I tried Gajim, but it says I have to downgrade python-axolotl when I try installing the OMEMO plugin.
Thanks in advance.
Reading through Cullum Smith's blog post OpenBSD on a Laptop I'm wondering how he came up with these resource limits:
/etc/login.conf
staff:\
:datasize-cur=1024M:\
:datasize-max=8192M:\
:maxproc-cur=512:\
:maxproc-max=1024:\
:openfiles-cur=4096:\
:openfiles-max=8192:\
:stacksize-cur=32M:\
:ignorenologin:\
:requirehome@:\
:tc=default:
and
/etc/sysctl.conf
# shared memory limits (chrome needs a ton)
kern.shminfo.shmall=3145728
kern.shminfo.shmmax=2147483647
kern.shminfo.shmmni=1024
# semaphores
kern.shminfo.shmseg=1024
kern.seminfo.semmns=4096
kern.seminfo.semmni=1024
kern.maxproc=32768
kern.maxfiles=65535
kern.bufcachepercent=90
kern.maxvnodes=262144
kern.somaxconn=2048
Is there a way to calculate these values?
He only writes:
The
shmvariables are for my laptop, which has 16 GB of RAM. You should scale them accordingly for your machine.
My main laptop has 32 GB RAM, then we have older laptops / netbooks with 8 / 4 / 2 / 1 GB of RAM laying around, so to make any adaptions I would need to know how to scale any of these values based on what?
Are there recommendations for these values based on usage (laptop / firewall gateway / file server / web server)?
Just got an HP OfficeJet 3836 Inkjet. I can see it in my browser by going to the IPnumber it attached itself wirelessly to on my LAN.
I can set up the email service that HP offers to email myself a document. That works. Oddly enough HP doesn't think it's insulting to suggest I should send my documents elsewhere just to print them here. I know privacy is dead, but do they have to throw in my face? If I want to send documents to my local server, when waltzing somewhere else on the planet, I'll just scp them, and then log in and print normally. If it that would only work back here at the farm. Up 'till now, using laser printers from HP that was fine. I heard that the InkJets were less accommodating. Why so, I can't imagine.
I'm using 6.6... Guess I'll have to learn cups. Always dreaded that moment....
So I did an pkg_add of cups. Then I did "man cups". Early on it says
====================== begin clip ===============================
WHERE DO I BEGIN?
The easiest way to start is by using the web interface to configure
your printer. Go to "http://localhost:631" and choose the
Administration tab at the top of the page.
====================== end clip ============================================
Well, when I do that, Firefox just says:
"Unable to connect. ...Firefox can’t establish a connection to the server at localhost:631."
And some more stuff. Well, I noticed that the latest versions of Firefox are more reluctant to just access places on the local computer. It wants to see documents ending in .html, and it's harder to use it just browse my local directories. Is it just Firefox being too security correct these days?
Another question: Why and how should anything just show up at localhost:631 anyway?
Well, I can get my $29 back from COSTCO, even if I made shambles of the packaging. Do their HP professional laser printers still just talk to the lpd, or is it getting too late in the "we own you" battle?
Hi,
please be a little lenient, this is the first time I'm actively using OpenBSD.
TL;DR: I don't know what I have to do to get my Dell Latitude 7490's track point to work (I don't want to use the touch pad so I don't care that it doesn't work either.)
Back story: I decided to try the OS today on my new (well, refurbished) Dell Latitude 7490 and figured "well, you know how to use Linux, how hard can the switchover be?". Boy, was I in for a surprise...
Installation was quite easy, even with a full disk encryption. WiFi worked out of the box. Installation of i3wm was easy as well and after copying over my config it even looks (mostly) like my old machine. I'm still struggling with the concept of "RTFM, you don't get any help on the internet, man pages are enough" and therefore can't seem to figure out how to configure my X server properly. I'd really like to use my Dell D6000 docking station (wsudl, I already figured that out, but I don't know what to configure) and most of all I'd like to be able to use the mouse pointer without having to attach a USB mouse. USB mouses work well with the wsmouse driver, the internal track point, however, does not.
So, can you please help a OpenBSD-noob out and tell me what I have to do? It's been a while since I last had to touch xorg.conf under Linux so my knowledge of this is somewhat limited. Reading man xorg.conf and man Xorg unfortunately didn't improve my understanding by much.
I don't even know what kind of info you'd need to help me out.
dmesg: https://pastebin.com/SH37PTsD /etc/X11/xorg.conf: https://pastebin.com/aCgZ7gDx
Deleting /etc/X11/xorg.conf does not help, unfortunately.
Thank you for taking the time to read this.
Is there any rosetta stone for pkg against other package managers (especially those from other Linux distributions)?
https://cloudflare.cdn.openbsd.org/pub/OpenBSD/
this is the default installurl in miniroot.fs and its been broken for some time.
maybe someone needs to change that in the install?
Members
Online