HTPC a NAS configuration

Aktuální HW konfigurace – položky: skříň: Cooler Master Elite 361 základní deska: ASUS P8H61-M PRO (rev 3.0) CPU: Intel Pentium G630T RAM: Kingston 4GB KIT DDR3 1600MHz CL9 HyperX blu Edition SSD: ADATA Premier SP800 32GB HDD: Western Digital Green 2000GB 64MB cache (2x) NIC: AXAGO PCEE-GR Zdroj: Chieftec GPS-450A Chladič: Zalman CNPS8900 quiet Monitor: … Read more

Apache2 security – mod_rewrite, mod_security

Enable mod_rewrite in Apache2 http://www.grosseosterhues.com/2011/07/enabling-mod-security-protection-in-apache2-on-ubuntu/ http://www.linuxlog.org/?p=135 a2enmod rewrite /etc/apache2/sites-available/000-default Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all /etc/init.d/apache2 restart .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Enable mod_evasive and mod_security in Apache2 aptitude install libapache-mod-security libapache2-mod-evasive a2enmod … Read more

SSH Port Forwarding (SSH Tunneling)

http://www.linuxhorizon.ro/ssh-tunnel.html Syntax: ssh -L localport:host:hostport user@ssh_server -N where: -L – port forwarding parameters (see below) localport – local port (chose a port that is not in use by other service) host – server that has the port (hostport) that you want to forward hostport – remote port -N – do not execute a remote command, … Read more

Installing WordPress on Ubuntu

http://www.ubuntugeek.com/installing-wordpress-3-0-on-ubuntu-10-04-lucid-lynx.html Installation apt-get install apache2 libapache2-mod-php5 mysql-server php5-mysql php5-curl php5-gd libssh2-php cd /var/www/ wget http://wordpress.org/latest.tar.gz tar -zxvf latest.tar.gz ls -la chown -R www-data:www-data wordpress rm -f latest.zip Apache /etc/apache2/sites-available/wordpress.conf <VirtualHost *:80>         ServerAdmin my@email.com         ServerName www.example.org         ServerAlias example.org         DocumentRoot /var/www/wordpress         Redirect permanent / https://www.example.org/         ErrorLog /var/log/apache2/example.org-error.log         # Possible values include: debug, info, notice, warn, error, crit, … Read more