neb
OS108 is that — a easy way to quickly get a graphical system up and running (like NomadBSD, ArisbluBSD, and to some extent GhostBSD) - but MidnightBSD is a fork on its own.
neb
GhostBSD uses OpenRC init system and compiles it's own packages, but base is FreeBSD -STABLE.
neb
Good evening yourself 👹
neb
I'll try to interpret:
These project get casual love from here, but better to ask them as this is more a pure FreeBSD foucused group. So better ask them directly.
neb
neb
Just something that came when I ♥ your video
Eliab/Andi
FreeBSD 13 and it's working great now
My monitor is detected
evan
awesome
Eliab/Andi
awesome
thx 😊 Therefore I can focus my work flow now on FreeBSD without hopping from one Linux OS to anohter :D
evan
😁
evan
U ,freebsd only now 😁
Eliab/Andi
Eliab/Andi
Thx mate :)
Pouria
Anonymous
Pouria
Eliab/Andi
:)
Eliab/Andi
Geld [0/4💉] 🇵🇸 تحيا فلسطين
ah thx for the tip
Nothing scientific. Just personal experience.
My laptop ran better when I turned off the screen and was using it only via HDMI.
Better thermals, as it (I assume) draws less overall power.
Eliab/Andi
Carl
Hey, good day, I have one question maybe somebody can answer me easy.
I want to check when an usb device is plugged or unplugged to send a notification. I know I can check it dmesg, with camcontrol devlist, with usbconfig and I am sure many commands more.
However, to make process a little more efficient I wander if there is a file or a directory where I can check the absence or the presence of a new device without execute any program.
Can somebody give a solution or a clue to go on searching please?
Carl
ok, i have found the solution .... devd is my friend
ɴꙩᴍᴀᴅ
man devd(8)
ɴꙩᴍᴀᴅ
Ahh you were faster (:
ɴꙩᴍᴀᴅ
Obuya
Eliab/Andi
Eliab/Andi
Hey mates, which IDE do you use for Python coding
ɴꙩᴍᴀᴅ
Maybe Vim
https://www.vimfromscratch.com/articles/vim-for-python/
Eliab/Andi
Eliab/Andi
Pouria
ɴꙩᴍᴀᴅ
You can achieve great things with Vim. However, setting it up maybe takes some time. You end up with a .vimrc file that is like your toothbrush, making it manufactured to your needs
ɴꙩᴍᴀᴅ
If you want something fast to setup and common in other OSes, Vscode is around the packages in FreeBSD too
Eliab/Andi
ɴꙩᴍᴀᴅ
That's the way 😎
Eliab/Andi
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
Ahh one without captions
ɴꙩᴍᴀᴅ
Hehehe
Eliab/Andi
Eliab/Andi
@n0madcoder Have u used Neovim?
ɴꙩᴍᴀᴅ
I'm afraid not, just vim
Pouria
Eliab/Andi
i use neovim.
👍 Ok. I try to figure out the difference between Vim and Neovim🙈
Carl
Can somebody give me a clue please? I made a /usr/local/etc/devd/test.conf with this content :
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
action "echo $system > /tmp/test";
};
It do his action, it prints $system in /tmp/test. However I want to print in that file da0 but I can not find how the variable is called. This are the dmesg lines
ugen0.4: <Generic Mass Storage> at usbus0
umass0 on uhub0
umass0: <Generic Mass Storage, class 0/0, rev 2.00/1.00, addr 3> on usbus0
umass0: SCSI over Bulk-Only; quirks = 0x4101
umass0:7:0: Attached to scbus7
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: <Generic Flash Disk 8.07> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 4B062480
da0: 40.000MB/s transfers
da0: 15000MB (30720000 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
How can I know the variable where the da0 is saved and be able to use it later?
Carl
i have been looking the other /etc/devd.conf rules and the /etc/devd/* ones too , but i was not able to find any other rule who extract this value
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
Mando is in the room😱
Eliab/Andi
👍
ɴꙩᴍᴀᴅ
Finally we can fill PDF forms inside Firefox🙌🏼
Eliab/Andi
ɴꙩᴍᴀᴅ
@CarlDCharlie have you tried with an awk script maybe?
Carl
@CarlDCharlie have you tried with an awk script maybe?
that's what i was thinking, do an awk to the dmesg. But I had hopes devd was able to offer me the string. Now I will search the best way, devd will trigger the dmesg+awk way or the camcontrol devlist+awk one. thanks anyway 👍🏼
ɴꙩᴍᴀᴅ
https://svnweb.freebsd.org/ports/head/sysutils/solaar/files/devd-solaar.awk?revision=508179&view=markup
ɴꙩᴍᴀᴅ
Maybe that can help. I'm away from my bsd machine 'til I reach home ): so I can't try rn
Carl
🧐
Carl
thanks a lot for the link ... he uses $cdev in the /dev/$cdev and udev rules for bigger objetives .... but my cdev value in notify 100 is ugen0.4 ... not any da0 ... I am looking for an easier way to asociate this values devd offers me with da0 ... i just need some "da0" in the file ... and the notification in my lemonbar will be "da0 has been plugged" ... i will use only what devd offers me to try to identify the device... but as i said, thanks a lot for the link 👍🏼
ɴꙩᴍᴀᴅ
Oh lemonbar rules😎
The idea for the notification is really cool
Carl
i already got the notifier script :D ... i am growing the notifications with this devd thing ... and i got it, i will put it all them together and i will show you the solution i reached
ɴꙩᴍᴀᴅ
Great :D
Carl
Carl
i have notifications for email, usbs, updates, music, i must repair the mount/unmount notification because it is made for linux and i work slow ... i just made a fifo memory in /tmp and i have one script that sends whatever i want when i want ... sooo, my own bar notifier
Carl
in cli mode it runs too, it saves all notifications in a log
Carl
by the way ... a got this
ɴꙩᴍᴀᴅ
Oh wow! you've made a lot inside lemonbar. Mine is pretty much prehistoric compared with yours. Good job there
Carl
notify 1000 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
action "usbconfig -d $cdev dump_all_desc | awk -F'[<>]' '/iSerialNumber/{print $2}' > /tmp/scriptorun/RUN/serialusb && dmesg | grep $(cat /tmp/scriptorun/RUN/serialusb) | awk -F':' '{print $1}' > /tmp/scriptorun/RUN/attachedusb";
};
notify 1000 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "DETACH";
action "usbconfig -d $cdev dump_all_desc | awk -F'[<>]' '/iSerialNumber/{print $2}' > /tmp/scriptorun/RUN/serialusb && dmesg | grep $(cat /tmp/scriptorun/RUN/serialusb) | awk -F':' '{print $1}' > /tmp/scriptorun/RUN/detachedusb";
};
Carl
i runs sometimes, because it have an erratic actitud when it reads the dmesg, i must repair it, but it run almost the time
Carl
i get the serial numer with usconfig and $cdev
Carl
and then i grep it from dmesg
Carl
Carl
the colors are ugly, i did not touch themes of nothing, i just make scripts and scripts
ɴꙩᴍᴀᴅ
If you have a code repository you can share if you wish. It be great to check