james snyder server project four
the situation by this time was that I had pinged ok.
I did the Linux Inernet Protocol configuration command:
this gave me the ip address of the new server machine.
I knew that http://192.168.2.5/ was the IP
I did this command:
sudo /etc/init.d/apache2 start
and this command should have started the apache service.
I checked the index of my root file:
Index of /
Icon Name Last modified Size Description[DIR] apache2-default/ 26-Jul-2006 18:50 -
Apache/2.0.55 (Ubuntu) PHP/5.1.2 Server at 192.168.2.5 Port 80
to update the server system I ran the following command:
sudo nano /etc/apt/sources.list
and this brought up my list of repository sources.
I scrolled down the list and saw a load of lines starting with 'deb'
and realised that there were three types of repositories in Linu Ubuntu, these being:
standard was all free-dom (as in free speech) and Ubuntu community supported
universe weren't always free (as in free speech)
and multiverse was Open Source community contributed
my best option now was to go through the sources list and remove the '#' from the start of any lines with a deb to uncomment them.
so now I saved the list and exited nano with the command
now I needed to update the sources so I typed the command:
sudo apt-get update
I knew that sudo was the superuser command for Debian Ubuntu, like the old SU command.
then I commanded instead of commanding sudo apt-get install ubuntu
I had to immediately command:
sudo apt-get upgrade
because it was better to udate/upgrade everything, reboot into the new kernel and then install the desktop.
The sudo apt-get upgrade was then running for few minutes.
sudo apt-get install openssh-server
to install the ssh server
then I could go to the router and forward port 22 to the server
I pinged 192.168.2.5 again. The network was ok, there were no errors
I went back to the sources list and looked at the sources list of a similar Ubuntu LAMP server
i forgot to set options in the ping command so it continued in verbose mode.
i killed it and exited it and went back to the command prompt with
Then I checked the ideal sources list model and compiled it word for word onto my sources list as follows:
deb http://gb.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ edgy main restricted
## Major bug fix updates produced after the final release of the
deb http://gb.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
deb http://gb.archive.ubuntu.com/ubuntu/ edgy universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ edgy universe
## Uncomment the following two lines to add software from the 'backports'
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ edgy-backports main
restricted universe mu$
deb-src http://gb.archive.ubuntu.com/ubuntu/ edgy-backports main
deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted
deb http://security.ubuntu.com/ubuntu edgy-security universe
deb-src http://security.ubuntu.com/ubuntu edgy-security universe
It looked fine
i thought the best thing to do would be to comment out the last 4 entrys
I commented out the last 4 security ones, to try to stop the errors
I just wanted to finish the install and update
and so I thought I would add the security tools in later.
so I went ahead and commented out the last 4 security lines in nano editor.
to update again and then upgrade
or I could do both at the same time!
sudo apt-get update && sudo apt-get upgrade
I first thought that & means background process, but &amp;amp;amp;amp;& will run one comand after the other,
so only one line of commands to type instead of two....
I rebooted the machine with the reboot command
then I did the update command again
sudo apt-get update
and then the upgrade command
sudo apt-get upgrade
I went back into sudo nane /etc/apt/sources.list
and installed a new externeal cdrom drive onto the server.
on my router page the default gateway was http://192.168.2.1/
I went to virtual servers and checked my port forwarding
I wanted port 22 forwarded to the IP address of my server
I went to whatismyip.com to see the resulting ip address
then I could dial in and take look at the source problem first hand
I enabled the ubuntu server IP posts as follows
inbound port 22 - 22 type TCP private IP address 192.168.2.5private port 22 - 22
1. bittorrent 6881 just remains enabled
I was still trying to find my ip address.
I commanded ifconfig: 127.0.0.1 Mask 255.0.0.0
whatismyip.com gave me my WAN (wide area network address) ie. my internet facing addess
It looked something like 184.108.40.206
I then connected to my router via ssh port 22
and the router said, 'ohh this needs to go to the server'
I then used the user and pass and got to the server command line
to be able to then sort out my apt list
IP was actually: 220.127.116.11
it made a note of my settings for future reference help
now I wanted a graphical desktop.
I thought about using xfce in the long run as it's fast on an old machine,
but gnome is a bit more forgiving/easy at the early stages
so I did sudo apt-get install ubuntu-desktop
I took a while to downlaod everything and install gnome
then I was back at the command prompt after a long list of "failed to fetch http://gb.archive.ubuntu.com etc"
either my source.list was still unhappy or my ethernet cable was not plugged in properly...
I used putty to link from my Windows laptop upto the Linux server
I opened up the suorcces list making sure I copied all the ## lines as well.
the ## were commenting out the information lines
and stopping the machine form reading them
then I used the ctrl exit. yes.
I saved it as a different file,
renamed the old file sources2.list
and then the new one to source.list
and then did the commands chmod and chown for the new file
what i learnt from this is that you can isolate and identify the problem and error
by trial and error but firstly check all the hardware is connecting and up to date first.