Squid Web Caching Proxy configuration on Ubuntu or Linux Mint

Optimising Web Delivery

Squid is an excellent caching proxy for the Web. It supports HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems.


To install squid on Ubuntu or Linux mint, enter the following command in the terminal.

sudo apt-get install squid squid-common

Following command can be used to check the logs.

sudo tail -f /var/log/squid/access.log

Squid can also be used as an adblocker tool.

Disable ads using Squid

Squid has the ability to read a list of IPs from a text file and block those IPs from clients using the proxy. Your clients in turn will not have to be bothered with ads.

The following lines need to be added anywhere in your squid.conf file which is usually located in /etc/squid/ and you will be putting your list of ad servers called adBlock.txt in the same directory.

Please note: You can copy hosts from here and paste into your adBlock.txt file. Remove the IPs from the left side of the file and only keep the list of domain names.

## disable ads
acl blockAds dstdom_regex "/etc/squid/adBlock.txt"
http_access deny blockAds

Once it is done, restart the Squid service by entering following command:

sudo service squid restart

Now configure network setting in your browser to use the manual proxy. On Firefox, It will look like:


Remember that default port used by Squid is 3128. It can be configured and changed from the Squid.conf file.

Here is the official link for more details: http://www.squid-cache.org

Step By Step Installing Kali Linux 1.0.6 in Virtualbox

Virtualization is great way to deal with multiple operating systems on a machine.

In this article, let’s see how to install Kali Linux 1.0.6 in Virtual Box. VirtualBox is an open source general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use.

Kali Linux can be downloaded from here and VirtualBox can be downloaded from here. In this article, I am using latest version 4.3.6 of virtualbox.


1. After installing virtualbox, open it. Click on New to create a new virtual machine.

2. Enter the name “Kali Linux”, type and version was auto populated. Change version to Linux 2.6/3.x (64 bit) If you are installing 64 bit version of Kali linux. Click Next.

3. Select the memory size from the screen and click Next. Default is 256 MB.

4. From the next screen, you can either create a new virtual hard drive or use existing virtual drive. Default size is 8 GB, but I recommend to keep it to more than 10 GB. Click create button.

5. Now you need to select a hard drive file type. I recommend to keep it default to VDI. Click next.

6. From the “Storage on physical drive”, keep the default option which is “dynamic allocated” and click next.

7. From the “File location and size” window, set the virtual machine drive size to 12 GB and click create. It will create virtual machine.

Now it’s time to install Kali Linux.

8. From the main screen, right click on the newly created virtual machine “kali linux” and select “Settings..”. Click on System >> Processor and check the Enable PAE/NX setting and click OK as shown in the following screenshot. To know more about PAE and NX click here.

9. Then Select Storage >> Controller : IDE from the settings windows and browse for the ISO file for the Kali linux as shown below. Click OK.

10. From main screen, start your newly created virtual machine “Kali Linux”. Select “Graphical Install” from the following screen to start the installation.

11. Select the appropriate language.

12. Select your location.

13. Select your keyboard layout and click continue.

14. Installation will start loading the additional component.

15. Now enter the hostname for your system. Leave it default to “Kali” and click continue.

16. Enter the domain name, leave it blank if not using any specific domain.

17. By default Kali user is Root, so enter password for it and click continue.

18. Use the entire disk for installation, if you are advance user, you can try other options as well.

19. Select and continue the default virtual hard disk which we have created earlier.

20. If you are new user to Kali linux, select “All files in one partition” option, else you can try other options for advance users.

21. Confirm the virtual hard disk changes and click continue.

22. Confirm the changes, select “Yes” and click continue.

23. Installation will start now, it will take sometime around 5-10 minutes.

24. If you want to check newer versions of the software available then select Yes from “Network mirror” screen, else select No and click continue.

25. System will configure packages.

26. If we want to install grub loader then select Yes else select No option.

27. Once you get the “Installation Complete” screen, click continue.

28. Once it finishes, system will restart. Since the default is the right selection, enter to boot into Kali linux.

29. From the following screen, enter username and password.

30. Since you are into Virtualbox, from the device menu, click on “Install Virtualbox guest additions”, a drive is mounted automatically.

31. Copy the “VBoxLinuxAdditions.run” to the root directory using following command

cp VBoxLinuxAdditions.run /root/

32. Change the permissions of the file using command

chmod 755 /root/VBoxLinuxAdditions.run

33. Now, Navigate to the /root directory and execute the file using following command


34. After successfully installation reboot the system.

Hope this helps. For any queries / doubts, please comment below.

Step By Step Installing Visual Studio Professional 2013 RC

In this article, let’s see how to install Visual studio Professional 2013 RC (Release Candidate).

Please note: The installation for Visual studio (VS) Ultimate and Premium 2013 RC is almost simillar to VS Professional 2013 RC installation.

Steps to install VS Professional 2013:

1. First download Visual Studio Professional 2013 RC from here. Setup is around 3 GB. I recommend to download dvd iso image file.

You can also refer this post for new features in the VS 2013 RC.

2. Mount .iso file (if downloaded) , you will see following list of files.

3. Click on vs_professioanl.exe file to start the installation. You will see following screen first.

4. Read the license terms and privacy policy and accept them by selecting the checkbox in from of them. Click on “Next” button.

5. Select the features you want to install then click on “INSTALL” button to start the installation.

Setup will create system restore point first before installing VS 2013 components.

