Jakob
Under Linux i linked /sbin/shutdown to /bin/shutdown
So, if your privileged program doesnt also need access to privileged files, at least under linux, that would be a "solution". But then again, these programs should have landed in sbin for a reason. Also i am not sure this applies to freebsd
XS
You linked that because your user shell's profile has no /sbin by default in its path. You should instead set a correct path for your administrative users. The fact is the shutdown command that you have installed on your linux is probably systemd that allow administrative users to trigger the shutdown without calling it as root. We're not in such case. sbin stands for system binaries, and they preferably better staying there.
Jakob
Oof. I could call it as root and with sudo, but not as normal user. I concluded 'sbin surely stands for super user binaries, why not try if it works'. Tried, and felt assured in my assumption. In german we say 'probieren geht über studieren' - apparenrly thats not always the case 😄
Thank you very much for the correction!
XS
no problem
XS
theorically, all binaries in /sbin are also statically linked and shall stay in /, so in case of system maintenance they can be ran without potentially missing dynamic libraries
XS
But not sure how modern distros knows and respect that... xD
Anonymous
Hi, I have written a shell script that I have graphicized using zenity
Now how can I write operations for each member of these lists?
stéphane T
Dang,
I added this in my syslog conf
!slapd
*.* @10.40.0.32
and here’s the result
Logging to FORW syslog-ldap.mydomain:514
lsent/totalsize: -1/76
sendto: Invalid argument
logmsg: pri 53, flags 0, from ds3-fbsd13, msg sendto: Invalid argument
Fortunately I found the trouble… I had to do a freebsd-update, install the updates and reboot.
stéphane T
So yeah… bug in the default install
Anonymous
Anonymous
Why you are using zenity?
I am developing the tool for Mac
It is light and hassle free and I do not know Swift programming
Anonymous
Anonymous
Why you do not take the input with read?
Incidentally, the tool was like this at first, but since I intend to publish the tool for various users, including beginners, and it is difficult for them to work with the terminal, I decided to use zenity.
Anonymous
Anonymous
XS
Just use a case statement for the zenity's call output.
Anonymous
open /Users/$USER/Parallels/"$(ls -1 /Users/$USER/Parallels/ | awk "NR==$num {print}" )"
XS
num=$(zenity [...])
Anonymous
Anonymous
num=$(zenity [...])
It did not work properly
I was going to run the function when one of the menu items is clicked
XS
Zenity shall return the selected item once the OK button is pressed.
XS
Something special ?
Anonymous
#!/bin/bash
main_operation(){
LIST=($(ls -1 /Users/$USER/Parallels/ | tr ' ' '-' | grep -n '' ))
sudo date 080419102021
sleep 1
open /Users/$USER/Parallels/"$(ls -1 /Users/$USER/Parallels/ | awk "NR==$num {print}" )"
sleep 20
sudo sntp -sS time.apple.com
}
LIST=($(ls -1 /Users/$USER/Parallels/ | tr ' ' '-' | grep -n '' ))
zen= $(zenity --list --height 300 --width 500
--title="Create By Mr.Packer"
--column="operating systems" "${LIST[@]}")
Anonymous
Anonymous
o0O[ventoy]
XS
ɴꙩᴍᴀᴅ
@Packer000 for shell scrpiting outside FreeBSD move the conversation either to @freebsd_offtopics or to https://t.me/unix_sh, thanks
Anonymous
siduck
hi guys, ive heard that freebsd's used for mostly servers, is it decent for desktop like linux?
Anonymous
siduck
does anyone use runit on freebsd here?
Anonymous
i run kde on the desktop
siduck
oh, i use dwm
Anonymous
siduck
siduck
https://www.freshports.org/sysutils/runit/
SteelCaptain
SteelCaptain
I wrote several scripts using it
siduck
is it possible to use wifi during freebsd installation?
Mmmm
siduck
the installer just shows a dhcp interface option :((
Mmmm
siduck
i want my wifi to get connected during the installation cuz i cant access ethernet
siduck
it doesnt show that option
Mmmm
What is your wifi card?
siduck
realtek 810xE
Anonymous
re0 is wired wlan0 is wifi have dhcp choose one
siduck
i dont see wlan0 option
Anonymous
rsx0 ?
siduck
no :(
Mmmm
realtek 810xE
Just skip internet, finish the installation first.
siduck
in the network configuration section i get re0 only
Mmmm
https://www.freebsd.org/cgi/man.cgi?re(4)
siduck
but i need it after the installation, the installer doesnt show any wlan0 option so my wifi card isnt supported?
siduck
oh no :l , nvm it then
Anonymous
if ya want wifi unplug the wire and go back
Mmmm
siduck
Anonymous
nope just one pick
Anonymous
wire is always number one
Anonymous
default
siduck
i cant access the ethernet ;(
Mmmm
Wow you dont read ya.
siduck
Wow you dont read ya.
I have artix linux installed now and got exams on tuesday so, if the wifi doesnt work after the bsdinstallation then im doomed! i'd have to spend hours on setting up my old artix setup so i need to be 100% sure that freebsd works
Anonymous
siduck try ghostbsd it's free underneith and it will bring you to a desktop
Mmmm
Nah good choice. You can try live first, if it is good all h/w detected then go install.
Anonymous
the desktop for ghost is mate
Anonymous
go for it
siduck
go for it
one last thing! is my hardware supported like the drivers and all
siduck