Monthly Archives: June 2012

Hosting multiple websites with Apache2

http://www.debian-administration.org/articles/412
http://fob.po8.org/node/289

If you are running multiple websites with Apache2 with mixed ports (usually http port 80, https port 443) change following configuration files. Variable NameVirtualHost should be only in file virtual.conf, find and comment it in other configuration files!

FOB: I recently reported being stuck trying to set up multiple SSL name-based virtual hosts on the same IP address with non-SSL name-based virtual hosts. Soon after, I figured it out. Shortly after that, one of my students suggested the same solution to me.

/etc/apache2/conf.d/virtual.conf

#
# We're running multiple virtual hosts.
#
NameVirtualHost *:80
NameVirtualHost *:443

/etc/apache2/sites-enabled

<VirtualHost *:80>
ServerAdmin webmaster@zviretnik.eu
ServerName zviretnik.eu
ServerAlias www.zvietnik.eu
...

<VirtualHost *:443>
ServerAdmin webmaster@zviretnik.eu
ServerName www.zviretnik.eu
ServerAlias zviretnik.eu
...

The ports 80 and 443 should be also defined in following configuration file.

/etc/apache2/ports.conf

Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>

Also check your /etc/hosts file, if DNS name and IP address is correct.

127.0.0.1 localhost zviretnik.eu
94.143.171.113 zviretnik.eu zvire

Přírodní recepty

Přírodní projímadlo (uchovávat max. 2-4 dny)

6-8 čerstvých fíků, miska Kasie sennové nebo úzkolisté (Cassia senna / angustifolia), 100 g cukru, 1 limetka
vylouhovat kasii, scezený vývar rozmixovat s fíky
hmotu přivést k varu se 100 g cukru, odstavit a smíchat s 1/2 limetkové šťávy

Gel proti akné (uhovávat max. 6 týdnů)

měsíček (calondola oficialis), sklidit hned po rozkvětu
smíchat hrst květů měsíčku a hrst levandule s kakustem bahenním zalít 2,5 dcl horké vody
louhovat max. 10 min., rozmixovat a scedit přes síto s látkou
do roztoku přidat kolagen (vegetariánská želatina smíchaná s 2 lžícemi vody)
nechat schladnout, přidat pár kapek tee tree oil a 1 panáka vodky

FreeNX remote desktop access

https://help.ubuntu.com/community/FreeNX

FreeNX is a system that allows you to access your desktop from another machine over the Internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a FreeNX server set up on your home computer, and graphically logging in to the home computer from your work computer, using a FreeNX client.

It’s Open Source, secure (SSH based), fast and versatile! License: GPL

FreeNX server:

sudo add-apt-repository ppa:freenx-team
sudo apt-get install python-software-properties
sudo sed -i 's/natty/lucid/g' /etc/apt/sources.list.d/freenx-team-ppa-natty.list
sudo apt-get update
sudo apt-get install freenx
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install
scp /var/lib/nxserver/home/.ssh/client.id_dsa.key client-user@cliet-machine:/~
sudo /etc/init.d/freenx-server start

By default, nxserver uses port 22 for communicating over SSH.
/etc/ssh/sshd_config
/etc/nxserver/node.conf

# The port number where local ‘sshd’ is listening.

SSHD_PORT=22

FreeNX client:
sudo apt-get install qtnx

Firefox favorite addons and settings

WOT – Safe Browsing Tool
Tab Mix Plus
Firefox Sync
FlashGot
NoScript
Cookie Monster
Flagfox
User Agent Switcher
Google Hangouts

Adobe – Flash Player: Settings manager – Global Storage Settings panel:

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html

Panopticlick tests your browser to see how unique it is:
https://panopticlick.eff.org/

Multimedia plug-in for Gecko browsers
aptitude install gecko-mediaplayer