Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Thursday, November 15, 2012

Installing squid on Ubuntu

Step 1
Update adn upgrade system :
sudo apt-get update
sudo apt-get upgrade

Step 2
Install squid proxy server
sudo apt-get install squid

Stpe 3
Copy the original squid the configuration
cp /etc/squid/squid.conf /etc/squid/squid.conf.original

Step 4
Setting up configuration of squid
1. To set your Squid server to listen on TCP port 8888 instead of the default TCP port 3128, change the http_port directive as such:

    http_port 8888

2.Change the visible_hostname directive in order to give the Squid server a specific hostname. This hostname does not necessarily need to be the computer's hostname. In this example it is set to weezie

    visible_hostname weezie

3. Using Squid's access control, you may configure use of Internet services proxied by Squid to be available only users with certain Internet Protocol (IP) addresses. For example, we will illustrate access by users of the 192.168.42.0/24 subnetwork only:

    Add the following to the bottom of the ACL section of your /etc/squid/squid.conf file:

    acl fortytwo_network src 192.168.42.0/24

    Then, add the following to the top of the http_access section of your /etc/squid/squid.conf file:

    http_access allow fortytwo_network

4. Using the excellent access control features of Squid, you may configure use of Internet services proxied by Squid to be available only during normal business hours. For example, we'll illustrate access by employees of a business which is operating between 9:00AM and 5:00PM, Monday through Friday, and which uses the 10.1.42.0/42 subnetwork:

    Add the following to the bottom of the ACL section of your /etc/squid/squid.conf file:

    acl biz_network src 10.1.42.0/24
    acl biz_hours time M T W T F 9:00-17:00


    Then, add the following to the top of the http_access section of your /etc/squid/squid.conf file:

    http_access allow biz_network biz_hours

After making changes to the /etc/squid/squid.conf file, save the file and restart the squid server application to effect the changes using the following command entered at a terminal prompt:


Step 5

Restart the squid server 
sudo /etc/init.d/squid restart



Or you can setting up the squid server via Webmin, but you should have already webmin on your ubuntu server, for setting up squid on menu Server - Squid Proxy Server like this picture :








Wednesday, January 25, 2012

Changing Ip Address On Ubuntu

To change a IP Address on Ubuntu, Yo just need to edit file interfaces on /etc/network directory.
This is step for change IP address on Ubuntu :
1. Open interfaces file on /etc/network directory using nano, like this.










Sunday, November 27, 2011

Installing Webmin On Debian or Ubuntu

Installing on Debian

If you are using the DEB version of webmin, run the command :

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570_all.deb

then run the command :

dpkg --install webmin_1.570_all.deb

The install will be done automatically
to /usr/share/webmin, the administration username set to
root and the password to your current root password. You should now
be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.

If Debian complains about missing dependencies, you can install them
with the command :

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not
commented out.

Sunday, November 20, 2011

Installation Ubuntu Server

Ubuntu Documentation > Ubuntu 8.04 LTS > Ubuntu Server Guide > Installation > Installing from CD
Installing from CD
The basic steps to install Ubuntu Server Edition from CD are the same for installing any operating system from CD. Unlike the Desktop Edition the Server Edition does not include a graphical installation program. Instead the Server Edition uses a console menu based process.

First, download and burn the appropriate ISO file from the Ubuntu web site.

Boot the system from the CD-ROM drive.