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
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
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.
XS
Just use a case statement for the zenity's call output.
Anonymous
Just use a case statement for the zenity's call output.
The case is used for values with a certain number, but take a look at this code
Anonymous
open /Users/$USER/Parallels/"$(ls -1 /Users/$USER/Parallels/ | awk "NR==$num {print}" )"
XS
num=$(zenity [...])
Anonymous
num=$(zenity [...])
will try thanks
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.
Anonymous
Zenity shall return the selected item once the OK button is pressed.
I want to define a condition that something special happens when the ok button is clicked
XS
Something special ?
Anonymous
Something special ?
Yes a function is executed
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
o0O[ventoy]
ɴꙩᴍᴀᴅ
@Packer000 for shell scrpiting outside FreeBSD move the conversation either to @freebsd_offtopics or to https://t.me/unix_sh, thanks
siduck
hi guys, ive heard that freebsd's used for mostly servers, is it decent for desktop like linux?
siduck
does anyone use runit on freebsd here?
Anonymous
i run kde on the desktop
siduck
oh, i use dwm
siduck
can you do that?
i think so, i read some article
siduck
https://www.freshports.org/sysutils/runit/
SteelCaptain
I wrote several scripts using it
siduck
is it possible to use wifi during freebsd installation?
siduck
the installer just shows a dhcp interface option :((
siduck
Then what's the problem?
does that require ethernet?
siduck
i want my wifi to get connected during the installation cuz i cant access ethernet
Mmmm
does that require ethernet?
Just choose your wifi interface.
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)
Mmmm
in the network configuration section i get re0 only
You dont need internet to install fbsd. Unless you re using mini image.
siduck
but i need it after the installation, the installer doesnt show any wlan0 option so my wifi card isnt supported?
Mmmm
but i need it after the installation, the installer doesnt show any wlan0 option so my wifi card isnt supported?
As i said finish installation first. Then read man re. Either you need to recompile the kernel or add somethinng in /boot/loader.conf to load your wifi card.
siduck
oh no :l , nvm it then
Anonymous
if ya want wifi unplug the wire and go back
siduck
It is supported. Please read the manual.
i was expecting it to work ootb
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
siduck
siduck try ghostbsd it's free underneith and it will bring you to a desktop
ohh , its based on freebsd right? i dont use DE's tho, i use dwm but a gui installer which would detect the wifi would be nice
Anonymous
go for it
siduck
go for it
one last thing! is my hardware supported like the drivers and all
siduck
on my way!
ɴꙩᴍᴀᴅ
one last thing! is my hardware supported like the drivers and all
Which year is it? Seems an all intel one, shouldn't be problems if it ain't way too new