Wednesday, March 23, 2011

3/23



Configuring a second IP
  1.         Click network connections
  2.         Go to local area connections, click Properties, internet protocol version 4
  3.         Click advanced, click add
  4.         Type in your new IP address, with the correct subnet mask
  5.        To test if you added it right, open a command prompt and type ipconfig


Creating a forward lookup zone
  1.        Open DNS manager in administrator tools
  2.        On the left hand, expand your server
  3.        Right click your server, and “new zone”
  4.        Use whatever setting you want
  5.        When you have to name your zone, to make it easy, name it “your server name”-external.com
  6.        Right click the new zone on the left hand side panel  and click New host(A or AAAA)
  7.        Type your “server name”-ext
  8.        Clear the create associated pointer record
  9.        Add the new host and click ok
  10.        To test and make sure your zone added right, open a command prompt
  11.        Type ping “your server name”-ext.”your server name”-external.com


Adding a host to your FLZ
  1.      If you try to ping your servers –ext you will not get a reply
  2.        Go to your network and sharing center
  3.        Click manage network connections
  4.        Right click local area connections and properties
  5.        Click TCP/IPv4(double), advanced
  6.        Go to the DNS tab
  7.        Click Append these DNS suffixes, add, type “your server name”-external.com
  8.        Click add twice
  9.        Type “your server name”, and add one more time
  10.    Bring your server to the top by clicking the up arrow twice
  11.  To test and make sure you did it right open a command prompt and type ping “your server name”-ext



Creating a standard primary zone

1.       Open DNS manager in administrator tools
2.       Right click Forward lookup zone and new zone
3.       Keep the zone type the same, but clear “store the zone in active directory”
4.       Name the zone anything you want
5.       Click next twice
6.       Make sure do not allow dynamic updates is checked when you get to it
7.       Click finish
8.       Right click and make a new host
9.       Name it anything you want
10.   Put in a valid IP address
11.   Create a PTR record and add host and done
12.   To test and see if the zone took, open a command prompt and type nslookup “your host name.your server name”

Raising function level
  1.        Go to active directory domain and trusts in administrator tools
  2.        Right click your server and raise domain function level
  3.        In the box that comes up click the “select an available domain function level.”
  4.        Then select windows server 2008 and raise don’t worry about the warning button



Transferring schema master role
  1.        Open a MMC and add the active directory schema snap in if you don’t have it already
  2.        Right click active directory schema
  3.        Click change active directory domain controller
  4.        Click your server and ok
  5.        Right click active directory schema and operations master, then change
  6.        Yes, ok, close



Transferring infrastructure master role
  1.        Go to active directory users and computer in the administrator tools
  2.        Change domain controller
  3.        Click your server and OK
  4.        Right click active directory users and computer(again), all tasks and operations master
  5.        Go to the infrastructures tab, then change, point to the server you want to inherit the master role
  6.        Yes to confirm and OK to finish

Tuesday, March 22, 2011

3/22







active directory 

installed a CA CS role on my domain
backed up a CA
made a template

things to note
-could not  set up auto-enrollment. The first domain controller has some policies in which it restricts me from  accessing the group policies on the GPM console, was to late in the class  to do anything about it.
-because of the above could not set up web enrollment or archive a key manually

notes to self
-get pic of back up folder 

edit:
while looking through the python website I came across this
since python 3.2 just came out on feb 20 this is pretty relevant 

Monday, March 21, 2011

3/21


installed a module in python, and set up a distribution cycle


^^^^
my module in action, called from a file

the coding of my module


Im having an issue with syntax, the book im using says to use the following code:

else:
      for tab_stop in range(level):
            print("\t", end='')
     print(each_item)

however IDLE is giving me a syntax error
ive rearranged the code every way I can think, and cant get it to work, if anyone knows whats up could you contact me.

that is 2 '   ' to make it clear


edit: 3/27
I figured the issue out. Idle was running python 2.6.6 and I was coding python 3.2

Sunday, March 20, 2011

3/20

Binary Codes
Mathematical Logic
Python


Binary Codes:

In order to understand this you must first understand binary.
lets work with base 2 first.

Base 2 works with a series of number 8 long(that is only 1's and 0's) so 10101010 is a base 2 binary number.
But what does that mean? It is very simple.in bast 2. It multiplies by 2 each time it goes up, so its something like this...

0 2 4 8 16 32 64 128.(this is base 2)

to better explain it a 1 is what represents the number and 0 represents nothing. So a 1 in the second spot would represent 2. Finally to get a number you add up all the numbers represented by 1's.
So 011 would be 6 because 2+4=6. lets look at a full example.

what would 00100111 be?
the answer is 228.

note, when using in the actual world, the string starts with 128 and goes down(128 64 32 16 8 4 2 0)
note 2, 0 is also represented as 1(the last number in the 8  bit string)

The first binary code is distance.

what is the distance between 11011011 and 10100110?
distance between two base 2 numbers is simply the number of different places in 1's and 0's
11011011
10100110
if we look at this, it is wherever a 1 is on one of the and a zero is on another.(the answer is 6)


Next is encoding with parity-check sums/decoding.

Nearest neighbor decoding
The easiest way to describe this is: the closest base 2 binary string to the one being presented
00000000

00001000
00110000

the first one would be the answer in the nearest neighbor method because it only has one different number


example from homework

C = ( 00000, 10011, 01010, 11001, 00101, 10110, 01111, 11100)
If the received word 11101 has exactly one error, can you determine the intended code word?

The answer is no, because according to the nearest neighbor you can have both 11100 and 11001 become 11101.


binary weight
binary weight is the minimum number of 1's that occur among code words

lets use T to represent any number
if T is even you use the algorithm (t-2)/2
if T is odd use the algorithm (t-1)/2

so if you receive 6 errors (6-2)/2=2
if its 5 (5-1)/2=2


network address'

lets say we have a IP address of 8.20.15.1 and a subnet mask of 255.000.000.000
what is the network address?

first you must convert everything to binary...(yea fun)
(subnet mask)
11111111.00000000.00000000.00000000
00001000.00101000.00001111.00000001
(ip adress)

after that we must add both binary codes together, but you must know the truth table first:
it goes like this

if both numbers don't match it equals ZERO

so....
011000
001011
=
001000

going back:

11111111.00000000.00000000.00000000
00001000.00101000.00001111.00000001
=
00001000.00000000.00000000.00000000

after that we convert it back into a "real" number and we have the network Id

...or we have 8.0.0.0



Python

Yesterday I started working on Pyhon. I decided to drop Perl for the moment because I couldn't find much use for it. When I looked at some major websites(facebook, twitter, yahoo, google, ect) don't seem to use Perl (or don't seem to need people at the moment) but all of them need a Python person.

I started with lists, and went into loops (the for and while) and used them to print out simple things

some example code is followed:



movies = ["the holy grail", 1975, "terry jones", 91,
["champman",
["palin", "cleese", "gilliam", "idle", "jones"]]]

We wanted to print all of this, however a "print(movies)" would not print everything out without all the [ " , ]

we ended up using the following code:


def print_lol(the_list):
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_item)
else:
print(each_item)




we defined the function and executed it to come out with each item separately