Table of Contents

Nicholas Sano fall2012 Opus

Once Agian the LAIR my Friend and Foe and my Trial

Introduction

Once Agian in the Lair and I have met the next generation of the Lair Kin and I fear that I have been out done yet agian. However this both hopefully and saddly my final 2 semesters in the LAIR im going to try once more to bury myself in my studies for the last semester I failed to improve my knowledege and understanding of the enviorment. I will be reteaching myself C and C++, java and bash while trying to complete my datacom Trials and my seemingly insurmountable opus of personal strife and achievement. I am a 3 yr veteran returning for a 4th yr and with out Certain Distractions keeping me from my goals and studies.

Part 1

Entries

Entry 1: August 28,30 , 2012

datacom introduction

  • August 28: went over sylibus and been introduced to Thomas hicks who has a vast wealth of knowledege far beyond much of my conception but i plan to deadicating much of my personal studies into 2 areas including physics and computer sience (datacom) studies
  • August 30: installed debian sqeezes on two mechinesa dn using a voip system known as astrisk made a 3rd box hold the main astrisk server and switch board system
  • Week in review: interesting and seemly full class dedication to the Voip and astrisk phone project installed sqeezes on two mechines and astrisk@home and a 3rd will connect them eventually to make 2 switch boards and the astrisk box the root for communications with in the lair
  • Week enlightenment: very little instructions for a localized phone system using astrisk i have found several im parting to out side communications such as inbound and outbound calling in in regards to accutal tele phone call relays not just a single room communication

Entry 2: September 4&6, 2012

  • this is the frist class after a long weekend lets see if were still at all focused on the single room phone project
  • this day will prove that those who are intrigued and involved with this endevor will be enthralled and driven to complete the asigned tasks to see this localized lair telephone project to is conclusion. (yes big words [wont do it agian do too many major spelling errors] )
  • we have been able to set up two sip phones via a trunkcated mechine with 2 personal lab tops one running OSX and the other a distributation of linux to run sip via pc to pc how ever the cisco sip phone gave the class and instructors complications along the lines of registering the phone with the trunk aka the truckcated machine.
  • week in review:good day good progress alot of scripting confgiuering and setting up a small local lan PBX system using asterisk how ever still having problems with accutal phones aka cisco sip phone 7941 model
  • week's enlightenment: never use cisco netowkring equipment over priced and limited functionality

Entry 3: September 11&13, 2012

  • September 11th i was in history class when the trade towers were hit by two large domestic commerical cracft and 2000+ die i am here in the lair now learning and having fun a full 11 yrs later today i learned that each computer with voice or sipphone has its on extension and and music can also be put into the system
  • this is significaant for the fact that we now have a extension system to which we can communicate each other with mutiple calls on a single router/box/asterisk system we can also eventually use google voice to call out of the lair for free
  • i am currently waiting for wedge our fearless x-wing piolet to instruct me on the proper documentation to read from for the installation of a commucations system(the script being used and modified to use google voice with asterisk) that connects the Millennium Falcon to the other x-wing squadrands(lair)
  • comming up with a adapation to implement to the asterisk project to participate(thinking about apllying custom ringtones as you call some one not as they call you)
  • the 13th we goofed off did resreach and tested the load compacity and compatiablity of asterisk with other outside sources aka google chat and skype
  • well if you are able to run muytiple calls with out cross connection and as well as connect to an outside sorce like google chat u can eventually connect to the normal land line services
  • im some what behind the others i feel that i havent contributed as much and would like to do more modifications of the asterisk systems and other systems
  • just the lack of personal contribution i feel i should be douing more but i have very little idea where exactly is this leading or any idea of what we are trying to do

Entry 4: September 18,20, 2012

September 18

  • What action or concept of significance, as related to the course, did you experience on this date?
  • We experinced the frist call to a 10 digit number form asterisk across google talk to the cisco sip phone
  • Why was this significant?
  • this is great due to the fact that now we have access to at least localy routed 10 digit phones
  • What concepts are you dealing with that may not make perfect sense?
  • the fact taht we have a 10 digit phone working wouldny it allow us to to call out but for some reason it dosnet
  • What challenges are you facing with respect to the course?
  • not much minus trying to keep up and follow what Saad is doing he hasnt accutly left any documents to go by (fyi he will always have a job job security at its best right here)

September 20

  • What action or concept of significance, as related to the course, did you experience on this date?
  • Why was this significant?
  • What concepts are you dealing with that may not make perfect sense?
  • What challenges are you facing with respect to the course?

Keywords

datacomm Keyword 1

VoIP. Voice overlay Internet Proticol

Definition

a system and internet proticol that allows to transmite and receive human voice form one place to another much like the telephone which is analog but in order to use it via computer and the interwebs you need to digitize the sound wave length, tone and pitch of a human voice then transmit via the VoIP system which im not intirely sure of all that happens.

References

  • Astrisk pbx
  • Astrisk pbx wikipedia
  • netcat
  • netcat wikipedia
  • VoIp Wikipedia
  • Google chat
  • Skype
  • Google chat wikipedia
  • skype wikipedia

