Wednesday, December 7, 2011

LAMP server documentation

Team2 LAMP Server Installation--Draft

Part 1

1.                  Review hardware of the intended server using Belarc Advisor. If no operating system is currently installed, do a physical inspection of the inside of the machine. NOTE: All passwords will be P@ssw0rd until the last phase. Only exception is the MySQL server. See install notes for that server.

2.                  Install Ubuntu 10.04 following the prompts to install as a LAMP server.
3.                  IP information:
1. 192.168.20.130
2. Subnet mask =  255.255.255.0
3. Default gateway = 192.168.20.120
4.Hostname: LAM203.team2.cniss.cptc.edu.
4.  Partitions:
1.      20GB, mount at / (root) with ext 3 file system.
2.      18GB, mount at /home with ext 3 file system.
3.      2GB, mount as swap.
5.  Login Information:
      1.    Administrator name and password:
1. Login: adminteam2.
2. Password: P@ssw0rd.
2.  Proxy- Leave blank for now.
3.  Security-Automatic updates.
4.  Install as LAMP server.
5.  MySQL server Administrator name and password:
1. Login: root.
2. Password: root.
6.  Use Grub as the OS loader—Yes.
7.  Reboot and login as adminteam2.
8. Update the server: 'sudo apt-get updates' to bring the server up to date.
Part 2

1.                   Install Webmin:
1.                   From the root, run: wget http://iweb.dl.sourceforge.net/webmin/webmin-1.570.tar.gz
2.                   Unpack the tar file into the root directory:
3.                   tar -xzf webmin-1.570.tar.gz
4.                   Change directory to the directory webmin was unpacked into, run:
1.                   ./setup.sh
2.                   This install should install Webmin into the /etc/webmin folder, and the        logfile directory into /var/webmin.
3.          Confirm Perl directory is /usr/bin/perl.
4.          Modify Webmin server port to 8088 to not cause conflicts with Untangle.
5.          Same login and password: adminteam2, P@ssw0rd.
6.          Set to start at boot = yes.
2.         Install OpenSSH Server: See attached document: “How to setup SFTP access on our         LAMP server.”Insure 'Port 22' is listed under line “#What ports, IPs and protocols we listen for.”


Part 2 (continued)

3.                   Install GUI:
1.         sudo apt-get update && apt-get install xubuntu-desktop
2.         Reboot and login as adminteam2.
3.         Browse to Synaptic Package Manager and install updates.
4.         Browse to Synaptic Package Manager and install phpMyAdmin.
1. Or from the command line: sudo apt-get install libapache2-mod-auth-MySQL phpMyAdmin
2. Select apache2 as server to install under.
3. Configure MySQL database with dbconfig-common = Yes.
4. Use adminteam2 and P@sw0rd for phpMyAdmin logons.
5. Browse to Synaptic Package Manager and install Filezilla: Use standard account information for logins and passwords.



4. Verify installations:
1. Open a browser and type in 192.168.20.130:8088 to access the Webmin page.
2. Open a browser and type in 192.168.20.130 to access the Team 2 webpage.
3. Open a browser and type in http://localhost/testing.php to test phpMyAdmin.
4.  Open a browser and type in http://192.168.20.130/phpmyadmin to access the phpMyAdmin page.
Part 3
1. Install GnuPG using attached Gimpster's Guide to GnuPG encryption and key sharing.
2. After installation, from a terminal as root, run:
apt-get install debian-keyring debian-archive-keyring

apt-get update
3. Attempt to encrypt and decrypt a file

Wednesday, November 23, 2011

Documentation for setting up Extensions


Documentation for setting up Extensions
1.       Log into Maint
2.       Highlight PBX and go to PBX settings
3.       Under Basic click on Extensions
4.       Click on the orange Add Extension button
5.       Leave the device as Generic SIP Device and click Submit
6.       Input the User Extension, Display Name, and Secret.  You can find these attached.
7.       Click Submit.
8.       Click on the orange Apply Configuration Changes button in the top right corner.  Click on Continue With Reload.
9.       Repeat for all of your extensions.

