-
tehpeh
Does anyone know if setting machdep.hwpstate_pkg_ctrl package/per-core control for Intel Speed Shift is an energy saving thing, a performance thing, or both?
-
tehpeh
Trying to figure out if it's worth setting per-core for a Xero server that's always on
-
tehpeh
Xeon
-
hernan604
whats the freebsd name that listen for tcp connections before booting ?
-
rtprio
before... booting? for what?
-
nimaje
before booting sounds like wake on lan, but pretty sure that is a maiboard thing and the operating system doesn't matter for that
-
FatalFUUU
unless its some serial over tcp thing
-
DarkUranium
WoL is 100% a mainboard thing because the CPU is typically in a very low-power state during it (almost completely off; not sure of the details, but I wouldn't be surprised if it *is* off, and it's some coprocessor handling it at that point, or even the network card itself).
-
pertho
Hi.. wrote a rc script to run as a user using /usr/sbin/daemon.. and I am getting: daemon: failed to set user environment. The user exists, it's also in a group, and it has shell of /usr/sbin/nologin.. any ideas how to fix?
-
pertho
if I run the daemon cmdline the rc.d script tries to run by hand, on the cmdline.. it runs fine
-
pertho
seeing: initgroups(<username>,<uid#>): Operation not permitted in /var/log/messages on the jail
-
pertho
odd.. I remove -u from it.. and it runs.. as the user I had after -u.. how does it determine that?
-
Alver
-
pertho
Alver: yeah that's what I found.. but.. how does it determine what user to run it as? After removing -u <username> from the daemon line?
-
Alver
pertho: I'm not that familiar with the specifics but it would appear that the daemon process itself is spawned as that user, rather than telling the daemon process to use it
-
Alver
Which is kind of confusing :°)
-
pertho
heh..well stop doesn't work.. it doesn't think it's running and yet the pidfile is there with the right pid in it
-
hernan604
rtprio, nimaje, FatalFUUU oh its dropbear.
-
nimaje
how would that listen for connection on an unbooted system?
-
hernan604
nimaje: i dont know, never used =p
-
hernan604
but thats what i was trying to remember :P
-
hernan604
maybe i explained it wrong
-
Alver
Wake on lan is a network interface feature which interacts with the mainboard, and is entirely unrelated to the operating system
-
hernan604
nimaje: i was trying to remember how to boot remotely an encrypted system. and it seems dropbear is one option and its part of the soution: freebsd:
github.com/Sec42/freebsd-remote-crypto linux:
cyberciti.biz/security/how-to-unloc…dropbear-ssh-keys-remotely-in-linux
-
nimaje
ah, yeah for something like that you boot a small system with a ssh server to unlock the system you want to and then start that system
-
Alver
Yeah, works great. Did that for many many many years on my home servers.
-
Alver
The only annoying thing is that either you have to configure a different IP for the unlocking shell, or get slapped with nonmatching SSH keys after booting, or have to keep keys in sync between the unlocking ramdisk and the OS
-
Alver
But WoL shells give you full plausible deniability, which you cannot get from any system with a local bootloader.
-
Alver
(and you can avoid the whole legacy nastiness of partitions)
-
DarkUranium
Does anyone know of a good CLI tool or online resource (e.g. via cpuid flags) or whatnot to determine an exact processor model from cpu info?
-
DarkUranium
Nevermind, found it ---
instlatx64.atw.hu
-
rtprio
hernan604: are you trying to set a serial console? that happens well after boot
-
dwho
Hello , in python3 with socket module , I can use AF_PACKET and raw socket in linux but I can't in freebsd, how to use raw socket in freebsd?
-
nortti
I've installed freebsd on a dell inspiron r17 5720 and I'm having trouble getting an (external, analogue) microphone working. when I plug in the cable, freebsd recognizes that ("hdaa0: Pin sense: nid=10 sense=0x80000000 (connected)" "pcm0: Automatically set rec source to: mic"), but selecting the default device (pcm0) in mumble gives just silence
-
mzar
cool
-
nortti
if I change it to use pcm1 (the built-in microphone) that does work, so the device is being driven correctly-ish at least
-
mzar
nortti: that's a lot to set there, please take a look at
wiki.freebsd.org/Sound
-
mzar
it's also possible that Dell inspiron r17 5720 is not driven correctly
-
nortti
yeah one thing I've been wondering about is if the association is being traced incorrectly
-
scoobybejesus
dwho: are you in a jail? if so, you need to allow raw_sockets
-
dwho
scoobybejesus: Not in jail , only in defalt system in python3 script
-
dwho
raw socket seems different from linux kernel
-
dwho
In linux I can use AF_PACKET but no in freebsd
-
dwho
Can I use /dev/bpf with python3 to read raw socket?
-
rtprio
dwho: probably, if you're uid0
-
dwho
rtprio: yes in root , i try but I have an OSError 22 if i use open with /dev/bpf
-
rtprio
dwho: how are you reading? you can't just read() /dev/bpf
-
dwho
rtprio: I find a python3 script to read the catch packet
-
dwho
it's very different to linux
-
rtprio
i suggest you review the bpf man pages on freebsd
-
dwho
-
dwho
it work fine
-
dwho
It ' s in French
-
rtprio
great, glad you got it working
-
polarian
Little confused with wpa_supplicant, so the man pages state you can use hex password
-
polarian
oops didnt mean to send yet
-
polarian
so I use pass, so I did the following: pass <password> | head -n1 | tr -d "\n" | od -A n -t x1 | tr -d "\n "
-
polarian
the two tr's are to remove the newline and any spacing
-
polarian
however when I attempt to use this with psk field wpa_supplicant config is invalid...
-
polarian
how do you do WPA-PSK with symbols otherwise?
-
janvhs
polarian: Maybe I’m understanding you wrong, but can’t you use wpa_passphrase?
-
polarian
...
-
rtprio
yeah, they mean wpa_passphrase
-
polarian
ouch
-
rtprio
echo -n password | wpa_passphrase ssid
-
polarian
O.o
-
rtprio
even creates the entry for you
-
janvhs
if that solved you problem, yoh might still want to open the file with an editor (/etc/wpa_supplicant/something) and remove the plain text password from the configuration file. Depending on your security model :D
-
polarian
janvhs: it makes zero difference no?
-
polarian
doesn't it just hex the password?
-
polarian
the man page doesn't really say what it does
-
janvhs
polarian: for me it doesn’t, especially if it’s a single user system. I am not sure how it generates the PKS, but it works xD
-
polarian
well according to what I read psk field takes password formatted as hex so I assumed just format the damn thing as hex and call it a day
-
polarian
I have used wpa_supplicant for half a decade, and I have never realised wpa_passphrase(8) was a thing
-
» polarian facepalms
-
polarian
thank you janvhs and rtprio
-
janvhs
haha no problemo… I don’t really love the UX of wpa_supplicant but Alpine Linux forced me to use it a couple of times recently lol
-
nisse
Hi, im little bit noob and tired. I run freebsd and znc, now I need to renew my SSL-cers, I dont (cant/dont know how the znc should renew ssl with certbot) but I dont remember the command to renew it, I am root and in /root, tired ./ssl, and also tab ./ssl so the command should come up auto, but it dosent, have search some on internet but its mostly about certbot. Someone tha can help a noob
-
nisse
out?
-
nisse
Sorry didnt see topic :/
-
rtprio
certbot renew
-
rtprio
if you're using certbot. what are you using for certs.