HERE IS THE FULL INSTALLATION ALL IN ONE... 

http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_login.jpg

[img]http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_login.jpg[/img]


http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_payment.jpg

[img]http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_payment.jpg[/img]


http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_admin.jpg

[img]http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/chillidog_admin.jpg[/img]

-----------------------------------------------------------------------------------------------------------
Get your test system set up like this:

http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/wifi_setup.jpg
-----------------------------------------------------------------------------------------------------------
[img]http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/wifi_setup.jpg[/img]
---------------------------------------------------------------------------------------------------------- 
HOW TO INSTALL PAYPAL CHILLI-DOG ON DEBIAN ETCH "TESTING" RC2: 
----------------------------------------------------------------------------------------------------------- 
NOTE: Debian Ecth "testing" RC2 is just the latest "snapshot" of Debian.. It's nothing special... It's just like the daily beta-snapshots of dd-wrt.. It just gives us the absolute very latest Debian installl... It's just Debian.... Debian is Debian... and there is probably more information and knowledge on the web regarding Debian than any other linux distro.. 
-----------------------------------------------------------------------------------------------------------
STEP #1: FAMILIARIZE YOURSELF WITH THE SYSTEM

---- Read the introduction above for sure, so you know what the heck we are trying to achieve here, and then read the ENTIRE WALK THROUGH below to get a feel for how it is all going to flow.. You can skip through the highly detailed aspects of it at this point because it will be irrelavant until you actually do it.. It looks scarry, but it is really easy because all of that stuff is telling you EXACTLY EVERY SINGLE KEYPRESS TO GET IT GOING.... EVEN IF YOU HAVE NEVER INSTALLED LINUX AT ALL!!!

-----------------------------------------------------------------------------------------------------------
STEP #2: INSTALL DEBIAN ETCH TO YOUR NEW SERVER PC

--- Here we go.............


This is for a headless machine.. You will do this install with a monitor and kbd attached (no mouse rquired), but in the end it is designed to just plug in a power cord and an ethernet connection and put it in the corner somehwere and completely operate it from anohter pc anywhere in the world... It takes about one hour from start to finish.. It also has webmin, usermin and an ftp server for remote management, besides ssh.. Don't underestimate this little debian etch machine.. It is a bad ass little unit... 

SYSTEM REQUIREMENTS: 
At least a 500MHz cpu pentium III with 128MB of ram... 2 - 4 Gigabyte hard drive.. Bigger will allow for web server storage... One ethernet NIC card... this is an auth-server, not a gateway, so it only needs one network adapter... 

You will need another computer with ssh capability to complete the install.. If you are using windows, download Putty http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe and install it on your windows machine.. If you are running a linux machine, you have ssh built in by default... 

FIRST WE NEED TO DOWNLOAD DEBIAN ETCH RC2: 

* Click on the following link to download the iso file for debian etch "testing" RC2... 

http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso 

* Use nero or whatever your favorite cd burning application is to burn the iso to a CD-R.... Name it "DEBIAN ETCH RC2 NETINST" with a sharpie.. 

* Setup a standard network configuration with your new server pc connectd to the lan of you router, like evrything else on your network... The new server pc will end up with an IP address assigned by dhcp to begin with and we will deal with that later... Just make sure the new server is connected in a way that is has access to the internet.. 

* Boot your new server PC with the new Debian Etch RC2 Install CD you just created... Once the boot screen shows up, press ENTER to boot the installer... 

* Choose your language... 

* Choose your Country... 

* Choose your keyboard layout... 

* Hostname = localhost 

* Domain name = localdomain 

* Under Partion Disks, select "Guided - use entire disk" 

* Select your hard drive by pressing ENTER... 

* Select "All files in one partition" 

* On this next screen individually select each partition currently existin on the screen and press ENTER.. Then scroll down and select DELETE.. Delete all partitions on the drive.. 

* Once you get back to the main screen and it shows your hard drive with a setting like, "pri/log 80.0 GB FREE SPACE", then select GUIDED PARTITIONING.... 

* Select USE ENTIRE DISK.... 

* Select the disk to partition again... 

* Select ALL FILES IN ONE PARTITION.... 

* Select FINISH PARTITIONING AND WRITE CHANGES TO DISK.... 