datacomm Keyword 1 Phase 2

MAC Address

Arp

Definition

Mac address is the physical address put into and on a computer for its entire life this is not an IP which can be change no a Mac Adress is hard coded into the computer or networking device to reference it for future service such as allocating an ip to a network on the computer on either a WAN or a LAN. Media access control address ussaly given in a hexidecimal form

How to Find a Mac Address on a Windows XP Desktop PC or a Notebook PC • Click on START, and then click on RUN • The RUN dialogue box will appear. Type CMD and press ENTER • A DOS window will appear. This is also commonly called a Command Prompt • Now type IPCONFIG /ALL at the command prompt and hit ENTER. This window will now display the configuration of all of your network adapters. If you have multiple network adapters in your PC you'll see multiple addresses. The MAC Address you're looking for will be listed under the heading Ethernet Adapter Wireless Network Connection • Now look for the Physical Address. It should look something like 00-50-BA-D1-BA-71 • To close the window when you are finished, type EXIT at the command prompt and hit the ENTER key

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Experiment 1

Question

is there a known method to connect two analogue phones together to communicate with out the use of phone services or systems

Resources

no internet resourses how ever this experiment is one that has been done in the past in the same place by multiple inviduales all including the elusive presley suarues who has extensive experince in the home made cob job of analogue phone to phone

Hypothesis

based on observatuions of preveouse atempts and experinces i belive that this is not only achiveable but easaly done knowning the right peramiters (ie an educated guess based on the facts known).

State your rationale.

Proof of previvuse exdperimentation and serveral retests and tests never been recorded however to my knowledge

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

  • Was your hypothesis correct?
  • Was your hypothesis not applicable?
  • Is there more going on than you originally thought? (shortcomings in hypothesis)
  • What shortcomings might there be in your experiment?
  • What shortcomings might there be in your data?

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Part 2

Entries

Entry 1: October 2&4, 2012

October 2nd

  • there are two ways to set up a link system into the lair from a outside location via digital phone VPN and open port
  • if u use a VPN u will need a VPN server dealing with just VPN and its communication between ur sip phone and the link your trying to find
  • VPN config and set up
  • trying to find something unique and diverse that i can do for data comm

October 4th

  • all we did was turn on a light bulb via a phone(WE FRICKING TURNED ON A LIGHT BY A DAMN PHONE)

Entry 2: October 11, 2012

October 11,

  • we are in the lair and im going to press pressly for details and possible things and stuff needed to set up a sip phone via my house to the lair
  • this is significant due to the fact if and when we do this it might shed a bit more light on the process in which asterisk+freeswitch+google talk can communicate to one another and possible be able to make a phone call out of the lair eventually
  • the concept i am having the hardest time with is the configuration of asterisk and free switch and what steps are required to set up basic funtionality
  • the biggest challenge i have had in this corse is the follow though i am ending up short with my understanding of concepts of modifiying settings and files inside a PBX sever

Entry 3: Date unknown , Time unknown

  • What action or concept of significance, as related to the course, did you experience on this date?
  • the last few weeks will be warped up into this one entry for the lack of better judgement or just absent mindedness i will be short an entry this month, how ever what i did this last month is finished setting up my from home to asterisk sip phone how ever when i went to plug in the phone i would be using to the sip adapter it was the wrong connection(odd as hell)
  • Why was this significant?
  • this is significant due to the fact yes i was able to make an artificial connection but not a phone over ip link i was unable due to the lack of equipment s next Tuesday i will be bringing back the sip adapter.
  • What concepts are you dealing with that may not make perfect sense?
  • what isn't making sense to me at the moment is when i started my second project i looked at the code and realized even tho i did much of the socket programming practice myself in the same manner with Joe Oppenhiem i found my self have lost the information i learned previously so i started to read beej's guide to data communications and networking
  • What challenges are you facing with respect to the course?
  • time constants i am running out of time and my first project was only partially successful

Keywords

datacomm Keyword 2

Network Sockets

Definition

Network sockets are used to send and recive data via a out side source and are widely used for intenet applications and data comunications.

References

    * Data coomuncations class
    * and yes belive it or not we did touch on this in Cisco fundementals
    * Beej's guid to network programing

Demonstration

thsi would be here if i knew a smaple cod ei could write to show this but only thing i have are other peoples work none of my oun yet still reading

datacomm Keyword 2 Phase 2

Raspberry Pi is a mini perosnal computer not much larger then a smart phone. However the rasberry pi dose not have a screen nor a normal I/O busses system it has 2 micro USB 2.0 i belive and a single ethernet buss. With this and the right equipment a person who I know did this project named Andrew Sowers established that you could make a coffee pot brew a pot of coffee using the rasberry pi as an interfact with the on off switch, While using the asterisk pbx server to call in and tell the rasberry pi to turn on coffee mechine could brew coffee and in this he is showing that there are C and C++ libarys built into most standard libary packages that allow an interface with a basic appliance such as turn on and turn off. The more common reason they have this is when you shut down a computer your telling it do what you need to do save what you need to save and turn off all processing and programs and turn off the power supply and in this case more or less an applaince.

