Before you proceed with this tutorial, there are few prerequisites you need to fulfil. First, you either local server or server on the Internet that you (can) use as your own DNS server, second, you need skills to install and configure Linux based DNS server – Bind, third, you need a second IP address if you already have web server running on your primary IP address. I will focus on Raspberry Pi running Ubuntu 16.04 LTS (Snappy Ubuntu Core). Continue reading “How to block ads with local DNS server”
Regardless of user access, many times you have probably wanted to know when someone logs-in into your server. And it is pretty easy to setup your Linux server to send mail notification on user login event. Note that, if you have a system with many users who login few times a day, then you should expect a lot of mail traffic. To configure your Linux server to send mail on user logon event open your /root/.bashrc file and add the following line: Continue reading “How to send mail notification on user logn event”
First we need to boot into recovery mode. To do so, restart server and hold Shift down to call up the boot menu. Then select (recovery mode) for the image you are using. Once you get Recovery menu, select root and press Enter. You will be redirected to recovery console.
At this point we need to mount file system, since it is in RO (read-only) mode. To do so, type the following:
Continue reading “How to reset root password on Linux server”