Skip navigation.

Carstens Blog

gefangen in einer digital Welt

STICKY POST

Willkommen

, , ,

Hallo und herzlich Willkommen auf meiner Opera Community Page. Hier blogge ich ueber Freeware, MacOSX, die Community, Adobe Flex und Java. Und alles was ich sonst noch so finde.

Vorab ein paar wichtige Links :
iusethis on my mac - www.apple.de - www.maclife.de - macuser.de Forum - fscklog.com

Und Ihr bekommt hier eine Sammlung an Links, zu Webseiten rund um das Apple System, OpenSource/Freeware, Scripting und Development. Alle zusammengefasst in diesem Blog-beitrag, da es fuer die Links-Sektion einfach zu viele sind.

Apple MAC OS X - Automator - Software / OpenSource / Freeware - Scripting - Development
(last update : 09.Oktober 2008)

Read more...

Umgezogen - neue Blog URL

Hallo liebe Freunde, Leser und Unbekannte die sich hier her verirrt haben.
Es wird bald einen neuen Blog geben. Wo und wie und wann werde ich in den naechsten Tagen bekannt geben.

mfg cb

Apache Installieren und MUNIN

,

Als Root anmelden
su -

Apache, PHP, MySQL und Apache-PHP Modul installieren, der MySQL Dialog kann mit Standardwerten beendet werden.
Code:
apt-get install apache2 mysql-server php4 libapache2-mod-php4

Dann erstmal das MySQL Kennwort festlegen und warten.
Wenn das alle installiert ist kann man mit einem Browser testen ob es funktioniert hat.
Dazu einfach die IP des Rechners in einen Browser eingeben.

Dann installieren wir noch MUNIN


How-To: Monitoring a Server with Munin

Munin is a simple to configure tool that make real nice graph about your server status. It can actually deal with almost any aspect of your server (load average, network cards status, CPU usage, memory usage, postfix, exim4, mysql ...) without spending much time in configuring it.

Munin produce MRTG likes graph so you can easily see how your server health is going.

munin cpu graphmunin cpu graphmunin ethernet graphmunin ethernet graph
This tutorial will show you how to set up Munin to gather statistics of a single server, but keep in mind that Munin can be deployed throughout a whole network, but beware that there is no real no security measure (such as authentication ...) taken by munin.
To be able to access the datas gathered by munin, we are going to set up a virtual apache server. Those datas will only be accessible to authenticated users using apache mod_auth_digest (a more secure authetication protocol).
1. Installing and Configuring Munin

munin is composed of a master and client nodes. What happens basically, is that every client (node) runs munin-node and then the master regularly query the different node to gather and process datas.
1.1. Installing Munin

In our case, wa are going to run the master and the client on the same computer. The packages we need to install are munin and munin-node, so here we go, open a shell and type:

$sudo apt-get install munin munin-node

Now that it is installed, it is about time to go and tweak up some files so we get a proper configuration.
1.2. Configuring the Master

First of all, we are going to edit the master file: /etc/munin/munin.conf. This is in this file that you define every clients the master is going to gather information from. As we use a simple model here, the only client the master is going to query information from is example.com which is accessible on adress 127.0.0.1.
So go and edit /etc/munin/munin.conf and make it look like:

dbdir /var/lib/munin/
htmldir /var/www/munin/
logdir /var/log/munin
rundir /var/run/munin/

[example.com]
address 127.0.0.1
use_node_name yes

So, what we have done here is to define munin working directories. htmldir for instance is the place where munin is going to store its graphs. Later on, we will have to set up an apache virtual server to be able to access those datas.
1.3. Configuring the Node

There is some basic security actions you can do while configuring the node.
Even though, by default, the node is configured to only authorized localhost to gather data from it, the nodes are listening on any networking interfaces.
As a security measure, we are going to change so the node bind itself to the loopback interface.
So go and edit /etc/munin/munin-node.conf and make sure the host value looks like this:

