-
AumShivaya
How can I set rec src on a device?
-
AumShivaya
for some reason my mic is set to playback
-
AumShivaya
and it is a different device to sound out
-
AumShivaya
things be funky
-
polyex
need rdp (xrdp, xorg, bhye) help
termbin.com/p83f
-
parv
Re
bsd.to/VxmW -- looks like mortal user did not initialize the root's environment, much what rwp wrote about the leakage
-
VimDiesel
Title: dpaste/VxmW (Plain Text)
-
» skered polls for any misc/nut users... Does nut (nutmon) respect deadtime? I get the felling it's something with usbhid-ups that seems to restart/flicker USB.
-
parv
... re fish history, also looks like HOME was either set to "/", or was just unset, after being root
-
rtprio
meena: i'm not allowed to run my own mail
-
s2r
skered, what were you looking at in nut_upsmon?
-
skered
s2r: Just trying to understand cases of upsd going down and why upsmon wants to shutdown.
-
skered
Which I can trigger by restarting upsd.
-
s2r
skered, But does it shutdown the server? I don't think upsmon kills anything if it losses connectivity
-
s2r
skered it shutsdown when the battery levels reach predetermined low values.
-
skered
I think it's MINSUPPLIES that's causing it.
-
s2r
But what are you observing?
-
skered
restart upsd, shutdown starts.
-
s2r
skered wow.
-
s2r
I had many issues with my upss fortunarely detected disconnections to the ups but never initiated the shutdown.
-
s2r
can you paste your upsmon.conf ?
-
s2r
have you tried with upsmon -DDD to debug?
-
skered
The difference here is upsmon talking to upsd not disconnection to the UPS.
-
skered
I know that removing power from the UPS works and keep everything up.
-
skered
I have an idea what was going during my tests.
-
skered
I don't think the state was saved correctly or I restarted upsd during a calibartion.
-
skered
Or it's not changing the state when I run a test via test.battery.start.quick or test.battery.start.deep.
-
skered
-
VimDiesel
Title: gist:047175203cf44a4a31f510ce59dbc93b · GitHub
-
skered
But that's uspmon.conf
-
s2r
skered check mine.
bsd.to/MT8f less options
-
VimDiesel
Title: dpaste/MT8f (Plain Text)
-
s2r
No deadtime, no minsupplies
-
skered
It should be defaulting to 30. I don't know aout minsupplies.
-
skered
er well maybe 15. I thought I saw 30 in source.
-
skered
And MINSUPPLIES should be defaulting to 1.
-
skered
But I take it if you restart upsd while upsmon is running it doesn't trigger a shutdown?
-
skered
s2r: How are you connected too? USB? serial?
-
s2r
skered, I've got to UPSs sonnected via USB
-
s2r
skered I'm 95% sure I tried it and it doesn't shutdown.
-
s2r
Don't want to try at 23:50 here before a working day.
-
s2r
:)
-
skered
People work the last week of the year? Like yuck.
-
polyex
need rdp (xrdp, xorg, bhye) help
termbin.com/p83f
-
AumShivaya
why is usbhidaction not doing anything for me?
-
AumShivaya
-
VimDiesel
Title: HOWTO: Using multimedia keys from uhid(4) devices | The FreeBSD Forums
-
AumShivaya
I am TRYING to follow that ^^^
-
V_PauAmma_V
OK, let's take it step by step. What does the grep in step 1 show you?
-
skered
polyex: Is i3 in your PATH?
-
experemental
o/
-
skered
or bash even?
-
skered
Change that shabang to not use /usr/bin/env.
-
skered
s2r: You know what I'm sure it's was that I run a deep test and forgot about it looking back on upslog logs.
-
skered
It seems that upsmon doesn't send an even for a deep test.
-
skered
vs quick where you see the USB flip and and admin off/sleep (and maybe a CAL) then not admin off/sleep.
-
AumShivaya
V_PauAmma_V, it shows me that it is likely Apple keyboard on uhid1
-
AumShivaya
and step 2 confirms it is indeed uhid1
-
AumShivaya
because it hows up page=Comsumer usage=Play/pause etc.
-
V_PauAmma_V
OK. What do you have in the action file you created at step 3?
-
yuripv
polyex: "UserWindowManager=.config/xrdp/startwm.sh", you likely want absolute path here? using $HOME or whatever is allowed in that .ini file
-
AumShivaya
V_PauAmma_V, $ cat usbaction.conf
-
AumShivaya
Consumer:Volume_Increment 1 0 mixer -f $1 vol +$2
-
AumShivaya
Consumer:Mute 1 0 mixer -f $1 mute
-
V_PauAmma_V
And both keys show up in step 2?
-
AumShivaya
yes and more, here are some
-
AumShivaya
Input rid=0 pos=6 size=1 count=1 page=Consumer usage=Volume_Increment, logical range 0..1
-
AumShivaya
Input rid=0 pos=4 size=1 count=1 page=Consumer usage=Mute, logical range 0..1
-
V_PauAmma_V
OK. So far so good. Now at step 4, what command do you enter?
-
skered
yuripv: It should be relative ot the user logging in home dir
-
AumShivaya
# usbhidaction -d -f /dev/uhid1 -c usbaction.conf /dev/mixer3 2
-
AumShivaya
^[[24~^[[24~^[[21~^[[21~^[[21~
-
AumShivaya
the funny input is me trying the MM keys, but getting 24's and 21's
-
AumShivaya
gibberish
-
AumShivaya
the keys are still operating as F8 and F12, instead of mute and volume increment, respectively
-
AumShivaya
even though I am holding down the fn (function key) which is meant to activate them
-
V_PauAmma_V
Just in case that's the problem, try giving the full path to your usbaction.conf file.
-
AumShivaya
it is in the pwd, but ok
-
AumShivaya
no diff
-
V_PauAmma_V
Hmm. "^[[24~^[[24~^[[21~^[[21~^[[21~" smells to me like your fn key is not doing what it should do.
-
AumShivaya
yeah
-
AumShivaya
I do not know what to do, I mean, it works ok in Linux so it should not be a fault of the keyboard
-
AumShivaya
but yes, the fn key
-
AumShivaya
it's an apple A 1243
-
AumShivaya
fwiw
-
V_PauAmma_V
What happens if you *don't* press the fn key?
-
AumShivaya
same as if I do
-
AumShivaya
it just acts as a F10 key or F12 key etc.
-
AumShivaya
and if I do use fn key, same
-
rtprio
AumShivaya: is it a thinkpad?
-
AumShivaya
no a desktop
-
AumShivaya
with a usb wired keyboard
-
rtprio
so no 'fn lock' key
-
AumShivaya
nope
-
V_PauAmma_V
I'm wondering: is the fn key handled in keyboard firmware as a state change key, or is it passed to the computer as a keypress?
-
mane
my prototype is working again :3
-
AumShivaya
I do not know
-
AumShivaya
but
-
AumShivaya
xev does not register it if I press the fn key
-
V_PauAmma_V
Is that xev under FreeBSD, or under Linux?
-
polyex
need rdp (xrdp, xorg, bhye) help pls
termbin.com/p83f
-
AumShivaya
freebsd
-
AumShivaya
should I check with linux and see?
-
AumShivaya
It would require a reboot a bit later
-
AumShivaya
I have the feeling it is passed as a keypress in linux, but I would have to check :/
-
V_PauAmma_V
I was thinking along those lines too. But no need to run to check. I'm about to go to bed.
-
parv
polyex, If you don't an answer, try freebsd-questions@ mailing list (
lists.freebsd.org/subscription/freebsd-questions )
-
VimDiesel
Title: FreeBSD Mailing lists: subscription for freebsd-questions
-
polyex
ty
-
parv
s/If you don't an answer/If you don't get an answer/ # fudge
-
skered
polyex: You might want to look at scrollback?
-
polyex
skered ok
-
polyex
yuripv man page for sesman.ini states "Path of the startup script relative to the user's home directory."
-
polyex
so no absolute not needed
-
skered
polyex: Go back some more.
-
polyex
i3 in my PATH hmm...
-
skered
And bash?
-
skered
Just use /bin/sh
-
skered
And try again
-
skered
To see if the init. touch is executing.
-
polyex
PATH has /usr/local/bin in it and which i3 says /usr/local/bin/i3 so ya it must be in PATH
-
polyex
just use /bin/sh?
-
skered
How are you checking that?
-
polyex
what?
-
skered
Your PATH might be different at the time of executing that script
-
polyex
hmm
-
polyex
in my ~/.login_conf i have setenv which should build up the env there. any way to test?
-
polyex
lemme add the sesman.log output when i try to connect to the example code
-
skered
Change the shabang of the script to use /bin/sh
-
polyex
of startwm.sh?
-
skered
Yeah
-
polyex
k sec
-
polyex
didn't work
-
skered
Ok I think you need to get the debug logs of sesman up then
-
polyex
almost gottem, sec
-
skered
Are you sure you're using Xorg session type too?
-
polyex
-
polyex
no
-
polyex
what is that and what should it be?
-
skered
You have xauth installed?
-
polyex
it seems to be when i type which xauth
-
skered
Is your user in the video group?
-
polyex
no, only polyex, wheel, and operator
-
polyex
which works just fine in my other bhyve that's working. i'll double check that rn tho
-
skered
You have debug logs turned on in that sesman.ini?
-
polyex
ok ya no video group for other guest
-
polyex
dunno...
-
polyex
no just info
-
polyex
i'll change to debug rn
-
skered
Is xrdp-chansrv running after Xorg?
-
skered
Xorg, chansrv, userwm.
-
skered
Should be the order of things
-
polyex
ok...
-
skered
And you have xorgxrdp installed too?
-
skered
~/..xorgxrdp....log and ~/.xsession-erros might help as wlel
-
skered
.xorgxrdp....log
-
polyex
xorgxrdp is installed ya. no log at /var/log/xorgxrdp.log
-
polyex
-
polyex
that has xrdp-sesman.log for DEBUG level
-
polyex
problem starting X i guess?
-
polyex
but Xorg shows up in the top for polyex when i'm connecting
-
skered
And your touch isn't creating the file?
-
polyex
ok and nothing matching "chan" shows up in top when connecting
-
polyex
nope
-
skered
Is this slow/old hardware?
-
skered
The two vms are speced the same?
-
polyex
no it's a bhyve guest vm running on nice gear
-
skered
on the same host
-
polyex
ya
-
skered
ok
-
polyex
same 13.2 everywhere
-
skered
You don't have a xorg log in your home dir?
-
skered
.xorgxrdp.10.log
-
polyex
nope
-
skered
.xsession-error?
-
skered
What about
-
polyex
there's .local/share/xrdp/xrdp-chansrv.10.log but 0 size
-
skered
~/.local/share/xrdp
-
polyex
nothing else in it
-
polyex
no .xsession-error
-
skered
/var/log/Xorg.anything?
-
polyex
nope
-
skered
Can you write to /tmp?
-
rtprio
and if this isn't an example of why configuration management is worthwhile, i don't know what is
-
polyex
can i write to tmp as my user or?
-
skered
as the user that's logging to into xrdp
-
skered
Check for all those .X11 dirs.
-
skered
/tmp/.X11-unix/X10 is what Xorg should be creatign
-
polyex
OMG
-
polyex
dude /tmp is like 755 not 777
-
AumShivaya
ok, so I booted in to linux, and back...and it does not seem to treat the fn key (xev utility) as a keypress
-
polyex
aaand, that was it
-
AumShivaya
V_PauAmma_V,
-
polyex
skered, tyvm my bro
-
AumShivaya
also I am getting this error for Xorg: > Warning: Key <KO7> not found in evdev+aliases(qwerty) keycodes
-
AumShivaya
> Not treating <KP7> as an overlay key
-
polyex
is it ok if paths in my ~/.login_conf have ~ in them? or should they be absolute?
-
parv
I would use "$HOME" instead of "~". And set HOME once to the directory
-
parv
... before any use
-
polyex
set HOME where tho?
-
parv
Whatever use home directory happens to be ... I don't know , /home/polyex 🤷🏽♂️
-
parv
s/use/&r/
-
polyex
sorry i still don't get it. in .login_conf i use $HOME instead of /home/polyex but i still don't understand where i'm supposed to set HOME
-
polyex
"once to the directory"
-
parv
Context is same as when you started for setting HOME variable: <polyex> is it ok if paths in my ~/.login_conf have ~ in them? or should they be absolute?
-
parv
... that is in "~/.login_conf"
-
polyex
i set HOME in .login_conf, like above the me:\ line?
-
polyex
or :HOME=/home/polyex:\ in the me:\ block, before :setenv line?
-
parv
My purpose of setting HOME, instead of relying on it being set after login, to avoid tedious work of chasing down things not working when using configuration files across multiple software on FreeBSD & CentOS-derivatives
-
polyex
ya ok so you're saying, set HOME right at the core, in ~/.login_conf, then use it safely everywhere else?
-
parv
polyex, Sorry, ignore me please regarding "~/login_conf"; have not relied or knowingly used it
-
parv
s,/,&.,
-
polyex
where does HOME get set by on freebsd?
-
parv
well, one location is the /etc/*passed file
-
parv
"/etc/*.passwd" that is
-
» parv does not have a "~/.login_conf", unsurprisingly
-
unixwitch
polyex: $HOME is set by whatever logs the user in, usually login(1), su(1) or sshd(8)
-
unixwitch
V_PauAmma_V: it does seem like a timing issue, but i just rebooted a few times (for unrelated reasons) and the problem hasn't come back. i noticed my userland was slightly out of date compared to the kernel (1400502 vs 1400501), perhaps that was the reason
-
polyex
unixwitch ok so it should be pretty reliable whether interactive login or service login then as long as env is invoked for the user. so then what format do you use for paths in ~/.login_conf? absolute /home/unixwitch/foo/bar, $HOME/foo/bar, or?
-
unixwitch
polyex: i don't have a .login_conf, but if i did, i'd probably use ~/foo/bar following the example in /etc/login.conf
-
unixwitch
login.conf(5) says this works for "capabilities that set environment variables" which is probably the only place you'd want to use it anyway
-
polyex
specifically only :setenv entries, or :path too?
-
unixwitch
it must be both, because the default class uses it in :path=
-
polyex
true
-
polyex
alright, done deal. tyvm
-
unixwitch
well, i haven't tested it with setenv, so perhaps it only works for path, but that would contradict the manpage
-
darwin
UNIX Witches get magic from daemons
-
polyex
what's a witch?
-
unixwitch
so switching from python 3.9 to 3.10 requires recompiling devel/electron25, time to find something else to do for four hours...
-
meena
just four?
-
» meena is mildly jealous of whatever hardware unixwitch has at their disposal
-
unixwitch
meena: i think it took about 3:30 last time. no special hardware, Ryzen 7 5800X3D
-
unixwitch
i only have it installed for signal-desktop, hopefully one of the native IM clients might add signal support at some point
-
meena
unixwitch: it's very frowned upon by the signal developers. not quite as much as by discord, but still
-
unixwitch
i'm mildly impressed that this is causing no issues at all with audio playback in firefox: 9:59AM up 2:42, 3 users, load averages: 24.66, 20.58, 15.06
-
unixwitch
used to be (years ago) doing anything at all on the cpu would make anything latency-sensitive very sad
-
polyex
ya that's really impressive
-
polyex
why load so high?
-
polyex
24.66 never even seen that
-
meena
polyex: unixwitch is building electron
-
polyex
and smooth audio playback that's some nice scheduler upgrades?
-
unixwitch
polyex: poudriere... in this case i used 'poudriere bulk -J8' which runs 8 jobs in parallel, but sometimes it ends up building a few packages which i've set ALLOW_MAKE_JOBS_PACKAGES for, which means each of those gets 8 jobs by itself, so you end up with a lot of jobs
-
unixwitch
it's not really ideal because running that many compilers in parallel is not efficient, but it's quicker than not using -J at all, and sadly setting ALLOW_MAKE_JOBS still breaks some packages
-
unixwitch
polyex: not sure exactly why it works, but i'm using the new(ish) mac_priority(4) which allows jackd to run with realtime priority. so it's firefox > pulseaudio > jackd > snd_uaudio, i guess pulseaudio has a fairly large buffer, and jackd's realtime priority means it's okay with its smaller buffer
-
polyex
damn that's so cool
-
polyex
how do you apply the mac priority policy to jackd?
-
unixwitch
load mac_priority (either as a module, or compile it into the kernel), put yourself in the realtime group (gid 47) and then start jackd with -R
-
unixwitch
jackd_args="-R -doss -r48000 -p671 -n2 -w24 -e -P /dev/dsp0.0 -C /dev/dsp0.1"
-
unixwitch
it seems to get a bit confused by my 20-channel snd_uaudio device, the default -p1024 prints a warning saying to use a multiple of 671, but any value other than 671 causes it not to start at all... which seems like a bug but i haven't gotten around to investigating it yet
-
unixwitch
polyex: if you're interested in jackd on freebsd, i found this page very helpful:
github.com/0EVSG/freebsd_jack_notes
-
VimDiesel
Title: GitHub - 0EVSG/freebsd_jack_notes: Notes and user guides for jack audio server on FreeBSD
-
polyex
wow ty
-
meena
unixwitch: how much Software do you have to recompile to work with Jack?
-
» meena puts on Mr Jack by System of a Down
-
unixwitch
meena: so far only pulseaudio, because the default options don't include the jack sink. then everything else uses PA. (that's obviously not good for serious audio work, but it's fine for desktop applications)
-
unixwitch
i'm intending to try ardour, which should use jack directly, but didn't have time yet
-
meena
why would pulseaudio *not* include jack support out of the box?
-
unixwitch
i don't know. it adds a dependency on audio/jack but that's a pretty small package
-
meena
given the amount of people who would benefit from this, it seems a small sacrifice to make to the freaks who are like, as little deps as possible
-
meena
OTOH, most of those people might be recompiling everything to not use pulseaudio because it was once touched by Poettering
-
unixwitch
i noticed a few things (including firefox) also have native jack support, but i actually prefer to route that stuff through PA because it's a bit more configurable, like forcing it to use only channel 1 for capture instead of thinking i have a stereo mic input. unless you can configure that directly in jack, maybe i should look at the manual...
-
nedko
for jack-pulseaudio tunnelling (or jack-pipewire), jackdbus works better than jackd (both link to libjackserver)
-
nedko
recently jackd got libdbus dependency too, so it could work if jackd emits jack-server-started and jack-server-stopped signals over dbus, so that pulseaudio or pipewire can create the tunnel dynamically
-
unixwitch
oh, electron25 build finished in 50 minutes, thanks ccache!
-
nedko
i'm jackdbus and ladish upstream and i noticed that ladish (that requires jackdbus) got recently added to freebsd ports
-
nedko
i dont have freebsd installed, but the design is same for linux and freebsd
-
nedko
recently (in freebsd-15)
-
nedko
unixwitch: in jack it is up to the driver what hardware ports to present. whether mic or guitar is attached to the audio io port is not something jack knows
-
nedko
but (oss) drivers can present mono devices i guess
-
unixwitch
nedko: right. my concern is that i connect firefox directly to jack, and it sees a 20-channel capture device, it's not going to know what to do with that. using PA's jack sink with channels=1 forces all the clients to just use a mono input, which is what i want for desktop apps
-
nedko
unixwitch: i understand, thanks for the info. ladish has "rooms" concept to limit visibility of nodes, but proper support in jack is needed for restricting the view of a program to a virtual hw with ports linked to particular hardware
-
unixwitch
what ports category would you put a Python Chromecast library in (PyChromecast)? devel/ because it's a library, not an end-user application?
-
unixwitch
or net/ because it implements a network protocol
-
unixwitch
nedko: hmm... ladish is like a persistent version of qjackctl?
-
nedko
unixwitch: i think qjackctl can also persist connections, ladish aims to do it automagically
-
unixwitch
that sounds interesting, i might have a look
-
nedko
ladish requires no session management protocol for the basic functionality (restoring connections)
-
nedko
even when jack client name is random
-
nedko
-
VimDiesel
Title: git: d92825bc02a5 - main - audio/ladish: New port: Session management system for JACK
-
bsdbandit
good morning
-
polyex
heya
-
bsdbandit
i have an application that requires electron 19 package since upgrading to freebsd 14 that package is no longer avaiable only election 25 my question is is there a way to compile an older version of election on freebsd ?
-
TommyC
bsdbandit: if it does compile, you can just grab the old stuff (Makefile, package source, etc.) and make a package with it
-
unixwitch
bsdbandit: you could perhaps check out an older version of the ports tree (like a quarterly release) that still includes it and build a package
-
unixwitch
it looks like the port was removed on Fri Jun 30 2023, so 2023Q2 for example should still have it
-
unixwitch
however, it was removed because it's EOL upstream, so it probably has unfixed security issues
-
unixwitch
welp i submitted my first port, let's find out how many things i did wrong
-
zc4r
hello everyone, merry christmas
-
zc4r
can someone help me set up a torrent server on my freebsd 14.0 machine with a webui?
-
zc4r
i've tried rtorrent, qttorrent and ctorrent but the furthest i've got is a cli with rtorrent that says it can't read the ,rtorrent.rc file even though i did chmod 777 on it
-
merry
zc4r: have you considered naming it .rtorrent.rc rather than ,rtorrent.rc?
-
unixwitch
zc4r: i'd used both rtorrent (no webui) and transmission (with webui) from ports with no issues on freebsd. how are you starting rtorrent, and what's the full error / other output?
-
unixwitch
(actually, rtorrent wasn't quite no issues because if you run it on an nfs mount, it fails to write data because freebsd mmap() is broken on nfs and won't be fixed... but it should be fine on a local zfs/ufs filesystem)
-
zc4r
@merry aren't those identical names?
-
merry
no, one has a comma
-
merry
(you typed a comma)
-
zc4r
oh thats a typo, it's called .rtorrent.rc with a .
-
zc4r
i just used sudo pkg install rtorrent and sudo pkg install transmission
-
zc4r
do you think it would be wise to install from ports?
-
unixwitch
pkg is ports, it's just binary packages built from the ports tree. either is fine
-
merry
you can always use -o import=‹file› if specify a different location if you have your rc in a non-standard location
-
zc4r
ok, you have set up transmission with web-ui with no issues. i would like to be able to do that
-
unixwitch
it should install an rc.d script in /usr/local/etc/rc.d, just enable the service, start it, and then visit the web ui on the appropriate port, which i can't remember offhand because i don't use it anymore
-
unixwitch
you may need the 'daemon' flavour, i can't remember if the base transmission package includes that... this changed recently for the 4.0 update
-
unixwitch
('pkg search transmission', if there's a package with a name like transmission-daemon, make sure that's installed)
-
zc4r
i'll start with "pkg install transmission transmission-remote-gui-qt5 transmission-daemon transmision-qt-4"
-
unixwitch
you don't need the qt packages on the server side. you might want them on the client
-
unixwitch
also transmission-remote-gui doesn't need to be installed on the server
-
zc4r
oh
-
zc4r
lemme undo that and try it again
-
unixwitch
that's an unrelated third-party package that's not related to transmission itself, but again you could install it on the client if you want to use it
-
zc4r
so "sudo pkg install transmission transmission-daemon" gives Number of packages to be installed: 27
-
unixwitch
that's probably fine. i don't know what 'transmission' includes though, maybe just install transmission-daemon and it should pull in everything that's required
-
zc4r
sudo service transmission start
-
zc4r
transmission already running? (pid=71310).
-
unixwitch
ok, so you should be able to visit the web ui on whatever port it's running on... you can configure that in the settings.json which again i can't remember the location of (sorry) but find /usr/local -name settings.json should locate it
-
unixwitch
(if you want to edit settings.json, stop transmission, edit it, then start it again, or it'll be overwritten)
-
unixwitch
(i think it's something like /usr/local/etc/transmission/home/settings.json)
-
zc4r
that's where the online guides seem to fail. the settings.json wasn't where it was supposed to be. i'll search for it
-
zc4r
ok it's in /usr/local/etc/transmission/home/settings.json - what should i edit in there to be able to access the webui on my windows machine on the same network?
-
unixwitch
the internet tells me the default port is 9091, so try
1.2.3.4:9091 where 1.2.3.4 is the IP address of the system running transmission-daemon
-
unixwitch
if you want to change the port, the setting is called "rpc-port"
-
zc4r
i get the same as before when i tried this: 403: Forbidden
-
unixwitch
ah, because it only allows localhost by default
-
unixwitch
try setting rpc-whitelist to something like "127.0.0.1,192.168.*.*" - but change 192.168.*.* to whatever your local network is
-
zc4r
i figured as much but i tried changing a bunch of settings to no avail. i'll try that but it looks like something i tried
-
unixwitch
make sure you stop the daemon before editing and restart it after
-
unixwitch
-
VimDiesel
Title: transmission/docs/Editing-Configuration-Files.md at main · transmission/transmission · GitHub
-
unixwitch
to test, you could set rpc-whitelist-enabled to false and see if that works, but that's rather unsecure
-
unixwitch
zc4r: you may actually need a url like
1.2.3.4/transmission if it doesn't redirect by default (rpc-url setting)
-
zc4r
"rpc-whitelist": "127.0.0.1,192.168.*.*,192.168.1.0/24,192.168.1.161,::1",
-
zc4r
still gives me forbidden 403
-
unixwitch
does it prompt you for a password or just give the error immediately?
-
zc4r
error
-
zc4r
no user/pass
-
unixwitch
have a look at the logfile, which should be somewhere in /var/log
-
zc4r
i see no transmission log file, but under /var/log/daemon.log i found something suspicious: Dec 14 16:33:20 myrkur ngircd[78733]: ngIRCd 26.1-CHARCONV+IPv6+IRCPLUS+PAM+SSL+SYSLOG+TCPWRAP+ZLIB-amd64/portbld/freebsd14.0 starting ... even though i don't remember setting up ngircd which is an irc client afaik
-
unixwitch
that's an irc server. no idea about that
-
zc4r
oh nvm i remember trying to set up an irc server
-
unixwitch
although, try 'grep transmission /var/log/daemon.log'
-
zc4r
couldn't connect to it, but nevermind that, do you think this line might be at fault: "rpc-whitelist": "127.0.0.1,192.168.*.*,192.168.1.0/24,192.168.1.161,::1", ?
-
unixwitch
that should be fine as long as the client is in 192.168/16
-
zc4r
Dec 26 13:07:57 myrkur transmission-daemon[97935]: port-forwarding.cc:203 Mapped private port 51413 to public port 51413 (port-forwarding.cc:203)
-
zc4r
Dec 26 13:10:29 myrkur transmission-daemon[97935]: rpc-server.cc:706 Couldn't bind to 0.0.0.0:9091 after 10 attempts, giving up (rpc-server.cc:706)
-
zc4r
those are the newest two
-
unixwitch
that's odd, did you end up with two copies of transmission running somehow? ps auxw | grep transmission
-
zc4r
Dec 26 13:05:55 myrkur transmission-daemon[97935]: tr-lpd.cc:259 Couldn't initialize LPD: Address already in use (48) (tr-lpd.cc:259)
-
zc4r
another one
-
zc4r
that could be the case
-
unixwitch
that sounds like you have two running
-
unixwitch
'service transmission stop' then look at ps and see if there's another one, if so kill it (or them) and start it again
-
zc4r
i tried it twice, first stopped transmission, second gave this error: sudo service transmission stop
-
zc4r
transmission not running? (check /var/run/transmission/daemon.pid).
-
unixwitch
what does ps say?
-
zc4r
and if i do sudo ps i get 8 instances of getty whatever that is, and su -, -su (csh), su - z, sudo ps, sudo ps and ps
-
unixwitch
ps auxw | grep transmission
-
unixwitch
(getty is the daemon that displays the login prompt on the system console)
-
zc4r
z 37129 0.0 0.1 43580 15796 - Ss 11:10 0:01.84 transmission-daemon
-
zc4r
z 48317 0.0 0.1 43580 15808 - Ss 11:11 0:01.80 transmission-daemon -a 192.168.1.161
-
zc4r
z 81963 0.0 0.0 12796 2456 0 S+ 13:18 0:00.00 grep transmission
-
TommyC
Gen Z is killing the getty market.
-
unixwitch
zc4r: kill both of those, and run ps again to make sure they quit
-
zc4r
in the hotdog flavoured water
-
unixwitch
TommyC: getty is trendy again with Wayland since lots of compositors don't support display managers :-)
-
TommyC
heh, I haven't been following Wayland tbh
-
unixwitch
i've been using it for a week or so, i actually quite like it. it reminds me of old Unix systems where the kernel managed the framebuffer (which is basically what DRM is...)
-
zc4r
i killed those two, should i try restarting transmission?
-
unixwitch
zc4r: if you confirmed they're not running anymore, yes, start it again (with 'service') and try connecting to the web ui again
-
zc4r
orate
-
zc4r
403 forbidden
-
unixwitch
i used to have an SVR3 system which had a non-X windowing system that ran on top of the system console... if you opened the terminal emulator, it just used the normal text console to display the output (except in a window) but you could display graphics too. it was actually pretty neat
-
unixwitch
zc4r: check the logfile again
-
zc4r
this one seems fishy: Dec 26 13:21:25 myrkur transmission-daemon[8052]: tr-lpd.cc:259 Couldn't initialize LPD: Address already in use (48) (tr-lpd.cc:259)
-
unixwitch
okay, stop transmission, run 'netstat -an | grep LISTEN' and paste the output somewhere like
bsd.to
-
VimDiesel
Title: dpaste
-
zc4r
i just get a "> "
-
zc4r
no nvm
-
zc4r
-
VimDiesel
Title: dpaste/Mhdv (Plain Text)
-
yuripv
there's sockstat for that type of investigation, sockstat -4l
-
unixwitch
you still have transmission running. do 'ps auxw|grep transmission' again, what does it say?
-
zc4r
ps auxw|grep transmission
-
zc4r
z 44844 0.0 0.0 12796 2456 0 S+ 13:26 0:00.00 grep transmission
-
yuripv
(and there's also pgrep :D)
-
zc4r
forgot to sudo, the daemon program was still rnning
-
unixwitch
ok, kill all copies of it, make sure they're actually dead (by running ps again), then start the service again and try the web ui
-
zc4r
we're in business boiz
-
zc4r
403 forbidden was defeated
-
zc4r
now, how do i make it start on boot? put transmission_enable="YES" in rc.d ?
-
unixwitch
so, i strongly suggest enabling authentication for the web ui, you can do that with the rpc-authentication-required and rpc-password settings (see
github.com/transmission/transmissio…docs/Editing-Configuration-Files.md for info)
-
VimDiesel
Title: transmission/docs/Editing-Configuration-Files.md at main · transmission/transmission · GitHub
-
unixwitch
zc4r: in /etc/rc.conf, yes, or do 'sysrc transmission_enable=YES' which is an easier way to do it
-
unixwitch
but if 'service transmission start' worked, you already have that enabled
-
unixwitch
otherwise you'd have to use 'service transmission onestart'
-
zc4r
so could you be more specific in the authentication proceedings?
-
zc4r
yes such was the case
-
unixwitch
set rpc-authentication-required to true, set rpc-password to a password, then start transmission and it'll prompt you for the password. remember to stop it before editing settings.json or it'll overwrite it
-
unixwitch
(the user is always 'transmission', you can only configure the password)
-
zc4r
those settings are in the settings.json file right?
-
unixwitch
yes
-
zc4r
i tried that but the user/pass doesn't work
-
zc4r
the password changes to {30105f05e08592cd2f9e51efe5bc3951d49c7903ir3gkz when i re=open settings.json
-
unixwitch
that's normal, it encrypts the password when it starts
-
unixwitch
not sure why it doesn't work though, maybe #transmission has an idea... you can turn rpc-authentication-required back to false in the mean time
-
zc4r
thanks for the help
-
kevans
win 15
-
mane
<33
-
kevans
damn cookie monster ate my keystroke
-
uskerine
Does anyone the current status of Intel GPU supports in OpenCL in FreeBSD? The question seems easy to google but IMHO it is not
-
uskerine
know*
-
polyex
unbound weird error. says fatal error could not read config file /unbound.conf but i'm not trying to use that path
-
polyex
if i comment out the include line in my unbound.conf, it works fine
-
polyex
include line is just include: conf.d/*.conf
-
polyex
ya it's choking on a symlink
-
polyex
any way to make unbound be able to follow symlinks and not choke?
-
kevans
presumably it's a symlink to something outside of the chroot?
-
polyex
ya
-
polyex
ohhh
-
polyex
chroot :)
-
polyex
hmm no
-
polyex
i commented the chroot line out, still get that error
-
polyex
"/unbound.conf"
-
polyex
also i get that msg when i service unbound reload, but NOT when i service unbound restart
-
polyex
kevans
-
V_PauAmma_V
AumShivaya, I'm out of ideas, then. I can try tracing the dataflow from the uhid driver to usbhidcommand, but my C reading skills are rusty, so no guarantee I'll find anything useful.
-
V_PauAmma_V
Oh, is the Xorg key error for Linux, FreeBSD, or both?
-
polyex
V_PauAmma_V any idea why unbound is saying "fatal error could not read config file /unbound.conf" ?
-
rtprio
do you have an "/unbound.conf"?
-
polyex
no i have /usr/local/etc/unbound/unbound.conf, and that has an include: conf.d/*.conf
-
polyex
and there's 1 file in there
-
skered
s2r: Turns out it's a bug in nut.
networkupstools/nut #2168
-
VimDiesel
Title: is_ups_critical: seems that UPS [xxx] is OB+LB now, but it is also calibrating : but it's not (longer) true (from 2.8.0) · Issue #2168 · networkupstools/nut · GitHub
-
VimDiesel
2168 – A few common protocols missing from /etc/protocols
bugs.freebsd.org/bugzilla/show_bug.cgi?id=2168
-
polyex
it's a symlink into /var
-
mane
we can fget it much earlier
-
skered
s2r: If any CAL state is set that isn't cleared. So it thinks the UPS is still calibrating when it loses comms with upsd. Should be fixed in 2.8.2
-
polyex
skered any clue why unbound is saying "fatal error could not read config file /unbound.conf" ? i have /usr/local/etc/unbound/unbound.conf, and that has an include: conf.d/*.conf, and the 1 file in there is a symlink into /var/...
-
rtprio
is it configured to chroot?
-
polyex
it was but i commented that out lol
-
rtprio
you might have, but it looks like it's still chrooting
-
polyex
i changed the include to be an absolute path to the /var file directly, so no symlink, still fails
-
polyex
dunno how it could be chrooting i commented that out and restarted unbound
-
polyex
ohh
-
polyex
gotta pass ""
-
polyex
ok now it works
-
rtprio
uh huh
-
polyex
how bad is it to disable unbound's chroot?
-
polyex
so i can include this file from /var
-
rtprio
how much do you trust unbound to not have a root exploit?
-
polyex
or is there any other way so i can keep chroot enabled? basically i have a script that puts a new file out with configs for unbound. the alternative i can think of is to put the file with the script directly into unbound's conf.d dir
-
polyex
eh
-
rtprio
yeah, that's what i would do
-
polyex
somehow that means giving my script user permissions to write into unbound's conf.d dir?
-
polyex
how would you do that right?
-
rtprio
what script are you doing to update these? not something like ansible, i am guessing
-
rtprio
yes, i would have the script place the file from outside the chroot
-
BraveheartBSD
FreeBSD 14.0-P4 USB is still fragile, has been reported, still no fix. Rebooting a server will sometimes hang if a keyboard is connected, pulling the usb keyboard will complete the boot process.
-
rtprio
i haven't noticed anything about that during pre-release
-
rwp
Is there a bug ticket on this USB keyboard fragility that we might read and reference?
-
BraveheartBSD
Bugzilla Bug_ID 273984
-
BraveheartBSD
I'ts still ongoing, new mouse/keyboard didnt solve the problem.
-
nimaje
that one is a port update by its maintainer and it is already committed and the report closed, you got the wrong id
-
BraveheartBSD
-
VimDiesel
Title: 273894 – FreeBSD 14.0-REL-p1 USB Connect / Disconnect Issue
-
BraveheartBSD
Sorry .....
-
BraveheartBSD
Need to fix my dyslexia, lol
-
nimaje
hm, that one doesn't seem to be a hang, as xorg can be started and then it seems to be fine? "The error appears to go away after starting xorg / Mate Desktop."
-
BraveheartBSD
On the desktop pc it works fine after Xorg has started. I was looking at dbus as a probable fix, andding dbus to the server (no xorg) didn't help.
-
BraveheartBSD
I had to shut things down due to some wild weather, powering up the server through idrac failed to boot FreeBSD, the countdown timer had stalled. Pulling the keyboard from the server allowed it to continue boot process.
-
AumShivaya
V_PauAmma_V, freebsd Xorg error
-
kenrap
BraveheartBSD: I've been having constant USB dropouts, especially with my usb sound card, but I guessing that's more to do with my AM4 Ryzen hardware instead.
-
V_PauAmma_V
Interesting. That sounds like it registers like a keypress in FreeBSD, even if one software fails to recognize.
-
BraveheartBSD
V_PauAmma_V, yes, and with a server in a remote location, it could make things interesting.
-
V_PauAmma_V
BraveheartBSD, sorry, that was to AumShivaya.