* Select YES to write the changes and continue with formatting disk... 

* System will format hard drive.... 

* Select your time zone... 

* Enter "ddwrt" for your root password... twice... 

* Enter "wifi" for the full name of the user... 

* Enter "wifi" for the username for when you log into this system as "user" instead of "root".... 

* Enter chillidog for the password for this new user.... twice.... 

* Screen will say.. "Installing the base system"..... 

* Enter YES when it asks if it should use a network mirror to supplement the software on the CD... 

* Select your country... 

* Select a debian mirror site... 

* Leave the http proxy line blank and select CONTINUE... 

* Select yes or no, does not matter, on the package survey question.. 

* Under software selection, press the space bar to turn off the desktop environment and just load the standard system.. 

* So we just want the STANDARD SYSTEM selected here, press TAB to highlight the CONTINUE button and press ENTER... 

* Machine will download and install the standard linux system files... 

* Select YES when it asks if you want to install the GRUB boot loader... 

* CD will eject... Remove it and select CONTINUE..... 

* System will reboot.... 

* login as root... password is ddwrt... 

* Run the following commands... 


apt-get update 

apt-get install unzip zip ntp ntpdate

ifconfig 


* Write down the MAC address and IP address of eth0 on your system... 
---------------------------------------------------------------------------------------------------------- 
BIG NOTE HERE ON IP ADDRESS OF THE SERVER!!! 

The server automatically set itself up in DHCP mode during the CD installation process, and some of you may choose to leave it that way, but for the rest of you, this is a good point to set this server to a static ip address.. Then you can simply change that address whenever you want to change it.. Like when you move the server to a public IP on the internet and put it into action.. 

Here is how you change the IP address of the server: 

-----Login to the server itself as "root" and password "ddwrt"..... Enter the following commands: 

nano /etc/network/interfaces 

------ Modify the following section of it to look the way you want it to look: 

iface eth0 inet static 
address 192.168.1.50 
netmask 255.255.255.0 
gateway 192.168.1.1 


---- As you can see, I changed the word "dhcp" to "static" and then I entered the netword information below that.. Copy that syntax and set it up to suit your needs.... Normally, the address, netmask and gateway lines are tabbed over to the right in the actual file, but this forum does not let you put tabs in there, so they are all to the left margin.. I am not sure if it really matters, but they actually need a tab in front of them.. 

CTRL-X................ Y .............. ENTER ........ (To save and exit) 

---- Now edit your dns information.... 

nano /etc/resolv.conf 

----- Change it to the dns addresses you would like to run... Or leave them alone.. The ones that are there are the ones that got assigned by your currnet provider during the installation process... 

-----Enter the following at the command prompt; 

reboot 

---- By the way.. If you want to completely power down the machine, the command is: 

shutdown -h now 

--- That will shut 'er right down... Just for your information....  

----- LOLOLOL!!! I had to throw that in there...  

----- Now your machine is set to a fixed ip and it won't be jumping all around while you work on it from here... Once it reboots.. Login again and type: 

ping google.com 

---- and see if it has an internet connection again... IF so, then you are good to go.. If not, then you screwed up and you need to look at those files again and see what you did wrong.. 

---- Press CTRL-C to get out of the ping program.... 


THIS COMPLETES STEP #2.... DEBIAN INSTALLATION
-----------------------------------------------------------------------------------------------------------

STEP #3: INSTALL CHILLIDOG TO THE SERVER


---- Copy the chillidog_install_003.zip file to the /root/ folder of your new server...

-----Enter the following commands at the prompt:


cd /root

wget http://auth1.ilovemywimax.com/htdocs/dd-wrt/wifi/003/chillidog_install_003.zip

unzip chillidog_install_003.zip

cd chillidog_install

chmod 777 chillidog_install.sh

./chillidog_install.sh




---- The machine will stop and ask for the debian testing install CD to be put in the drive... Put the CD in the drive... 

----Press Enter to continue and leave the CD in for the rest of the install.. Then remove it when the machine ejects the CD and reboots itself at the end.. If it boots back up with the CD in the drive, it will try to install debian again.. If that happens, remove the CD from the drive and press ENTER twice..

