/usr/bin yolunda bende "gufw" ve "gufw-pkxec" var. Sizde "gufw" mevcut mu? Mevcut değilse herhangi bir text editör ile "gufw" adında shell script oluşturmamız lazım.
Script:
Kod:
#!/bin/sh
if [ $(loginctl show-session $(loginctl|grep $(whoami)|sort -n|tail -n 1 |awk '{print $1}') -p Type) = "Type=wayland" ]; then
xhost +si:localuser:root
fi
c_user=$(whoami)
pkexec gufw-pkexec $c_user
if [ $(loginctl show-session $(loginctl|grep $(whoami)|sort -n|tail -n 1 |awk '{print $1}') -p Type) = "Type=wayland" ]; then
xhost -si:localuser:root
fi
Kaydettikten sonra "sudo chmod +x gufw" yapmasını unutmayın.
/usr/bin yolunda bende "gufw" ve "gufw-pkxec" var. Sizde "gufw" mevcut mu? Mevcut değilse herhangi bir text editör ile "gufw" adında shell script oluşturmamız lazım.
Script:
Kod:
#!/bin/sh
if [ $(loginctl show-session $(loginctl|grep $(whoami)|sort -n|tail -n 1 |awk '{print $1}') -p Type) = "Type=wayland" ]; then
xhost +si:localuser:root
fi
c_user=$(whoami)
pkexec gufw-pkexec $c_user
if [ $(loginctl show-session $(loginctl|grep $(whoami)|sort -n|tail -n 1 |awk '{print $1}') -p Type) = "Type=wayland" ]; then
xhost -si:localuser:root
fi
Kaydettikten sonra "sudo chmod +x gufw" yapmasını unutmayın.