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
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
Next step is to install Ubuntu Server on Virtualbox.
I downloaded Ubuntu Server from here.
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.
The completed installation looks like this:
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 user group:
Granting the users rights into the new group:
Step 4 – Granting rights to users
Granting Tupu the rights into www-data
Giving Aku sudopowes:
Step 4 – Setting up Apache
Installing Apache web server is done with the following command:
sudo apt-get install apache2
– Assignment completed. Users are now assigned to their groups and granted the rights they should have. The web server is also set up
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.