#host *
host 127.0.0.1

This is about all you need to do in order to get munin working.
As we modified the configuration, we need to restart the service with:

$sudo /etc/init.d/munin-node restart

Next, we are going to set up apache in such a way that munin results are going to be accessible through web pages. But because we do not want everybody to access the stats, we are going to require authentication.


How-To: Monitoring a Server with Munin -- page 2
2. Setting up apache

Okie, now we are going to set up an apache virtual host called monitoring.example.com in order to be able to access our statistics through http://monitoring.example.com url.

To do so, you need to have a working apache server. If you do not yet. Please install apache with:

$sudo apt-get install apache2

The settings given below should be enough to get you running. If you need more information on apache virtual host, you might want to check How-to virtual hosting with apache2.
2.1. the virtual host

Okie, first of all, go to the virtual host configuration directory:

$cd /etc/apache2/sites-available

create and edit file monitoring and make it look like:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName monitoring.example.com
DocumentRoot /var/www/munin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
ServerSignature On
</VirtualHost>

Make sure DocumentRoot has the same value as htmldir from /etc/munin/munin.conf

Now, enable that virtual host:

$sudo a2ensite monitoring

check that the syntax is correct:

$sudo apache2ctl -t
Syntax OK

If the syntax is correct, reload apache:

$sudo /etc/init.d/apache2 force-reload

Open your favorite web browser and start accessing your stats from http://monitoring.example.com

Munin generate stats every 5 minutes. You might have to wait 5 minutes in order to start having your first result

Well this is great, we can now access our server statistics. But actually everybody can :s. If you don't want that, you can control the access by using apache built-in authentication methods.
2.2. Enabling Authentication

There is actually 2 different ways of getting authenticated with apache.

* Basic Authentication: password is passed from client to server in plain text across the network
* Digest Authentication: password is transmitted as a MD5 digest which is more secure

In order to avoid to have our password transmitted as clear text, we are going to use the Digest Authentication.
This kind of authentication actually relies on an apache module which is not enable by default: auth_digest. To enable it, simply run:

$sudo a2enmod auth_digest

Now that apache can handle Digest Authentication, we need to set up a user/password/realm using:

htdigest -c /var/www/munin/.htpasswd munin foo

default apache configuration forbid access to files like ".ht*", therefore this file won't be readable though HTTP

Where munin is the realm and foo the username. htdigest will prompt you for "foo" user password. Supply it and go back to /etc/apache2/sites-available/monitoring.
We are going to add a few lines to this file in order to make authentication required.

The modifications we are going to make are between the <Directory />....</Directory> tags. This bit should look like this to enable authentication:

<Directory />
Options FollowSymLinks
AllowOverride None
#authentification
AuthType Digest
AuthName "munin"
AuthDigestFile /var/www/munin/.htpasswd
#people using apache 2.2 will use instead:
#AuthUserFile /var/www/munin/.htpasswd
require valid-user
</Directory>

Make sure that the AuthName value is the one from the htdigest realm

And that's it! We just need to make the change effectives by reloading apache configuration. As usual, we check that the syntax is right and if it is, we reload apache configuration.

$sudo apache2ctl -t
Syntax OK
$sudo /etc/init.d/apache2 force-reload

Now, go to http://monitoring.example.com with your browser. A box should prompt you for a username and password. Supply the one you define above and you should be given access to munin statistics.
3. Conclusion

Munin is simple to install and yet gives nice graph from your server health which will allow you to easily spot out if you are going to run out of memory, disk space and resource.

If you have only one machine to monitor, it is not worth the trouble setting up tools like cacti which require snmp in order to get the same result.


How-To: Monitoring a Server with Munin -- page 2
2. Setting up apache

Okie, now we are going to set up an apache virtual host called monitoring.example.com in order to be able to access our statistics through http://monitoring.example.com url.

To do so, you need to have a working apache server. If you do not yet. Please install apache with:

