-
sebboh
Hello. I downloaded 13.1-RELEASE and blitted it onto a USB stick, then I used the stick to install FreeBSD on a desktop PC with a SSD with a SATA interface. After finishing the installation and booting for the first time with the usb stick removed, I was greeted with a message from GRUB: error: unknown filesystem; grub rescue>
-
sebboh
Is this grub likely leftover from the GNU/Linux system that used to be installed on that drive?
-
rtprio
sebboh: how many disks does that system have?
-
sebboh
One now, though it had five when I first did the installation :)
-
sebboh
rtprio: I knew which disk was which during the installation because this one is a different size that the other four which are all alike.
-
rtprio
is it possible you installed the bootloader onto a drive that wasn't the one with grub?
-
sebboh
rtprio: I don't think so, because I used thed "guided UFS" option. And only one of my drives was ~60GB. I am just reinstalling, since the initial installation was a while ago and maybe I don't remember some clue.
-
sebboh
Note: my intent was to wipe out any leftover grub from the linux install. This will be a single-OS machine when I am done. (Is GRUB used by FreeBSD-13.1-RELEASE?)
-
vishwin
grub is not used at all
-
vishwin
you would chainload the FreeBSD loader if anything
-
sebboh
ah, I'd like to install a stage0 using this installer USB stick, and overwrite any stage0-like thing from any previous OS.
-
vishwin
refer to gpart(8)
-
vishwin
especially if your partition layout is MBR
-
vishwin
UEFI is just a matter of copying a file from /boot...
-
frogmo
Good evening, FreeBSD with desktop environment can be tested on kvm/qemu virtualized machine?
-
RoyalYork
frogmo, Im running FreeBSD desktop environment within Virtual box on a Windows Host
-
frogmo
kvm/qemu is much better than virtualbox
-
RoyalYork
Thank you for you opinion.
-
sebboh
I just went through the installer and it didn't ask me about a bootloader. Maybe I missed that back on the "guided UFS" screen? It is asking me if I would like to open a shell to make any final manual modifications.
-
vishwin
because loader is part of the base system
-
sebboh
I am using MBR. gpart show lists ada0 as MBR... Does this mean I should be good to go?
-
sebboh
vishwin: ok.
-
vishwin
try it out, see what happens
-
sebboh
wait, MBR is .. the name of the disklabel type, but also "master boot record" so uh... :)
-
vishwin
if you don't see the loader, it's easy to fix without using the installer
-
ghoti
ya, if it fails to boot, you can always use your install media for maintenance.
-
ghoti
many options. :)
-
sebboh
oh, it didn't go into grub this time. I think the problem is solved. Yep, booting freebsd..
-
sebboh
I'm ssh'd in. Thanks all :)
-
sebboh
now to power it off an plug in those other hard drives. :)
-
sebboh
After plugging in new harddrives, ada0 became ada2. I was able to boot by following the directions on screen, but on next reboot, it will put me back in that little boot failed prompt. Can I tell the bootloader to use a UUID or something instead of the ada number, in case it changes again in the future?
-
sebboh
I think "boot2" is the one I need to reconfigure? (even if I just have to tell it to use ada2.)
-
sebboh
oh.. or "the loader"? Stage 3? I'll try that. It has straight up conf files :)
-
sebboh
"mountroot: waiting for device /dev/ada0s1a..." Failed, error 19. Ok, so, that 0 needs to be 2. ... I don't see any file in /boot that sets vfs.root.mountfrom. BUT.. I do see that /etc/fstab is wrong. I fixed it. Do I need to run some command, or just reboot?
-
sebboh
hey that worked, this machine can now reboot on its own. That's enough for today. bye!
-
parv
Interesting: llvm/lld: damage control threading,
reviews.freebsd.org/D39389
-
VimDiesel
Title: ⚙ D39389 llvm/lld: damage control threading
-
nimaje
r0ni: no idea why it says rust depends on the openssl port for you, as the default should be to depend on the base system one, but that message seems to me like your ports tree is to new for the remote pkg repo and the remote doesn't have curl-7.88.1, so poudriere would rebuild rust anyway, then why download it in the first place?
-
msiism
I've written a little mount wrapper for handling removable devices more conveniently. Now I'd like to put it under the FreeBSD license.
-
msiism
So, I guess I'll just copy what's on
freebsd.org/copyright/freebsd-license, with an adjusted copyright notice and leaving out the last paragraph.
-
msiism
Anything wrong with that?
-
yuripv
-
VimDiesel
Title: Committer's Guide | FreeBSD Documentation Portal
-
» msiism reads.
-
msiism
So, when I want to use that license in a shell script, do I have to keep the `-` in the first line?
-
yuripv
no, first line is shebang?
-
msiism
Well, yeah, I normally have "shebang \n\n name \n\n description \n\n version \n\n\n" above the copyright notice and license.
-
msiism
I was just wondering why the first line in the license text says '/*-'.
-
msiism
More precisely: I was wondering why there's a hyphen there.
-
msiism
s/text/template/
-
yuripv
from style(9): "An automatic script collects license information from the tree for all comments that start in the first column with “/*-”."
-
meena
msiism: this is for C. If your code isn't C, your comments will look different
-
msiism
Sure, I was just wondering about the hyphen.
-
msiism
Oh, there was some kind of graphics glitch here. Now seeing what yuripv posted from style(9). Thanks.
-
meena
i love how 90% of the time I ask if somebody has reported a bug upstream, the answer is usually: no.
bugs.freebsd.org/270649
-
VimDiesel
Title: 270649 – hostapd and wpa_supplicant use uninitialized ptr if interface disappears
-
meena
(this is the rare occasion where it's happening in base, and upstream is a vendor. which can be guessed from the fact that the code is in contrib. Usually it's happening for ports. where people report bugs to us that we can't do much about)
-
Beladona
wacome stylus either does not shows up as stylus and eraser (just wacom co) and it does not respects the pad's grid. Acts like a mouse. I have the libwacom. Dont think I need legacy driver.
-
Beladona
Any solutions?
-
Beladona
wacom*
-
adilix
hi all
-
» meena wonders if Val Packett is working on stylus things
-
meena
they've done a great deal of work on desktop and laptop things
-
Demosthenex
i'm still hearing stuttering in audio on occasion, any suggestions on debugging where the over/underrun is?
-
Demosthenex
usb audio, virtual_oss
-
meena
Demosthenex: rtprio seems to be the way to go
-
meena
-
VimDiesel
Title: rtprio(1)
-
meena
there doesn't seem to be an rc.subr facility for rtprio:
man.freebsd.org/rc.subr(8)
-
VimDiesel
Title: rc.subr(8)
-
Demosthenex
actually, it's ubuntu w/ pulseaudio in virtualbox using OSS, to virtual_oss, to usb audio. i think it only stutters in that, not everywhere
-
Demosthenex
i'm trying to make sure the sample rates and sizes match end to end
-
Beladona
Anything on wacom? Tried a lot
-
Demosthenex
Beladona: yeah, thing is a mouse is a mouse to x11. so wacom behaviors are special and likely only in certain apps
-
Beladona
Demosthenex in linux, it snapped to grid at least. e.g the tablet corner was the screen corner
-
Beladona
how can i achieve that. I think its the os and driver issue. Not the app
-
Demosthenex
you might check what was handling inputs in linux, there are Xorg event handlers which may be related.
-
Demosthenex
if you have any logs from then
-
Beladona
no logs as of now. Does it works for you?
-
Beladona
Demosthenex do I need xf86-input-wacom-0.39.0_3 X.Org legacy Wacom tablet driver ?
-
Beladona
or xf86-input-evdev
-
Beladona
and configure via devd or HAL
-
Beladona
xsetwacom --list shows nothing
-
angry_vincent
i guess you need libinput rather ( newer driver )
-
angry_vincent
have a feeling it is already asked some days back
-
Demosthenex
Beladona: you may have to try these to see
-
Demosthenex
it's a real edge case ;]
-
Beladona
tried, non worked
-
Demosthenex
did you confirm in your xorg log that the other drivers took effect and were used?
-
Demosthenex
it'd be handy to have an xorg log from a working linux instance
-
Demosthenex
to compare
-
Beladona
Demosthenex solved by runing `webcamd -d ugen0.2` :)
-
Beladona
though I know netflix and amazon prime won't ever work on freebsd. So not even trying
-
kevans
took me a minute to mentally insert video into that
-
kevans
"what's wrong with amazon prime? I order useless crap all the time"
-
Beladona
kevans you run netflix/amazon prime etc on freebsd? you don't get browser/driver etc issue?
-
kevans
I mean, half of that. my commentary was that I was confused because amazon prime is a shopping service, amazon prime video is what you're talking about
-
kevans
so i do use amazon prime, but naturally no browser/driver issues with shopping
-
mason
Lack of widevine, pain getting audio out of Chrome are the two issues, as I understand it.
-
Beladona
yes
-
Beladona
kevans mason yes
-
Beladona
and no solution. correct mason ?
-
mason
Beladona: Anecdotally folks have gotten Chrome audio out of the Linuxulator, but I've not tried to reproduce it and the process might stand more documentation.
-
Beladona
how hard is it to get it right?
-
mason
Beladona: Unsure. Documentation would narrow that question significantly.
-
Beladona
mason link?
-
mason
Beladona: Mm, I think I only noticed things on the Forums or somesuch, via web search since I don't frequent forums.
-
Beladona
ok
-
mason
I think there was a mention on BSD Now recently as well.
-
mason
Not seeing anything recent.
-
Demosthenex
Beladona: for the tablet?
-
Demosthenex
Beladona: webcamd? nice.
-
gzar
anybody have experience setting up ipsec strongswan related stuff?
-
crest
gzar: yes
-
gzar
i need some tutorial or something to establish a vpn connection to my work vpn
-
gzar
im overwhelmed by the amount of configuration
-
crest
strongswan works almost identically on freebsd and linux
-
gzar
except i never used it so i dont know where to start
-
crest
-
VimDiesel
Title: Configuration Examples - strongSwan
-
crest
are you in charge of both ends of the vpn?
-
crest
or do you have to connect to an existing vpn service?
-
gzar
existing vpn service, i am not in charge of the server
-
gzar
what do i replace this line with in swanctl.conf: updown = /usr/local/libexec/ipsec/_updown iptables
-
gzar
its an ikev2 cert-based authentication
-
crest
you probably don't need it at all
-
gzar
its the example conf from the link
-
crest
the updown script is spawned on state changes by the strongswan daemon
-
crest
it *can* be used to dynamically update firewall rules, but unless you have a very complex and dynamic setup you don't have to do this
-
crest
on a vpn client with a single address and given that pf and ipfw can deal with dynamic ips on interfaces you don't have to update the firewall rules (unless you exceed what can be abstracted over in your firewall filter language)
-
crest
-
VimDiesel
Title: Test ikev2/net2net-start
-
gzar
i guess, there is a vpn gateway to access private resources and i am the client in this case
-
gh00p
I'm in love with wireguard, So incredibly easy to set up.
-
crest
gh00p: that's not useful if the other site insists on their existing ipsec service *sigh*
-
gzar
how do i start it, assuming i've got the configuration done
-
gzar
also i was given separate CA cert, client cert and key files
-
ghoti
gzar: sounds suspicious. Like they are planning to be MITM.
-
gzar
what would they gain out of it? its their services
-
ghoti
gh00p: I have a BGP session running over wireguard. Much easier than openvpn, though I don't have as much session stats.
-
gzar
also, they are incompetent, i think its important to mention
-
ghoti
Perhaps somebody told them they'd save bandwidth if they forced everybody's http traffic through a caching proxy.
-
gzar
seems like using charon-cmd is the way to go? i managed to at least authenticate
-
gzar
but it fails at some step
-
gzar
nvm, just had to remove the configuration and run charon-cmd with their certs and keys...
-
gzar
seems like its working, can wrong configuration cause the server to respond with 'sendto: host is down' when trying to ping it?
-
gzar
or do i trust ping in this case and assume host really is down
-
V_PauAmma_V
I vaguely remember that "host is down" (as opposed to timeouts or such) is a sign of ARP failing.
-
gzar
well, i let them know about my issue, they should probably tell me more about their setup so that i can configure it properly
-
meena
-
VimDiesel
Title: 1. The Linux/x86 Boot Protocol — The Linux Kernel documentation
-
mason
meena: I think that's through one of the grub ports, if so.
-
mason
Although I guess there's better support for the bootloader on its way.
-
meena
hmmmmm?
-
mason
Let me see if I can find a reference.
-
mason
meena:
wiki.freebsd.org/Kload which I was under the impression would include Linux, but I could be confused.
-
VimDiesel
Title: Kload - FreeBSD Wiki
-
crb_
why do I need to be root to run pw on a password file owned by me? (I'm creating disk images and I'm later going to use an mtree METALOG file to change the permissions of the password file in my image.
-
scoobybejesus
I'm using PIKVM (paired with a 4-port KVM) to put an eye on my homelab. HDMI and USB come out of my homelab boxes, go into the 4-port KVM, and a single USB and HDMI exit the KVM and go into the PIKVM. Then PIKVM in a web interface lets me switch among the 4 sources to view/control my four devices as though they are not headless. Neat. With FreeBSD, OPNSense, and PFSense, every time I switch to them, the terminal outputs the
-
scoobybejesus
connection and disconnection of devices. It is quite noisy and is basically a scrollback destroyer. Any idea how to divert this type of output to a file only, so I can view it later as needed, and so it doesn't fill the terminal and ultimately hide other possibly useful terminal output?
-
mason
crb_: That's a requirement of the tool, not the file.
-
crb_
mason: yes but why? I mean I can understand if the password file is owned by root, but what if I want to use it on a password format file that I own
-
mason
crb_: I think the best answer is "hysterical raisins".
-
mason
crb_: There are lots of things that could be done but aren't for various reasons. Replicating the functionality in another tool might be the best answer here.
-
mason
Otherwise this tool has to add a bunch of new functionality for checking whether the non-root user is doing something tricky/malicious.
-
meena
crb_: i reckon that pw might be putting file attributes in place in case they are missing
-
crb_
meena I suppose. I mean it already has switches that allow you to set an alternate root so that it's clearly not changing the live password file
-
meena
crb_: run it under dtruss to see where it fails, or, if it's just giving you a straight up error that says you need to be root, just checkout the source
-
crb_
meena, yes that's my next step to look at the source
-
CrtxReavr
crb_, I'd guess because pw(8) is not suid root, and it's its intended to be run by root.
-
crb_
CrtxReavr: yes I suppose that was the conception when it was created
-
meena
CrtxReavr: the point is, even if something is meant to be run as root, it doesn't always need all power of root
-
scoobybejesus
A succinct version of my question is, if I don't want to see output in the terminal when I plug in or unplug USB or HDMI devices, can someone please point me towards a way to hide/divert that output?
-
CrtxReavr
crb_, look at line 280 of src/usr.sbin/pw/pw_user.c
-
CrtxReavr
meena, I trust you with sudo rights. >=]
-
CrtxReavr
scoobybejesus, by "terminal," you mean console?
-
scoobybejesus
indeed
-
CrtxReavr
Or are you seeing this in any old terminal program on your desktop?
-
CrtxReavr
Why wouldn't you want to see it on your console?
-
scoobybejesus
it's as though i have a monitor hooked up, and i am seeing the HDMI output on a monitor
-
scoobybejesus
in nearly all cases, i will SSH in. sometimes an update goes sideways, so it's nice to have a monitor
-
CrtxReavr
I get that. . .
-
CrtxReavr
I generally think of the console for getting the thing on the network with ssh enabled (or getting Xorg up and running).
-
CrtxReavr
But, if you're in that repair/setup mode. . . same question. . . why wouldn't you want to see those messages?
-
meena
CrtxReavr: sure you trust me with sudo rights, but what about a build automation? do you trust Jenkins with sudo rights?
-
scoobybejesus
Ah, you're asking why wouldn't I want the plug/unplug messages. Right. Yeah, presumably i would want access to them, but in a file ideally. Sometimes it's nice to check that the KVM is behaving, and i'd prefer to not have the scrollback eaten by those messages. I understand your point though
-
CrtxReavr
-
VimDiesel
Title: disable console messages
-
CrtxReavr
meena, in a jail, sure. >=]
-
scoobybejesus
This is great, thank you. Perhaps i will be able to dig deeper on my own to target USB/HDMI only
-
meena
I dunno how difficult it is to build images in a jail