Search This Blog

Friday, January 29, 2010

Keys I missed on an Apple keyboard

Well to all of you movers to Apple here is a list of the most missed keys on my Apple Keyboard:

Tilde : ~ ALT-N
Pipe : | ALT-7
curly bracket : {} ALT-8/9
square bracket: [] ALT-5/6

End of line : CMD-right
Start of line: CMD-left
Begin of doc : CMD-UP
End of doc : CMD-DOWN
Jump word : ALT-left/right

Generate a self signed SSL cert for your webserver

Well this is I guess the quickest way to generate a self signed SSL cert:


Step 1: Generate a Private Key
openssl genrsa -des3 -out server.key 1024


Step 2: Generate a CSR (Certificate Signing Request)
openssl req -new -key server.key -out server.csr


Step 3: Remove Passphrase from Key
openssl rsa -in server.key.org -out server.key


Step 4: Generating a Self-Signed Certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt


Step 5: Installing the Private Key and Certificate
cp server.crt /etc/apache2/ssl
cp server.key /etc/apache2/ssl


Step 6: Configuring SSL Enabled Virtual Hosts

SSLEngine on
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

Password after standby Windows

Well one of the things which are really bugging me when I run Windows as a HTPC OS is the default setting for wake up after standby. The default will lock your machine, which is totally useless for an HTPC. To get rid of this just:

  • Go to the Power Options (or I guess Energy Options in Vista or Win7)
  • Search within the list for standby
  • Select "Prompt for password when computer resumes from standby"
et voila

Password expired Windows 7

The default setting in Windows 7 for your password policies is an expiry time about 42 days. If you want to get rid of this just do

  • Start->lusrmgr.msc
  • Select your user and check "Password never expires"

Betriebszustände

ACPI-Betriebszustände für die Energieverwaltung eines PCs

ACPI Beschreibung Leistungsaufnahme
S0 Normalzustand, einzelne Komponenten können sich im Standby-Modus befinden, Leistungsaufnahme je nach Auslastung 40 bis 200 Watt
S1 Bildschirm ist aus, kaum sparsamer als S0, CPU: C1 bis C3 40 bis 100 Watt
S2 wie S1, wird in der Praxis fast nie benutzt 40 bis 100 Watt
S3 System schläft, Daten befinden sich im Hauptspeicher, Aufwachzeit innerhalb weniger Sekunden, Betriebszustand wird als Suspend-to-RAM bezeichnet 2 bis 15 Watt
S4 System schläft, Daten werden auf der Festplatte gespeichert, Aufwachzeit innerhalb einer Minute, Betriebszustand wird als Suspend-to-Disk bezeichnet 1 bis 10 Watt
S5 PC lässt sich per Taster starten 1 bis 10 Watt
G3 Netzteil ist vom Stromnetz getrennt 0 Watt
C0 Prozessor arbeitet normal, verschiedene P-States möglich 10 bis 130 Watt
C1 Prozessor im leichten Schlafzustand (Halt-Befehl), Wechsel zwischen C0 und C1 mehrmals pro Sekunde möglich 10 bis 30 Watt
C2/C3 Prozessor in tieferen Schlafzuständen 7 bis 15 Watt
C4... Prozessor in noch tieferen Schlafzuständen, vorwiegend Mobilprozessoren