$sudo apt-get install apache2

The settings given below should be enough to get you running. If you need more information on apache virtual host, you might want to check How-to virtual hosting with apache2.
2.1. the virtual host

Okie, first of all, go to the virtual host configuration directory:

$cd /etc/apache2/sites-available

create and edit file monitoring and make it look like:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName monitoring.example.com
DocumentRoot /var/www/munin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
CustomLog /var/log/apache2/access.log combined
ErrorLog /var/log/apache2/error.log
ServerSignature On
</VirtualHost>

Make sure DocumentRoot has the same value as htmldir from /etc/munin/munin.conf

Now, enable that virtual host:

$sudo a2ensite monitoring

check that the syntax is correct:

$sudo apache2ctl -t
Syntax OK

If the syntax is correct, reload apache:

$sudo /etc/init.d/apache2 force-reload

Open your favorite web browser and start accessing your stats from http://monitoring.example.com

Munin generate stats every 5 minutes. You might have to wait 5 minutes in order to start having your first result

Well this is great, we can now access our server statistics. But actually everybody can :s. If you don't want that, you can control the access by using apache built-in authentication methods.
2.2. Enabling Authentication

There is actually 2 different ways of getting authenticated with apache.

* Basic Authentication: password is passed from client to server in plain text across the network
* Digest Authentication: password is transmitted as a MD5 digest which is more secure

In order to avoid to have our password transmitted as clear text, we are going to use the Digest Authentication.
This kind of authentication actually relies on an apache module which is not enable by default: auth_digest. To enable it, simply run:

$sudo a2enmod auth_digest

Now that apache can handle Digest Authentication, we need to set up a user/password/realm using:

htdigest -c /var/www/munin/.htpasswd munin foo

default apache configuration forbid access to files like ".ht*", therefore this file won't be readable though HTTP

Where munin is the realm and foo the username. htdigest will prompt you for "foo" user password. Supply it and go back to /etc/apache2/sites-available/monitoring.
We are going to add a few lines to this file in order to make authentication required.

The modifications we are going to make are between the <Directory />....</Directory> tags. This bit should look like this to enable authentication:

<Directory />
Options FollowSymLinks
AllowOverride None
#authentification
AuthType Digest
AuthName "munin"
AuthDigestFile /var/www/munin/.htpasswd
#people using apache 2.2 will use instead:
#AuthUserFile /var/www/munin/.htpasswd
require valid-user
</Directory>

Make sure that the AuthName value is the one from the htdigest realm

And that's it! We just need to make the change effectives by reloading apache configuration. As usual, we check that the syntax is right and if it is, we reload apache configuration.

$sudo apache2ctl -t
Syntax OK
$sudo /etc/init.d/apache2 force-reload

Now, go to http://monitoring.example.com with your browser. A box should prompt you for a username and password. Supply the one you define above and you should be given access to munin statistics.
3. Conclusion

Munin is simple to install and yet gives nice graph from your server health which will allow you to easily spot out if you are going to run out of memory, disk space and resource.

If you have only one machine to monitor, it is not worth the trouble setting up tools like cacti which require snmp in order to get the same result.






Vielen Dank an: http://www.tutorials.de/forum/linux-tutorials/229133-debian-dienste-einrichten-apache-mysql-samba-etc.html
und: http://www.debuntu.org/how-to-monitoring-a-server-with-munin

Disable ssh root direct login

,

For security reasons it is not a good idea to permit ssh root direct login, it is better to login as another user, and then switch to root using the 'su -' comand, to do this, you need to disable root from login directly using ssh protocol, this will decrease the possibility of a hacker breaking your linux box, as now he will have to guess your user name and your password

Ok, let's go and see to make this.

Edit the file /etc/ssh/sshd_config

vi /etc/ssh/sshd_config

(you can use your favorite text editor)
I strongly recommend you to open two logins if doing this from a remote connection, and never close one of them, in case you need to roll back the configuration

