BACK2SCHOOL BACK2LINUX // RUNNING UBUNTU SERVER ON A VIRTUAL BOX ON UBUNTU // ASSINGMENT 1

I’ve had a quite a break on this blog and Linux-stuff in general. Here’s the first assignment of the “Linux as a Server” -course I’m taking this semester. Also decided on posting in English this time.

The workstation’s specs here.
sudo lshw -html > specs.html

Today’s assignment was the following;
-Run Ubuntu Server on Virtualbox. Install Apache so that a website can be created in the default folder.
-Change the current folders owner and group and also user rights following the steps provided
-Create users Tupu, Hupu, Lupu and Aku.
-Create a user group called “kehittajat” and include Tupu, Hupu and Lupu in it
-Grant Aku sudo rights
-Grant Tupu access into www-data -group

Step 1.

I installed Ubuntu 14.04.1 LTS in to the current workstation, and ran a few necessary commands;
sudo apt-get update
sudo apt-get upgrade

After this I installed Virtualbox
Selection_005
After installation it will boot up simply by this command
Selection_006

 

Step 2.

Next step is to install Ubuntu Server on Virtualbox.
I downloaded Ubuntu Server from here.

I created a new virtual machine using all default setting, except I did boost the memory up to 1.5gb. Otherwise every setting is as it was. Here you can see the overview of the virtual machine:
ubuntu

I installed Ubuntu Server using default settings as well. Since I’m only doing this locally, there was no need to setup proxies or any fancy stuff like that.

Selection_008

The completed installation looks like this:

server

 

Step 3 –  managing group setting / adding users

Next step is to change the directory’s owner and group as well as the user rights. It is done with these commands:
(you need to be located in /var/www)

sudo usermod -a -G www-data juho
sudo chgrp -R www-data /var/www
sudo chmod -R g+w /var/www

Creating the needed users:
users

Creating the user group:

createnewgroup

Granting the users rights into the new group:

kehittajat

Step 4 – Granting rights to users

Granting Tupu the rights into www-data

tupuwww

Giving Aku sudopowes:

akunoikeudet

 

Step 4 – Setting up Apache

Installing Apache web server is done with the following command:
       sudo apt-get install apache2

html

koodi

 – Assignment completed. Users are now assigned to their groups and granted the rights they  should have. The web server is also set up

Problems occurred: 

No significant problems occurred during the assignment, the assignment itself was relatively simple.

However, playing around with Virtualbox, me and many of my colleagues noticed a problem with running Ubuntu LTS 14.04.1 with Virtualbox. The problem was, that the screen size/resolution didn’t scale properly with the Virtualbox client. Easy fixes to this can be found online, but I decided to solve this in a different way: using a different distribution.

Linux Mint 17 runs perfectly with Virtualbox, and offers everything that Ubuntu has to offer as well. Mint uses the same repository for as Ubuntu – aptitude as well, so  there are no problems in this regard.

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s