----The system will ask you to press "Y" to continue a time or two and grind through a WHOLE BUNCH OF STUFF and eventually it will stop and ask you what that New Password for the MySQL "root" user is: 

----Enter "ddwrt" as the root password, since this should be the initial root password for all of this to work.. We will go over how to change that later.. It fingers into all kinds of things, so don't alter it right now.. 

MySQL "root passwod" = "ddwrt" 

---- System will Pop Up a "Postfix Configuration" page... 
---- Select "Internet with smarthost" 
---- hostname = localhost 
---- domain-name = localdomain 


---- A bunch more stuff will install.... 

---- It will stop again at the MySQL prompt.... Enter the following information there EXACTLY!!! 

mysql>CREATE DATABASE radius; 

mysql>GRANT ALL ON radius.* to freeradius@localhost IDENTIFIED BY 'ddwrt'; 

mysql>GRANT ALL ON radius.* to freeradius@127.0.0.1 IDENTIFIED BY 'ddwrt'; 

mysql>FLUSH PRIVILEGES; 

mysql>quit


---- System will stop while generating the ssl key and ask a few questions.. Answer them however you would like (anything in there will work) and slowly press Enter until the script takes off again...

--- Script will finish...... CD will eject from drive... System will automatically reboot...



THIS COMPLETES STEP #3...... CHILLIDOG INSTALLATION TO SERVER
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* YOU'RE ALL DONE!!! REBOOT THE MACHINE AND TRY IT OUT!!!

reboot

-----------------------------------------------------------------------------------------------------------
STEP #4: TEST THE SYSTEM AND GET FAMILIAR WITH IT

You have a testuser already approved to login in to the wifi: (but you still have to setup your dd-wrt router with the chillispot config below)

user = steve
pass = testing


---- You can modify that in the file /etc/freeradius/users


At this point you can actually go ahead and try logging in to all of the access links listed below... The stuff below here has to do with branding the pages as your own, pointing it to your own paypal account, setting up your router to test the wireless connection, etc... If all that seems to work, then go ahead and start branding it with your specific information in the pages mentioned below.... 


HERE IS HOW YOU REMOTELY CONTROL THE SERVER WITH ANOTHER PC WEB BROWSER:

* You can log into the wifi payment selection page at: 

https://your-server-ip/wifi-1.1.1/ 

*and you can reach your admin interface at: 

https://your-server-ip/wifi-1.1.1/admin 

user = admin 
pass = admin 

*and you can reach the webmin control panel at: (This is an awesome powerful tool which has tons of features.. Explore it thoroughly.. I give a few tips on setting webmin up below..)

https://your-server-ip:10000 

user = root 
pass = ddwrt 

*and you can reach usermin at: (this for creating extra webmin users.. not needed often)

https://your-server-ip:20000 

user = root 
pass = ddwrt 

*Remember when you get into webmin and usermin that the radius username is "freeradius" and the password is "ddwrt"... 

*Also, inside webmin, click on SERVERS, then click on Postfix Configuration, and then click on the GENERAL OPTIONS icon... Then click on "DELIVER DIRECTLY" under other General Options.... Click SAVE at the bottom.... 

* The machine also has an ftp server, so you can log into that with your favorite ftp client, such as cuteftp, and manage files remotely this way also, which is one of the most powerful tools you will need... Login as the regular user.. 

