Next you’ll need to create the wrapper scripts for popfile.
Open up your file manager in super user mode. You can do this by hitting alt+f2 then typing
kdesu dolphin
or if you’re using GNOME
gnomesu nautilus
Go to usr/sbin
right click choose to create a new text file.
Name it
popfile-bayes
don’t put .txt after it.
Now you’re going to need to edit this file. So hit alt+f2 again and type
kdesu kwrite /usr/sbin/popfile-bayes
or for GNOME
gnomesu gedit /usr/sbin/popfile-bayes
copy and paste this text into it the file.
-!/bin/sh
cd /usr/share/popfile
export POPFILE_ROOT=/usr/share/popfile
export POPFILE_USER=/var/lib/popfile
umask 0027
exec /usr/share/popfile/bayes.pl "$@"
Save it.
Then erase what’s in the file and copy and paste this into it.
-!/bin/sh
cd /usr/share/popfile
export POPFILE_ROOT=/usr/share/popfile
export POPFILE_USER=/var/lib/popfile
umask 0027
exec /usr/share/popfile/insert.pl "$@"
click save-as and save the file as
popfile-insert
once again no .txt
erase what’s in the file and then copy and paste this into it.
-!/bin/sh
cd /usr/share/popfile
export POPFILE_ROOT=/usr/share/popfile
export POPFILE_USER=/var/lib/popfile
umask 0027
exec /usr/share/popfile/pipe.pl "$@"
save as
popfile-pipe
Last one, erase what’s in the file and then copy and paste this into it.
-!/bin/sh
cd /usr/share/popfile
export POPFILE_ROOT=/usr/share/popfile
export POPFILE_USER=/var/lib/popfile
umask 0027
exec /usr/share/popfile/popfile.pl "$@" --set config_piddir=/var/run/ --set logger_logdir=/var/log/popfile/
save as
popfile
Now we need to make these scripts executable by opening a terminal and typing
sudo chmod +x /usr/sbin/popfile*
enter your root password and it will make the scripts executable.
Another post…