25
Ubuntu Boot Camp 2013 The Freedom Is Yours!!

Day 6 ubuntu boot camp

Embed Size (px)

DESCRIPTION

Ubuntu Boot Camp which Darlene facilitated at Costech (Commission for Science & Technology) in Dar Es Salaam Tanzania. We had a full house of enthusiastic users looking for hands on knowledge of Ubuntu & Open Source

Citation preview

Page 1: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013The Freedom Is Yours!!

Page 2: Day 6 ubuntu boot camp

For a overview of Ubuntu Server 12.04, visit this website:

https://help.ubuntu.com/12.04/serverguide/index.html

Ubuntu Boot Camp 2013Basic Server Installation

Page 3: Day 6 ubuntu boot camp

Tanzania is not shown in the list, so we select other, and choose Africa, then we select Tanzania. The same principal about updates and correct location that we discussed on the desktop side also applies for the server

Ubuntu Boot Camp 2013Basic Server Installation

Page 4: Day 6 ubuntu boot camp

Tanzania is not shown in the list, so we select other, and choose Africa, then we select Tanzania. The same principal about updates and correct location that we discussed on the desktop side also applies for the server

Ubuntu Boot Camp 2013Basic Server Installation

Page 5: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 6: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 7: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Host Name: Based on the naming protocol in your organization. For example we name our servers such as Top Gun or it could be location related..Costech1

Page 8: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Admin Account..same principal as on the desktop side as the Root account is disabled by default, this account will allow you to assume sudo privileges.Create a user, for example the user Administrator with the user name administrator (don't use the user name admin as it is a reserved name on Ubuntu 12.04):

Page 9: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Create a user, for example the user Administrator with the user name administrator (don't use the user name admin as it is a reserved name on Ubuntu 12.04):

Page 10: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

For this example we don't need to have an encrypted private directory, so choose No.

Page 11: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Now you have to partition your hard disk. For this exercise select Guided - use entire disk and set up LVM - this will create one volume group with two logical volumes, one for the / file system and another one for swap (of course, the partitioning is totally up to you - if you know what you're doing, you can also set up your partitions manually).

Page 12: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 13: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 14: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 15: Day 6 ubuntu boot camp

Once a disk is partitioned, an OS must have some way to access the data on the partitions. In DOS and Windows, this is done by assigning a drive letter, such as C: or D:, to each partition. (DOS and Windows use partition type codes to decide which partitions getdrive letters and which to ignore.)

Linux, though, doesn’t use drive letters; instead, Linux uses a unified directory tree. Each partition is mounted at a mount point in that tree. A mount point is a directory that’s used as a way to access the filesystem on the partition, and mounting the filesystem is the process of linking the filesystem to the mount point.

For instance, suppose that a Linux system has three partitions: the root (/) partition,/home, and /usr. The root partition holds the basic system files, and all other partitions areaccessed via directories on that filesystem.

If /home contains users’ home directories, such as sally and sam, those directories will be accessible as /home/sally and /home/sam once this partition is mounted at /home. If this partition were unmounted and remounted at /users, the same directories would become accessible as /users/sally and /users/sam.

Ubuntu Boot Camp 2013Partitioning Overview

Page 16: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Partitioning Overview

Page 17: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 18: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 19: Day 6 ubuntu boot camp

Ubuntu Boot Camp 2013Basic Server Installation

Page 20: Day 6 ubuntu boot camp
Page 21: Day 6 ubuntu boot camp

After the reboot, you can login with your previously created username (eg.Administrator) Because we must be root for the rest of this process, either we start each command with sudo

or we can become root now by typing: sudo su

Or you may activate your root account by creating the password....

sudo passwd root

Install a text editor for our work. I prefer to use Nano.

sudo apt-get install nano

Ubuntu Boot Camp 2013Basic Server Installation

Page 22: Day 6 ubuntu boot camp

ssh: secure shell access

Install ssh on both the your own computer and the remote computer/server you would like to administer.

CODE: sudo apt-get install ssh

(If you get an error that it can't find a package, run apt-get update first)

IP address of remote machine: you will need the IP address whether it is static or dynamic in order to connect. If you are on the same subnet then it will be straightforward. However if you are coming from outside the network, the net admin will have to enable port 22 on the router in order for you to have access

Password of admin or root account: In order to you to do the tasks required on the command line you will need to be able to login to the machine

Ubuntu Boot Camp 2013SSH Access for troubleshooting

Page 23: Day 6 ubuntu boot camp

Static IP Address

Your server should be configured with a static IP address for several reasons and you will need to know the information in the image below

CODE: sudo nano /etc/network/interfaces

Then restart your network....

CODE: sudo /etc/init.d/networking restart

Ubuntu Boot Camp 2013Setting Static IP Address

Page 24: Day 6 ubuntu boot camp

OpenLDAP: is an open source implementation of the Lightweight Directory Access Protocol. It is an alternative to MS Active Directory.

Site - openldap.org

Postfix: a mail server SMTP program which is an alternative to Sendmail

Site: postfix.org

LAMP: Linux Apache MySQL Php stack

https://help.ubuntu.com/community/ApacheMySQLPHP

PhpMyAdmin: a tool written in PHP to adminster MYSQL databases over the web,

Site - phpmyadmin.net

Asterisk: Asterisk turns an ordinary computer into a communications server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and other custom solutions.

Site - asterisk.org

Dansguardian: It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering.

Site - dansguardian.org

Ubuntu Boot Camp 2013Common Open Source Programs to Install on Your Server

Page 25: Day 6 ubuntu boot camp

Thank you !