In this post I’m doing an assignment for Tero Karvinen’s course on linux servers. The assignment is to create a name based virtual server with a domain pointing to it. I decided to use Amazon’s EC2, since it has a free tier and I have already used it once before. Setting up Once I already More…
Month: September 2015
An extremely simple commented PDO example
I made a fast and extremely simple example of PHP’s own PDO class to handle a MySQL database for my class example. We will need a database table called ‘task’ in a MySQL server running on localhost for this to work. The table contains two fields: id INT(6) NOT NULL AUTO_INCREMENT PRIMARY KEY name VARCHAR(64) More…
Building and installing a ‘.deb’ package that adds an executable script to all users
This is a part two (link to part one) for my home assignment for Tero Karvinen’s course on linux servers. On this part I will build and install a package that will add an executable shell script and an alias for it for all users. Now to create a new package with a shell script More…
Building a metapackage and a local package repository
In this post I’m doing a home assignment for Tero Karvinen’s course of linux servers. The assignment is to build a metapackage that installs a bunch of software in a single package, to create a local package repository and to package a script so it installs a new command to all users. I’m going to do this More…
Protecting your SSH server from brute force attacks
If your server is online and out there, it’s probably being already attacked by someone with brute force. This means that someone is running a script trying to guess your root password so it can use your hardware for benefit. I ran into this problem recently after just weeks of publishing my website. You can More…
Solving Honeynet scan of the month 15
In this post I’m doing an assignment given by Tero Karvinen on his Linux server course about computer forensics by solving one of the honeynet scan of the month. I’m going to do this on my desktop computer. The computer is i5-3570k (4X, 3,8GHz, 6M) 16GB RAM, 2x Asus GeForce GTX 560 TI in SLI mode. Using More…
Buffalo WHR-300HP2 port forwarding fix with DD-WRT
Hi! Did you also buy a Buffalo AirStation WHR-300 router and are thinking your head through how to get the port forwarding to work. I did. I tried every possible thing and different firewall software and different computers, even updated the firmware of the router and still nothing. I decided to go for it and search More…
Analyzing and stressing Ubuntu 14.04 with munin and stress
Hello! In this post I’m doing an assignment for my Linux course in my school held by Tero Karvinen using Xubuntu 14.04.3 LTS. I will be using the same installation I used in the previous post on VirtualBox. To get started, I needed to install munin. It requires Apache to work, which I had already. Installing Munin sudo apt-get update More…
Installing LAMP with MariaDB and PhpMyAdmin on Ubuntu 14.04
Hi! In this post I’m recreating Tero Karvinen’s Linux test for his class he made in 2012. The assignment Me Karttakatu Oy:ssä teemme karttoihin liittyviä weppisovelluksia. Olemme muutaman hengen yritys. Asenna työasema, jolla tavallisimmat toimistotyöt onnistuvat (weppisurffailu, tekstinkäsittely). (Asentuessa voit käydä kommentoimassa kavereiden blogeja). Työntekijämme ovat Einari Vähäkäähkä, Pekka Winha, Åke Andersson ja Leila Laila. More…