And its really easy, in Kubuntu you just need to select the packets, they are all available. I left most of the configuration unchanged as the default values should do. Or you may want to filter https traffic as well but I doubt it. Then go ahead and start it! And you may want to make it start automatically on bootup. The dansguardian configuration is a bit trickier, or lets say more time consuming.
You will need to play around and adjust the filter settings after some testing, or maybe you can use already existing rules from Firefox Adblock I think these are RegExps too?
At first you wanna have a look through the dansguardian. Here you can adjust a lot of stuff, you even can add ClamAV, an anti-virus scanner. For a start you should set the log levels quite high so you can see in the log file what happens. The important options are. You may want to set this though…. On this port the filter listens for incoming requests from browsers etc.
There are a lot of options where you can tune to get better performance or better results, to get started the default configuration should be suitable. Here are all the filter files defined. These should be alright. Its just HTML with a few placeholders, very easy to adjust. I will only mention the files that I changed and that seem to be important to me. The names of those files are pretty self-explaining and have examples so just go ahead and have a look!
In this file a have three lines you can create as many as you want as these are regular expressions. I created that stuff a few years ago and it still serves me good!
Very simple regexps. Here you write the urls in that you want to block. Not whole sites, these will work but you should put them in the bannedsitelist. I guess its a performance thingy. You can rewrite everything inside the document.
A real regular expression replacement. Might be helpful for javascript stuff or just to censor pages. Should look like this:. This is not ideal. The defaults are suitable for most users, and the file is well-commented.
Be sure to check the options under Network Settings for filterip , filterport , proxyip and proxyport. You may also want to examine weightedphrasemode and phrasefiltermode. The filter mode is especially important if you are running this setup on older hardware.
Next edit the options for the first, and only, group in this setup. Pay attention to the naughtynesslimit. DansGuardian examines the content on a page and adds up the naughty words based on a weighting scheme, with worse words getting more points. If this total exceeds the naughtnesslimit , the page will be blocked. In a corporate environment, you would want this set around Type in y for yes and press Enter. If you have changed your mind, press n for no and then Enter.
Finally, the output informs you that the process is complete and shows you which package has been deleted. Note: Only root users and users added to the sudousers group have permission to install and remove packages in CentOS. Package dependencies are binaries, libraries, and modules on which software rely on. When installing software, it will automatically download and store the required dependencies. In most cases, deleting software from the local package manager will also erase its dependencies unless other programs require them.
To remove a package and erase all the unneeded dependencies use the following command:. Alternatively, you can alter the yum configuration file to automatically remove package dependencies when deleting a package with the yum remove or yum erase commands. In case you need to delete a package but are unsure of its exact file name, you can use one of the following two commands:. As you can see in the image below, httpd appears in the following packages and dependencies :.
0コメント