Mainly tutorials, some news, only Linux.

For all of those who own a server stable enough to run rely on it for internet connection, and who are sick of ads, be it on your computer or your smartphone, I have an answer!

It implies installing BIND as a DNS server, and giving it a blacklist of all possible advertisers so as to entirely block their ads, at the same time speeding up your internet browsing by preventing you from loading all those ads.

Install Bind9

And modify /etc/bind/named.conf.options, adding your favorite DNS servers. Here is mine, which must in no way encourage you to use the same DNS servers. Please note I have been told Google’s DNS is said to track you and lie. I personally stood by namebench’s results.

2014-03-18-161226

I’d recommend using namebench so as to find the best DNS couple for yourself (it is best to avoid repeating the test for the results get skewed after the first go). It could allow you to gain precious milliseconds during your internet browsing. Also you should know that configured as such, the BIND server will cache results from previous requests, effectively giving zero milliseconds DNS queries on websites you visit on a regular basis.

Then copy the content form this link into a file named /etc/bind/blacklist (or anything else you want), and execute this command:

Warning: please have a quick look at what is in the file we just created, for any domain there will in effect be inaccessible from your network. You could of course choose to simply add a couple of your choosing, just follow the syntax described above.

Add this line to /etc/bind/named.conf:

Then create a file named /etc/bind/null.zone.file and paste this to it, replacing the IP with the server’s on the network.

And restart the BIND server:

IP du serveur en tant que DNS principal

IP du serveur en tant que DNS principal

 

And all you have to do now to enjoy an addless network is add your server’s IP to your router’s settings, as here.

But be careful to input a secondary and third DNS, in case your BIND install fails. I’d recommend adding the first two results from the namebench test.

It might take a while for your devices to register the change, so you might want to do it yourself.

Here’s what a usually overcrowded website looks like on an iPhone in safari, without adblock by definition:

Pas de pubs sous safari

 

 

 

 

 

Please feel free to comment for any issues you might have!

Sure the default shell does the job, but a customized one does it better. And one of the ways to do so is to create aliases.

Basically, aliases will substitute the shortcut with a command or set of commands.

First, lets open our shell’s configuration file:

Creating an alias is easy: anywhere you want in your configuration, type alias at the beginning of a line, then a shortcut, and then a command you would like to substitute.

Now whenever I type in “hi”, my shell will output a “Hello World!”.

Since aliases are expanded before executing any command, you can change the default behaviour of any app you wish. Here for example I have added colors to ls.

Or you could even add what is called a wrapper, a small script to a command allowing you to change it to your preference, as we’ve done  previously for the man package here.

Once you’re done, don’t forget to reload the configuration file, which can be done by restarting a new instance of your shell (usually bash).

When typing “man open”, you are immediately taken to the very first man page for open on your system, usually in the tcl commands section. For anyone who has no clue what section their man page is in, this can be particularly frustrating.

Here is how to have bash ask you what section the man page you are looking for is.

Create a file, and paste this in it:

Then you’ll want to add to add an alias for man in your ~/.bashrc or ~/.whatevershellyouuserc.

It would look something like this:

Now, if there are multiple man pages for the same command it will prompt you like such, giving you a short description of each command.