European Polytechnic Institute Ltd., Kunovice
BACHELOR THESIS
2010
Tomáš Šupa
European Polytechnic Institute Ltd., Kunovice
Field of Study: Electronic Computers
Hosting A Server for Education Programming of Web Applications at EPI Ltd.
(Bachelor Thesis)
Author: Tomáš ŠUPA
Supervisor: Ing. Filip Janovič
Kunovice, December 2009
1. soukromá vysoká škola na Moravě
Evropský polytechnický institut, s.r.o.
Akademický rok 2009/2010
ZADÁNÍ BAKALÁŘSKÉ PRÁCE
Jméno a příjmení: Andrea KUBALOVÁ
Studijní program: Finance a daně
Téma práce:
Cíl závěrečné práce:
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Osnova:
1. xxxxxx
2. xxxxxx
3. xxxxxx
4. xxxxxx
5. xxxxxx
Podle zákona č. 111/1998 Sb., § 47b, odst. 3 platí, že odevzdáním práce autor souhlasí se
zveřejněním své práce podle tohoto zákona, bez ohledu na výsledek obhajoby.
Vedoucí práce: Ing. Xxxxxxxxxxxxxxxxx
Datum zadání bakalářské práce: Kunovice, 1. dubna 2009
Iveta Matušková Oldřich Kratochvíl
Mgr., Ph.D., h. doc., MBA Ing., h. prof., Dr.h.c., Ph.D., MBA
Prorektorka pro pedagogickou činnost rektor
I confirm that I have prepared my Bachelor Thesis - supervised by Ing. Filip Janovic and I have named all used literature and professional resources in the Bibliography.
Kunovice, December 2009
I would like to give my thanks to Ing. Filip Janovič, Ing. Marek Horváth and Bc. Marcel Jachník for their very useful methodical assistance which has been given to me during the preparation of my Bachelor Thesis.
Kunovice, December 2009
Tomáš Šupa
1.7 Hosting server ISPconfig 3
2.2 Installing software on the server
3 Implementation at EPI´s information system
4.1 Information about server avatar
4.2 Information of processor on server cat/proc/cpuinfo
4.3 Information of memory on server cat/proc/meminfo
4.3 Listing disk on the server fdisk –l
4.4 Setting IP adress of the server on the school site
5.2 Connecting to the web server via FTP:
5.3 Connecting to the server using PuTTY
Conclusion, the possibility of a further development
In today's world of information
technology, where most of us cannot imagine life without computers and the
Internet. Every company, individual or group of people get in situations where
they need to be visible and show the world that they also exist. Whether for
individual, corporate website or online store with all kinds of goods.
Therefore, the main objective of my thesis is to create a
hosting server based on Linux in order to make it easier and better to teach
and program web applications and presentations at European Polytechnical
Institute, Ltd. The Server will be used directly in the teaching environment by
students and students will be able to access the server from home and work out
their tasks. The Server will make the task control easier for teachers and
optimise the total course of teaching.
The first task was to create an
analysis of the project and to identify the main requirements for the server to
be fully recovered, and was beneficial for both students and instructors. Furthermore,
we introduce the main characteristics of the selected server and software that
is installed in the server. The next point is a creation of a server from the
initial operating system installation and configuration of the security server
followed by the introduction of an information server of European Polytechnic
Institute in Hodonin and implementation of teaching programming web
applications and informatics. The documentation describes how to configure the
server settings and how to connect it to the network server. In this part there
is described an editing, deleting and creation of new students into the system
hosting the server for easier administration of agents to the management
server.
I have chosen this subject
to improve myself in the Linux operating system and to acquire new information
concerning the problems of computer networks and their settings, because I
would like to study this field in the future.
Nowadays education programming for web applications monitors the performance of teacher´s assignments hardly than before, because all the tasks, web applications and web projects are stored in the FTP of the school and the teacher can´t see the control functionality, but only a source code. Teachers would have to upload the files to a web server and then to check if it really works and as well as if it works due to the expected demands. My goal is to solve the problem to simplify the teacher´s control and to make more easily student´s way of making their projects. There is a possibility to resolve this problem is to create a Web site where students will create their file in which they will record their work. The Web server must include the FTP server to access to the student´s directories, so that students can record their work at school, but also from their homes. Furthermore, the server MySQL must be installed to support teaching of the PHP as well as working with databases and for student´s to get familiarized with so many options of very popular management system. To create a webhosting server, I had to choose between the Linux OS Debian and Microsoft Windows Server 2003, but due to the price of these operating systems, I chose Linux[1], which offers lots of possibilities to extend the server and the main reason was the GNU license, which allows the operating systém to be distributed free of charge . Nowadays the OS Debian is the most popular among network administrators because of its large number of software packages that allow us to expand and create server properties. Below I describe the main software installed as a part of the server.
Picture No. 1: Logo OS Linux
Source: http://www.linux-admin.cz/ [online]. 2009 - 2010 [cit. 2010-01-18].
www: http://www.linux-admin.cz/wp-content/themes/inove/img/linux.jpg
The GNU Project was created in 1983, and as a major goal in mind to create a new operating system that is the Unix and that would be based on a free software. The main founder of the project is Richard Matthew Stallman was to this end, write a new GNU GPL, under which they are disseminated to all parts of the GNU.
The GNU has become applicable, and especially
compatible with commercial Unix systems. Meanwhile,
on the other side of the world in Helsinki in 1991, begins with a Finnish
student Linus Torvalds to work on developing its own Unix kernel. Once the core
was released into the world so you immediately receive a large number of
supporters who contributed their thoughts. Development grew to large
proportions, and therefore later released Linux[2] source code under a free GPL. As
an important step was the GNU operating system began to use the Linux kernel. And this was major and the resulting product, called
GNU / Linux.
• A modern operating system
• Free of viruses and spyware
• Flexible and adaptable
• A large number of applications
• Remote management and use
• Qualified support and documentation
• Fully controllable
• And all above for FREE
The FTP is one of the oldest protocols, which operates on the client-server. The FTP protocol is interactive, allowing you to control access to users who login to the site allowed by an access (username / password), listing remote directories, etc. It works on ports 20 and 21 and only TCP[3]. The ports 20 serve only to transfer data between the client and server, not commands. The second port 21 is only the commands that the client enters the server and if it turns data from the server or the client and the command port 21 doesn´t transmit anything, and uses the port 20th Today there are many programs for FTP servers and clients, and we find among them a large number of programs which are available free of charge.
We
have a lot of software that helps us to create a web server (Apache HTTP
Server, Internet Information Services, Sun Java System Web Server), which may
be differenet in the details, but share some common characteristics.
They are connected to the computer network and received by HTTP requests. Web server with the following requirements shall execute and return the answer machine, which made demands. The usual response is an HTML document, but could also be another file format (image, text document, mp3, etc.). Part of the answer is so-called status code response. This code gives us if it was our request to a web server in the order, or there were some problems. Status code indicating the status is 200 OK Other types of status code are:
· 3xx - redirection problems
· 4xx - page is not available, etc.
·
5xx -
Internal Server Error
For the hosting server, I chose
Apache, which is the most widespread.
• Web server, which has the open source GNU / Linux,
Solaris, Windows, Mac OS X
• It receives requests from the HTTP client
• Development began in 1993 at the University of Illinois
• Today, it operates with the main websites all over the
world.
Picture No. 2: Logo Apache
Source: http://www.apache.org [online]. 2009 - 2010 [cit. 2010-01-18].
www: http://www.apache.org/images/feather.gif
We understand the concept of a computer database (data base), which is arranged in a certain set of information (data) and which is also stored on the storage medium. In our case, the MySQL server. Access to databases on the server is based on the authentication (user name, password, host, etc.).
• Communication takes place via
SQL.
• Free software
• Implementability (installation on Linux, Windows)
• Easy ways to backup
• A high proportion of
the currently used database
Editorial systems[4] help us to easily upload a
content to a website and also allows us to modify the existing article. There
is also a possibility to add dynamic elements to Web pages that include:
discussions, polls, comments, contact forms and more.
They also contain a large number of tools and plugins to
manage photos, statistics, and internal tasking and communication between the
authors and the other tools.
This is actually the interface for entering and
editing information. Individual articles and all
datas are stored in a database, from which it is displayed on the website for
incoming visitors. The most popular and widely used editorial systems are:
· Joomla
· Wordpress
· Xoops
· Drupal
Individual editorial systems are not so different
among each other´s features, but like most "user friendly" would
be in my opininon Joomla. This system offers us everything what we need to
manage your blog, Company web sites and discussion forums, and more, all
in-language versions. It is written in the PHP language and uses MySQL
database. The translation of Joomla means
"whole" or "all together".
The server is avatar.vos.cz support PHP5 and MySQL for
easy installation of CMS and phpBB for the familiarization of students with the
content management system.
Picture No 3: Wordpress and Joomla
source: http://www.burnseo.com/ [online]. 2009 - 2010 [cit. 2010-01-18].
www: http://www.burnseo.com/blog/wp-content/uploads/2009/06/wordpress-vs-joomla.png
ISPConfig is a tool for managing
a hosted platform based on Linux. Thanks to the ISPConfig we can manage
internet services including Web servers, FTP servers, database servers, DNS
servers, configuration options for firewalls, anti-virus server and spam
filters, of course.
ISPConfig license: BSD
ISPConfig control:
• Httpd (virtual hosting based on
IP and domain)
• FTP Bind (A, CNAME, MX and SPF records)
• POP3 Auto-Responder
• MySQL client-Databases
• Webalizer Statistics
• Harddisk quota, Mail-Quota
• Transmission limits
• IP-address
• SSL, SSI
• Shell-access
• Mailscanner (Antivirus)
• Firewall
• Manageability: Web services, FTP servers, web servers and allows you to
configure the firewall
• Setting the number of domains for each user
We install it by inserting a CD-ROM installation disk Linux distribution Debian, which is free to download at www.debian.org. The PC that we use as a server, set the primary boot from CD / DVD and welcomes us on the home screen, window installation, see pict. no. 4.
Picture No. 4: Installation´s window of Debian
Source: own
Installation, press ENTER to confirm the choice of install[5] and like this we can run the
installation steps. Followed by the first screen with the choice of language
that will accompany us to installing of the system and to the system installed
by itself.
Screen followed by specifying language, country or
region and then selecting the continent or country where we are. On the next
screen we are prompted to select your language and keyboard for this step to
get to the download and installation of hardware, which is contained in our
server.
We continue in configuring
the network connection where we can select from the static IP address setting,
or retrieving the IP address from the DHCP server. In this step you can skip
the connection setup and we will put it later in the actual server settings. In
the next window will be waiting for us to insert a HOSTNAME for our system and
therefore has put Server 1, which we change laterwithout any problem, on the
following installation screen thee we insertt a domain name EXAMPLE.COM.
The next step is to set up a hard drive. Here it is the recommended for beginners to use entire
disk and it / home, / usr, / var and / tmp will be one of the hard disc drive
and will not be further distributed to other parts of our operating system and
it will use the disk as an unit.
After selecting the first choice followed by a screen with
saving settings changes on the disk where you can check your partition from the
previous screen Figure 5.
Picture No. 5: Partition disks
Source: own
Followed by a re-inspection, if
you really agree with the setup of hard disk installer warns us by a message
that the drive will be reformatted and all data stored on the disk will be
irretrievably lost.
After confirmation of the inclusion of changes to the
drive, they are waiting for formatting and changing the registration on the
hard drive which is installed by itself to the base system where one of our job
is only to observe the installation of our system.
After the installation there is a part of a
creation of the system and the user settings, among these in the installation
there super user "root" belongs and plus a normal user. First we have to start with the root user, and we are
prompted by the install screen to enter the password for this user. We put
the password for super user 'root' through which we will configure the system
later and install software for our server. Then repeat the password to check
super user 'root' again to make sure that the system that we know which
password to set. After setting and checking the root password followed by a
username and password normal user again and we check over the password.
The following screen will help us to set up a mirror to
our archive of software distribution, which is in our case Debian, we begin by
selecting a country and then selecting the software archive of mirrors. Window
to set the proxy server will not leave empty and we will not fill anything and
then we continue in the installation and the resulting window, uncheck or
participation in popularity survey packages. In the next step, we select the
server utilization, and this option gives us the choice of installing software
packages for the web server, print server, DNS server, file server, mail
server, SQL server, notebook and a standard system. We choose the only option
STANDARD SYSTEM picture No. 6 and we leave the others without any attention,
because the only way you'll have full control over the software that is
installed on our server. Every software that we will need and use on our server
will be installed additionally later.
Picture No. 6: Window´s installation of the package system
Source: own
After these screens, followed by installation screen, we can see that the installation process by a package for the server that has been selected by us. Finally, we confirm the choice of installing the GRUB boot loader and after this there is to be seen the screen of the final installation, which desribes that the installation is over and we have to remove the installation CD from the CD-ROM drive not to run the PC re-boot operating system again.
After installation, we log in as a root and because
the actual installation of OpenSHH is not installed in Debian Lenny[6] so we do this, for further
useage, and connecting and configuring the server remotely using PuTTY, we will
need that. We install OpenSSH by a command:
apt-get install ssh openssh-server
From this moment on our server, there we can remotely log
in using PuTTY, which can be downloaded free at:
<http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html>
Followed by setting up a
network connection to a network server, and since installing the server, we
discarded this option so a system is set up already so the server looks for an
IP address using DHCP server, and therefore we have to change the IP address to
a static IP address. Change from DHCP to static IP addresses do change /
etc / network / interfaces command:
nano / etc / network / interfaces
After opening the file for writing change the format where
he can dial an IP address such as in network use, or will apply:
# This file describes the network interfaces available
on your system
# And how to activate theme. For more information, see interfaces (5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# Allow-hotplug eth0
# Iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address
192.168.0.100
netmask 255.255.255.0
network
192.168.0.0
broadcast
192.168.0.255
gateway
192.168.0.1
Now restart with the help of our network:
/ Etc / init.d / networking restart
After restarting the network and the correct connection to
the Internet, we can verify your settings using the ping command, and he will
tell us if we got a response from the server (in this case trying
www.seznam.cz).
ping www.seznam.cz
Once the remote server responds, this means that we are
properly connected to the Internet (if the server will scan the local network,
so instead of seznam.cz put the IP address of another PC, which is located in
our network). Now is the right time to change the hostname and the first test
is sufficient when using the following command:
nano / etc / hosts
change the
content in the following form:
127.0.0.1 localhost localhost.localdomain
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable
hosts
:: 1 localhost ip6-localhost ip6-loopback
fe00:: 0 ip6-LocalNet
ff00:: 0 ip6-mcastprefix
ff02:: 1 ip6-allnodes
ff02:: 2 ip6-allrouters
ff02:: 3 ip6-allhosts
Now run:
server1.example.com echo> / etc / hostname
/ Etc / init.d / start hostname.sh
and then run:
hostname
hostname-f
At this point it is very important to us in the console
showed server1.example.com!
Now run the update software installation package:
apt-get update
and subsequently to install the latest updates to the
console, enter:
apt-get upgrade
Install the NTP package through which we will always have
a synchronized time with the help of the Internet:
apt-get install ntp update
Now install Postfix, Courier, Saslauthd, MySQL,
phpMyAdmin, and rkhunter vnutils command:
apt-get install postfix postfix-mysql postfix-doc
mysql-client mysql-server courier-authlib courier-authdaemon-mysql courier-pop
courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules
libsasl2-modules -sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4
rkhunter vnutils
After installing this software you will be prompted for
setting up MySQL:
New password for the MySQL "root" user: our
sql password
Repeat password for the MySQL "root" user:
password again our sql
Create directories for web-based administration? Well
General type of mail configuration: Internet Site
System mail name: server1.example.com
SSL certificate required: Ok
Now it is important that the MySQL listen on all
interfaces and not only on localhost and therefore we must modify / etc / mysql
/ my.cnf with the command:
nano / etc / mysql / my.cnf
to look like this:
[...]
# Instead of skip-networking the default is now to listen
only on
# Localhost Which is more compatible and is not less
secure.
# Bind-address = 127.0.0.1
[...]
It remains to restart MySQL:
/ Etc / init.d / mysql restart
Check if the network is enabled:
netstat-tap | grep mysql
and the output should look like this:
server1: ~ # netstat-tap | grep mysql
tcp 0 0 *: mysql *: * LISTEN 6612/mysqld
server1: ~ #
During installation, SSL certificates were created for
IMAP-SSL and POP3-SSL, named hostname for localhost, but we need to correct our
hostname - server1.example.com now be deleted and Certificates:
cd / etc / courier
rm-f / etc / courier / imapd.pem
rm-f / etc/courier/pop3d.pem
Then replace localhost in our testovní server1.example.com
in imapd.cnf:
nano / etc / courier / imapd.cnf
to
[...]
CN =
server1.example.com
[...]
and also pop3d.cnf
nano / etc/courier/pop3d.cnf
to
[...]
CN = server1.example.com
[...]
And rewrite
certificates:
mkimapdcert
mkpop3dcert
... And then restarts the Courier-IMAP, SSL and
Courier-POP3-SSL:
/ Etc / init.d / courier-imap-ssl restart
/ Etc / init.d / courier-pop-ssl restart
It is at least install a web server Apache2, PHP5,
phpMyAdmin, FCGI, suexec, Pear and mcrypt:
apt-get install apache2-common apache2 apache2.2-doc
apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5
php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi
libapache2-mod-fcgid apache2-suexec php-pear php-auth mcrypt php5-mcrypt
php5-imagick ImageMagick libapache2-mod-suphp
After installing the Web site we ask that you enter the
menu and confirm the main Apache2 web server and then enable Apache modules:
rewrite ssl suexec a2enmod Actions include
Installing and pureftpd Quote:
apt-get install pure-ftpd-common pure-ftpd-mysql quota
quotatool
Change the
file / etc / default / pure-ftpd-common:
nano / etc / default / pure-ftpd-common
to
[...]
STANDALONE_OR_INETD = standalone
[...]
VIRTUALCHROOT = true
[...]
Even change the / etc / inetd.conf using:
nano / etc / inetd.conf
... Before adding the character # ftp stream tcp ....
into:
[...]
#: STANDARD: These Are the standard services.
# Ftp stream tcp nowait
root / usr / sbin / tcpd / usr / sbin / pure-ftpd-wrapper
[...]
Restart inetd:
/ Etc / init.d / openbsd-inetd restart
pureftpd and run:
/ Etc / init.d / pure-ftpd-mysql start
We change the / etc / fstab using:
nano / etc / fstab
the following form:
# / Etc / fstab: static
file system information.
#
# <file System> <mount point> <type>
<options> <dump> <pass>
proc / proc proc defaults 0 0
/ Dev/sda1 / ext3 errors = remount-ro, usrquota, grpquota
0 1
/ Dev/sda5 none swap sw 0 0
/ Dev / hda / media/cdrom0 udf, iso9660 user, noauto 0 0
/ Dev/fd0 / media/floppy0 auto rw, user, noauto 0 0
Enable quota by running:
Touch / quota.user / quota.group
chmod 600 / quota .*
mount-o remount /
quotacheck-avugm
quotaon-avug
MyDNS installed but before the libmysql client library:
apt-get install g + + gawk gcc make libc6 texinfo
libmysqlclient15-dev
MyDNS not in the repositories of Debian Lenny, and
therefore, the first download, unpack and install:
cd / tmp
wget
http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.25.tar.gz
tar xvfz mydns-1.2.8.25.tar.gz
mydns-cd 1.2.8
. / Configure
make
make install
Now create a so-called start / stop script for creating a
file in MyDNS etc / init.d:
nano / etc / init.d / mydns
and this script should look like:
#! / Bin / sh
#
Mydns # Start the server MyDNS
#
# Author: Philipp Kern <phil@philkern.de>.
# Based upon the skeleton 1.9.4 Miquel van Smoorenburg
# Ian Murdock and
<miquels@cistron.nl> <imurdock@gnu.ai.mit.edu>.
#
set-e
PATH = / usr / local / sbin: / usr / local / bin: / sbin:
/ bin: / usr / sbin: / usr / bin
DAEMON = / usr / local / sbin / mydns
NAME = mydns
DESC = "DNS server"
SCRIPTNAME = / etc / init.d / $ NAME
# Gracefully exit if the
package HAS been removed.
test-x $ DAEMON | | exit 0
case "$ 1" in
start)
echo-n
"Starting $ DESC: $ NAME"
start-stop-daemon
- start - quiet \
-
Exec $ DAEMON --b
echo
"."
;;
ft.)
echo-n
"Stopping $ DESC: $ NAME"
start-stop-daemon - stop - oknodo - quiet \
- Exec $ DAEMON
echo
"."
;;
reload | force-reload)
echo-n
"Reloading $ DESC configuration ..."
start-stop-daemon
- stop - signal HUP - quiet \
-
Exec $ DAEMON
echo
"done."
;;
restart)
echo-n "Restarting $ DESC: $ NAME"
start-stop-daemon - stop - quiet - oknodo \
-
Exec $ DAEMON
sleep 1
start-stop-daemon
- start - quiet \
-
Exec $ DAEMON --b
echo
"."
;;
*)
echo
"Usage: $ SCRIPTNAME (start | stop | restart | reload |
force-reload)"> & 2
exit 1
;;
esac
exit 0
Now set the startup link for the system to run our script:
chmod + x / etc / init.d / mydns
update-rc.d defaults mydns
Vlogger and install Webalizer:
apt-get install vlogger webalizer
open / etc / webalizer / webalizer.conf:
nano / etc / webalizer / webalizer.conf
And change the incremental
value of # on Incremental Incremental yes no
Install Jailkit, which is needed to chroot ssh user.
apt-get install
build-essential autoconf automake1.9 libtool flex bison
cd / tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
tar xvfz jailkit-2.5.tar.gz
cd jailkit-2.5
. / Configure
make
make install
cd ..
rm-rf jailkit-2.5 *
One last thing before
installing the software, hosting ISPConfi3 is to install the fail2ban
ISPconfig3 monitoring system:
apt-get install fail2ban
And now we come to install ISPconfig 3:
cd / tmp
wget
http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.1.tar.gz?use_mirror =
tar xvfz ISPConfig-3.0.1.tar.gz
ispconfig3_install/install cd /
php-q install.php
Now we start installing ISPConfig that looks like this:
--------------------------------------------------
------------------------------
___________ _____ _____ __ _
| _ _ / ___ | ___ \ / __ \ / _ (_)
| | \ `--.| | _ / / | / \ / ___ _ __ | |
_ _ __ _
¨ | | `--. \ __ / | | / _ \ | '_ \ | _ | | / _ `|
_ | | _ / \ __ / / | | \ __ / \ (_) | | | | | | | (_
| |
\ ___ / \ ____/ \ _ | \ ____/ \ ___/|_| |_|_| | _ |
\ __, |
__
/ |
|___/
--------------------------------------------------
------------------------------
>> Initial Configuration
Operating System: Debian Lenny / Sid or compatible
Following Will Be A Few Questions
for primary configuration so Be careful.
Default values are in [brackets]
and CAN BE accepted with <enter>.
Tap in "quit" (without
the quotes) to stop the installer.
Select
language (en, de) [en]: Press ENTER
Installation mode (Standard, Expert) [standard]: Press
ENTER
Fully qualified hostname (FQDN) of the server, eg
server1.domain.tld [server1.example.com]: <- ENTER
MySQL server hostname [localhost] and press ENTER
MySQL root username [root] and press ENTER
MySQL root password []: Deposit OUR SQL PASS
MySQL database to create [dbispconfig] and press ENTER
MySQL charset [utf8] and press ENTER
Generating and 2048 bit RSA private key
..................................................
.................................................. ..............+++
.................................................. ..................................................
.....+++
Writing new private key to 'smtpd.key'
-----
You are about to Be Asked to enter information That Will
Be Incorporated
Into your certificate request.
What you are about to enter is What is Called a
Distinguished Name or a DN.
There are Quite a Few Fields, But You Can Leave Some blank
Some fields for There Will Be a default value,
If you enter '.', The Field Will Be Left blank.
-----
Country Name (2 letter code) [AU] and press ENTER
State or Province Name (full name) [Some-State] and press
ENTER
Locality Name (eg, city) []: Press ENTER Organization Name
(eg, company) [Internet Widgits Pty Ltd] and press ENTER
Organizational Unit Name (eg, section) []: EG and press
ENTER
Common Name (eg, YOUR name) []: Our name and press ENTER
Email Address []: Email and press ENTER
Configuring Jailkit
Configuring SASL
Configuring PAM
Configuring Courier
Configuring Spamassassin
Configuring amavisd
Configuring Getmail
Configuring pureftpd
Configuring MyDNS
Configuring Apache
Configuring Firewall
Installing ISPConfig
ISPConfig Port [8080]: PRESS ENTER
Configuring DBServer
Installing crontab
no crontab for root
no crontab for getmail
Restarting services ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade
needing tables ..
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
Stopping SASL Authentication Daemon: saslauthd.
Starting SASL Authentication Daemon: saslauthd.
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
Stopping ClamAV daemon: clamd.
Starting ClamAV daemon: clamd.
Stopping Courier authentication services: authdaemond.
Starting Courier authentication services: authdaemond.
Stopping Courier IMAP server: imapd.
Starting Courier IMAP server: imapd.
Stopping Courier IMAP-SSL server: imapd-ssl.
Starting Courier IMAP-SSL server: imapd-ssl.
Stopping Courier POP3 server: pop3d.
Starting Courier POP3 server: pop3d.
Stopping Courier POP3-SSL server: pop3d-ssl.
Starting Courier POP3-SSL server: pop3d-ssl.
Restarting web server: apache2 ... Waiting.
Restarting ftp server: Running: / usr / sbin /
pure-ftpd-mysql-l-virtualchroot mysql: / etc / pure-ftpd / db / mysql.conf-l
pam-E-A-1000-O at CLF: / var / log / pure-ftpd / transfer.log-b-B
Installation completed.
server1: / # tmp/ispconfig3_install/install
Once we have installed ISPConfig behind him and test the
functionality of our test address from any PC on the network or
http://server1.example.com:8080/ http://192.168.0.100:8080/ and shown us where
the login splash screen the password is 'admin':
Picture. No. 7: Login Windows of ISPConfig3
Source: own
After installing the software is at least to prepare our server to access the Internet and campus networks. As it was stated in the Chapter 2.2 (install software on the server) server must have been set a fixed IP address and must not acquire it from the DHCP server. The installation is described as an installation of the server with a static IP address in the form of 192.168.0.100. In this case it is necessary to change the server's IP address to a valid address in the network with a subnet of Format 6 to 192.168.6.14. where communication to the public IP address 77.48.209.238 is sent. In our internal network server using the address 192.168.6.14 and outdoor communications address 77.48.209.238. This setting of the public on the internal IP address is made in setting Mikrotik RouterBoard company and this setting can be seen in Figure No 11 Functionality and corretness of the setting can be verified by using the ping command through which is to be seen if the server responds to our request for a response, or directly in our browser window, enter the server's IP address which is now credited as: 8080 and if we progressed well and would see the login screen ISPConfig3 shown up there, where as the default password is set to 12,345 and login admin. Note the picture No. 11, where public IP address is set to 8080, 80, 21 is as an active one and thus can be ensured that the server will respond to these ports and reply. Ports 22 and 20 being now in the mode disable are not activated for usage. After this setup the server to the school network, it is necessary to secure the server against unauthorized access from outside the network and start setting and creating user´s interfaces in a ISPConfig3 interface, which can be found in the Chapter 5 - Operational documentation.
Number |
TCP |
service |
80 |
TCP |
http |
20 |
TCP |
FTP (data) |
21 |
TCP |
FTP (příkazy) |
22 |
TCP |
SSH |
8080 |
TCP |
TOMCAT |
Chart No. 1: List of ports
Source: own
Picture No. 11: Settings of own server on mikrotik
Source: own
Once the server is successfully configured, it is necessary to address the issue of security. The basis of security is the firewall[7], thus prevents unauthorized access from the Internet, but local networks as well. Nowadays, almost continuously around the world a lot of potential hackers are trying to find an open access service, and then guessing the password wordlist (dictionary of frequently used words) to break and control the entire system and therefore the password to access the web interface, we put a combination of numbers, large and small letters. ISPConfig3 web interface allows us to configure the firewall interface, and a list of authorized services, through which it can be senn an access on the server. There are only allowed services that are needed for server requirements. This firewall settings can be found in the main menu under button called System -> Firewall.
Picture No. 8: Setup of a firewall
Source: own
Each enabled service of the server can mean a dangerous attack from the outside, but from internal networks. For this reason, there is no list of open services and information about the firewall settings which are accessible to authorized persons, which can be read at any time in the interface firewall. At this point, the network is secured against the possible failure of the DHCP server that the server can set only by fixed IP address to MAC address allowed in the network. This method prevents from some possible attack from the internal network to activate the server address and collision avoidance by the server services from both inside and from outside the network.
Hosting server is located on the campus of the European Polytechnic Institute, Ltd. in Hodonin. Server is designed for students of the campus Hodonin and deployed with the help of instructors directly to teaching where students learn to program web applications from the simplest to the most difficult. The server is implemented on the information server called is.vos.cz Hosting server Hodonin. Students can access the server using the information server is.vos.cz, or with the assistance of the following addresses:
Domain Name Server: avatar.vos.cz
External IP address of the server: 77.48.209.238
Internal Server IP address: 192.168.6.14
On the server there was
created an index page, which is easier for students and it is arranged by the
clarity of the actual classes. Furthermore, we can find a list of teachers who
have their own space for their own web applications and information for
students how to connect to the server using an FTP client with which students
can record to their web applications on the server directly to their address
book and program PuTTY for SSH access teaching the Linux operating system.
Picture No. 9: Index page of avatar.vos.cz
Source: own
Platform: Linux
Version:
Debian Lenny
apt 0.7.20
kernel: linux February 6, 1926
libc: libc6 2.7
gcc: 4:4.3.2
X-server: Xorg 7.3
FHS 2.3
LSB 3.2
Picture No. 10: Proposed location of the server in the network
Source: own
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 497.854
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 2
bogomips : 997.40
clflush size : 32
MemTotal: 126512 kB
MemFree: 15864 kB
Buffers: 5808 kB
Cached: 28472 kB
SwapCached: 25452 kB
Active: 85568 kB
Inactive: 10352 kB
LowTotal: 126512 kB
LowFree: 15864 kB
SwapTotal: 369452 kB
SwapFree: 160432 kB
Disk /dev/hda: 10.0 GB, 10005037056
bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008c00e
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1170 9397993+ 83 Linux
/dev/hda2 1171 1216 369495 5 Extended
/dev/hda5 1171 1216 369463+ 82 Linux swap / Solaris
Internal IP address: 192.168.6.14
Public IP address: 77.48.209.238
Authorised ports on the server: 8080, 80, 22, 21
Setup is done on
RouterBoard Mikrotik 1000
RouterBoard IP address: 192.168.6.1¨
Picture No. 11: Setup of the mikrotik
Source: own
All the administration and operation of the server, including adding the new students, registration of existing students, or deletion of students is provided directly in the interface ISPconfig3. We will connect to the interface from the index of the page avatar.vos.cz by clicking on Administration. We'll be redirected to the main page ISPconfig3 where software appeals us to insert the login name and administration password. Due to the increased security on the server there is no administrator´s password to increase server security. Password has been acquired only by one person who is responsible for operating the server and manage user accounts on the hosting server. After a correct login to the server, we check the server status by clicking on Monitor, where we can see the actual status of the server.
Login and passwords for login on server:
Database
Login: |
c3login (např. "C3novak") |
Password: |
12345 |
FTP
Login: |
stlogin (např. "stnovak") |
Password: |
12345 |
Shell
Login: |
stlogin (např. "stnovak") |
Password: |
12345 |
To create a new user we have to click on the Sites in
the Interface ISPconfig3 after login as an administrator. It opens the
screen, which has changed its menu in the left menu, and here we can see the
following options. Picture no. 12:
FTP-user:
create new users with web space and FTP access to the server, through which
students record in their area of Web applications created in the lessons, or
from home.
To create a new FTP account and a new user, click
Add new FTP-User.
Picture No. 12: New users
Source: own
And in the next window there we put a new username Username in the box, insert the password in the box labeled Password. HDD-Quota means how much space in MB is available for a user and we keep the number -1 so the user is limited only by the size of hard disks on the server. Leave the box confirmed active and continues to create a new user by a click on Options where we set the other settings for a new created user. Here we have the possibility of a new user for example, to restrict the maximum size of the transferred file on the server, number of files that the user can create in the address book, etc. I recommend all the boxes to keep occupied by a number -1 and thus restrict the user in this direction and there is left the only limitation in the size of the directory 30 MB. At this moment the most important cell for us is Directory which allows users to set the path where the web server will have created its file. In our case we need to add at the end of / web / stLOGIN. For example, a user with the logon name PEPA would be following the path / var/www/clients/client0/web2/web/stPEPA. After correct completion by clicking the Save button to save. Thus creating new users into our system, but now it is still a need to create a folder named the new user name in the directory /var/www/clients/client0/web2/web / and adding users to the main index page by adding avatar.vos.cz with skript on index: <a href="/var/www/clients/client0/web2/web/ /PEPANOVAK/index.html">PEPA NOVÁK</a>
Picture No. 13: List of users
Source: own
Shell-user: creation of an account to access the command line server, eg. using PuTTY on port number 22 which has the same process as a creation of a FTP user. The SSH connectivity enables us to communicate between the server and client PC, which runs from the command line and enables us to copy files.
Database: create an account on the database server.
This option will create a database with student's name and password.
We enter the name of the database to the field Databaze which will belong to the user who will be entered int he field named User. Then we will create a password for an access to the database and set the database charset to UTF-8 in order not to have any problem with diacritical marks in the data´s database afterwards.
Picture No. 14: Database
Source: own
To connect to the server will use the program Total Commander. After starting Total Commander, click on the top bar icon FTP - join (Picture No. 15)
Picture No. 15: Setup of FTP connections
Source: own
We will open the window
(Picture No. 16), where we have the opportunity to manage FTP accounts. If we
only account created so simply select the account and click the Connect button.
If you haven´t got account created so for first we will click on New
Connection.
Picture No. 16: List of FTP connections in total commander
Source: own
When you click New Connection, we will open the following window (Picture No. 17)
Picture No. 17: New FTP connection
Source: own
On this window, fill in the fields as follows:
Sessions: EPI Web site (in this field can have any text-it's
just a name for the connection.
Host: avatar.vos.cz (name server that will connect)
User Name: stfranta (on your username from each
name to be wed!)
Password: yourpassword (in the box you type your
password for your account)
Click OK and your session is saved for later connection to
the server without re-filling the server name, etc.
5.3 Connecting to the server
using PuTTY
Run PuTTY program, which can be freely downloaded from the server avatar in Info section. Host Name box to put the server name to which to connect. In our case we put avatar.vos.cz and enable SSH as an offer can be seen in Picture No. 18 and continue by clicking on button open.
Obr č. 18: Připojení k serveru pomocí PuTTY
Source: own
On the next screen, we putting the login and password which we have got from administrator. We use the same credentials as the logged on using Total Commander. It is important that the username was ST (eg stnovak). Login to confirm, press ENTER, and put the password. Attention, Linux can not see the characters as password length. It is due to the higher security that no one around you know how long you use a password.
The benefits of my work in creating an environment for
web applications for students who will be using my project to assist in
improving the subject of Internet technologies and programming web applications
from the websites of their own content management systems.
At the beginning I describe the history of the Linux
operating system, which is all server based. The description of the benefits of
this OS and the possibility of further extension and a description of my chosen
Debian,
We develop Apache2 web server, which is an
important part of the entire server, FTP server and ISPconfig 3, web interface
is made for a quick and simple operation of teachers and students for further
development is possible additional configuration.
The second chapter introduces the reader of my work with
the installation of the operating system, installation of components such as
web server, ftp server, etc. Finally, this chapter shows the security server
against attacks on our server, and configuring the server for the commissioning
of indoor and outdoor networks.
The third chapter focuses on the introduction and usage to
teaching, what benefit is my work for students and teachers. In this chapter I
try to show the potential traffic and ideas to maximize and simplify the work
of students and teachers.
The fourth chapter is devoted to the technical
documentation that is part of my thesis. This chapter is devoted to describing
settings of individual components for better understanding and easier
troubleshooting.
Last in ranking fifth chapter focuses on the operational
documentation that helps users whether they are teachers or students familiar
with the different server and configure the Web Interface ISPconfig which
include the creation of new but also existing users hosting registration
server.
Tomáš Šupa Hostingový server pro výuku na EPI,s.r.o.
Bakalářská práce, Evropský polytechnický institut, s.r.o. Kunovice
Vedoucí práce: Ing. Janovič Filip
Klíčové slova: hostingový server, apache, linux, debian instalace, EPI, databázový server, ISPconfig3
V rámci výuky programování jazyka PHP a internetových technologií na Evropském polytechnickém institutu, s.r.o. v Hodoníně, vznikla potřeba vytvořit webové úložiště, kde si studenti budou moci ukládat své projekty a práce do předmětů internetových technologií. Cílem bakalářské práce bylo vytvořit hostingový server pro zkvalitnění kontroly plnění zadaných úkolů a projektů vyučujícími s možností přístupu na server z vnitřní, ale i z venkovní sítě. Tím se zkvalitní a z efektivní výuka na Evropském polytechnickém institutu, s.r.o. v oboru elektronické počítače.
Key words: server hosting, apache, linux, debian installation, EPI, database server, ISPconfig3
In the context of teaching programming language PHP
and web technologies to the European Polytechnical Institute, Ltd. in Hodonin,
there was a need to create a Web site where students can save their projects
and work in their technological articles. The aim of this thesis was to create
a hosting server for improving control performance of assigned tasks and
projects that enable teachers to access the server from not only inside but
also from outside the network. This will improve the effectivity and
quality of teaching at the European Polytechnical Institute Ltd. in the field
of electronic computers.
[1]EVI NEMETH, GARTH SNYDER, TRENT R. HEIN, ADAM BOOGS, MATT CROSSBY, NED MCCLAIN - Linux Kompletní příručka administrátora, Computer Press, a.s., 2004, ISBN: 80-722-6919-4
[2]EVI NEMETH, GARTH SNYDER, TRENT R. HEIN - Linux Kompletní příručka administrátora 2, Computer Press, a.s., 2008, SBN: 978-80-251-2410-9
[3]JON LASER - Rozumíme Unixu, Computer Press, a.s., 2002, ISBN 80-7226-706-X
[4]MATT WELSH, LAS KAUFMAN - Používáme Linux, Computer Press, a.s., 2003, ISBN:80-7226-698-5
[5]Prof. Ing. IMRICH RUKOVANSKÝ, CSc., Ing. Oldřich Kratochvíl - Počítačové sítě, Evropský polytechnický institut s.r.o, 2001
[6]DOSTÁLEK LIBOR - Velký prúvodce protokoly TCP/IP a systémem DNS, Computer Press, 2008, ISBN: 978-80-251-2236-5
[7]CARLA SCHODER - Linux, kuchařka administrátora sítě, Computer Press, a.s., 2009, ISBN: 978-80-251-2407-9
[8]MARK G. SOBELL - Mistrovství v linuxu, Computer Press, a.s., 2007, ISBN:80-251-1726-X
[9]ROBERT ECKSTEIN, DAVID COLLIER-BROWN, PETER KELLY - Samba Linux jako server v sítích windows 2, Computer Press, a.s., 2005, ISBN: 80-251-0649-7
[10]BOB TOXEN - Bezpečnost v Linuxu, Computer Press, a.s., 2003, ISBN:80-7226-716-7
[11]JAMES LEE, BRENT WARE - OpenSource vývoj webových aplikací, EAN: 9788086593432, ISBN: 8086593436
[12]BEN LONG, SSONJA SCHENK - Velká kniha digitálního videa, Computer Press, a.s., 2005, ISBN:80-251-0580-6
[13]MOHAMMERD J. KABIR - Apache server 2, Computer Press, a.s., 2003, ISBN:80-251-0319-6
[14]LARRY ULLMAN - PHP a MySql ,Computer Press, a.s., 2004, ISBN:80-251-0063-4
[15]HUGH E. WILLIAMS, DAVID LANE - PHP a MySQL ,Computer Press, a.s., 2002, ISBN: 80-7226-760-4
[16]GARY A. DONAHUE - Kompletní průvodce síťového experta, Computer Press, a.s., 2009, ISBN:978-80-251-2247-1
[17]MILAN HOTEK - Microsoft SQL Server 2008, Computer Press, a.s., 2008, ISBN:978-80-251-2466-6
[18]DAN RAHMEL: Joomla podrobný průvodce. Computer Press, a.s., 2010, ISBN:978—80-251-2714-8
[19]RODERICK W. SMITH - Linux in a Windows World, ENG, 2005, na www <http://commons.oreilly.com/wiki/index.php/Linux_in_a_Windows_World>
[20]SAMS -Teach Yourself Samba in 24 Hours, ENG, na www <http://freebooks.by.ru/view/SambaIn24h/index.htm>
[21]BINH NGUYEN - Linux Dictionary, ENG, 2008, version 0.16, na www <http://www.tldp.org/LDP/Linux-Dictionary/html/>
[22]WIKIPEDIE : otevřená encyklopedie [online]. St. Petersburg (Florida) : Wikimedia Foundation, 2001- 2010.Česká verze. Dostupná z WWW: <http://cs.wikipedia.org/>.
[23]DAN RAHMEL : Joomla! Podrobný průvodce, Computer Press, a.s., 2010, ISBN:978-80-251-2714-8
OS - Operating system
PHP - Personal Home Page, now Hypertext preprocesor
FTP - File transfer protocol
GNU - General Public License
HTML - Hyper Text Markup Language
EPI - European Polytechnic Institute
MySQL- Database server
PostgreSQL Object-relational database server
DNS - Domain Name System
SSH - Secure Shell
ISP - Internet service provider
BSD - Berkeley Software Distribution
IP - Internet Protocol
1) Logo OS Linux
2) Logo Apache
3) Logo Joomla and Wordpress
4) Installation´s Windows of OS Debian
5) Partition disks
6) Window´s installation of the package system
7) Login Windows of ISPConfig3
8) Setup of a firewall
9) Index´s page of avatar.vos.cz
10) Proposed location of the server in the network
11) Setup of the mikrotik
12) New users
13) List of users
14) Database
15) Serup of FTP connection
16) List of FTP connection in total commander
17) New FTP connections
18) Connecting to server with PUTTY
1) List of ports
Annex no. 1: Source code of page http://avatar.vos.cz/info/
Annex no. 2: Source code of page http://avatar.vos.cz
Annex no. 3: Long list of informations about memory of server cat/proc/meminfo
Annex no. 1: Source code of page http://avatar.vos.cz/info/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>avatar.vos.cz</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header{
padding: 6px ;
text-align: center;
}
.header{ background-color: #83A342; color: #FFFFFF; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="header">
<h1> AVATAR.VOS.CZ</h1><br>
</div>
<div id="content"><b>
<center> <a href="http://avatar.vos.cz/">Hlavní stránka</a> | <a href="http://avatar.vos.cz:8080/">Administrace</a><br>
Pro bližší informace, získání, nebo změny hesla pište na supa@edukomplex.cz<br>
Software ke stažení:</b>
<a href="http://www.stahuj.centrum.cz/utility_a_ostatni/prace_se_soubory/souborove_manazery/windowscommander/?g[hledano]=total&g[oz]=7.50&g[up]=a">Total commander</a> | <a href="http://www.stahuj.centrum.cz/internet_a_site/vzdalena_sprava/putty/?g[hledano]=putty&g[oz]=0.60">PuTTy</a> | <a href="http://www.stahuj.centrum.cz/vyvojove_nastroje/www-tvorba/ostatni_editory/pspad/?g[hledano]=pspad&g[oz]=4.5.4">PsPad</a> | <a href="http://www.stahuj.centrum.cz/internet_a_site/servery/webove/joomla/?g[hledano]=joomla&g[oz]=1.5.11">Joomla</a> | <a href="http://www.stahuj.centrum.cz/vyvojove_nastroje/www-tvorba/ostatni/wordpress/?g[hledano]=wordpress&g[oz]=2.9">Wordpress</a> | <a href="http://www.stahuj.centrum.cz/vyvojove_nastroje/www-tvorba/podpurne/phpbb/?g[hledano]=PHPbb&g[oz]=3.0.2">phpBB</a>
</center> <br>
<h2>Přihlašovací údaje:</h2>
<table>
<tr><b>Databáze</b></tr>
<tr><td>Login:</td><td>c3login (např. "C3novak")</td></tr>
<tr><td>Heslo:</td><td>12345</td></tr>
</table>
<table>
<tr><b>FTP</b></tr>
<tr><td>Login:</td><td>stlogin (např. "stnovak")</td></tr>
<tr><td>Heslo:</td><td>12345</td><tr>
</table>
<table>
<tr><b>Shell</b></tr>
<tr><td>Login:</td><td>stlogin (např. "stnovak")</td></tr>
<tr><td>Heslo:</td><td>12345</td></tr>
</table>
<h2><b>Připojení k webovému serveru pomocí FTP:</b></h2>
Pro připojení k serveru využijeme program <b>Total Commander.</b>
Po spuštění Total commanderu klikneme v <br>horní liště na ikonu <b>FTP – připojit se…</b> (obr. 1) <br><br>
<img src="img1.jpg" />
<br><br>
Otevře se nám okno (obr. 2), kde máme na možnost spravovat FTP účty. Pokud máme účet vytvořený <br>
tak pouze stačí vybrat účet a kliknout na <b>Připojit</b>. Pokud zatím nemáme žádný účet vytvořený tak <br>
klikneme na tlačítko <b>Nové připojení.</b><br><br>
<img src="img2.jpg" />
<br><br>
Po kliknutí na tlačítko Nové připojení se nám otevře následující okno (obr. 3) <br><br>
<img src="img3.jpg" />
<br><br>
Na následujícím okně vyplníme políčka následovně: <br>
<b>Relace: webový server EPI </b>(do tohoto políčka můžeme dát libovolný text- jde jenom o název připojení.<br>
<b>Hostitel: avatar.vos.cz </b>(jméno serveru na který se budeme připojovat) <br>
<b>Jméno uživatele: stfranta </b>(jde o Vaše přihlašovací jméno, před každým jménem musí být <b>st</b>!!!) <br>
<b>Heslo: strasnetajne </b>(do tohoto políčka napíšete Vaše heslo k ůčtu) <br>
Klikneme na OK a Vaše relace je uložena i pro pozdější připojení k serveru bez opakovaného vyplňování jména serveru atd.
<br><br>
<h2><b>Připojení k serveru pomocí programu PuTTY</b></h2>
<br>
Spustíme program PuTTy, který můžeme volně stáhnout na serveru avatar v sekci Info. Do kolonky Host Name vložíme název serveru, ke kterému se chceme připojit. V našem případě vložíme avatar.vos.cz a zaškrtneme nabídku SSH jako můžeme vidět na obrázku č. 4 a pokračujeme kliknutím na tlačítko open.
<br><br>
<img src="img4.jpg" />
<br><br>
Na následujícím okně vkládáme login a heslo, které nám bylo přiděleno správcem sítě. Používáme stejné přihlašovací údaje jako pro přihlášení pomocí Total Commanderu. Důležité je, aby před přihlašovacím jménem bylo ST (např. stnovak). Login potvrdíme stisknutím klávesy enter a vkládáme heslo. Pozor, v systému Linux se nezobrazují znaky jako délka hesla. Je to díky vyššímu zabezpečení, aby nikdo ve Vašem okolí nevěděl, jak dlouhé používáte heslo.
</div>
<div id="footer">
<p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p>
<p>supa@edukomplex.cz</p>
</div>
</div>
</body>
</html>
Annex no. 2: Source code of page http://avatar.vos.cz
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>avatar.vos.cz</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="robots" content="noindex" />
<style type="text/css"><!--
body {
color: #444444;
background-color: #EEEEEE;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {}
h2 { font-size: 1.2em; }
#page{
background-color: #FFFFFF;
width: 60%;
margin: 24px auto;
padding: 12px;
}
#header{
padding: 6px ;
text-align: center;
}
.header{ background-color: #83A342; color: #FFFFFF; }
#content {
padding: 4px 0 24px 0;
}
#footer {
color: #666666;
background: #f9f9f9;
padding: 10px 20px;
border-top: 5px #efefef solid;
font-size: 0.8em;
text-align: center;
}
#footer a {
color: #999999;
}
--></style>
</head>
<body>
<div id="page">
<div id="header" class="header">
<h1> AVATAR.VOS.CZ</h1>
<h2>hosting server</h2>
</div
<div id="content">
<h2><a href="http://avatar.vos.cz:8080/">ADMINISTRACE</a> | <a href="http://avatar.vos.cz/phpmyadmin/">DATABAZE MySql</a> | <a
href="http://avatar.vos.cz/info/">PŘIPOJENÍ K SERVERU</a></h2>
<div style=font-size:9px;position:fixed;right:0px;top:0px><a href="http://www.somemyspacecodes.com"><img src="http://myspace-462.vo.llnwd.n$
<h3>Výpis:</h3>
<b>Učitelé:</b><br>
<a href="http://avatar.vos.cz/petrucha/">Petrucha</a> |
<a href="http://avatar.vos.cz/janovic/">Janovic</a> |
<a href="http://avatar.vos.cz/horvath/">Horvath</a> |
<a href="http://avatar.vos.cz/seda/">Seda</a>
<br><br>
<b>3HP</b><br>
<a href="http://avatar.vos.cz/bartonova/">Bartonova</a> |
<a href="http://avatar.vos.cz/bobekova/">Bobekova</a> |
<a href="http://avatar.vos.cz/holicky/">Holicky</a> |
<a href="http://avatar.vos.cz/kourek/">Kourek</a> |
<a href="http://avatar.vos.cz/novak/">Novak</a> |
<a href="http://avatar.vos.cz/pastorek/">Pastorek</a> |
<a href="http://avatar.vos.cz/pukancikova/">Pukancikova</a> |
<a href="http://avatar.vos.cz/shorty/">Supa</a> |
<a href="http://avatar.vos.cz/tobolova/">Tobolova</a> |
<a href="http://avatar.vos.cz/tomaskova/">Tomaskova</a> |
<a href="http://avatar.vos.cz/turkovic/">Turkovic</a>
<br><br>
<b>2HP</b><br>
<a href="http://avatar.vos.cz/bucek/">Buček</a> |
<a href="http://avatar.vos.cz/husa/">Husa</a> |
<a href="http://avatar.vos.cz/knapil/">Knapil</a> |
<a href="http://avatar.vos.cz/kocian/">Kocian</a> |
<a href="http://avatar.vos.cz/kosek/">Kosek</a> |
<a href="http://avatar.vos.cz/krivanek/">Křivánek</a> |
<a href="http://avatar.vos.cz/kupec/">Kupec</a> |
<a href="http://avatar.vos.cz/pekar/">Pekar</a> |
<a href="http://avatar.vos.cz/samalik/">Šamalík</a> |
<a href="http://avatar.vos.cz/taus/">Tauš</a> |
<a href="http://avatar.vos.cz/valina/">Valina</a> |
<a href="http://avatar.vos.cz/zelenka/">Zelenka</a>
<br><br>
<b>2HI</b><br>
<a href="http://avatar.vos.cz/buchta/">Buchta</a> |
<a href="http://avatar.vos.cz/dvorsky/">Dvorský</a> |
<a href="http://avatar.vos.cz/hasak/">Hasák</a> |
<a href="http://avatar.vos.cz/havlicek/">Havlíček</a> |
<a href="http://avatar.vos.cz/hepal/">Hépal</a> |
<a href="http://avatar.vos.cz/lukac/">Lukáč</a> |
<a href="http://avatar.vos.cz/ruzicka/">Růžička</a> |
<a href="http://avatar.vos.cz/vrablik/">Vrablík</a>
<br><br>
<b>1HI</b><br>
<a href="http://avatar.vos.cz/brezina/">Brezina</a> |
<a href="http://avatar.vos.cz/bilicky/">Bilický</a> |
<a href="http://avatar.vos.cz/filipek/">Filípek</a> |
<a href="http://avatar.vos.cz/grof/">Gróf</a> |
<a href="http://avatar.vos.cz/hnatovic/">Hnátovič</a> |
<a href="http://avatar.vos.cz/kucera/">Kučera</a> |
<a href="http://avatar.vos.cz/macura/">Macura</a> |
<a href="http://avatar.vos.cz/schmidt/">Schmidt</a> |
<a href="http://avatar.vos.cz/schuller/">Schüller</a> |
<a href="http://avatar.vos.cz/sloboda/">Sloboda</a> |
<a href="http://avatar.vos.cz/smetana/">Smetana</a> |
<a href="http://avatar.vos.cz/suchovska/">Suchovská</a> |
<a href="http://avatar.vos.cz/slahor/">Šlahor</a> |
<a href="http://avatar.vos.cz/svenda/">Švenda</a> |
<a href="http://avatar.vos.cz/travnicek/">Trávníček</a> |
<a href="http://avatar.vos.cz/vizibla/">Vizibla</a>
<br><br>
<b>1HP</b><br>
<a href="http://avatar.vos.cz/bartos/">Bartoš</a> |
<a href="http://avatar.vos.cz/belianskz/">Belianský</a> |
<a href="http://avatar.vos.cz/duchoslavm/">DuchoslavM</a> |
<a href="http://avatar.vos.cz/duchoslavo/">DuchoslavO</a> |
<a href="http://avatar.vos.cz/ivan/">Ivan</a> |
<a href="http://avatar.vos.cz/jelinek/">Jelínek</a> |
<a href="http://avatar.vos.cz/kocinak/">Kociňák</a> |
<a href="http://avatar.vos.cz/konecnyr/">KonečnýR</a> |
<a href="http://avatar.vos.cz/konecnyd/">KonečnýD</a> |
<a href="http://avatar.vos.cz/majer/">Majer</a> |
<a href="http://avatar.vos.cz/mokrohajsky/">Mokrohajský</a> |
<a href="http://avatar.vos.cz/novako/">Novák</a> |
<a href="http://avatar.vos.cz/oravec/">Oravec</a> |
<a href="http://avatar.vos.cz/osicka/">Osička</a> |
<a href="http://avatar.vos.cz/subin/">Šubín</a> |
<a href="http://avatar.vos.cz/svrcek/">Švrček</a> |
<a href="http://avatar.vos.cz/turanyi/">Turányi</a> |
<a href="http://avatar.vos.cz/valach/">Valach</a> |
<a href="http://avatar.vos.cz/voburka/">Vobůrka</a> |
<a href="http://avatar.vos.cz/svoboda/">Svoboda</a>
<br><br>
<img src="http://avatar.vos.cz/info/linux.jpg" width="100" align="right" height="100" alt="Linux">
<br><br>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
Annex no. 3: Long list of informations about memory of server cat/proc/meminfo
MemTotal: 126512 kB
MemFree: 15864 kB
Buffers: 5808 kB
Cached: 28472 kB
SwapCached: 25452 kB
Active: 85568 kB
Inactive: 10352 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 126512 kB
LowFree: 15864 kB
SwapTotal: 369452 kB
SwapFree: 160432 kB
Dirty: 432 kB
Writeback: 0 kB
AnonPages: 61024 kB
Mapped: 8780 kB
Slab: 8476 kB
SReclaimable: 4264 kB
SUnreclaim: 4212 kB
PageTables: 1976 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 432708 kB
Committed_AS: 675148 kB
VmallocTotal: 901112 kB
VmallocUsed: 2476 kB
VmallocChunk: 898460 kB
HugePages_Total: 0
HugePages_Surp: 0
Hugepagesize: 4096 kB
[1] Operating system - was used as an OS for servers, workstations and PCs, now and in the household. OS with free source code. GNU license consists entirely of free software.
[2] EVI NEMETH, GARTH SNYDER, TRENT R. HEIN, ADAM BOOGS, MATT CROSSBY, NED MCCLAIN - Linux Kompletní příručka administrátora, page 24.
[3] Prof. Ing. IMRICH RUKOVANSKÝ, CSc., Ing. Oldřich Kratochvíl - Počítačové sítě, page 116.
[4] DAN RAHMEL : Joomla! Podrobný průvodce, page 13
[5] DAN RAHMEL : MARK G. SOBELL - Mistrovství v linuxu, page 48
[6] DAN RAHMEL : MARK G. SOBELL - Mistrovství v linuxu, page 135
[7] Prof. Ing. IMRICH RUKOVANSKÝ, CSc., Ing. Oldřich Kratochvíl - Počítačové sítě, page 115.