How to configure blacklist for Squid

Hello. Have you configured Squid ( how to do it) and now want to add a blacklist? Very simple. Create a text file containing the addresses of the sites you want to block and add in the Squid configuration file (/etc/squid/squid.conf) acl urlblock dstdom_regex “full_path_to_file” http_access deny urlblock where “full_path_to_file” means the path+name of the file you just created. Warning: http_access deny urlblock must be inserted before the “allow” statements. ...

April 26, 2015 · Ugo Palumbo

Install Squid (with web cache)

Hello. Let’s see how to install a proxy server like Squid with web cache. Installation apt-get install squid Simple, right? All the configuration is missing, the file of which we can find in /etc/squid/squid.conf sudo vi /etc/squid/squid.conf First of all, we need to enable our network, so under the string acl localnet src 192.168.0.0/16 # RFC1918 possible internal network we insert the acl called “mynetwork” with the static IP address of the computer from which we want to use the server: ...

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] Install Chromium

Hello. Want a browser different from the one on Raspbian and more specifically Chrome? Well, Chrome isn’t available but there’s Chromium, which is an open source web browser from which Chrome is derived. To install it sudo apt-get install chromium Bye! ! :) !

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] Installation of No-IP

Hello. To install No-IP, download the package from the official website, extract the content, compile, and install it sudo make sudo make install During the installation, you will be asked which network card to use (in case of a Wi-Fi card as well), to enter the email address and password of your account, and for which host you want to update the IP address. To start it sudo /usr/local/bin/noip2 ...

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] Install LogMeIn Hamachi

Hello. If you’re looking for a guide on Hamachi, you already know what it is. Before installing it, update the system sudo apt-get update sudo apt-get upgrade install “ lsb-core”: sudo apt-get install lsb-core In the meantime, download the client from the official website, ARM HF version naturally .deb. Once all this is done, from the terminal go to the folder where you downloaded the package and install it: ...

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] Force 1080p resolution

Hello. As you’ve surely noticed, when connecting the Raspberry to a FullHD monitor, the resolution isn’t 1920x1080, and it’s not possible to select it. To force this resolution, go to: sudo nano /boot/config.txt look for all disable_overscan=0 and change the value to 1 (from 0 to 1). Finally, at the end of the file, comment out the following lines (comment with #): overscan_left=24 overscan_right=24 overscan_top=16 overscan_bottom=16 Restart the Raspberry. ...

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] Remove unnecessary software

Hello. You’ve surely noticed that on Raspbian there is software that may be useless for us. To uninstall this software you can use the command: apt-get purge –auto-remove software_to_delete I deleted these: sudo apt-get purge scratch sudo apt-get purge debian-reference-en dillo idle3 python3-tk idle python-pygame python-tk sudo apt-get purge minecraft-pi sudo apt-get purge sonic-pi Finally a nice: apt-get autoremove Bye! ! :) ! Source: http://www.stefan-seelmann.de/wiki/rasperrypi-homeserver

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] After installing Raspbian

Hello. After installing Raspbian (on the Raspberry website there are all the necessary guides), the first things to do are: enable ssh: sudo raspi-config navigate to the “SSH” option under “Advanced options” and enable it (it’s not necessary but it might be useful for remote access). Change the default username and password (respectively “pi” and “raspberry”): enable the root user with: sudo passwd root log out from the pi user, log in as root and give these commands (new_user = your new username): ...

April 18, 2015 · Ugo Palumbo

Raspberry Pi 2

Hello. I bought a Raspberry Pi 2 and started configuring it. For this reason, I decided to collect all the material used and report it here in case of a new configuration. All links to the guides will be inserted here. Let’s begin: After installing Raspbian Remove unnecessary software Force 1080p resolution Install LogMeIn Hamachi Installing No-Ip Install Chromium Install Squid Configure blacklist for Squid Mount NTFS hard drive Share folders with a Samba server Install SquidGuard Let’s install a Torrent client, Transmission Print server, Cups Bye! ...

April 18, 2015 · Ugo Palumbo

Problems with TopHost email? A possible solution

Are you having problems checking the email provided by TopHost via clients like Outlook, Thunderbird, or from other email accounts like Gmail or Yahoo? Thanks to the user “ Luciano De Franco” on the official Google products forum, here’s the solution: _These are the steps to take:__1) Go to the website http://www.visualroute.it/strumenti/dnslookup.asp__2) Enter the POP Server address, i.e., mail.yourdomain.xx__3) Click the “resolve” button and copy the generated IP (the 4 numbers separated by dots, called “addresses”)_4) Enter the IP directly in place of the POP Server in Google’s configuration utility__At this point, you’ll need to re-enter the password for your mailbox (if you don’t remember it, reset it from cPanel) and everything will work again!!! ...

January 14, 2014 · Ugo Palumbo