viva-cz wrote:
Code: Select all
iva[~]$ sudo /usr/bin/gufw
Heslo:
Gufw does not appear to have been installed correctly.
Starting from this, I did this:
Code: Select all
cbroam[~]$ gksu leafpad /usr/bin/gufw
While in leafpad (or whatever editor you prefer), you can see this:
Code: Select all
#!/bin/bash
LOCATIONS=(
"/usr/lib64/python2.7/site-packages/gufw/gufw.py"
"/usr/lib64/python2.6/site-packages/gufw/gufw.py"
"/usr/lib/python2.7/dist-packages/gufw/gufw.py"
"/usr/lib/python2.6/dist-packages/gufw/gufw.py"
)
for ((i = 0; i < ${#LOCATIONS[@]}; i++))
do
if [[ -e "${LOCATIONS[${i}]}" ]]; then
python ${LOCATIONS[${i}]}
successful="True"
break
fi
done
if [ "$successful" != "True" ]; then
echo "Gufw does not appear to have been installed correctly."
fi
Back to the command line (don't close the text editor window for GUFW executable):
Code: Select all
cbroam[~]$ slocate gufw.py
/usr/lib/python2.7/site-packages/gufw/gufw.pyc
/usr/lib/python2.7/site-packages/gufw/gufw.py
/usr/src/slapt-src/network/gui-ufw/package-gui-ufw/usr/lib/python2.7/site-packages/gufw/gufw.pyc
/usr/src/slapt-src/network/gui-ufw/package-gui-ufw/usr/lib/python2.7/site-packages/gufw/gufw.py
/usr/src/slapt-src/network/gui-ufw/gui-ufw-12.04.1/gufw/gufw.py
/usr/src/slapt-src/network/gui-ufw/gui-ufw-12.04.1/build/lib/gufw/gufw.py
Now go back to the opened window of leafpad viewing the internal executable gufw:
Add a line directly underneath: "/usr/lib64/python2.6/site-packages/gufw/gufw.py"
Fill that line with this: "/usr/lib/python2.7/site-packages/gufw/gufw.py" [or whatever slocate told you where gufw.py is found]
Hope this helps.
FYI: according to the slackbuilds.org website, you need to add this line of code to your /etc/rc.d/rc.local file:
Code: Select all
##Start UFW
if [ -x /lib/ufw/ufw-init ]; then
/lib/ufw/ufw-init start
fi
This makes sure that ufw firewall gets started upon boot.