Tor is the open source leader to anonymous connections on the internet, you can anonymize your internet presence from AIM/ICQ/MSN/ Jabber/IRC/WWW/FTP and you can even issue a torify command at the command prompt to anonymize your wget/ssh/lynx/ftp/perl or whatever. Basically tor is for the people by the people, it is only alive because we make it so, we can choose to use it freely or use it freely and help it out by running a server on your computer to make the internet safer. Basically tor encrypts your data communications through chained/linked proxies all over the internet.
Vidalia is a cross-platform controller GUI for Tor, built using the Qt framework. Using Vidalia, you can start and stop Tor, view the status of Tor at a glance, and monitor Tor’s bandwidth usage. Vidalia also makes it easy to contribute to the Tor network by helping you set up and manage your own Tor server.
Vidalia runs on most platforms supported by Qt 4.1 or later, including Windows, Mac OS X, and Linux or other Unix variants using the X11 window system.
Prepare your system
sudo apt-get install libevent
Now you need to get the latest tor source code from here
wget http://www.torproject.org/dist/tor-0.2.0.22-rc.tar.gz
tar zxvf tor-0.2.0.22-rc.tar.gz
cd tor-0.2.0.22-rc
./configure
make
sudo make install
Install Vidalia GUI
You need to edit the /etc/apt/sources.list file
sudo gedit /etc/apt/sources.list
add the following lines
deb http://ppa.launchpad.net/adnarim/ubuntu gutsy main
deb-src http://ppa.launchpad.net/adnarim/ubuntu gutsy main
Save and exit the file
Update the source list
sudo apt-get update
Install vidalia
sudo apt-get install vidalia
Once installed press alt F2 and open the run prompt and type in “vidalia” without the quotes, this will start tor, vidalia and you can configure tor/vidalia by right clicking on the tray applet and click on settings, right there you can view all the nodes and choose what to connect to, see node uptimes, os’s and locations with a graphical map.
For web browsing in firefox I prefer using an extention named FoxyProxy it works well with firefox and swiftfox, you can grab this extention directly from here
If you prefer stronger anonymity & protection I strongly Suggest Torbutton for firefox you can download from here
Install the addon and go through the Tor wizard and it will set you up for you and you can view which tor nodes you connect through actively via vidalia
Speed Tweaks for tor
Lets get to editing our torrc so we can improve the speed!
gedit ~/.vidalia/torrc
Paste this at the beginning of the torrc:
# Set the Tor Circuit Build time to find faster tor servers, increments of seconds
CircuitBuildTimeout 2
# connections while Tor is not in use.
KeepalivePeriod 60
# Force Tor to consider whether to build a new circuit every NUM seconds.
NewCircuitPeriod 15
# Set How many entry guards we should we keep at a time
NumEntryGuards 8
Tor is the open source leader to anonymous connections on the internet, you can anonymize your internet presence from AIM/ICQ/MSN/ Jabber/IRC/WWW/FTP and you can even issue a torify command at the command prompt to anonymize your wget/ssh/lynx/ftp/perl or whatever. Basically tor is for the people by the people, it is only alive because we make it so, we can choose to use it freely or use it freely and help it out by running a server on your computer to make the internet safer. Basically tor encrypts your data communications through chained/linked proxies all over the internet.
Vidalia is a cross-platform controller GUI for Tor, built using the Qt framework. Using Vidalia, you can start and stop Tor, view the status of Tor at a glance, and monitor Tor’s bandwidth usage. Vidalia also makes it easy to contribute to the Tor network by helping you set up and manage your own Tor server.
Vidalia runs on most platforms supported by Qt 4.1 or later, including Windows, Mac OS X, and Linux or other Unix variants using the X11 window system.
Prepare your system
sudo apt-get install libevent
Now you need to get the latest tor source code from here
wget http://www.torproject.org/dist/tor-0.2.0.22-rc.tar.gz
tar zxvf tor-0.2.0.22-rc.tar.gz
cd tor-0.2.0.22-rc
./configure
make
sudo make install
Install Vidalia GUI
You need to edit the /etc/apt/sources.list file
sudo gedit /etc/apt/sources.list
add the following lines
deb http://ppa.launchpad.net/adnarim/ubuntu gutsy main
deb-src http://ppa.launchpad.net/adnarim/ubuntu gutsy main
Save and exit the file
Update the source list
sudo apt-get update
Install vidalia
sudo apt-get install vidalia
Once installed press alt F2 and open the run prompt and type in “vidalia” without the quotes, this will start tor, vidalia and you can configure tor/vidalia by right clicking on the tray applet and click on settings, right there you can view all the nodes and choose what to connect to, see node uptimes, os’s and locations with a graphical map.
For web browsing in firefox I prefer using an extention named FoxyProxy it works well with firefox and swiftfox, you can grab this extention directly from here
If you prefer stronger anonymity & protection I strongly Suggest Torbutton for firefox you can download from here
Install the addon and go through the Tor wizard and it will set you up for you and you can view which tor nodes you connect through actively via vidalia
Speed Tweaks for tor
Lets get to editing our torrc so we can improve the speed!
gedit ~/.vidalia/torrc
Paste this at the beginning of the torrc:
# Set the Tor Circuit Build time to find faster tor servers, increments of seconds
CircuitBuildTimeout 2
# connections while Tor is not in use.
KeepalivePeriod 60
# Force Tor to consider whether to build a new circuit every NUM seconds.
NewCircuitPeriod 15
# Set How many entry guards we should we keep at a time
NumEntryGuards 8
You can set the identity of the router with the hostname command. This is only locally significant,which means that it has no bearing on how the router performs name lookups or how the router works on the internetwork.
Router#config t
Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#hostname debianadmin
debianadmin(config)#hostname london
london(config)#
Even though it’s pretty tempting to configure the hostname after your own name, it’s definitely a better idea to name the router something pertinent to the location. This is because giving it a hostname that’s somehow relevant to where the device actually lives will make finding it a whole lot easier. And it also helps you confirm that you are, indeed, configuring the right device.
Tags: configure router hostname, Network, setup cisco router hostname, setup router hostnameconfigure router hostname, Network, setup cisco router hostname, setup router hostname addthis_url = 'http%3A%2F%2Fwww.debianadmin.com%2Fhowto-setup-cisco-router-hostnames.html'; addthis_title = 'Howto+setup+cisco+router+Hostnames'; addthis_pub = 'david23';©2008 Debian Admin. All Rights Reserved.
.Debian: Debian Admin Step By Step Tutorials and articles with screenshots
AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers.
#apt-get install awstats
This will complete the installation
Configuring Awstats
Now you need to Run the awstats configure script located at cd /usr/share/doc/awstats/examples/awstats_configure.pl to setup awstats for the domain you want to monitor. You need to repeat the configuration process for each domain you want to monitor.
perl /usr/share/doc/awstats/examples/awstats_configure.pl
when this script starts it will prompt for some configuration questions first one is setup from non standard directory type yes and press enter

