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
U ,freebsd only now 😁
Yea FreeBSD rules 👍
Eliab/Andi
Thx mate :)
Pouria
FreeBSD 13 and it's working great now My monitor is detected
Can you give me the BSD group id/username?
Pouria
@unitedbsd
Thanks.
Eliab/Andi
:)
Geld [0/4💉] 🇵🇸 تحيا فلسطين
FreeBSD 13 and it's working great now My monitor is detected
Disable laptop screen. It will save the energy drain from charger and lower the wear on your system. (if you are mostly using it as a desktop)
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.
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 (:
ɴꙩᴍᴀᴅ
Speaking of punk... 🤣
Eliab/Andi
Eliab/Andi
Hey mates, which IDE do you use for Python coding
Pouria
Hey mates, which IDE do you use for Python coding
i choose these: Vim Emacs Maybe geany but tastes are different.
ɴꙩᴍᴀᴅ
Maybe Vim https://www.vimfromscratch.com/articles/vim-for-python/
Eliab/Andi
ɴꙩᴍᴀᴅ
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
ɴꙩᴍᴀᴅ
That's the way 😎
Eliab/Andi
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
Ahh one without captions
ɴꙩᴍᴀᴅ
Hehehe
Eliab/Andi
hehe :D
Eliab/Andi
@n0madcoder Have u used Neovim?
ɴꙩᴍᴀᴅ
I'm afraid not, just vim
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
dapit
That's the way 😎
This is the way
ɴꙩᴍᴀᴅ
👍 Ok. I try to figure out the difference between Vim and Neovim🙈
"A nice looking website, that’s one thing Neovim did right." Hehe, just read that it uses Lua for config and plugins... That can be cool
ɴꙩᴍᴀᴅ
ɴꙩᴍᴀᴅ
Mando is in the room😱
Eliab/Andi
👍
ɴꙩᴍᴀᴅ
Finally we can fill PDF forms inside Firefox🙌🏼
Eliab/Andi
Finally we can fill PDF forms inside Firefox🙌🏼
Yea good news No. Adobe needed 😂
Carl
I modified the /usr/local/etc/devd/test.conf with this content : attach 1000 { action "echo bus $bus - cdev $cdev - cisproduct $cisproduct - cisvendor $cisvendor - cle-name - endpoints $endpoints - function $function - interface $interface - intclass $intclass - notify $notify - parent $parent - port $port - product $product - release $release - sernum $m $system - type $type - vendor $vendor > /tmp/attachtest"; }; notify 1000 { match "system" "USB"; action "echo bus $bus - cdev $cdev - cisproduct $cisproduct - cisvendor $cisvendor - cle-name - endpoints $endpoints - function $function - interface $interface - intclass $intclass - notify $notify - parent $parent - port $port - product $product - release $release - sernum $m $system - type $type - vendor $vendor > /tmp/notifytest"; }; The corresponding ouputs when i connect an usb memory are: ATTACHTEST: $ cat attachtest bus uhub0 - cdev - cisproduct - cisvendor - class - device - devclass 0x00 - devsubclass 050 - intsubclass 0x06 - manufacturer - mode host - notify - parent - port 11 - product 0x638vendor 0x058f NOTIFYTEST: $ cat notifytest bus - cdev ugen0.4 - cisproduct - cisvendor - class - device - devclass 0x00 - devsubclassass - manufacturer - mode host - notify - parent ugen0.1 - port 11 - product 0x6387 - releasCH - vendor 0x058f It do his job, it prints the complete array in the files but it will be impossible to extract something valuable for a notification, so I must use the notification to launch camcontrol or any other tool. I want to print in that file for example da0 when it is attached, what tool would you launch for this job with the info devd gives you?
ɴꙩᴍᴀᴅ
@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
🧐
neb
This is the way
I thought the same thing 😈
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
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
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