locate this line with, writing this onces editing with vi or vim

:/Protocol
if it says

Protocol 2, 1

change it to:

Protocol 2

This will enable only ssh2 which is more secure that ssh, do not do this if you need to log with a client that only support ssh, and not ssh2 protocol.

Next locate this line "PermitRootLogin yes" by entering this on your vi or vim editor

:/PermitRootLogin yes

and change it to this:

PermitRootLogin no

and save the file, with this:

shift+zz

now restart the ssh service.
If Fedora or CentOS
/etc/init.d/sshd restart

If Debian or Ubuntu
/etc/init.d/ssh restart

Test that you can login and gain root access with 'su -' (without quotes), before, you left your root remote connection.

==================
Vielen Dank an: http://www.go2linux.org/disable-ssh-root-direct-login

cb

Es ist da: Nokia E71

, , , ...

Gestern Abend schon ein bischen mit rumgespielt und ich muss sagen ich bin echt begeister! WLAN, GPRS, UMTS, HSDPA, Bluetooth, IrDA, A-GPS - ein wahrer Verbindungskiuenstler! Selbst mit meine Mac und dem Nokia Media Manager geht alles flott und einfach von der Hand. iTunes Playliste erstellt, E71 angeschlossen, synchroniesiert - Hallo Musik!
Auch meine geliebten Podcasts kann ich einstellen und abrufen. Doch werde ich das wohl weiterhin mit iTunes machen und diese dann als Playlist und mit Hilfe des Nokia Media Managers synchronisieren. Einfach herrlich! Wer braucht da noch einen iPod? Ich sollte mir nur vielleicht einen neuen Speicherkarte mit mehr Platz zulegen.

Nur was mich dann doch fast um den Verstand gebracht hat, war die Einrichtung eines IMAP E-Mail Kontos. Nach ca 10 missglueckten Versuchen und einigen Suchanfragen, habe ich dann diesen Artikel hier gefunden:


Als ich meinen email account als Imap (bin premium Mitglied und hab deswegen Imap zur Verfügung) einrichten wollten, hatte ich erst probleme, weil bei der Einrichtung des GMX Kontos, nach der Eingabe der mail Adresse, nicht mehr gefragt wurde, ob es ein Imap oder ein POP3 Konto sein soll.


Dieses Problem konnte ich mittlerweile lösen. Nokia nimmt bei diversen Anbietern automatisch Daten an und überspringt somit die Abfrage weiter Daten.

Die einzige Möglichkeit ein Imap Konto einzurichten war für mich, ein Account zu erstellen und eine beliebige emailadresse einzugeben, die in der Datenbank von Nokia nicht vorhanden ist. "meingmx@gmxA.net". Folgend werden Alle Daten abgefragt und man kann ein Imap Konto erstellen, indem man dann in alle Felder wieder die Korrekten Daten "@gmx.net" einträgt.

Durch Diesen Vorgang war ist mir möglich meine Inbox des Imap-Accounts abzurufen.


http://handy-forum.xonio.com/nokia/e71-email-client-58330.html#post212827


Also auf ein neues. Hoffentlich funzt es jetzt.
Bin immer noch auf der Suchen nach S60 Software. Blogging, Twitter, etc. Kennt da wer was?

cb

Mein neues Handy kommt. Nokia E71

, , , ...

Und deswegen gibt es hier nun ein paar Links zu interessanten Webseiten mit Informationen rund um das E71, das Symbian S60 Betriebssystem und vielem mehr.

http://www.nokiafanboy.com
http://www.e71fanatics.com
http://nokiae71.wordpress.com



Software fuer das E71

Nimbuzz - Skype Client
mobbler - last.fm Client
fring.com - multi messenger
palring.com - jabber client
WeFi - mobile WiFi Finder

cb

Adium, Pidgin & OTR - Der einfache und sichere Umstieg auf Jabber (XMPP)

, , , ...



