Author Archives: a1100320

About a1100320

IT student, musician, gamer. Beep boop.

Linuxin keskitetty hallinta – Final assignment – Lighttpd (userdir enabled) and Varnish with Puppet

Lighttpd and Varnish module with Puppet (Linux) Course homepage: http://terokarvinen.com/2012/aikataulu-linuxin-keskitetty-hallinta-ict4tn011-3 1) Introduction This article describes a puppet module which: installs lighttpd and varnish enables userdir for lighttpd configures lighttpd to listen to port 8080 configures varnish to listen to port 80 … Continue reading

Posted in Linuxin keskitetty hallinta ICT4TN011-3 | Leave a comment

Linuxin keskitetty hallinta – Homework 4 – GIT

Homework topic: GIT Course homepage: http://terokarvinen.com/2012/aikataulu-linuxin-keskitetty-hallinta-ict4tn011-3 Main source for this exercise: http://terokarvinen.com/2012/git-from-offline-to-network Assignment -Make a local git repository -Make multiple nonsensical commits and return your repository to an earlier point with git reset -Copy your local repository to a server -Clone your … Continue reading

Posted in Linuxin keskitetty hallinta ICT4TN011-3 | Leave a comment

Quick steps to enable SSL for your Apache website (Debian squeeze)

Make your site use HTTPS (and force it) This article assumes you have basic Linux knowledge and have installed Apache2. Enable SSL sudo a2enmod ssl sudo service apache2 restart Make a directory for the keys sudo mkdir /etc/apache2/ssl Create .key … Continue reading

Posted in Uncategorized | Leave a comment

Linuxin keskitetty hallinta – Homework 3 – The trifecta (Package/file/service)

Course homepage: http://terokarvinen.com/2012/aikataulu-linux-palvelimena-ict4tn003-7-ict4tn003-kevaalla-2013 Assignment Create package/file/service modules for apache2 and sshd. Environment To keep things fresh, I’ll be using a Debian live CD for the first module and an installed Xubuntu system for the second one. Debian The system will … Continue reading

Posted in Linuxin keskitetty hallinta ICT4TN011-3 | Leave a comment

Linuxin keskitetty hallinta – Homework 2 – Modules, templates, facter

Course homepage: http://terokarvinen.com/2012/aikataulu-linuxin-keskitetty-hallinta-ict4tn011-3 This is piece of homework is pretty shoddy as I was taken by surprise by the earlier-than-usual deadline. Assignment Study: http://docs.puppetlabs.com/learning/modules1.html http://docs.puppetlabs.com/learning/templates.html http://www.puppetcookbook.com/posts/list-facter-facts.html and create example modules about each article. Modules Basic Let’s create the necessary directory … Continue reading

Posted in Linuxin keskitetty hallinta ICT4TN011-3 | Leave a comment

Linuxin keskitetty hallinta – Homework 1 – Hello Puppet

Course homepage: http://terokarvinen.com/2012/aikataulu-linuxin-keskitetty-hallinta-ict4tn011-3 Updated 4.4.2013 to make use of updated module instructions at http://terokarvinen.com/2013/hello-puppet-revisited-%E2%80%93-on-ubuntu-12-04-lts Environment I’ve set up a virtual machine in Virtualbox, running Xubuntu 12.10, for use during the course. The main user is master the computer name is palvelin … Continue reading

Posted in Linuxin keskitetty hallinta ICT4TN011-3 | Leave a comment

add database like phpmyadmin does

create user and database erkkiwp CREATE USER ‘erkkiwp’@’localhost’ IDENTIFIED BY ‘***’; GRANT USAGE ON * . * TO ‘erkkiwp’@’localhost’ IDENTIFIED BY ‘***’ WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; CREATE DATABASE IF NOT EXISTS `erkkiwp` ; GRANT … Continue reading

Posted in Linux palvelimena ICT4TN003-4 | Leave a comment