Showing posts with label UBUNTU. Show all posts
Showing posts with label UBUNTU. Show all posts

Friday, June 21, 2013

Install Squid Proxy Server on Ubuntu 10.04.4 (Youtube,Metacafe,facebook & all vido cache)

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


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 

Monday, May 27, 2013

Install Ubuntu Latest Version Step By Step

Methods For Installation
1: Using a DVD?
It’s easy to install Ubuntu from a DVD. Here’s what you need to do:

Put the Ubuntu DVD into the DVD-drive

Restart your computer. You should see a welcome screen prompting you to choose your language and giving you the option to install Ubuntu or try it from the DVD.

If you don’t get this menu, Read the booting from the DVD guide for more information.

 
2: Using a USB?
Most newer computers can boot from USB. You should see a welcome screen prompting you to choose your language and giving you the option to install Ubuntu or try it from the CD.

If your computer doesn’t automatically do so, you might need to press the F12 key to bring up the boot menu, but be careful not to hold it down - that can cause an error message.



Prepare to install Ubuntu

  1. You should also make sure you have enough space on your computer to install Ubuntu

  2. We advise you to select Download updates while installing and Install this third-party software now

  3. You should also stay connected to the internet so you can get the latest updates while you install Ubuntu

  4. If you’re not connected to the internet, we’ll help you set up wireless at the next step

Set up Wireless

If you are not connected to the internet, you will be asked to select a wireless network, if available. We advise you to connect during the installation so we can ensure your machine is up to date. So, if you set up your wireless network at this point, it’s worth then clicking the Back button to go back to the last screen (Preparing to install Ubuntu) and ticking the box marked ’Download updates while installing’.

Allocate drive space

Use the checkboxes to choose whether you’d like to Install Ubuntu alongside another operating system, delete your existing operating system and replace it with Ubuntu, or — if you’re an advanced user — choose the ’Something else’ option

Begin the installation

Depending on your previous selections, you can now verify that you have chosen the way in which you would like to install Ubuntu. The installation process will begin when you click the Install Now button.

Ubuntu needs about 4.5 GB to install, so add a few extra GB to allow for your files.

Not sure about this step? Windows users can Use The Windows Installer , which will install and uninstall Ubuntu in the same way as any other Windows application. It’s simpler and completely safe.

Select your location

If you are connected to the internet, this should be done automatically. Check your location is correct and click ’Forward’ to proceed. If you’re unsure of your time zone, type the name of the town you’re in or click on the map and we’ll help you find it.

TIP: If you’re having problems connecting to the Internet, use the menu in the top-right-hand corner to select a network. 


Select your preferred keyboard layout
Click on the language option you need. If you’re not sure, click the ’Detect Keyboard Layout’
button for help.



Enter your login and password details



Learn more about Ubuntu while
the system installs… 

…or make a cup of tea!