Ein sehr schoener Beitrag ueber Jabber (XMPP)

http://www.binaryspa.de/jabber-off-the-record/

Wer gleich eines der Programme runterladen will:

jabber - http://www.jabber.org/web/Main_Page - MacOSX, Linux, Windows, etc.
adium - http://www.adiumx.com/ - MacOSX
pigdim - http://www.pidgin.im/ - Windows, Fedora, CentOS


cb

Server down - was macht man dann? Hausarbeit so doof sich das anhört

, , ,


So ist es, so ein Mist, das hätte ein so schöner Abend werden können.
Schlotternächte und Erfolge einsacken.













Dann halt nicht Blizzard. Viel Glück beim Fehler finden und beheben.
Dabei hatte es heute Nachmittag so gut angefangen.

Ein kleiner Run zu dritt nach Scholomance

Neue Handy Preise bei O2 - Wechsel zu E-Plus?

, , ,

Da versucht man nun schon fast 4 Wochen sich für ein neues Mobiltelefon zu entscheiden, liest Tests, Erfahrungsberichte, Zeitschriften und Online-Artikel, und dann so was. Die Telefónica o2 Germany hat seit vorgestern neue Preise für ihre Mobiltelefone herausgegeben. Und davon sind, glaube ich zumindest, nur ganz wenige wirklich begeistert. Die Preise sind im Schnitt um mehr als 10-20 Prozent gestiegen. Ich meine, wenn ich schon 30 Euro im Monat für einen Vertrag bezahlen will, ja will!, dann will ich allerdings nicht noch 100 Euro oder mehr für ein Mobiltelefon bezahlen. Wobei die Verträge, inklusive einem Mobiltelefon, eh schon 10 Euro mehr kosten pro Monat.
Und wenn ich dann so was lese:

"Die Marktforschung zeigt uns, dass sich immer mehr Kunden flexible Laufzeiten wünschen, ihr bisheriges Handy gerne weiter nutzen und dafür an monatlicher Grundgebühr sparen wollen. Genau da setzt unsere neue Handy Flatrate an", so Lutz Schüler, Geschäftsführer Marketing & Sales bei O2.


Und? Ist das ein Grund ein die Preise gleich derart zu erhöhen? Wer bitte will ein Gerät mit 2 oder 3 Jahren alter Technik haben? Ich zumindest nicht. Und deswegen werde ich mit hoher Wahrscheinlichkeit auch den Anbieter wechseln. Zumal die Netzabdeckung von O2 sowie so nicht so berauschend ist. Zumindest nicht dort wo ich wohne.


Hier noch ein schneller Preisvergleich:
Sony Ericsson W910i kostet bei Amazon ca. 210 Euro (amazon.de)

Bei O2 soll ich im günstigsten Tarif noch 159 Euro dazubezahlen bei 5 Euro pro Monat. Dieses ist allerdings ein Aktionsangebot. Wenn ich den normalen Tarif nehme, Genion S für 10 Euro im Monat, dann kostet mit das W910i nur noch 129 Euro. Immer noch zuviel.
E-Plus macht es besser. Die haben zwar nicht das W910i, dafür aber das W595. Dieses kostet 8 Euro im Monat an Leihgebühr plus 10 Euro für den Time & More 150 Web Edition Tarif macht 18 Euro im Monat. Zum ersten habe ich keine Anschaffungskosten und zum zweiten ich bekomme mehr Leistungen inklusive besserer Netzabdeckung!


Warum sollte ich also nicht wechseln???

cb

Weitere Links zu Tests und Infos:

Dauertest Sony Ercsson W910i
Mit dem Handy ins Internet
connect Netztest 2008

allow_url_fopen disabled!

,

Bei den Free Accounts auf http://s4u.0lx.net ist "allow_url_fopen" leider disabled.

Also werde ich mir einen anderen Provider suchen muessen.

Schade
July 2009
M T W T F S S
June 2009August 2009
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31