user = wifi (or whatever your regular username is) 
pass = chillidog (or whatever your regular user password is.. not the root password)( 

* You cannot log into ftp as root, but all of the permissions have been set for your user in the web directory anyway, so you can upload and download files as the regular user.. 

--------------------------------------------------------------------------------------------------------- 
-----------------------------------------------------------------------------------------------------------
STEP #5:BRAND THE LOGIN AND PAYMENT PAGES TO YOUR HOTSPOT AND CONFIGURE IT TO SEND MONEY TO YOUR PAYPAL ACCOUNT


----- Open the paypal-wifi config.inc.php page and weed through it VERY CAREFULLY, as this is where your paypal information and your return address of your success.php page and so forth are stored... 

nano /var/www/wifi-1.1.1/config.inc.php 

---- Change all of the stuff in there that you need to change and press: 

Ctrl-X ...... Y ..... Enter (to exit nano and save file) 

reboot 


NOTE ABOUT SETTING UP PAYPAL ACCOUNT PROFILE!!

---- You have to log in to your paypal account and click on PROFILE... Then click on  "Website Payment Preferences", about 2/3 of the way down the column on the right... 

---- Turn "Auto Return" ON and enter the address of your "success.php" page for paypal to kick back to after a successful payment has been made... ie.. http://your-server-ip/wifi-1.1.1/success.php

---- Scroll down further and turn "PAYMENT DATA TRANSFER" ON..... 

---- "Block non-encrypted website payments"  = OFF

---- "Paypal Account Optional" = ON

---- Click SAVE at the bottom of the page and paypal will issue you a "Payment Token"... copy and paste that token to a notepad file and save it somewhere.. It will always be listed here in paypal too.. 

---- Take that token and insert it back into the file /wifi-1.1.1/config.inc.php where it says to put your "paypal-token"... 

---- NOW YOU ARE ALL SET TO HEAR THE WORDS..... YOU'VE GOT CASH!!!!  8) 


THIS COMPLETES STEP #5..... BRANDING PAGE AND CONFIGURING PAYPAL INFORMATION
-----------------------------------------------------------------------------------------------------------

A NOTE ABOUT LIVE PAYPAL TESTING OF THE SYSTEM !!!!

* Paypal has a sandbox that you can activate by going to development.paypal.com and logging in as your normal paypal username and password.. Then paypal will issue you a "mock" username and password, along  with a mock credit card number to test this all out with at no cost... You have to turn on that setting in the config.inc.php file, and I am sure you saw that setting in there..

* My preference is to try it live, so when it is all dialed in, it is ready to go... Set yourself up a payment choice where you can buy 30 minutes of access for $.05 or something.. I have found that paypal will take the nickel and keep it as the fee, but they do not charge another minimum fee or anything like that.. You can sit there and transfer nickels from one paypal account or credit card on this system and get is all tested out in a couple of transactions.. It works well already, so if you entered the right paypal token and are setup correctly in your paypal web payment preferences screen, then this will work the first time most likely.... 

----------------------------------------------------------------------------------------------------------- 

* YOU ARE FINISHED SETTING UP THE SERVER AT THIS POINT.......... 

* YOU STILL HAVE TO CONFIGURE YOUR ROUTER FOR CHILLISPOT SETTINGS..

----------------------------------------------------------------------------------------------------------
NOTE ABOUT PASSWORDS AND OTHER SYSTEM CHANGES:

---- You will want to change your passwords of course, but do so with caution, as they finger into all sorts of files... The main files that definitely need to have the password set in them are:

/var/www/wifi-1.1.1/admin/secure/securelogin/php 
/var/www/wifi-1.1.1/Connections/users/php 
/var/www/wifi-1.1.1/Connections/wifi.php 
/var/www/wifi-1.1.1/dbconnect.php 
/var/www/wifi-1.1.1/config.inc.php 

The other files that tie this all together are: 

/etc/freeradius/sql.conf 
/etc/freeradius/radiusd.conf 
/etc/freeradius/clients.conf 
/etc/apache2/apache2.conf 
/var/www/cgi-bin/hotspotlogin.cgi 
/etc/php5/apache2/php.ini 

The main information you want to correspnd in all of those files are, again: 

radiussecret = testing123 
uamsecret = testing123 
mysql databse name = radius 
mysql database username = freeradius 
mysql database password = your-root-password 
server ip address = your-server-ip 
The rest will be self explanatory as far as eneterin YOUR email address... YOUR paypal information.. YOUR phone number... etc... 


---- All of those files and the entire file structure of the /wifi-1.1.1/ directory have to be gone through in fine detail to make any drastic changes such as password changes.. 

---- If that is what you want to do, then go back through the entire debian install again from scratch and assign yourself a new root password this time.. Then, after the full installation process completes, including the chillidog install, then go through the 5 files listed above and enter the correct new password in each of those... During the chillidog installation, when the part comes up where you have to enter the mysql database information manually, change the password in those two line that have "ddwrt" in them to your new password.... Once all of that is done, you will have a private system... So get it working the way I describe first, then go back and try it again YOUR WAY..... LOL.... 
-----------------------------------------------------------------------------------------------------------

HOW TO CHANGE THE LOGO:

* Save your logo as a .gif file and name it "losmall.gif"

* FTP that file into the images directory... /var/www/wifi-1.1.1/images/losmall.gif

* That filename is already harwired throughout the php code in the /wifi-1.1.1 directory.. You can sort through it if you care to change that.. Otherwise, doing what I suggest here will inject your logo throughout the system very easily...

-----------------------------------------------------------------------------------------------------------

HERE IS A SPECIAL CHILLIDOG FIRMWARE FOR USE WITH THIS SYSTEM: 

This is a copy of dd-wrt V24 06/16/07 that has kaid and sputnik removed.. A couple things are initialized in S01 at bootup, but is otherwise completely configurable by the user.. It has 60k bytes of /jffs/ space available to load the heartbeat script into, and whatever else you would like... 

http://auth1.ilovemywimax.com/htdocs/dd-wrt/dd-wrt_V24_061607_chillidog_generic.bin 

Login to the router as you alwasy do and click on SERVICES / HOTSPOT and you will find chillispot in there... Enable Chillispot and a bunch of choices will pop down... Populate those fields with the following data and make it correspond to your network and server configuration, which you should be very familiar with by now, I am sure...


Chillispot = Enable (of course) 
Separate Wifi from the LAN bridge = enable (also of course) 
Primary Radius Server IP = your-server-ip 
Secondary Radius Server IP = your-server-ip 
DNS IP = your-dns-address 
Remote Network = 192.168.182.0/24 (always leave this alone) 
Redirect URL = https://your-server-ip/cgi-bin/hotspotlogin.cgi (notice the https .. change ip to your-server-ip) 
shared Key = testing123 
DHCP Interface = WLAN 
Radius NAS-ID = 1234 (just anything for now.. has no affect on software) 
UAM Secret = testing123 
UAM ANY DNS = 0 
UAM Allowed = www.paypal.com,www.paypalobjects.com,paypal.112.2o7.net 
MACauth = diable 
Additional chilli options = none for now.... 


-------------------------------------------------------------------------------------------------------------------------- 

NOTES ABOUT CMOS SETTINGS IN THE MOTHERBOARD!!! 

--- Once this server is actually operational, you will want to move it to a remote location, most likely, and run it without a keyboad or monitor attached at all... You can just plug in a power cord and an ethernet connection that has a static, public IP address which is visible to the internet at large after your install is finished and the machine will run just fine and you can go back home and control it remotely through the web interfaces it has for control panels... 

BUT YOU HAVE TO MAKE A FEW SETTINGS IN THE CMOS SETUP OF THE MOTHERBOARD FOR THAT TO WORK!!!... 

* Reboot the server and press DELETE KEY to enter CMOS SETUP for the motherboard... 
* Then navigate around your particular motherboad and look for a selection that says something like: 

"HALT on all errors and wait for F1 to continue"...... 

* Change that selection to DISABLED, or whatever choice in your menu pertains to making the machine skip the "NO KEYBOARD" error and boot up anyway... 

* Also look around in the CMOS SETUP and find the section on POWER MANAGEMENT and set it to where it will POWER UP AUTOMATICALLY AFTER POWER FAILURE!! 

* Set anything else in there that you might like to have set and pres F10 to save and exit... 

* The machine will reboot and now it will save those settings, even if you unplug it... 

-------------------------------------------------------------------------------------------------------------------------
FIRMWARE MOD KIT:

The firmware mod kit was automatically installed at /home/firmware_mod_kit/ during the installation... Search dd-wrt forum for "firmware mod kit" and you will find tons of information on how to run it... 

You can find more information on it here:

http://www.bitsum.com/firmware_mod_kit.htm

There is a sample firmware already to run chillidog in /root/chillidog_install/ .......... You can put any firmware in there and modify it all you want... We're not going to get bogged down in too much discussion about this, other than getting it running on the machine, but it is there and if you know what to do with it you will have an very powerful additional tool for your network setup and custom configuration.... 

--------------------------------------------------------------------------------------------------------------------------

This was put together by an awesome team of people and the world thanks you all for your time and energy on this...

Take care,

wo-fo