This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jr018429:portfolio:myhomenetwork.html [2012/03/24 16:19] – [Execution] jr018429 | user:jr018429:portfolio:myhomenetwork.html [2012/04/02 16:27] (current) – [Execution] jr018429 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP centeralign round graybg box 96%> | ||
+ | <WRAP muchbigger> | ||
+ | <WRAP bigger> | ||
+ | <WRAP bigger> | ||
+ | </ | ||
+ | ======Objectives====== | ||
+ | The objective of this project is to setup and administer a home network.\\ | ||
+ | \\ | ||
+ | My home network consists of the following components: | ||
+ | ^ Desription | ||
+ | |Cisco Linksys E1200 wireless router|N/A| | ||
+ | |HP laptop|Windows 7 Home Premium| | ||
+ | |HP laptop|Windows XP Home| | ||
+ | |emachine T1096 Desktop PC|Windows XP Home/Damn Small Linux/ | ||
+ | |||
+ | ======Prerequisites====== | ||
+ | * Knowledge of Computer Hardware | ||
+ | * Knowledge of Operating Systems, both Windows and Linux | ||
+ | * Knowledge of Computer Networking | ||
+ | ======Background====== | ||
+ | For Christmas, my family received a wireless router which I set up and now administer. The router make and model are: Cisco Linksys E1200 Wireless router-figures 1 and 2.\\ | ||
+ | {{: | ||
+ | Figure 1-Port face view of Cisco Linksys E1200 Wireless-N Router\\ | ||
+ | {{: | ||
+ | Figure 2-Underside view of Cisco Linksys E1200 Wireless-N Router showing reset button\\ | ||
+ | {{: | ||
+ | Figure 3-Cable Modem\\ | ||
+ | |||
+ | ======Scope====== | ||
+ | ======Attributes====== | ||
+ | The following are the programming attributes you must consider while undertaking a project for credit in this course: | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | ^ Attribute | ||
+ | | maintenance | ||
+ | | configuration | ||
+ | | logging | ||
+ | | implementation | ||
+ | | enhancement | ||
+ | | virtualization | ||
+ | | redundancy | ||
+ | | administration | ||
+ | | exploration | ||
+ | | log analysis | ||
+ | | troubleshooting | ||
+ | | security | ||
+ | </ | ||
+ | |||
+ | There are a total of 48 items needed; with a maximum of 8 attributes achievable per project, that makes for a __minimum__ of 6 projects you must perform during the semester. | ||
+ | |||
+ | Note that where multiple quantities of attributes are concerned, only a single instance of an attribute can be achieved on any single project. | ||
+ | ======Code====== | ||
+ | ======Execution====== | ||
+ | ===Installation of a Network Adapter in the e machine=== | ||
+ | I installed an OvisLink Internal 10/100bps PCI Ethernet adapter into the upper PCI slot on my e machine' | ||
+ | Since resolving the resource conflict described above, I loaded Bonzai Linux, and then Ubuntu 11.10 on my e machine. After replacing the operating system, I wanted to recreate the resource conflict described in the previous paragraph so that I could document it better. I reinstalled the network adapter into the top PCI slot, I also reinstalled the modem into its slot because I wasn't sure if removing the modem or moving the network adapter to the lower PCI slot, or both, resolved the resource conflict. then booted the computer. This time there were no resource conflicts, interesting! | ||
+ | ===Repair of the emachine' | ||
+ | The emachine' | ||
+ | ===DSL (Damn Small Linux) Live CD=== | ||
+ | I downloaded a live CD image of DSL (dsl-4.4.10.iso) from http:// | ||
+ | After reading the following excerpt: | ||
+ | "Now for the warning: | ||
+ | Damn Small is not derived purely from Debian, if you ' | ||
+ | |||
+ | If you want an easy and compact way to get Debian on your hard drive check out Bonzai" | ||
+ | http:// | ||
+ | I decided that it probably wasn't a good distribution to use Damn Small Linux for my web controlled hardware project.\\ | ||
+ | ===Installation of Bonzai Linux=== | ||
+ | The Bonzai Linux home page is located at: http:// | ||
+ | The latest version can be downloaded from: http:// | ||
+ | I was able to load it on my E-Machine. SSH, however, wasn't loaded, so I loaded it so that I could connect with lab46. Before installing SSH, however, I couldn' | ||
+ | In order be able to connect to the Internet, I had to perform the tasks mentioned above on the system so I opened a terminal window.\\ | ||
+ | First, to connect to the Internet, I had to manual load a hardware specific driver for my network adapter:\\ | ||
+ | <cli> | ||
+ | Bonzai:~$ modprobe 8138too | ||
+ | </ | ||
+ | Next, I brought device eth0 up:\\ | ||
+ | <cli> | ||
+ | Bonzai:~$ ifconfig eth0 up | ||
+ | </ | ||
+ | Lastley, I started the DHCP client so I didn't have to statically assign the IP address, etc: | ||
+ | <cli> | ||
+ | Bonzai:~$ dhclient | ||
+ | </ | ||
+ | After I performed these tasks, I was able to view web pages. Next, I opened a terminal window and attempted to SSH into lab46 but was unable because SSH hadn't been loaded. | ||
+ | So, with the terminal window open, I performed an apt-get install ssh: | ||
+ | <cli> | ||
+ | apt-get install ssh | ||
+ | </ | ||
+ | Because the sources.list file pointed to the installation CD, I was prompted to insert the CD. I did and SSH loaded successfully on my Bonzai Linux system. | ||
+ | After loading SSH, I was able to SSH into lab46 and send the instructor an e-mail. | ||
+ | \\ | ||
+ | Below is the e-mail I sent to the instructor informing him that after loading Bonzai Linux and configuring the system, I was able to connect to lab46 via SSH and send him an e-mail. | ||
+ | < | ||
+ | Date: Thu, 9 Feb 2012 19:23:24 -0500 (EST) | ||
+ | From: John Rine < | ||
+ | To: wedge@lab46.corning-cc.edu | ||
+ | Subject: Coming to you from my E Machine Bonzai Linux Box! | ||
+ | |||
+ | Banzai! Banzai! Banzai! | ||
+ | This is coming to you from my Bonzai or Banzai or should I say Bonsai (small) E-Machine Linux box! Man, it was a pain! | ||
+ | First, no network! I read and read and experimented, | ||
+ | modprobe 8138too //loads the driver for my Network adapter | ||
+ | ifconfig eth0 up //starts up eth0 | ||
+ | dhclient | ||
+ | Where do I put these commands? Startup script? | ||
+ | Next step, install Arduino. | ||
+ | Also, no SSH, I had to figuare out how to install it. Luckly, it was on the Banzai (or Bonzai) CD. | ||
+ | Now I can experiment with all kinds of stuff. | ||
+ | |||
+ | John T. Rine | ||
+ | </ | ||
+ | \\ | ||
+ | ===Installation of Ubuntu 11.10=== | ||
+ | I downloaded a cd image of Ubuntu 11.10 (ubuntu-11.10-desktop-i386.iso) from http:// | ||
+ | ===Installation and Use of Open SSH on Ubuntu 11.10=== | ||
+ | I installed Open SSH on my e machine so that I could remotely administer the operating system, Ubuntu 11.10. | ||
+ | On the emachine, I opened a terminal window and installed Open SSH as follows: | ||
+ | <cli> | ||
+ | To run a command as administrator (user " | ||
+ | See "man sudo_root" | ||
+ | |||
+ | jr018429@emachine: | ||
+ | [sudo] password for jr018429: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | openssh-client is already the newest version. | ||
+ | 0 upgraded, 0 newly installed, 0 to remove and 355 not upgraded. | ||
+ | jr018429@emachine: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | ssh-import-id | ||
+ | Suggested packages: | ||
+ | rssh molly-guard openssh-blacklist openssh-blacklist-extra monkeysphere | ||
+ | The following NEW packages will be installed: | ||
+ | openssh-server ssh-import-id | ||
+ | 0 upgraded, 2 newly installed, 0 to remove and 355 not upgraded. | ||
+ | Need to get 345 kB of archives. | ||
+ | After this operation, 971 kB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Fetched 345 kB in 1s (213 kB/s) | ||
+ | Preconfiguring packages ... | ||
+ | Selecting previously deselected package openssh-server. | ||
+ | (Reading database ... 127343 files and directories currently installed.) | ||
+ | Unpacking openssh-server (from .../ | ||
+ | Selecting previously deselected package ssh-import-id. | ||
+ | Unpacking ssh-import-id (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Processing triggers for ureadahead ... | ||
+ | ureadahead will be reprofiled on next reboot | ||
+ | Processing triggers for ufw ... | ||
+ | Setting up openssh-server (1: | ||
+ | Creating SSH2 RSA key; this may take some time ... | ||
+ | Creating SSH2 DSA key; this may take some time ... | ||
+ | Creating SSH2 ECDSA key; this may take some time ... | ||
+ | ssh start/ | ||
+ | Setting up ssh-import-id (2.5-0ubuntu2) ... | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | \\ | ||
+ | In order to open an SSH connection, one needs to know either the domain name or the IP address of the remote host, so on the host on which I was going to install Open SSH, I performed an ifconfig to get its IP address:\\ | ||
+ | <cli> | ||
+ | jr018429@emachine: | ||
+ | eth0 Link encap: | ||
+ | inet addr: | ||
+ | inet6 addr: fe80:: | ||
+ | UP BROADCAST RUNNING MULTICAST | ||
+ | RX packets: | ||
+ | TX packets:669 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions: | ||
+ | RX bytes: | ||
+ | Interrupt: | ||
+ | |||
+ | lo Link encap:Local Loopback | ||
+ | inet addr: | ||
+ | inet6 addr: ::1/128 Scope:Host | ||
+ | UP LOOPBACK RUNNING | ||
+ | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | ||
+ | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions: | ||
+ | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | ||
+ | |||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | Next, I opened putty on a remote computer and attempted to log in to the emachine:\\ | ||
+ | {{: | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.113' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | Last login: Mon Mar 19 20:01:36 2012 from 192.168.1.111 | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | Success! I was able to log into my emachine remotely.\\ | ||
+ | \\ | ||
+ | Next, I tried to transfer a file from the emachine running Ubuntu, to my Windows 7 desktop, so I entered the IP address, username, password and port number for the connection: | ||
+ | {{: | ||
+ | Success! I was able to transfer a file from the emachine to my laptop.\\ | ||
+ | \\ | ||
+ | I wanted to create a root user and password so I performed the following via pUTTY:\\ | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.113' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | Last login: Mon Mar 19 20:12:00 2012 from 192.168.1.111 | ||
+ | jr018429@emachine: | ||
+ | [sudo] password for jr018429: | ||
+ | Enter new UNIX password: | ||
+ | Retype new UNIX password: | ||
+ | passwd: password updated successfully | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | Next, I configured the emachine running Ubuntu 11.10 with a static IP address. | ||
+ | First, I logged in remotely using pUTTY:\\ | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.113' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | 359 packages can be updated. | ||
+ | 96 updates are security updates. | ||
+ | |||
+ | Last login: Mon Mar 19 20:58:16 2012 from 192.168.1.111 | ||
+ | jr018429@emachine: | ||
+ | Password: | ||
+ | </ | ||
+ | Next, I edited / | ||
+ | <cli> | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | I added the section beginning with the line "auto eth0" to the / | ||
+ | <cli> | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.2 | ||
+ | network 192.168.1.0 | ||
+ | netmask 255.255.255.0 | ||
+ | broadcast 192.168.1.255 | ||
+ | gateway 192.168.1.1 | ||
+ | </ | ||
+ | Lastly, I restarted networking: | ||
+ | <cli> | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | I then logged into the emachine from pUTTY using the new IP address:\\ | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.2' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | 359 packages can be updated. | ||
+ | 96 updates are security updates. | ||
+ | |||
+ | Last login: Mon Mar 19 21:17:06 2012 from 192.168.1.111 | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | I logged into the Linksys E1200 router and forwarded port 22 (SSH) to the emachine' | ||
+ | {{: | ||
+ | \\ | ||
+ | Next, I forwarded port 80 (HTTP) to the emachine' | ||
+ | {{: | ||
+ | \\ | ||
+ | I used putty to access the IP address assigned to the router' | ||
+ | {{: | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@67.251.79.214' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | 359 packages can be updated. | ||
+ | 96 updates are security updates. | ||
+ | |||
+ | Last login: Mon Mar 19 21:33:14 2012 from 192.168.1.1 | ||
+ | </ | ||
+ | Success! I was able to log into the emachine through the IP addess assigned by my ISP.\\ | ||
+ | \\ | ||
+ | Next, I installed Apache2 and PHP5 remotely using pUTTY:\\ | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.2' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | 359 packages can be updated. | ||
+ | 96 updates are security updates. | ||
+ | |||
+ | Last login: Mon Mar 19 21:49:14 2012 from 192.168.1.1 | ||
+ | jr018429@emachine: | ||
+ | [sudo] password for jr018429: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 | ||
+ | libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap | ||
+ | Suggested packages: | ||
+ | apache2-doc apache2-suexec apache2-suexec-custom | ||
+ | The following NEW packages will be installed: | ||
+ | apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common | ||
+ | libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap | ||
+ | 0 upgraded, 9 newly installed, 0 to remove and 355 not upgraded. | ||
+ | Need to get 3,131 kB of archives. | ||
+ | After this operation, 10.3 MB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Get:6 http:// | ||
+ | Get:7 http:// | ||
+ | Get:8 http:// | ||
+ | Get:9 http:// | ||
+ | Fetched 3,131 kB in 5s (610 kB/s) | ||
+ | Selecting previously deselected package libapr1. | ||
+ | (Reading database ... 127369 files and directories currently installed.) | ||
+ | Unpacking libapr1 (from .../ | ||
+ | Selecting previously deselected package libaprutil1. | ||
+ | Unpacking libaprutil1 (from .../ | ||
+ | Selecting previously deselected package libaprutil1-dbd-sqlite3. | ||
+ | Unpacking libaprutil1-dbd-sqlite3 (from .../ | ||
+ | Selecting previously deselected package libaprutil1-ldap. | ||
+ | Unpacking libaprutil1-ldap (from .../ | ||
+ | Selecting previously deselected package apache2.2-bin. | ||
+ | Unpacking apache2.2-bin (from .../ | ||
+ | Selecting previously deselected package apache2-utils. | ||
+ | Unpacking apache2-utils (from .../ | ||
+ | Selecting previously deselected package apache2.2-common. | ||
+ | Unpacking apache2.2-common (from .../ | ||
+ | Selecting previously deselected package apache2-mpm-worker. | ||
+ | Unpacking apache2-mpm-worker (from .../ | ||
+ | Selecting previously deselected package apache2. | ||
+ | Unpacking apache2 (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Processing triggers for ufw ... | ||
+ | Processing triggers for ureadahead ... | ||
+ | Setting up libapr1 (1.4.5-1) ... | ||
+ | Setting up libaprutil1 (1.3.12+dfsg-2) ... | ||
+ | Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-2) ... | ||
+ | Setting up libaprutil1-ldap (1.3.12+dfsg-2) ... | ||
+ | Setting up apache2.2-bin (2.2.20-1ubuntu1.2) ... | ||
+ | Setting up apache2-utils (2.2.20-1ubuntu1.2) ... | ||
+ | Setting up apache2.2-common (2.2.20-1ubuntu1.2) ... | ||
+ | Enabling site default. | ||
+ | Enabling module alias. | ||
+ | Enabling module autoindex. | ||
+ | Enabling module dir. | ||
+ | Enabling module env. | ||
+ | Enabling module mime. | ||
+ | Enabling module negotiation. | ||
+ | Enabling module setenvif. | ||
+ | Enabling module status. | ||
+ | Enabling module auth_basic. | ||
+ | Enabling module deflate. | ||
+ | Enabling module authz_default. | ||
+ | Enabling module authz_user. | ||
+ | Enabling module authz_groupfile. | ||
+ | Enabling module authn_file. | ||
+ | Enabling module authz_host. | ||
+ | Enabling module reqtimeout. | ||
+ | Setting up apache2-mpm-worker (2.2.20-1ubuntu1.2) ... | ||
+ | * Starting web server apache2 | ||
+ | [ OK ] | ||
+ | Setting up apache2 (2.2.20-1ubuntu1.2) ... | ||
+ | Processing triggers for libc-bin ... | ||
+ | ldconfig deferred processing now taking place | ||
+ | jr018429@emachine: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following extra packages will be installed: | ||
+ | apache2-mpm-prefork libapache2-mod-php5 php5-cli php5-common | ||
+ | Suggested packages: | ||
+ | php-pear php5-suhosin | ||
+ | The following packages will be REMOVED: | ||
+ | apache2-mpm-worker | ||
+ | The following NEW packages will be installed: | ||
+ | apache2-mpm-prefork libapache2-mod-php5 php5 php5-cli php5-common | ||
+ | 0 upgraded, 5 newly installed, 1 to remove and 355 not upgraded. | ||
+ | Need to get 6,614 kB of archives. | ||
+ | After this operation, 17.7 MB of additional disk space will be used. | ||
+ | Do you want to continue [Y/n]? y | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Fetched 6,614 kB in 12s (540 kB/s) | ||
+ | dpkg: apache2-mpm-worker: | ||
+ | | ||
+ | Package apache2-mpm-worker is to be removed. | ||
+ | Package apache2-mpm-prefork is not installed. | ||
+ | Package apache2-mpm-event is not installed. | ||
+ | Package apache2-mpm-itk is not installed. | ||
+ | (Reading database ... 127945 files and directories currently installed.) | ||
+ | Removing apache2-mpm-worker ... | ||
+ | * Stopping web server apache2 | ||
+ | ... waiting | ||
+ | Selecting previously deselected package apache2-mpm-prefork. | ||
+ | (Reading database ... 127941 files and directories currently installed.) | ||
+ | Unpacking apache2-mpm-prefork (from .../ | ||
+ | Setting up apache2-mpm-prefork (2.2.20-1ubuntu1.2) ... | ||
+ | * Starting web server apache2 | ||
+ | [ OK ] | ||
+ | Selecting previously deselected package php5-common. | ||
+ | (Reading database ... 127946 files and directories currently installed.) | ||
+ | Unpacking php5-common (from .../ | ||
+ | Selecting previously deselected package libapache2-mod-php5. | ||
+ | Unpacking libapache2-mod-php5 (from .../ | ||
+ | Selecting previously deselected package php5. | ||
+ | Unpacking php5 (from .../ | ||
+ | Selecting previously deselected package php5-cli. | ||
+ | Unpacking php5-cli (from .../ | ||
+ | Processing triggers for man-db ... | ||
+ | Setting up php5-common (5.3.6-13ubuntu3.6) ... | ||
+ | Setting up libapache2-mod-php5 (5.3.6-13ubuntu3.6) ... | ||
+ | |||
+ | Creating config file / | ||
+ | * Reloading web server config apache2 | ||
+ | [ OK ] | ||
+ | Setting up php5 (5.3.6-13ubuntu3.6) ... | ||
+ | Setting up php5-cli (5.3.6-13ubuntu3.6) ... | ||
+ | |||
+ | Creating config file / | ||
+ | update-alternatives: | ||
+ | jr018429@emachine: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | libapache2-mod-php5 is already the newest version. | ||
+ | libapache2-mod-php5 set to manually installed. | ||
+ | 0 upgraded, 0 newly installed, 0 to remove and 355 not upgraded. | ||
+ | jr018429@emachine: | ||
+ | * Restarting web server apache2 | ||
+ | ... waiting apache2: Could not reliably determine the server' | ||
+ | [ OK ] | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | \\ | ||
+ | I plugged in the IP address assigned by the ISP into Internet Explorer on my laptop running Windows 7.\\ | ||
+ | {{: | ||
+ | Success! The default Web page is displayed. I now have Web server running and accessible to the outside world.\\ | ||
+ | Next, I wanted Apache to listen at port 8080 so that my server wouldn' | ||
+ | In / | ||
+ | **ports.conf: | ||
+ | <cli> | ||
+ | # If you just change the port or add more ports here, you will likely also | ||
+ | # have to change the VirtualHost statement in | ||
+ | # / | ||
+ | # This is also true if you have upgraded from before 2.2.9-3 (i.e. from | ||
+ | # Debian etch). See / | ||
+ | # README.Debian.gz | ||
+ | |||
+ | NameVirtualHost *:80 | ||
+ | Listen 80 | ||
+ | Listen 8080 | ||
+ | |||
+ | < | ||
+ | # If you add NameVirtualHost *:443 here, you will also have to change | ||
+ | # the VirtualHost statement in / | ||
+ | # to < | ||
+ | # Server Name Indication for SSL named virtual hosts is currently not | ||
+ | # supported by MSIE on Windows XP. | ||
+ | Listen 443 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Listen 443 | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | In / | ||
+ | **default: | ||
+ | <cli> | ||
+ | < | ||
+ | ServerAdmin webmaster@localhost | ||
+ | |||
+ | DocumentRoot /var/www | ||
+ | < | ||
+ | Options FollowSymLinks | ||
+ | AllowOverride None | ||
+ | </ | ||
+ | < | ||
+ | Options Indexes FollowSymLinks MultiViews | ||
+ | AllowOverride None | ||
+ | Order allow,deny | ||
+ | allow from all | ||
+ | </ | ||
+ | |||
+ | ScriptAlias /cgi-bin/ / | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | </ | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # Possible values include: debug, info, notice, warn, error, crit, | ||
+ | # alert, emerg. | ||
+ | LogLevel warn | ||
+ | |||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | Alias /doc/ "/ | ||
+ | < | ||
+ | Options Indexes MultiViews FollowSymLinks | ||
+ | AllowOverride None | ||
+ | Order deny,allow | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.0/ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | I then restarted Apache2.\\ | ||
+ | <cli> | ||
+ | root@emachine:/ | ||
+ | * Restarting web server apache2 | ||
+ | ... waiting apache2: Could not reliably determine the server' | ||
+ | [ OK ] | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | \\ | ||
+ | {{: | ||
+ | Success! accessing the 8080 port using an HTTP request causes a Web page to be returned. Now I can either configure Apache to only listen on port 8080, or only forward the 8080 port from the Linksys router.\\ | ||
+ | \\ | ||
+ | Next, since I installed PHP, I wanted to verify that PHP scripting worked, so I logged into the emachine remotely and created a web page with PHP script which calls the phpinfo function. The phpinfo function returns php configuration information. | ||
+ | <cli> | ||
+ | login as: root | ||
+ | root@192.168.1.2' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | Last login: Tue Mar 20 19:01:16 2012 from 192.168.1.111 | ||
+ | root@emachine: | ||
+ | root@emachine:/ | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | **phpinfo.php: | ||
+ | <cli> | ||
+ | < | ||
+ | < | ||
+ | <?php | ||
+ | phpinfo(); | ||
+ | ?> | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | I tested the phpinfo.php file by entering 192.168.1.2: | ||
+ | {{: | ||
+ | Success! The page was returned.\\ | ||
+ | \\ | ||
+ | I attempted to perform an apt-get update, however, it failed...\\ | ||
+ | <cli> | ||
+ | root@emachine:/ | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Err http:// | ||
+ | Something wicked happened resolving ' | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | 22% [Connecting to security.ubuntu.com]^C | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | I searched the Web for information regarding the error message " | ||
+ | / | ||
+ | <cli> | ||
+ | # Generated by NetworkManager | ||
+ | nameserver 8.8.8.8 | ||
+ | nameserver 8.8.4.4 | ||
+ | </ | ||
+ | After modifying the file, here is the output of executing apt-get update:\\ | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@192.168.1.2' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | Last login: Sat Mar 24 11:56:55 2012 from 192.168.1.101 | ||
+ | jr018429@emachine: | ||
+ | [sudo] password for jr018429: | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Get:1 http:// | ||
+ | Get:2 http:// | ||
+ | Get:3 http:// | ||
+ | Get:4 http:// | ||
+ | Get:5 http:// | ||
+ | Get:6 http:// | ||
+ | Get:7 http:// | ||
+ | Hit http:// | ||
+ | Get:8 http:// | ||
+ | Get:9 http:// | ||
+ | Get:10 http:// | ||
+ | Get:11 http:// | ||
+ | Get:12 http:// | ||
+ | Ign http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:13 http:// | ||
+ | Get:14 http:// | ||
+ | Get:15 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:16 http:// | ||
+ | Get:17 http:// | ||
+ | Get:18 http:// | ||
+ | Get:19 http:// | ||
+ | Get:20 http:// | ||
+ | Get:21 http:// | ||
+ | Get:22 http:// | ||
+ | Get:23 http:// | ||
+ | Get:24 http:// | ||
+ | Ign http:// | ||
+ | Get:25 http:// | ||
+ | Ign http:// | ||
+ | Get:26 http:// | ||
+ | Get:27 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:28 http:// | ||
+ | Get:29 http:// | ||
+ | Get:30 http:// | ||
+ | Get:31 http:// | ||
+ | Get:32 http:// | ||
+ | Get:33 http:// | ||
+ | Get:34 http:// | ||
+ | Get:35 http:// | ||
+ | Get:36 http:// | ||
+ | Get:37 http:// | ||
+ | Hit http:// | ||
+ | Get:38 http:// | ||
+ | Get:39 http:// | ||
+ | Get:40 http:// | ||
+ | Get:41 http:// | ||
+ | Get:42 http:// | ||
+ | Get:43 http:// | ||
+ | Get:44 http:// | ||
+ | Get:45 http:// | ||
+ | Get:46 http:// | ||
+ | Get:47 http:// | ||
+ | Get:48 http:// | ||
+ | Get:49 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:50 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:51 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Get:52 http:// | ||
+ | Fetched 1,227 kB in 8s (153 kB/s) | ||
+ | Reading package lists... Done | ||
+ | jr018429@emachine: | ||
+ | </ | ||
+ | When I logged in remotely to my emachine today, April 2, 2012, I noticed that there were 28 packages to be updated, 18 of which are security updates. I decided to perform an ' | ||
+ | <cli> | ||
+ | login as: jr018429 | ||
+ | jr018429@67.251.79.214' | ||
+ | Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686) | ||
+ | |||
+ | * Documentation: | ||
+ | |||
+ | 28 packages can be updated. | ||
+ | 18 updates are security updates. | ||
+ | |||
+ | Last login: Mon Apr 2 06:51:40 2012 from portal.corning.com | ||
+ | jr018429@emachine: | ||
+ | Password: | ||
+ | root@emachine:/ | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Hit http:// | ||
+ | Get:1 http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Ign http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Hit http:// | ||
+ | Ign http:// | ||
+ | Ign http:// | ||
+ | Fetched 72 B in 2s (33 B/s) | ||
+ | Reading package lists... Done | ||
+ | root@emachine:/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ======Reflection====== | ||
+ | This was a great project, as I got to apply what I learned in my electronics, | ||
+ | I took apart and repaired the emachine' | ||
+ | I set a static IP address in my emachine so that my Web server was always at the same internal IP address so that I could forward the HTTP port to it. I forwarded port 80 from the router to the Webserver. I also forwarded port 22 to the emachine so that I could administer it remotely and securely. | ||
+ | |||
+ | |||
+ | ======References====== | ||
+ | - https:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - https:// | ||
+ | - http:// | ||
+ | - https:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - https:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||