Setting up X-lite
1.       Go to http://www.counterpath.com/x-lite.html, and click on the orange Download Now button.
2.       Scroll to the bottom of the page and click on the grey Download button.
3.       Click on the grey Download X-Lite 4 for Windows button
4.       At the top of the page, click on the here button in the sentence “To begin your download, please click here.”
5.       Download and allow the X-Lite setup to run.   When it prompts you to install additional files, click the OK button.
6.       Start X-Lite 4, if it does not start itself.  Click on Softphone, and click Account Settings.
7.       Input the User ID, which is your extension.  An example of this is 201
8.       Input the Domain, which is the IP of your trixbox.  An example of this is 192.168.20.140
9.       Input the Password, and the Display Name.  An example of the Display Name is WIN201.
10.   Click the OK button.



Zoiper Configuration

1. Open up a browser and go to http://www.zoiper.com
2. Click on the "Downloads" button at the top of the page
3. Find the Linux link under "Zoiper Classic" and click on the "Download" button.
4. Scroll to the bottom of the page and click the "Download Free" button.
5. Click to Save the file, and open the folder.
6. Right click the Zoiper.tar.gz file, and click extract.  Create a folder on the desktop, and run the file.
7. When Zoiper asks if you want to start on log-in, make a selection.  Zoiper's main GUI pops up.
8. Click on the wrench on the right side, for options.
9. Create a new SIP configuration, and name it.
10. Add the options for your SIP.  In this example, the domain is 192.168.20.140, the username is 204, and add the secret on your account.
11. Save your options and exit.

11/23/11

We rolled with a man short today, but still got deep into stage two.

Austin worked on getting DHCP set up on the untangle server, as well as ensuring all necessary ports were forwarded, and that DNS was correctly configured.

Ron continued to work with the client computers, with his main focuses being ensuring that DHCP was working ok, and getting GPG working for encryption.  He conferred with the other groups and decided to use GPG version 2 instead of version 1, and worked to set it up before the day was over.

Kris worked on his email server, and then set up the backup trixbox server.

Adam ensured that all of the configurations were set correctly for the primary trixbox server, then proceeded to write out documentation for it (to follow).  He also helped Kris with setting up the trixbox server.

Friday, November 18, 2011

11/18/2011

Figured out today, with help from Kelly, that checking the mail server box made it so that Zimbra would be impossible to set up.  The class is very close to finishing stage one of the project.

The Zimbra server heads ended up wiping their drives once again in order to install Zimbra correctly, and it finally worked.  Kris spent much of the day setting this up, prepping the system for the Zimbra install, and finally installing the Zimbra server successfully.  Adam watched over his shoulder in order to see the setup as well as double checking his work as he went against the documentation.

Ron continued to work with the Thunderbird program on the Debian box, and is very close to getting it to work.  He completed setting up Filezilla as a client on the client computers as well.  He also worked on trying to figure out who the back-up leads are for the specific servers, as well as checking to see what steps we needed to complete stage 1.

Austin added fully qualified domain names to the untangle server.

Don set up Filezilla on the LAMP server, and verified SSH.  However, SSH isn't quite finished.  It's set up, but the complete documentation didn't completely work on his box, so he's going back through to see where it went wrong.

Overall, a pretty productive day as we move within reach of finishing Stage one.

Wednesday, November 16, 2011

11/16/11

Today was a lecture / workday.  We reorganized our efforts, with the idea from Kelly that Trixbox may not need as much management at this stage as the Trix-team originally predicted.  Also, most of the desktops had been configured, so Ron and Adam helped out where more help was currently needed today, and Ron worked on setting up software for Linux boxes as well.

Don and Adam worked mostly on the LAMP server for the majority of the day.  The LAMP server did not start up automatically, being the first big issue we needed to resolve.  They eventually resolved this in the web GUI by going to webmin / configuration, and selecting the 'yes' button on the "Start on boot" command.  Upon restarting several times, they found that this correctly changed it to boot automatically on startup.  The next thing they dealt with was getting phpmyadmin to work.  While it worked before, they were having trouble with getting it to run again.  Don updated the packages for the web GUI, and that seems to have fixed the problem.


Untangle team continued to work on port forwarding and setting firewall rules throughout the day as needed.

The Zimbra team was working on reworking their Debian servers before the got Zimbra installed.  Kris began to install dependencies needed to install the Zimbra server.

Ron worked on installing both Libre Office and Thunderbird.  He used the Libre Office readme file in order to setup it up successfully.  Thunderbird has also been setup, but not configured, pending the Zimbra servers.  He is currently working on getting a shortcut placed onto the desktop for easier access.

Monday, November 7, 2011

Untangle Documentation