Raspberry Pi GPIO Programming

The Raspberry Pi hosts a General Purpose Input Output board for interfacing with low level peripherals. Dragon.net was nice enough to write a detailed C library for the GPIO to make electronics programming super easy! Here's an example of a program that turns on and off an LED:

/*
 * blink.c:
 *      Simple test program to blink an LED on pin 7
 */
 
#include <wiringPi.h>
#include <stdio.h>
 
int main (void)
{
  int pin = 7;
  printf("Raspberry Pi wiringPi blink test\n");
 
  if (wiringPiSetup() == -1)
    exit (1);
 
  pinMode(pin, OUTPUT);
 
  for (;;){
    printf("LED On\n");
    digitalWrite(pin, 1);
    delay(250);
    printf("LED Off\n");
    digitalWrite(pin, 0);
    delay(250);
  }
 
  return 0;
}

by way of this reference I hope to setup a simple c application using a solid state relay for my future automated “Dial a Coffee” via Asterisk and Pi ingenuity:http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28C.29

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Experiment 2

Question

What is the question you'd like to pose for experimentation? State it here.

Resources

Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.

Hypothesis

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

  • Was your hypothesis correct?
  • Was your hypothesis not applicable?
  • Is there more going on than you originally thought? (shortcomings in hypothesis)
  • What shortcomings might there be in your experiment?
  • What shortcomings might there be in your data?

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Part 3

Entries

Entry 1: November Day, 2012

Notes on Sip phone

  • I acomplished connect my home phone on a one way stream to the lair student asterisk server at least thats what i belive i connected to was the student server and not Presleys
  • well it turns out u can make point to poiint calling much like the president one way line to the pentagon for personal use but its seems that we as a class have given up on asterisk communication to the local normal network not sure what you would call it other then the public phone domain
  • well this project was kinda spoon feed ot me by presly he laid out step by step how to connect which with my expeirnce and knowldege whouldnt have been needed but for some reaosn that last two semesters i have been under going major brain lock
  • the documentation is scarce all i was to do is point my browser at the sip phone adapter and modify the place it looked to send and recive calls so the ponly thing i had to really do is to set up a directory on the Asterisk mechine to listen to the monkeys.

Entry 2: November Day, 2012

Just for you Tom a step by step for using wine and installing and running Diablo 2 and Diablo 2 LOD

  • Step 1 one assuming you have a linux distro installed enter your terminal and sudo root into your computer.
  • Step 2 run app update or yum update
  • Step 3 run app install or yum install wine
  • Step 4 configure wine to run all windows applications
  • Step 5 wait for wine to install and assuming you have the data for D2 and D2:LOD acess the folder/library and find the install exe and right click and click run with wine Diablo 2 DONT REGISTER
  • Step 6 as it installs google or find your CD keys make sure there 26 chacters
  • Step 7 repeat step 5 for Diablo 2 LOD
  • Step 8 if you made a desktop icon just double click like running a windows to play and tada it should run
  • step 9 get updates by accessing battle net and just getting kicked if you used banned keys like me

Entry 3: November Day, 2012

Using Argv and argc and scanf printf i can send and recive simple text by simply doing

argv argc promts user to type something tom command line then i use scanf and using a while loop with a termination varible so when your done messaging people you it will promt you after each message the only thing im having problem with is the lines of code being used to use a socket to send and recieve messages.

Entry 4: November Day, 2012

This is a sample format for a dated entry. Please substitute the actual date for “Month Day, Year”, and duplicate the level 4 heading to make additional entries.

As an aid, feel free to use the following questions to help you generate content for your entries:

  • What action or concept of significance, as related to the course, did you experience on this date?
  • Why was this significant?
  • What concepts are you dealing with that may not make perfect sense?
  • What challenges are you facing with respect to the course?

Remember that 4 is just the minimum number of entries. Feel free to have more.

Keywords

datacomm Keyword 3

Definition

Definition (in your own words) of the chosen keyword.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 1
  • Reference 2
  • Reference 3

datacomm Keyword 3 Phase 2

Identification of chosen keyword.

Definition

Definition (in your own words) of the chosen keyword.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 1
  • Reference 2
  • Reference 3

datacomm Keyword 3 Phase 2 Phase 2

Virtual Private Network

Definition

A virtual private network extends a private network through a tunnel to other computers. It is highly secure and uses encryption to port network activity under a tunnel

References

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Experiment 3

Question

What is the question you'd like to pose for experimentation? State it here.

Resources

Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.

Hypothesis

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

  • Was your hypothesis correct?
  • Was your hypothesis not applicable?
  • Is there more going on than you originally thought? (shortcomings in hypothesis)
  • What shortcomings might there be in your experiment?
  • What shortcomings might there be in your data?

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.