-
hernan
almost 14, nov 14, fbsd 14. will they release at 14h14m14s ?
-
jb1277976
Lol
-
phryk
woop 14.0-RELEASE soon
-
paulf
woop that means plenty of work
-
n30
paste.purplehat.org/view/b55b1905 <--- anyone that can answer why portmaster says like this?
-
VimDiesel
Title: portmaster - PHO Paste
-
maccampus
Can FreBSD run Android Apps ?
-
n30
paste.purplehat.org/view/b55b1905 <--- anyone that can answer why portmaster says like this?
-
VimDiesel
Title: portmaster - PHO Paste
-
nimaje
hm, not sure what portmaster uses to decide which are important packages and which are only there because they are build dependencies, are those included in portmaster --list-origins ?
-
n30
nimaje: it seems all those packages that needs to update is in --list-origins to
-
n30
openssl was not i noticed now
-
n30
py39 openssl harfbuzz was not listed with portmaster --list-origins
-
n30
had simular on another box to update but it worked flawless on that one
-
zyxer
Hi
-
zyxer
Good afternoon
-
nimaje
n30: sorry no idea, maybe portmaster --update-if-newer '*' considers everything you have on your system, but you should consider switching to something doing isolated builds like synth or poudriere as your system isn't changed while building, so you don't have a partial updated system and you don't have the build dependencies installed on your system, only in the jails used to build the packages
-
alxhr
Hi!
-
zyxer
Hi
-
tercaL
hi
-
zyxer
I have this device (it is from OpenBSD host):
-
zyxer
Ugen0 at uhub0 port 3 "Qualcomm Incorporated Qualcomm HS-USB" rev 2.00/0.01 addr 2
-
zyxer
It is wwan interface, I inserted sim-card
-
zyxer
But OpenBSD doesn't recorgnise it as an internet interface
-
zyxer
So, where can I find info on what hardware is supported on FreeBSD?
-
zyxer
Or better yet, can I get a live FreeBSD image to check? So I can check from FreeBSD host without having to install and delete my current installation
-
BillyJoeBob
It's a USB device, right?
-
BillyJoeBob
You could try installing FreeBSD in a virtualbox and attach the device and see if it works?
-
zyxer
It is integrated
-
zyxer
I think it is connected to internal USB on MoBo instead of connected to PCIe
-
zyxer
(It is PCIe socket but I think it goes through USB bus lanes and is just PCIe to USB adapter so to speak, then connected to USB internals)
-
zyxer
How can I get audio through hdmi? AMD APU(iGPU)
-
nimaje
figure out which sound device it is, eg via cat /dev/sndstat and then change hw.snd.default_unit accordingly via sysctl
-
zyxer
nimaje: Doesn't work?
-
zyxer
Oh wait
-
zyxer
That was setting default unit, not changing
-
zyxer
But thanks! I can work from herr
-
zyxer
Wait... Hmm...
-
zyxer
I restarted mixer service but still no sound
-
zyxer
I mean, sound is still on laptop speaker and not through HDMI
-
zyxer
-
zyxer
output of cat /dev/sndstat
-
zyxer
I did: sysctl hw.snd.default_unit=0
-
zyxer
still, device is the laptop speakers
-
nimaje
hm, do you hear any sound? can you try cat /dev/random > /dev/dsp0 and the same for 1 and 2? (just terminate it after a few seconds via ctrl+c)
-
zyxer
That gave sound on correct device
-
zyxer
nimaje
-
zyxer
I tried restarting firefox as well, incase firefox was "cached" on wrong device
-
zyxer
Wait, let me try to restart x
-
nimaje
so dsp0 is the correct device and works? hm, no idea then
-
zyxer
Restarting x did not help
-
zyxer
ok so that command needs a restart of another service to apply
-
zyxer
audio/pulseaudio according to wiki, or pacmd and then input set-default-sink 0
-
zyxer
To change on the fly
-
zyxer
The command you gave needs reboot (and I guess persists between boots, obviously, lmao)
-
thorre
Hello everyone. With the 14-RELEASE just arround the cornor I would like to have your input on upgrading. More specific on when to upgrade. Is it considered best practice for production systems to wait for a .1 release?
-
V_PauAmma_V
thorre, I don't know offhand how applicable that advice was beyond my own circumstances and those specific versions, but someone (I think kevans) steered me toward 12.3 instead of 13.0 (which came close to each other) when I asked which to upgrade my daily driver (and single FreeBSD computer) to.
-
rwp
I feel that if one is asking that they should avoid the .0 releases. Especially if it is their one single main computer that must work for them.
-
rwp
On the other hand if you have a dozen machines all doing things and have been running it for a while then you definitely should install the .0 on a system and test it out and report bugs.
-
thorre
Thank you for your feedback. I will not jump the gun next week when 14 is released but give it a little time before I upgrade my main machine.
-
babz
In any case, I strongly recommend testing an upgrade on a non-critical machine before moving on to production machines (on Fridays).
-
zyxer
/set irc.look.smart_filter on
-
zyxer
oops
-
zyxer
lmao
-
plasma
:P
-
meena
my look smart filter would probably just translate to /quit, so i stop embarrassing myself
-
nimaje
zyxer: as stuff dynamically set via sysctl doesn't survive a reboot, it of course doesn't need a reboot, but no idea about pulseaudio, I just assumed you used sound directly and not pulseaudio on top, no idea if it notices when you change the default audio device that way
-
fatalnix
Fi phy pho plum. I smell a bunch of ... Crap I can't rhyme that without being mean. Oh well. What's new?
-
wikan
hi
-
wikan
i think i have found a bug in bash but i am not sure. Maybe it is bug in my script
-
wikan
but I have a problem with a weird behaviour or bash
-
wikan
may I share my script with you?
-
wikan
maybe first I check in #bash...
-
RhodiumToad
put the script on a paste site
-
wikan
-
wikan
58 - commended export = works fine
-
wikan
line 58 - uncommended export = eval in 59 runs 3 times and my desktop hungs
-
wikan
i fixed regex =~ ^\?
-
wikan
btw :)
-
wikan
sorry - not 58 but 59 (export line)
-
RhodiumToad
is that eval supposed to be re-executing this script?
-
wikan
no
-
wikan
i dont know how to push "value" with quotes but visible for child process as without them
-
wikan
because "bash run $string" where string is (--x "hello") results with that, the child script has x as "hello" with quotes
-
RhodiumToad
that's correct, yes
-
wikan
anyway, without eval i had the same issue
-
RhodiumToad
if you want to make it bash-specific, that's what arrays are for
-
wikan
will change it but first must not hung my desktop :|
-
RhodiumToad
what is ${arg_plugin}.sh whatever that is doing with XMENU_STRING ?
-
wikan
arg_plugin is --plugin argument. It is for example (--plugin rofi)
-
wikan
so when it is rofi then XMENU_STRING is a command to run rofi with theme and theme-str
-
wikan
plugin does for example (ls -la | $XMENU_STRING)
-
wikan
and rofi shows up
-
wikan
otherwise any other xmenu like dmenu (plan)
-
RhodiumToad
so XMENU_STRING is supposed to be a valid command and args after word-splitting
-
wikan
word-splitting?
-
wikan
but yes it is entire commad for plugins to run to show menu
-
RhodiumToad
you know that when you write $var in a script, the value of var is split into words, yes?
-
RhodiumToad
i.e. if you do var="1 2 3" and then somecommand $var then the command gets three args, yes?
-
wikan
yes
-
RhodiumToad
and that word-splitting doesn't respect internal quotation inside the value of var
-
wikan
plugin use eval
-
RhodiumToad
i.e. if the value of var is 1 "2 3" 4, e.g. if you set it as var="1 \"2 3\" 4" then it splits into 4 words, not 3
-
RhodiumToad
plugin uses eval how exactly?
-
wikan
sorry right. Plugins use eval, so "ls -la | eval $XMENU_STRING"
-
wikan
will change it to array
-
RhodiumToad
ugh. eval $XMENU_STRING and not eval "$XMENU_STRING" ? the difference matters a LOT
-
armin
it matters depending on what XMENU_STRING can hold
-
armin
but as long as you don't know, quoting that is probably a good idea.
-
wikan
wait...
-
wikan
should be with ""
-
wikan
is without
-
armin
put differently, unless you WANT word splitting to happen on a " ", you want to quote that thing, yea.
-
RhodiumToad
the problem is that eval $XMENU_STRING ends up word-splitting the value, then concatenating it again
-
wikan
dont understand
-
RhodiumToad
so it messes up things like internal spacing in what you think are quoted strings
-
armin
TMLP. too-many-layers-problem.
-
wikan
as I see, rofi launches 3 times and hangs desktop
-
wikan
hmmm
-
RhodiumToad
i.e. "foo bar" is split into "foo and bar" and then concatenated into "foo bar"
-
RhodiumToad
yeah, pretty much any use of eval in shell is a Big Red Flag
-
RhodiumToad
any use of word-splitting is a red flag, too
-
jb1277976
Guys when i put in a ssd in this laptop how do i get my system to reognize it ? i know the bios must recgnoize it. after that do i jsut format it with the freebsd installer and i should be fine or is there somethign else i need to do ?
-
armin
RhodiumToad: it depends, if you really really know what you're doing, and you control the input, and you can predict the input, in THAT one case I might not see a problem.
-
RhodiumToad
jb1277976: as an additional disk? what do you want to use it for? or replacing the system disk?
-
RhodiumToad
armin: anyone who thinks they know what they're doing when it comes to shell is probably wrong
-
jb1277976
RhodiumToad: replacing the system disk
-
armin
RhodiumToad: true.
-
RhodiumToad
jb1277976: as long as the bios sees it, then the freebsd installer should be able to handle the rest
-
jb1277976
Thanks
-
RhodiumToad
armin: for example, the only reason why the whole of /etc/rc* doesn't explode and die is that key paths like /etc are known not to contain whitespace or special characters
-
RhodiumToad
if I had infinite time I'd build a system where paths.h was modified to rename /etc to "/System Configuration" or some such, and document all the explosions
-
» RhodiumToad does not have infinite time
-
armin
RhodiumToad: A large part of shell scripting is that you need to make assumptions. If the assumption you make is known to work in almost any damn case you can think of, why bother? Shell scripting is known as a "glue language" thing and I think that fits it quite well. You can use it to do almost anything you can think of, but you also get all possibilities to shoot yourself in the foot.
-
armin
RhodiumToad: Of course, you *WILL* eventually shoot yourself in the foot while trying to master shell languages, no matter the interpreter, but that doesn't mean that interactive shell-use or shell-scripting is bad per-se, it's the other way around.
-
armin
RhodiumToad: We need some kind of interface to speak to a computer and a shell is just a very perfect one.
-
armin
RhodiumToad: for example you wouldn't check if a directory exists if you just mkdir -p'd it one line above...
-
armin
RhodiumToad: but then again, someone evil might have created a file with that name before, what do you do? Check for all of these weird edge-cases? I don't think so.
-
armin
RhodiumToad: I'd say many programmers will just live with that and assume that the user in SUCH a weird case knows what to do.
-
wikan
i have no idea how to run rofi now
-
wikan
eval hungs
-
wikan
variable - errors
-
wikan
bash is the pease of sh*
-
wikan
piece
-
armin
bash is a horror, yes, that's why I love it.
-
wikan
i will try python wrapper
-
armin
you can also just try to share your script (if you can share that data), I'll be happy to at least *try* to help you. <3
-
RhodiumToad
this issue would be the same in other shells, it's not likely to be bash-specific
-
armin
That's correct.
-
wikan
but i can do system()
-
wikan
only for this one command
-
wikan
system(VALUE_FROM_ENV)
-
wikan
i have no idea why eval hungs it is non sense
-
RhodiumToad
doing system() from python or whatever is conceptually the same as eval "$var" in shell
-
RhodiumToad
it's not eval that is hanging, it's whatever you ended up invoking
-
RhodiumToad
have you used set -x to see what's actually being run?
-
wikan
garbage
-
wikan
this mode isn't helpful hre
-
RhodiumToad
of course it is helpful
-
armin
Well set -x shows *exactly* what's actually being done, it could be.
-
wikan
it doesn't help me at all
-
wikan
but i will try -x to plugin
-
» armin throws winegum bears in wikan's general direction.
-
RhodiumToad
the script you pasted isn't the one with the issue.
-
RhodiumToad
$HOME/.xmenu/plugins/${arg_plugin}.sh <-- that's the one you need to be looking at
-
wikan
wait
-
wikan
this command is hanging
-
wikan
i copied it to xterm
-
wikan
and hungs
-
wikan
wtf
-
wikan
must check it
-
wikan
it is rofi fault
-
wikan
great
-
wikan
found a problem
-
wikan
you can'tchange rofi position by -theme-str
-
wikan
if you try rofi hungs
-
wikan
wrong - you must set location AND ancor
-
wikan
thanks for your time
-
wikan
i need something better than htop
-
wikan
can you suggest something guys?
-
armin
tried "btop" or "bpytop"?
-
wikan
htop require double pressing F9 to kill
-
wikan
it is annoying
-
armin
ctrl-c works for me
-
armin
ah you mean to kill a process?
-
wikan
btop is to fancy
-
wikan
yes
-
wikan
when you move with arrows then you need press F9 twice
-
wikan
or maybe not
-
wikan
so htop has lags
-
wikan
not it is working well
-
wikan
i have no idea why
-
wikan
it didnt
-
wikan
ok thans for you time
-
wikan
again :)
-
wikan
must restart my computer
-
wikan
bye