Untangle Install
1.       Press F12 for boot menu. Select boot from CD.
2.       Select Graphical Install (normal)
3.       Select English
4.       Select American English
5.       Select Pacific time zone
6.       Click continue
7.       Click yes to format “It will go through formating and installing the base system”
8.       Click continue
9.       Click the top option
10.   Select English, Click next
11.   Click next
12.   Set password and time zone
13.   Select network card- eth0
14.   Change IP to static. IP:192.168.1.15, netmask:255.255.255.0, Gateway:192.168.1.1, PrimDNS:192.168.1.1, 2ndDNS:192.168.1.107
15.   Set router IP:192.168.10.120, netmask:255.255.255.0, Disable DHCP
16.   Set up email. Click advanced, put the email address to team email, set the from address to untangle@team1.com
17.   Test email
18.   Click finish
19.   Select the lite package
20.   Click download
21.   Click create an account tab
22.   Add info to create account
23.   Close account window when told to
24.   The download will start.

Untangle setup after install
1.       Put in DNS information for each server, client, and the untangle box on the untangle server under the DNS tab.
2.       Create a new rule in windows for ICMP.
3.       Go to Windows Firewall in Control panel
4.       Click on Advanced settings in left side
5.       Select Inbound Rule, Right clink on it and select New Rule
6.       Select Custom
7.       Click on Protocol type and select ICMPv4
8.       Click next until finished

Trixbox 2.8.0.4 Documentation


Boot to the CD-ROM
When the trixbox loading screen appears, press the <ENTER> button.
The trixbox screen will load, saying Welcome to Trixbox.  Choose your keyboard layout and press enter.  We choose the US keyboard layout.
Trixbox will run the installer anaconda, and probe for the video card
The installer GUI appears again.  Select your time zone and press <SPACE>.  We choose US/Los Angeles
Choose a Root password for your system.  For example, P@ssw0rd.  Press Space to accept.
trixbox will check for the dependencies needed in the packages being installed.
trixbox will then begin to format the hard-drive.
Trixbox will begin to install on the machine.
The machine restarts after trixbox finishes installing.
The eth0 startup will fail.  This is because network settings still have to be configured.
The trixbox login screen appears.  Login as root with your default root password.
The prompt will appear.  The first thing you will do is setup the network.  Type ‘setup’ and hit <ENTER>
A list of options will appear.  Go to network configuration and hit the <ENTER> button.
Another list will appear.  ‘Edit devices’ and ‘Edit DNS configuration’.  First, select ‘Edit Devices’ and press <ENTER>
The ‘Edit devices’ screen will bring up your NICs.  Select the NIC that will be incorporated with your trixbox and press <ENTER>
Once you’ve selected the NIC, uncheck the DHCP box and put in your IP settings.  For this computer, we put 192.168.40.140, 255.255.255.0, 192.168.40.120.  Then scroll to OK and press <ENTER>
Save your settings and press <ENTER>
Next, select ‘Edit DNS configuration” and press <ENTER>
Change the settings in your DNS configuration to match your DNS.  For the hostname, we put tri404.team4.cniss.cptc.edu  and for the Primary DNS 192.168.40.120.  Save your settings and press <ENTER>.
Highlight the Save and Quit button and press <ENTER>
Turn off the following services:  Acpid, apmd, atd, auditd, autofs, dahdi, firstboot, irqbalance, microcode_ctl, netfs, nfslock, portmap, rawdevices, readahead_early, restorecond, rpcgssd, rpcidmad, smartd, tftp, vsftpd, xfs, yum-updatesd,
Turn on the memcached service.  The mDNSResponder and zaptel are not available at this time.  Press the OK button and exit from the setup gui.
Send the reset signal (init 6) to the trixbox, and restart the computer.
Select the default boot setting and let the system start up.
Interface eth0 should boot without issue this time. 
Now, switch the devices on the setup screen.  Switch your Eth1 device to Eth0 and Eth0 to Eth1
Send the reset signal (init 6) once more.  When your computer boots up, you should be able to use the gigabit connection by default.
Log into the trixbox server.  Change your maint password for logging into the GUI by inputting the passwd-maint command.
Go to a client machine, and open Mozilla Firefox.  Point your browser to the IP address of the trixbox server.
On the main screen, switch to admin mode using the username / password you set up before.
Close the registration box.  Go to ‘Settings’ and ‘Registration’, and click the “Don’t ask me to register again.” Button.