Webserver install location type /etc/apache2/httpd.conf and press enter

Need to create new config file type y and press enter

Define config file path as default one and and press enter

This will complete the configuration script setup
Now you need to set up an alias for awstats-icons in httpd.conf. Inserted it in the Aliases section. The awstats_configure.pl script adds it in the end of httpd.conf you need to comment or remove it.
Your entry for /awstats-icon/ in the Aliases section should look like:
Alias /awstats-icon/ /usr/share/awstats/icon/
<Directory /usr/share/awstats/icon>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Now you can restart apache using the following command
#/etc/init.d/apache2 reload
Now you need to configure for domain configuration file located at /etc/awstats/awstats.full-domain-name.conf and change the following parameters save and exit the file
1)LogFile=”/var/log/apache/access.log”
to
LogFile=”/var/log/apache2/access.log”
2)LogFormat=4
to
LogFormat=1
3)SiteDomain=” ”
to
SiteDomain=”your domain name”
Generate stats the first time by using the following command
#/usr/lib/cgi-bin/awstats.pl -config=awstats.full-domain-name.conf
Update for config “/etc/awstats/awstats.full-domain-name.conf”
With data in log file “/var/log/apache2/access.log”…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)…
Jumped lines in file: 0
Parsed lines in file: 1585
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 1585 new qualified records.
You can now check the stats in your browser by point it to http://serverip/cgi-bin/awstats.pl?config=full-domain-name.You should see similar to the following screen

Cron Job Setup
If you want to get your website stats update every 5min you can use the following command
*/5 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=full-domain-name -update >/dev/null
Possible error and Solution
When run awstats config script at the end you might see similar to the following error
Error
—–> Create config file ‘/etc/awstats/awstats.Test.conf’
Error: Failed to open ‘/usr/share/doc/awstats/examples/wwwroot/cgi-bin/awstats.model.conf’ for read.
Solution
make sure you unzipped the awstats.model.conf file:
gunzip /usr/share/doc/awstats/examples/awstats.model.conf.gz
Then, edit
/usr/share/doc/awstats/examples/awstats_configure.pl
where you will find some important parameters near head of file, which are meant to be edited by package maintainers. Unfortunately this seems not to have happened for Debian.
Note:- You also may have to modify these paths in the generated apache2.conf manually afterwards.
Tags: apache logfile analizer awstats, awstats debian, awstats error, configure awstats debian, setup awstats debian, webserverapache logfile analizer awstats, awstats debian, awstats error, configure awstats debian, setup awstats debian, webserver
Debian: Debian Admin Step By Step Tutorials and articles with screenshots