6. Once it’s done, setup will start acquiring the required components to install and will start installing core features. It will take few minutes to install it. You may required to restart your system (for once ONLY) in between the setup.

7. Once it finishes the setup, you will see the success screen as below.

8. Click on “Restart Now” button to restart your system. After restarting your system, you are now ready to use your VS Professional 2013 RC.

Here you are done with the installation of the Visual Studio Professional 2013 RC.

Now Just open the installed VS 2013 program from your system. You will see following welcome screen. You can sign in to your Microsoft account by clicking on “Sign In” button, else you can just skip the step by clicking on the “Not now, maybe later” link.

If you sign in with your Microsoft account, Visual studio will sync your VS settings between different devices and connect to online developer services.

9. If you click on the “Sign in” button, you will see the following screens.

10. If you are not interested to sign in, you can just skip this step and can sign in to your Microsoft account later. Once you have done with that, you will be asked to select a theme for your visual studio. You can select either Blue, dark or light theme. Also you can set your development settings from the screen. Off course you can change these settings later at any time.

11. Now click on the “Start Visual Studio” button to launch the application.

Error: Unable to Open Database Project in Visual Studio 2012

If you upgrade SQL Server 2012 by installing Service pack 1 (SP1), you may encounter following popup when Visual studio solution with “SQL Server Database Projects” is opened:

Unable to Open Database Project in Visual Studio 2012:

This version of SQL Server Data Tools is not compatible with the database run time components installed on this computer.

To fix this problem you need to download and install SQL Server Data Tools update


1. Once downloaded, run the file “SSDTSetup.exe”, you will see following screen.

2. Read and agree the terms and conditions and click on Install button.

3. Installation will start. It will download some files and install them.

4. It will take some time for downloading required files depends upon your internet connection.

5. Once it finishes, you need to reboot your system.

6. Click “Restart” to reboot your system.

7. Once restarted, open the project. You will see that “SQL Server Database Projects” is loaded. If not, migrate the database projects, it will solve your problem.

Step By Step Installing Visual Studio Professional 2012

1. Mount .iso file. Click on “Setup.exe” file. Agree on terms and conditions and click on “Next” button.

2. Select the required features from the list and click “Install” button. It will take around 7.90 GB of space if all features are installed.

3. Setup will create “System Restore Point” before starting the installation process.

4. Once it is done, it will start installation process.

5. Between setup will ask you to restart the system. Click on “Restart” button to restart your system.

6. Setup will resume, once system is restarted.

7. Now installation will take some time. Around 20-30 minutes.

8. Once setup is completed, you can launch Visual studio.

Now work on Visual Studio from anywhere on any device with online services such as CloudDesktopOnline.com and CloudAppsPortal.com

Step By Step Installing Microsoft SQL Server 2012

1. Mount .iso file and click on setup.exe, you will see the following screen.

2. Click on “New SQL Server stand-alone installation or add features to an existing installation”, you will see the following screen.

3. Make sure, status of the each rule is “Passed” then click “Ok” to continue.

4. Next screen, you will be asked to enter product key. You can also try it by specifying a free edition from the checkbox.

5. Accept terms and condition by clicking the checkbox, then click on “Next” button.

6. Product updates screen will appear, you can skip scan if you want. It is optional.

7. On the “Install setup files” screen, click on “Install” button.

8. Then “Setup support Rules” screen will appear, it will check the rules and display result against it. It should be “Passed”. Warnings can be ignored. If it is failed, then solve the appropriate rule, by installing.

9. Now select the appropriate option from the radio button. Default is set to “SQL Server Feature installation”.

10. Here comes “Feature selection” screen. Select the required feature from the checkbox list and click on “Next” button.

11. “Installation rule” screen will check for rules (appropriate requirements)

12. Next comes the “Instance Configuration”, by default it’s “MYSQLSERVER”. You can change it to whatever you want.

13. “Disk Space Requirement” screen will display “Disk Usage Summary”

14. Now comes the “SQL Server Configuration Screen”. You can leave it as it. Default service settings are OK. If you want, you can set password for each service listed.

15. On “Database Engine Configuration”, set the authentication mode to “Mixed Mode (SQL Server + Windows Authentication)”. Set the password and click on the “Add Current User” button to add the current logged in user who will have unrestricted access to database engine. You can add “N” number of users or can remove users by clicking on “Add” or “Remove” button respectively.

16. From next screen, it will ask for service configuration settings, set it as per requirement else just keep them as it is.

17. Click “Next” on “Error Reporting” screen.

18. Once “Installation Configuration Rules” are validated, click on “Next” button.

19. Then you will see the “Summary” screen. Click “Install” button to continue.

20. Installation will take some time, depends upon the configuration of your computer. Generally it will take around 15-20 mins to finish.

21. Once the installation is completed, check the status of the each feature installed on your system. “Close” to finish.

Step By Step Installing Microsoft Office Professional Plus 2010

Step by step installation guide for MS Office Professional Plus 2010

1. Click on Setup.exe file, You will see following screen, accept the terms of agreement and click on “Continue” button.

2. On the second screen, you will be asked to choose the installation. If you click on “Install now” button, it will install almost everything. But if you want to customise your installation, click on “Customise” button.


3. From the following screen, select the packages which do you want to install.


4. Then from the next tab, choose a file location. It’s optional. It is recommended not to change it.


5. Next comes the User information. It is optional, enter it if you want.


6. Click on the “Install Now”, it will start the installation.



7. Click on “Close” button to finish the installation.