Squid Proxy

Squid is a caching proxy for the Web supporting 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, including Windows and is licensed under the GNU GPL. Thanks to Jayson for this guide

Complete Steps in Setting up UBUNTU Server 10 with SQUID 3 as a Transparent Proxy.

SSH as a quick and cheap VPN using tsocks

Go all the way down and replace, server with your loopback IP and server port, to whatever you want as long as it not being used by other apps.

server = 127.0.0.1

# The port defaults to 1080

#Change port as neededserver_port = 1098

Now to connect from another location

ssh -D 1098 yourusername@yourTsocksMachine.com -p22 ;

Note: you don't need to change or add any forwarding to port 1098 from the router, you only need to forward port 22 or whatever you use for SSH to that machine.

Once you have successfully connected, open a new terminal (Don't use the same) and type:

tsocks firefox

or try any other browser or compatible app.

such as

tsocks midori

tsocks google-chrome

tsocks thunderbird

tsocks filezilla

Make sure these apps are not already open, for example for my local browsing I use chrome, and for my tsocks connections I use firefox or midory, you can create independent links to these apps so you know where you are connecting to.

How to get tcpdump on port 5060 or any other port

How to convert wave files for Asterisk

From Ubuntu

sox sourceStereo.wav -r 8k -c 1 out-mono8kfile.wav

Author: Eric PLast update: 2017-10-13 00:13

How to import export OST PST files

Most sites out there have multiple comments about so called freeware to open OST files, the fact is that most of them are nothing but scams to get you to purchase the real application, the easiest way to open a OST or PST file is with the email client Evolution, I don’t know if available for Windows but If you have a computer and a pendrive, just bootup a live Linux version that has Evolution included, do an Import –select Import a Single file and select the OST file, it will take a while to finish the import.

The reason I needed to open the file was to get the contacts from an old email address that was no longer available, nor I had access to the server.

Once you have run the installation script, you’ll need to make a couple of adjustments in the FreePBX GUI. Log into FreePBX 2.11 and choose Settings, Voicemail Admin, Settings and make the following changes:

After that, Format the drive with whatever you need, in my case I use several of these drives for rotational backups as external removable drives on windows systems, so I use NTFS, but if you are going to be using the drive for Linux, EXT4 is probably going to be your best choice.

Author: Eric PLast update: 2017-10-13 00:41

How to measure Internal Network speed

First you need to install Iperf on all the machines that you wish to test throughput.

sudo apt-get install iperf

Once you have it installed, select a machine to be the server and run the following command

How to get Navit working on Raspberry Pi with a USB GPS device

http://maps.navit-project.org (zoom and select the desired area and hit download)

Rename the downloaded file to something like Phoenix.bin and place it under

/home/pi/.navit/

Disable sample maps

CHANGE TO:<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory --><mapset enabled="no"><xi:include href="$NAVIT_SHAREDIR/maps/*.xml"/></mapset>

To get a USB GPS working Works for Navit and other GIS software, such as kismet and others.

sudo nano /etc/default/gpsd

START_DAEMON="true"# Use USB hotplugging to add new USB devices automatically to the daemonUSBAUTO="true"# Devices gpsd should collect to at boot time.# They need to be read/writeable, either by user gpsd or the group dialout.DEVICES="/dev/ttyUSB0"# Other options you want to pass to gpsdGPSD_OPTIONS="/dev/ttyUSB0"GPSD_SOCKET=”/var/run/gpsd.sock”

Change ACL from terminal

icacls "X:\apps\Test" /grant dom1\Standard_users:F

Author: Eric PLast update: 2017-10-13 01:40

Windows

How to import export OST PST files

Most sites out there have multiple comments about so called freeware to open OST files, the fact is that most of them are nothing but scams to get you to purchase the real application, the easiest way to open a OST or PST file is with the email client Evolution, I don’t know if available for Windows but If you have a computer and a pendrive, just bootup a live Linux version that has Evolution included, do an Import –select Import a Single file and select the OST file, it will take a while to finish the import.

The reason I needed to open the file was to get the contacts from an old email address that was no longer available, nor I had access to the server.

Author: Eric PLast update: 2017-10-13 00:17

Missing windows\system32\config\system

Boot from XP CD - Select the repair option:

copy c:\windows\repair\system c:\windows\system32\config\system

It will require to reactivate windows and most likely to install SP3

Author: Eric PLast update: 2017-10-13 01:17

Auto login for Windows 7

Click on Start and then enter the following command in the search box:

netplwiz

Press the ENTER key.

Follow the options.

Author: Eric PLast update: 2017-10-13 01:19

How to backup My Documents on Windows 7 using batch script

The following script will create a folder on the D: drive named as today's date in numeric format, this is great if you need to schedule your PC to run Backups on a specific time of the day and provide you with several versions of My Document folder, you could send them to your Dropbox folder, Mega, etc.

Once you have run the installation script, you’ll need to make a couple of adjustments in the FreePBX GUI. Log into FreePBX 2.11 and choose Settings, Voicemail Admin, Settings and make the following changes: