-
nimaje
hm, after upgrading my package builder vm to 14.4 random packages began to fail in some -depends phase, because of bad file descriptor in pkg-static :(
-
vkarlsen
rwp: This is the ports unbound running on 15.0. I don't get the error when I run it manually, only via a script or via crontab
-
vkarlsen
rwp: Also, you need unbound_oomprotect="YES" to trigger this
-
vkarlsen
rwp: Following your advice with sh -x (great idea btw) it looks like the pid file isn't there yet, so `protect -p ${rc_pid}` evaluates to `protect -p `. Must be a race condition caused by unbound taking too long to start
-
GoSox
are there parts of the bsd filesystem that are forbidden for users to use?
-
GoSox
For example . . .
-
GoSox
for many moons, when I’d set up web servers on macos, i’d put the web folder and the log folder and anything, just right at the root level of the file system. But then apple changed things so even as root, users cannot write ot the root level of the drive. So things like a web folder had to be relocated to either a specific users folder, or to /Users/Shared
-
ridcully_
everything but ~, /tmp, /var/tmp should be off limits for regular users. "system" users often have their own little place (e.g. logging). the rest can-but-most-likely-should-not be opended up by permissions
-
ridcully_
things can be changed beyond just permissions via acl
-
nimaje
on freebsd with the right permissions you can write whereever you want, still doesn't mean it is a good idea, logs should go to /var/log or via syslog to whereever that is configured to log to (likely /var/log too)
-
GoSox
well web server logs get processes a lot by stats systems so its good to keep them in a separate place. I’ll probably make a root level folder called “webserver” and put a log folder in there, a i don’t even remember but all the different folders i create for a web server.
-
GoSox
ohhhhhhhh
-
GoSox
day what you will about “heavy” desktop environments, SDDM + KDE sure does look nice
-
vkarlsen
I guess debug mode and verbose mode slowed down rc.subr just enough to win the race. I turned _oomprotect off, I'll run protect after it's completed
-
nimaje
hm, but why would you use protect with a pid file instead of with a command in the _oomprotect use case? seems the only use for that is for adding race conditions
-
GoSox
damn i am still having trouble putting this system in 1280 x 720 resolution. macos does it no problem, but freebsd with xfce4, freebsd with kde, and ubuntu linux with kde, all can’t display 1280 by 720 properly
-
GoSox
native 1080- is fine
-
GoSox
any ideas whats going on with that?
-
nimaje
ah, probably because start doesn't have to be an external command, but could be a shell function too…
-
nimaje
hm, what does xrandr say for that monitor
-
GoSox
it does list 1280x720 at 60
-
GoSox
among all the others
-
GoSox
thissssss a 2012 mac mini so intel i7 with i think intel integrade 4000 HD graphics
-
nimaje
and if you use xrandr --output <monitor> --mode <1280x720 mode> ?
-
GoSox
is “<monitor>” a placeholder or do you want me to literally type that?
-
boru
What does "can't display properly" mean in this instance?
-
boru
It's a placeholder.
-
boru
You put the output name there.
-
boru
Similarly so with the --mode argument
-
GoSox
can’t display rpoperly, means i get a highly distorted image that eventually reverts back to 1080p when i don’t hit anything
-
boru
Okay, but what does distorted mean? The fonts?
-
GoSox
so how do i determine my monitor’s name?
-
boru
Or something else?
-
boru
It'll be in the xrandr output
-
GoSox
like the image is interlaced and ghosted multiple times across the screen
-
boru
You can also try arandr
-
GoSox
ok my best guess is “HDMI-3” is the monitor name? seems weird though as this mini only has one hdmi port
-
boru
Use a paste site, and paste the output.
-
GoSox
i went with hdmi-3 and what i got is the same distortion as when i switch it with the GUI
-
GoSox
except…. now its not changing back
-
GoSox
will xrandr work over ssh i hope?
-
nimaje
GoSox: yes, I use <…> to mark placeholders
-
GoSox
eep, looks like i can’t change resolution over ssh and i cant read the text on the display now sooooo any ideas how i can get it back
-
boru
No, it won't work over SSH without some environment hackery.
-
GoSox
i should still be at a terminal prompt so i guess i can try to type the commad blind
-
GoSox
yay that worked
-
GoSox
so why is 720p not working? whats that about? its not a hardware fault, it works perfectly in macos every time
-
boru
Good. Now, instead of trying th change the resolution, change the scale.
-
boru
Leave it at native resolution, and just use --scale
-
GoSox
changing the scale works but thats not quite the same result
-
GoSox
huh actually thats not working either. It worked in xfce4 but in KDE nothing happens when i change the scale
-
boru
I don't use either of those DEs, so I don't know what the problem might be, sorry.
-
GoSox
ok ill post to the forum and go to bed
-
nimaje
no idea what breaks there, but apple just has a very limited selection of hardware they support, so they can make sure everything works, my current guess would be that there is some bug in the monitor or something and apple incuded a workaround and noone on Xorg or wayland encountered it, because running Xorg/wayland on that hardware is already rare enought and then also switching to 720p instead
-
nimaje
of 1080p, but of course the problem could also be anywhere else
-
GoSox
but i HAVE had it work on bsd too… i guess i left that part out. But i’ve wiped this machine like 20 times during this learning process. Like every night i work on learning freebsd, i wipe the machien and go through my install and setup checklist. And it HAS worked.
-
GoSox
either way, to the forum
-
nimaje
hm maybe kms vs xf86-video-intel?
-
GoSox
oh wow just installed a mac theme on kde aaaaadn that settles that, KDE it is, bye bye xfce4
-
GoSox
HAH there is one problem with these mac themes. They’re so good, they put my brain in “normal mac mode”. So I close windows with no intent to quit the program, and yet i quit the program
-
GoSox
a problem i can deal with, but its funny
-
GoSox
the BeOS theme is interesting but not as nice as I remember
-
unbekend
Hello. I have a problem with FreeBSD 15 and USB headset. When I plug the headset in, a very loud high noise comes out the headphone
-
unbekend
It works on Linux and Windows just fine. I am new to FreeBSD so I am looking for someone who can help me out
-
scottpedia
helo people
-
scottpedia
can anybody help me with manually pointing to a regional freebsd pkg mirror?
-
scottpedia
i tried changing /etc/pkg/FreeBSD.conf but to no avail
-
Gedge
scottpedia: that's the system config file, but you might have a local one (/usr/local/etc/pkg/FreeBSD.conf or similar)
-
Gedge
have a look in that directory
-
scottpedia
yeah Gedge I did that per instruction from that FreeBSD.conf file
-
scottpedia
the problem is what kind of url am I supposed to put in the new config?
-
Gedge
FreeBSD 15?
-
scottpedia
14.2 i think
-
scottpedia
like ftp.kr.freebsd.org/pub/freebsd is what I want to use
-
scottpedia
but in the original file the url follows the format pkg.freebsd.org/${ABI}/quarterly
-
scottpedia
what should I add to the new file then?
-
scottpedia
'd be great if anybody can help
-
Gedge
scottpedia:
pkg.freebsd.org doesn't list that as a mirror
-
scottpedia
yeah
-
scottpedia
-
scottpedia
it kind of does have everything indeed
-
scottpedia
however how do I exactly change the repo url on my system?
-
Gedge
doesn't look like it serves *pkg*
-
scottpedia
what servces pkg?
-
Gedge
the link that I sent tells you what mirrors the pkg archive
-
boru
ports-mgmt/fastest_pkg lists the mirrors and will print them, but also have a look at `man 5 pkg.conf`
-
scottpedia
i tried the links you sent me and it says repository freebsd has a wrong packagesite, need to re-create database
-
scottpedia
Gedge:
-
scottpedia
anyways I am trying out that package you mentioned
-
scottpedia
let's hope this works
-
scottpedia
freebsd is truly a poorly documented one compared to its Linux brothers
-
Gedge
I'm not sure why you're not just relying on the DNS to direct you to the local mirror... the default behaviour
-
boru
On the contrary, I think that between the handbook and the manpages, the documentation is quite good.
-
scottpedia
it directs me to a mirror that gives me 20KB/s max
-
boru
Yeah, mirror bandwidth is very, very variable.
-
scottpedia
I couldn't find one single how-to on google regarding how to change mirrors
-
scottpedia
that shouldn't be the case for any of the living Linux distros
-
boru
man 5 pkg.conf -- no google necessary
-
boru
The documentation is right there on your system.
-
scottpedia
yeah I did that
-
boru
And did you search for "URL"?
-
scottpedia
it doesn't tell me how to create a new config that uses the mirror that I want to use
-
boru
Did you read the repository configuration and examples sections of the man page?
-
scottpedia
yes just did that
-
scottpedia
it does tell me how to do a private repository
-
scottpedia
but what is an srv repo?
-
scottpedia
the system keeps telling me that the repo i am using is wrong and not an SRV repo
-
cyric
srv is dns record type
-
boru
It's also stated in the same man page; search for SRV
-
boru
And says what the requirements for it are there.
-
scottpedia
can anybody give me a how-to regarding what I asked?
-
rtprio
wouldn't you just change the url to the url of the mirror
-
Gedge
or, better, copy the file into /usr/local/etc/pkg/repos/FreeBSD.conf and change *that* file with the mirror
-
scottpedia
Gedge: yes I did that and it gives error regarding "not srv mirror"
-
scottpedia
now I followed man 5 pkg.conf's example to use a private repository
-
scottpedia
and when I run pkg update it says SSL peer certificate or SSH remote key was not OK
-
scottpedia
let me try using http
-
scottpedia
okay it worked but still it'd be great if I can properly set it up using https
-
Gedge
oddly, I think the pkg repos do not use https, but rely on GPG(?) signatures of the data once transferred?
-
Gedge
so, encrpytion isn't important, but verification is
-
scottpedia
yes. the original config has a certain fingerprint setup
-
scottpedia
that is to be studied later
-
Gedge
I only recently discovered this because I'm now running a local cacheing pkg mirror for my handful of FreeBSD boxes
-
Gedge
I don't think it reduces my demand on the mirrors as much as I'd hoped.
-
scottpedia
okay alright
-
scottpedia
that'd be convenient indeed
-
nimaje
Gedge, scottpedia: instead of copying /etc/pkg/FreeBSD.conf to /usr/local/etc/pkg/FreeBSD.conf you should use that the first one gets read first and the second one can override stuff and create the second with just what you want changed, so probably just URL for a properly configured mirror
-
scottpedia
nimaje: yeah thx for speedy response
-
boru
I think the issue in this case is the mirror certificates; you'll get an SSL_ERROR_BAD_CERT_DOMAIN
-
scottpedia
gonna try that later but at the moment the problem seems to be with how the system uses encryption/verification
-
rwp
scottpedia, It might be easier to change mirrors by overriding DNS with an entry in /etc/hosts that maps pkg.freebsd.org to whichever mirror you choose to override it.
-
scottpedia
rwp: that's a good idea
-
scottpedia
gonna try that later
-
scottpedia
thx btw
-
lorimark
*newbie* I was following instructions for a fresh install, and reading from
docs.freebsd.org/en/books/handbook/x11 to set up the X display, and running in to issues where the instructions given don't seem to work, and generate errors... is there a 'proper' or 'more up to date' URL I should be using to set up a new FreeBSD installation?
-
Gedge
lorimark: The Handbook is indeed where the docs should shine. But, if it fails, then the forums may be the place to see if others have had that problem.
forums.freebsd.org
-
rtprio
lorimark: what happens?
-
rwp
lorimark, If you say what version of FreeBSD you are running, what your graphics adaptor type is, what you have done, what problems occurred, then probably we can make suggestions.
-
rwp
lorimark, Run this: pciconf -lv | grep display -B 3 -A 1
-
lorimark
thank you, it's an old acer laptop, intel generic graphics (fairly low res). I just downloaded the latest from the FreeBSD website, been using linux for years but never cracked the plastic on FreeBSD until now, so just a little choppy getting started. wanted to make sure I was reading the right docs.
-
lorimark
it was FreeBSD 15.0
-
lorimark
oops... i think i shouldn't have pulled that one...
-
nimaje
ok, so you installed drm-kmod and loaded the i915kms kernel modul successfully?
-
lorimark
nimaje: unsure about 'correctly', but i did follow along, using i915kms and all that
-
lorimark
is 15.0 a good version to download, i think in one of my first attempts i was installing the 14.4
-
lorimark
?
-
lorimark
(and thank you again)
-
scoobybejesus
14.4-RELEASE or 15.0-RELEASE should both be fine, i would think
-
nimaje
yes, that is a release version so it is fine
-
nimaje
did your monitor reset when i915kms was loaded (as the graphics driver changes)? do you see [drm] Initialized i915 in dmesg? I suggest piping it into less and search for drm there
-
lorimark
[drm] Inisitlized i915 1.6.0 for drmn0 on minor 0
-
lorimark
name=drmn0 id=i915drmfb ...
-
lorimark
looks like it
-
nimaje
ok, so and how do you try to start xorg? (startx?) and what errors does it generate?
-
rwp
How are you starting X? I think it is easier to debug things by logging into the text vt console and then running startx and then looking in /var/log/Xorg.0.log for "EE" lines rather than trying to run an xdm graphical login manager from the start.
-
lorimark
i have xfce installed, and it opens, and even starts with the gui login screen, where i got tripped up was on that X setup page regarding true type fonts...
-
lorimark
in the Fonts section of that document, it has steps that don't run/complete properly, so, that's what prompted me to ask if i was reading the correct docs
-
rwp
If the GUI graphical login manager starts then that's X running right there. X is running at that point.
-
lorimark
yea, it's got X and xfce4 even, so far so good.
-
lorimark
anyway, i was just asking because it's so easy to start reading from the wrong place... i think i'm ok for the moment, thank you
-
nimaje
hm, never did anything for fonts except for installing them
-
rwp
I have never messed with fonts. It Just Works.
-
lorimark
yea, i was (tiny bit) surprised regarding having to install fonts... here's the page about it;
docs.freebsd.org/en/books/handbook/x11/#truetype
-
rwp
I look at that section and I don't see anything there that one would need to run. There are several optional things that one should mostly ignore. Ignore at least until you have something running and decide you want to do something different.
-
rwp
I have never installed the TrueType fonts. I figure that was only for people who were doing desktop publishing.
-
rwp
People tend to be very particular, persnickety even, about fonts. I know people who build their own fonts and insist they need them. So anything can be installed. But I have never needed them.
-
lorimark
k
-
lorimark
thank you
-
lorimark
I'll just blow past all that, thank you
-
rwp
The Handbook should say above that section, stop here and get X running. If you feel you NEED a particular font then you can install them and here are instructions for TrueType and Type1 fonts but most people don't need them.