Minggu, 03 April 2011

how to setting wifi..?

  
Start Beta-3, Yfi Manager already supports multi-language Hotspot
[Quote]
sudo apt-get install language-pack-id - Indonesian sudo apt-get install language-pack-af sudo apt-get install language-pack-fr sudo apt-get install language-pack-ms sudo apt-get install language-pack-nl sudo apt-get install language-pack-ice [/ quote]
Download the latest version of the CakePHP in http://cakephp.org. latest version (April 2010) = cake_1.2.6 Copy, extract the apache directory. Default ubuntu in / var / www
[Quote]
sudo cp-cakephp1x CakePHP-1.2.6-0-gbe7ddfb.tar.gz / var / www cd / var / www sudo tar-xzvf CakePHP-cakephp1x-1.2.6-0-gbe7ddfb.tar.gz [/ quote]
Rename the extracted directory, for more simple (eg cake_1.2.6) Create a symbolic link
[Quote]
cd / var / www sudo ln-s ./cake_1.2.6 ./c2 [/ quote]
Enable some Apache modules: rewrite, deflate to compress, and modify http headers for the header. The module is needed to increase performance and speed of web applications ..
[Quote]
sudo a2enmod rewrite sudo a2enmod deflate sudo a2enmod headers sudo / etc/init.d/apache2 reload [/ quote]
Edit the file "/ etc/php5/apache2/php.ini" On line:
[Quote]
output_buffering = Off [/ quote]
change with
[Quote] Code:
output_buffering = 4096 [/ quote]
Edit the file / etc/apache2/apache2.conf Enter the following script:
[Quote]
AllowOverride All
# --- ---- Compress CONTENT # Place filter 'Deflate' on all outgoing content Deflate SetOutputFilter # Exclude uncompressible content via file type SetEnvIfNoCase Request_URI \. (?: Exe | t? GZ | jpg | png | pdf | zip | bz2 | sit | rar) $ no-gzip # Dont-vary # Keep a log of compression ratio on EACH request DeflateFilterNote Input instream Output DeflateFilterNote outstream DeflateFilterNote Ratio Ratio LogFormat '"% r"% {outstream} n /% {instream} n (% {ratio} n%%)' deflate CustomLog / var/log/apache2/deflate.log deflate # Properly handle old browsers do not support compression That BrowserMatch ^ Mozilla / 4 gzip-only-text/html BrowserMatch ^ Mozilla / 4 \ .0 [678] no-gzip BrowserMatch \ bMSIE! No-gzip! Gzip-only-text/html #------------
# - Expiry ADD DATE -----
Header set Expires "Thu, April 15, 2012 20:00:00 GMT"
#------------
# --- Remove ETags ------- FileETag none #--------------[/ Quote]
Reload Apache
[Quote] sudo / etc/init.d/apache2 reload [/ Quote]
2. Install YFi CakePHP Application Donwload the latest version YFi Cake, I use version yfi_cake-Beta-4.tar.gz extract in the directory "/ var/www/c2".
[Quote] sudo cp yfi_cake-Beta-4.tar.gz / var/www/c2 cd / var/www/c2 sudo tar-xzvf yfi_cake-Beta-4.tar.gz sudo chown-R www-data. / Var/www/c2/yfi_cake/tmp sudo chown-R www-data. / Var/www/c2/yfi_cake/webroot/img/graphics [/ Quote]
Database Settings Create database 'yfi' with the default username and password 'yfi' (default). To use the default setting of this command:
[Quote] mysql-u root-p create database yfi; GRANT ALL PRIVILEGES ON yfi .* to 'yfi' @ '127 .0.0.1 'IDENTIFIED BY' yfi '; GRANT ALL PRIVILEGES ON yfi .* to 'yfi' @ 'localhost' IDENTIFIED BY 'yfi'; exit; [/ quote]
Note: For security you can change the username and password, misalsperti's mine: "submajuli" Do not forget to change the file '/ var/www/c2/yfi_cake/config/database.php', section username and password.
mysql-u root-p yfi / dev / null # Force-add the final rule to fix the routing tables Necessary iptables-I POSTROUTING-t nat-o $ HS_WANIF-j MASQUERADE [/ Quote]
Add coa port on the file / etc / init.d / chilli, look at this section:
[Quote] Opts = "-pidfile / usr / local / var / run / $ NAME.pid" [/ quote]
Add-coaport 3799 for the purpose of "User Kick off"
[Quote] opts = "-pidfile / usr / local / var / run / $ NAME.pid-coaport 3799" # # Add port coa [/ quote]
Login page Here I use a login page coova_json Copy the folder coova_json apache directory "/ var / www"
sudo cp-R / var/www/c2/yfi_cake/setup/coova_json / var / www
Check the file "/ var / www / coova_json / login.php: 1. $ Uamsecret must be equal to the file "/ etc / chilli / config", so also in the file "/ var / www / coova_json / uam.php". The default is 'greatsecret'. 2. $ Port in "/ var / www / coova_json / login.php", if 3660 should be replaced by 3990.
Please restart your ubuntu
1. Tests using the client computer. Setting dhcp client to the network interface, if the client gets the ip 10.1.0.2 - ff. Means coova normal chilli 2. Try browsing to, for example www.google.com. Will exit the splash page 3. Then redirected to the login page: hs_land.php 4. Login with user and password dvdwalt dvdwalt @ ri @ ri. 5. If access is accepted, will appear www.google.com
Finish the installation phase
Pair with Squid Transparent Proxy " Here iptables which I use to meredirec HotSpot client to squid (squid one server with a captive portal)
[Quote] iptables-t nat-A PREROUTING-i tun0-p tcp-s 10.1.0.0/24-d! 10.1.0.1-dport 80-j REDIRECT-to 3128 [/ quote]
good luck remember failure is the beginning of success


Related Article:

0 komentar:

Posting Komentar


 
Copyright 2010 newbie-herbet. All rights reserved.
Themes by Herbet Ginting l Home Recording l Blogger Template