1. Install Ubuntu 10.04.4
2. Goto Application>Accessories>Terminal
login from root
Type Sudo -i And Enter
Note:Copy One Line at a time
2. Goto Application>Accessories>Terminal
login from root
Type Sudo -i And Enter
Note:Copy One Line at a time
1:Create file touch /etc/fw.sh 2:Change permissions chmod +x /etc/fw.sh 3:Edit File nano /etc/fw.sh (Add the script simple internet sharing) 4:Run /etc/fw.sh 5:Place shortcut /etc/rc.local 6:Upgrade DNS apt-get install dnsmasq 7:Update system apt-get update 8:Install Squid apt-get install squid 9:Edit squid.conf nano /etc/squid/squid.conf
Press Cntrl+K To Delete All Existing Data
(Add the script squid.conf) 10:create storeurl.pl touch /etc/squid/storeurl.pl chmod +x /etc/squid/storeurl.pl 11:Edit store URL nano /etc/squid/storeurl.pl (Add store URL Script) 12:Install Nginx apt-get install nginx 13:Edit Nginx.conf nano /etc/nginx/nginx.conf (Delete all lines in Nginx.conf) (Donot Add the script Nginx.conf) 14:Create directories to hold cache files mkdir /usr/local/www mkdir /usr/local/www/nginx_cache mkdir /usr/local/www/nginx_cache/tmp mkdir /usr/local/www/nginx_cache/files chown www-data /usr/local/www/nginx_cache/files/ -Rf 15:create nginx.rb file touch /etc/nginx/nginx.rb chmod 755 /etc/nginx/nginx.rb 16:edit Nginx.rb nano /etc/nginx/nginx.rb (Add script Nginx.rb) 17:Install Ruby apt-get install ruby 18:create cache dir mkdir /cache1 chown proxy:proxy /cache1 chmod -R 777 /cache1 19:Start dir squid -z 20:Start squid service squid start 21:Restart Nginx service nginx restart 22:Chek cached videos ls -lh /usr/local/www/nginx_cache/files 23:chek cache hit tail -f /var/log/squid/access.log | grep HIT
Scripts:
1: internet Sharing Script
2: Squid.Conf Script
3: Store URL Script
4: Nginix.Rb Script
Realy Helpfull
ReplyDeletePlease Share This Blog
ReplyDeleteworks perfectly! thanks bro ;)
ReplyDeleteProblem ..Restart after the work of the device are not taken out of the Internet
ReplyDeleteaamir@aamir-desktop:~$ sudo apt-get install squid
ReplyDeleteReading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
squid: Depends: squid-common (>= 2.7.STABLE7-1ubuntu12.6) but it is not going to be installed
E: Broken packages
how to clear cache?
ReplyDeleteWhat a nice blog...I am really very impressed to read this..Thanks to admin for posting this nice blog....WOW!!!!!
ReplyDeleteaccess Files tube in UK