<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Τρεις λαλούν και δυο χορεύουν</title>
	<atom:link href="http://3laloynkai2xoreyoyn.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://3laloynkai2xoreyoyn.wordpress.com</link>
	<description>Τρείς λαλούν και δυο χορεύουν</description>
	<lastBuildDate>Wed, 07 Dec 2011 19:07:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='3laloynkai2xoreyoyn.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Τρεις λαλούν και δυο χορεύουν</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://3laloynkai2xoreyoyn.wordpress.com/osd.xml" title="Τρεις λαλούν και δυο χορεύουν" />
	<atom:link rel='hub' href='http://3laloynkai2xoreyoyn.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Mysql replication delay</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2011/09/29/mysql-replication-delay/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2011/09/29/mysql-replication-delay/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 16:22:01 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=107</guid>
		<description><![CDATA[For a project that I participate we wanted to evaluate the use of MySQL replication for horizontal scaling. The application wasn&#8217;t designed with scaling in mind, and make a heavy usage of the database (in a number of not so efficient ways).  Replication seemed like a good solution since there would be only a master [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=107&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For a project that I participate we wanted to evaluate the use of MySQL replication for horizontal scaling. The application wasn&#8217;t designed with scaling in mind, and make a heavy usage of the database (in a number of not so efficient ways).  Replication seemed like a good solution since there would be only a master server (actually in the setup there is a second server waiting (using heartbeat) in case the first one fails, with drbd to keep them in sync) where all the writes would go, and a number of slaves for the read access. The question that eventually came up was how long whould the replicatin take?</p>
<p><span id="more-107"></span></p>
<p>In order to give an answer a custom benchmark script was created that inserted rows on the master and then waited for them to appear on one of the slaves, measuring the time it took, and also the number of retries. The table that was choosen was the biggest table that was in use by the application, since I wanted to do a worst case scenario.<br />
The script used is the following:</p>
<p><pre class="brush: perl;">
#!/usr/bin/perl -w
use DBI;
use DBD::mysql;
use Data::Dumper;
use Time::HiRes qw( gettimeofday );
use Parallel::ForkManager;

my %masterhost = ();
my @slavehost = ();

%masterhost = (
    host =&gt; &quot;master&quot;,
    user =&gt; &quot;user&quot;, 
    pass =&gt; &quot;pass&quot;,
);

@slavehost = ( {
    host =&gt; &quot;slave1&quot;,
    user =&gt; &quot;user&quot;,
    pass =&gt; &quot;pass&quot;, },
               {
    host =&gt; &quot;slave2&quot;,
    user =&gt; &quot;user&quot;,
    pass =&gt; &quot;pass&quot;, },

);
sub generate_random_string
{
        my $length_of_randomstring=shift;# the length of 
                         # the random string to generate

        my @chars=('a'..'z','A'..'Z','0'..'9','_');
        my $random_string;
        foreach (1..$length_of_randomstring) 
        {
                # rand @chars will generate a random 
                # number between 0 and scalar @chars
                $random_string.=$chars[rand @chars];
        }
        return $random_string;
}

my $numArgs = $#ARGV + 1 ; 

if ($numArgs != 3 ) {
    print &quot;\n Usage: mysql.pl num_of_conc_clients num_of_iterations size_of_extra_data(in bytes)\n&quot;;
    exit 1;
}

my $num_of_clients = $ARGV[0];

my $num_of_iterations = $ARGV[1];

my $size_of_extra_data = $ARGV[2];

my $comments=&amp;generate_random_string($size_of_extra_data);

my $pm = new Parallel::ForkManager($num_of_clients);

mkdir $num_of_clients ;#or die &quot;Failed to mkdir $num_of_clients&quot;;

mkdir $num_of_clients . &quot;/&quot;. $size_of_extra_data or die &quot;Failed to mkdir $num_of_clients/$size_of_extra_data&quot;;

for (1..$num_of_clients) {

    $pm-&gt;start and next;

    my $filename=&quot;&gt;&quot;.$num_of_clients.&quot;/&quot;. $size_of_extra_data .&quot;/&quot; .$$;
    open(WFILE, $filename) or die &quot;unable to open file $filename&quot;;

    my $shost = $$ % @slavehost;
    my $mdsn=&quot;DBI:mysql:database=mytests;host=&quot;.$masterhost{'host'};
    my $sdsn=&quot;DBI:mysql:database=mytests;host=&quot;.$slavehost[$shost]{'host'};

    my $mdbh=DBI-&gt;connect($mdsn, $masterhost{'user'}, $masterhost{'pass'}) 
        or die &quot;Unable to connect&quot; . DBI-&gt;errstr ;

    my $sdbh=DBI-&gt;connect($sdsn, $slavehost[$shost]{'user'}, $slavehost[$shost]{'pass'}) 
        or die &quot;Unable to connect&quot; . DBI-&gt;errstr ;

   for($i = 0; $i do($statement);

       my $timestamp=gettimeofday();

       $statement = &quot;SELECT * FROM mytests.test1 where test='&quot; . $randvalue .&quot;'&quot;; 
       $rows = $sdbh-&gt;do($statement);
       while( $rows == 0 ) {
           $j++;
           $rows = $sdbh-&gt;do($statement);
       }
       if( $rows ) {
           $elapsed = gettimeofday() - $timestamp;
           print WFILE $elapsed. &quot;:&quot; . $j. &quot;\n&quot;;
       }
   }
    close(WFILE);

    $mdbh-&gt;disconnect();
    $sdbh-&gt;disconnect();
    $pm-&gt;finish;
}

$pm-&gt;wait_all_children;

my $mdsn=&quot;DBI:mysql:database=mytests;host=&quot;.$masterhost{'host'};
my $mdbh=DBI-&gt;connect($mdsn, $masterhost{'user'}, $masterhost{'pass'}) 
        or die &quot;Unable to connect&quot; . DBI-&gt;errstr ;

$statement = &quot;DELETE FROM mytests.test1&quot;;
$mdbh-&gt;do($statement);

$mdbh-&gt;disconnect() or warn &quot;Disconnection failed: $DBI::errstr\n&quot;;

print &quot;Done for $num_of_clients $num_of_iterations $size_of_extra_data&quot; . &quot;\n&quot; ;
</pre></p>
<p>The script was run for a number of 10 to 100 concurent processes (step value 10) and for data size from 1000 to 20000 (step value 1000) bytes.</p>
<p><pre class="brush: bash;">
for i in $(seq 10 10 100) ; do for j in $(seq 1000 1000 20000); do perl ./mysql.pl $i 1000 $j; done; done
</pre></p>
<p>and produced the files with the values like<br />
timetook:number_of_retries</p>
<p>With a little bit of awk, shell scripting and octave, I analysed the results and I printed some graphs like the following:</p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 310px"><a href="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-retries.png"><img class="size-medium wp-image-109" title="mean-retries" src="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-retries.png?w=300&#038;h=225" alt="Mean number of retries" width="300" height="225" /></a><p class="wp-caption-text">Mean number of retries</p></div>
<div id="attachment_111" class="wp-caption aligncenter" style="width: 310px"><a href="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-time.png"><img class="size-medium wp-image-111" title="mean value for waiting time" src="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-time.png?w=300&#038;h=225" alt="mean value for waiting time" width="300" height="225" /></a><p class="wp-caption-text">mean value for waiting time</p></div>
<div id="attachment_112" class="wp-caption aligncenter" style="width: 310px"><a href="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-retries.png"><img class="size-medium wp-image-112" title="standard deviation of number of retries" src="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-retries.png?w=300&#038;h=225" alt="standard deviation of number of retries" width="300" height="225" /></a><p class="wp-caption-text">standard deviation of number of retries</p></div>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 310px"><a href="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-time.png"><img class="size-medium wp-image-113" title="standard deviation of waiting time" src="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-time.png?w=300&#038;h=225" alt="standard deviation of waiting time" width="300" height="225" /></a><p class="wp-caption-text">standard deviation of waiting time</p></div>
<p>It is clear from the test that mysql replication as a horizontal scaling mechanism under heavy load and an application that is not replication aware is not a good solution. It is not the time that takes for the replication to complete, but the standard deviation that makes the whole process quite unstable.</p>
<p>I understand that the way this test was performed there was a hammering to the database server(s). But I wanted to emulate a heavy usage scenario. I could also try to run the same test with smaller data size written, and also have a small sleep period before each write for each process. Finally all the tests were done using VMs, and I&#8217;m quite curious to run the same tests with real servers, to see if virtualization&#8217;s effect on replication.</p>
<p>Special thanks go to Apollon, for providing help with perl, GNU Octave to produce all these plots, and help in general <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=107&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2011/09/29/mysql-replication-delay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>

		<media:content url="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-retries.png?w=300" medium="image">
			<media:title type="html">mean-retries</media:title>
		</media:content>

		<media:content url="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/mean-time.png?w=300" medium="image">
			<media:title type="html">mean value for waiting time</media:title>
		</media:content>

		<media:content url="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-retries.png?w=300" medium="image">
			<media:title type="html">standard deviation of number of retries</media:title>
		</media:content>

		<media:content url="http://3laloynkai2xoreyoyn.files.wordpress.com/2011/09/std-time.png?w=300" medium="image">
			<media:title type="html">standard deviation of waiting time</media:title>
		</media:content>
	</item>
		<item>
		<title>Αλόννησος Survival Guide</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2011/08/03/%ce%b1%ce%bb%cf%8c%ce%bd%ce%bd%ce%b7%cf%83%ce%bf%cf%82-survival-guide/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2011/08/03/%ce%b1%ce%bb%cf%8c%ce%bd%ce%bd%ce%b7%cf%83%ce%bf%cf%82-survival-guide/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:02:01 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[Greek]]></category>
		<category><![CDATA[Η ζωή μου όλη]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=101</guid>
		<description><![CDATA[Μετά από super διακοπές στην Αλόννησο παραθέτω μερικά tips από την προσωπική μου εμπειρία. Δεν υπάρχει σειρά είναι όπως μου έρχονται: Η θάλασσα είναι απίστευτη!! Η πρώτη αίσθηση που είχα ήταν σαν το Ντόρνα! Δεν κάνεις μπάνιο σε νερό, αλλά σε βιλούδο!! Τα νερά επίσης είναι κρυστάλλινα και βλέπεις από επιφάνεια σε πολύ μεγάλο βάθος!  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=101&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Μετά από super διακοπές στην Αλόννησο παραθέτω μερικά tips από την προσωπική μου εμπειρία. Δεν υπάρχει σειρά είναι όπως μου έρχονται:</p>
<ul>
<li>Η θάλασσα είναι απίστευτη!! Η πρώτη αίσθηση που είχα ήταν σαν το Ντόρνα! Δεν κάνεις μπάνιο σε νερό, αλλά σε βιλούδο!!</li>
<li>Τα νερά επίσης είναι κρυστάλλινα και βλέπεις από επιφάνεια σε πολύ μεγάλο βάθος!  ΑΠΑΡΑΙΤΗΤΑ για τους φίλους : Μάσκα, αναπνευστήρας. Προεραιτικά τα βατραχοπέδιλα (στα 2m βλέπεις αρκετά ψάρια).</li>
<li>Αν φυσάει από Δυτικούς ως και Νότιους προτιμάμε την Ανατολική πλευρά του νησιού.</li>
<li>Αν κάνετε αυτόνομη κατάδυση (και το επιτρέπουνε) να πάτε να δείτε! (Στην Αλόννησο υπάρχουνε 2 καταδυτικά κέντρα. Ένα στο Πατητήρι και ένα στη Στενή Βάλα). Μεγάλη βλακεία που δεν επιτρέπουνε γενικά την αυτόνομη κατάδυση, κάπως θα έπρεπε να το οργανώσουνε καλύτερα σε συνεργασία με το θαλάσσιο πάρκο.</li>
<li>Ρουσούμ Γυαλό πάτε άνετα με τα πόδια, ρωτήστε όμως που είναι το μονοπάτι που κόβει δρόμο (μετά τα σχολεία πάτε δεξιά) για να μην περπατάτε άδικα</li>
<li>Καλύτερη παραλία το Κοκκινόκαστρο! (μετά τα Γυάλια)</li>
<li>Παραλία με άμμο και περπάτημα στη θάλασσα η Χρυσή Μηλιά! Εκεί πέρα αν αφού κατεβείτε πάτε τέρμα αριστερά (όπως κοιτάτε την θάλασσα) τότε θα πάτε στο δεύτερο κομμάτι της παραλίας που είναι ένα ξενοδοχείο με τίγκα Ιταλούς! Αν δεν σας πειράζουνε οι Ιταλοί που κάνουνε aquarobic και διάφορα μπορείτε να καβατζώσετε στο τζάμπα ξαπλώστρες και ομπρέλα. Καπουτσίνο ΔΕΝ παίρνουμε από την καντίνα.</li>
<li>Βόλτα με καραβάκι γύρω είναι must. Προτιμάμε το &#8220;Στέλλα&#8221; διότι ο κ. Παναγιώτης έχει πολύ φάση,   και επίσης στη Μεγάλη Σπηλιά μπαίνει όλο μέσα και κάνεις από εκεί πανω βουτιά!! (Απίστευτη η Μεγάλη Σπηλιά).</li>
<li>Συγκοινωνία (δηλαδή Λεωφορείο) ξεχάστε το σχεδόν. Απλά υπάρχει για μπορούνε να το δείχνουνε. Υπάρχουνε μόνο 2 προορισμοί (Πατητήρι &#8211; Χώρα και Πατητήρι &#8211; Στενή Βάλα) και τα δρομολόγια είναι ΠΟΛΥ αραιά. Έχει και μια μεγάλη διακοπή το μεσημέρι (όπως και τα περισσότερα πράγματα που κλείνανε το μεσημέρι) και το βράδυ σταματάει και νωρίς (για την Χώρα πάντα). Άρα πάμε σε πιο κάτω λύσεις που παρουσιάζονται.</li>
<li>Αμάξι είναι η πονεμένη ιστορία! Πραγματικά το μόνο που μου έσπασε τα νεύρα. Βρίσκεται δύσκολα αμάξι και οι τιμές αλλάζουνε μέρα με την μέρα (και είναι και μερικές στο Θεό) διότι βλέπουνε τον κόσμο και τις ανεβοκατεβάζουνε. Δείτε τα ζώδια πρίν πάτε .. αν ο Ερμής είναι ανάδρομος μην το επιχειρήσετε.</li>
<li>Αν όχι αμάξι τα μηχανάκια είναι μια καλή λύση, υπάρχουνε πολλά! Προσοχή στον (ανύπαρκτο σε πολλά σημεία) δρόμο.</li>
<li>Καλύτερη λύση και από τα 2: Να πάτε με σκάφος!!! Έχει τόσο όμορφα μέρη για να δεί κανείς που δεν πάει οδικώς. Επίσης και 2-3 νησιά γύρω γύρω.</li>
<li>(Αν πάτε για πολλές μέρες τότε ίσως αξίζει να πάρετε το δικό σας, αλλά πάλι δείτε τα δρομολόγια)</li>
<li>Φαγητό ΑΡΙΣΤΟ! Στο Πατητήρι για ψάρι στο Αρχιπέλαγος και για σουβλάκι στο Στέκι (δίπλα ακριβώς). Στη Χώρα must το Περι Ορέξεως (σίγουρα δοκιμάστε το γεμιστό μπιφτέκι με γραβιέρα και το burger του, ο μάγειρας είναι καλλιτέχνης) και για γλυκό ΚΑΡΑMUST το Χαγιάτι! (Σοκολατόπιτα μιαμ μιαμ)</li>
<li>&#8220;Night life&#8221; (καλά μην περιμένετε τίποτα τρελλό στην Αλόννησο) στη Χώρα. Το Πατητήρι έχει 2 μαγαζιά το Εν Πλώ δεξιά όπως κοιτάς το λιμάνι και τον Λίθο στα αριστερά. Σε θέα και μουσική πάντως δεν συγκρίνονται με το Χαγιάτι! Προτιμήσαμε Λίθο για καφέ όταν πήγαμε στο Πατητήρι και φτιάξανε άριστο φραπέ με παγωτό!</li>
</ul>
<p>Και ότι άλλο θυμηθώ το συμπληρώνω <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=101&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2011/08/03/%ce%b1%ce%bb%cf%8c%ce%bd%ce%bd%ce%b7%cf%83%ce%bf%cf%82-survival-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Number of online users script for OpenVPN</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/06/number-of-online-users-script-for-openvpn/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/06/number-of-online-users-script-for-openvpn/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 14:14:27 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=95</guid>
		<description><![CDATA[We wanted to create a graph (using rrd) that monitors the number of online users of our OpenVPN setup. The solutions where: retrieve the status file created by OpenVPN to the RRD server and parse it locally execute a small script that parses the status file and reports the number of users. The result can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=95&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We wanted to create a graph (using rrd) that monitors the number of online users of our OpenVPN setup. The solutions where:</p>
<ol>
<li>retrieve the status file created by OpenVPN to the RRD server and parse it locally</li>
<li>execute a small script that parses the status file and reports the number of users. The result can be available to the RRD server though the network with the use of inetd(8)</li>
<li>use the management interface for OpenVPN to get the same information</li>
</ol>
<p>Each solution had some drawbacks. The best solution seemed to be 3) but this had a number of problems.</p>
<ul>
<li>the management interface is still unencrypted, so it is easy to sniff the password</li>
<li>there is no way to restrict the commands that can be executed through the management interface (someone with access to the management interface can disable the service)</li>
<li>the tun interfaces on Solaris (don&#8217;t even ask me why we have Solaris as the VPN Gateway) are not &#8220;complete&#8221; network interfaces, so you cannot really filter traffic passing through them with ipfilter. (that&#8217;s what the local Solaris guru said). So even if we used another physical interface for the management service to run, the vpn users could also access the management interface port.</li>
</ul>
<p>For the above reasons I was quite reluctant to enable as is the management interface. The final solution came with a combination of solutions 2) and 3).</p>
<p>I had the OpenVPN management interface run on localhost (so that none outside the machine can touch the interface) and had a small script run through inetd , connected to the management interface and return the number of online users as a number.</p>
<p><span id="more-95"></span></p>
<p>The setup is the following:</p>
<ol>
<li>add to vpn config the corresponding lines to enable the management interface on localhost port 25:<br />
<code>management localhost 1025 pwfile</code></li>
<li>create the pwfile on the OpenVPN config directory that contains just one line with the password, set 400 permissions and the owner to the user tha openvpn runs. i.e.<br />
thepassword</li>
<li>restart openvpn and make sure that the management interface works.</li>
<li>create the following script in a place, lets call it $SCRIPT_HOME named stat.sh<br />
<code>#!/bin/sh</p>
<p>PATH=/usr/bin<br />
export PATH</p>
<p>if [ "xx$1" = "xx" ]<br />
then<br />
echo "no conf file specified"<br />
exit 1;<br />
fi<br />
. $1</p>
<p>(echo "$PASSWORD" ; sleep 1 ; echo "status 2" ; sleep 1 ; echo "quit" ; sleep 1 ) |<br />
telnet $HOST $PORT 2&gt;/dev/null |<br />
grep '^CLIENT_LIST' | wc -l</code></li>
<li>create a configuration file for the script $SCRIPT_HOME/stat.conf, set the owner to nobody and permissions 400<br />
<code>PASSWORD="thepassword"<br />
HOST=localhost<br />
PORT=1025</code></li>
<li>add the service to /etc/services<br />
<code>openvpnstat     1026/tcp                        # OpenVPN user statistics</code></li>
<li>add the service to /etc/inetd.conf<br />
<code>#service used for OpenVPN statistics<br />
openvpnstat     stream  tcp     nowait  nobody  $SCRIPT_HOME/stat.sh stat.sh $SCRIPT_HOME/stat.conf</code></li>
<li>For some extra security <a title="Enable tcp wrappers to Solaris 10" href="http://learningsolaris.com/archives/2005/03/16/tcp-wrappers-on-solaris-10/" target="_blank">enable tcpwrappers</a> (if they are not yet enabled)</li>
<li>create (or add in) /etc/hosts.allow<br />
<code>stat.sh : xxx.xxx.xxx.xxx</code><br />
where xxx.xxx.xxx.xxx is the machine, or subnet that you want to permit connections to this port</li>
<li>create (or add in) /etc/hosts.deny<br />
<code>stat.sh : ALL</code></li>
<li>pkill -HUP inetd for Solaris 9, or for Solaris 10 follow the procedure to import the new service from inetd.conf and refresh inetd</li>
<li>test the configuration with netcat, or telnet<br />
nc vpnhost 1026</li>
</ol>
<p>With this setup it is possible to have the number of online users, and with some config you can feed it to mrtg or rrd and create some nice graphs <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (Still waiting for some image to be created <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) Hopefully, I haven&#8217;t forgotten any step <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=95&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/06/number-of-online-users-script-for-openvpn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenVPN routing problems on Solaris</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/05/openvpn-routing-problems-on-solaris/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/05/openvpn-routing-problems-on-solaris/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 16:32:14 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=92</guid>
		<description><![CDATA[We use OpenVPN on Solaris 9 as our VPN service to users using tun interfaces. After a long time we decided to upgrade to the latest version (together with our home-made auth_ldap authentication module).  This post applies to version 2.2.1 (yet no official release announcement) but also applies to version 2.2.0. After the installation the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=92&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We use OpenVPN on Solaris 9 as our VPN service to users using tun interfaces. After a long time we decided to upgrade to the latest version (together with our home-made auth_ldap authentication module).  This post applies to version 2.2.1 (yet no official release announcement) but also applies to version 2.2.0.</p>
<p>After the installation the service seemed to go up, the user authentication worked but it was not possible for packets to pass through. The problem happened because for some reason after the initialisation openvpn removed the routing entries for the VPN subnet that should go through the tun interface.</p>
<p>After a more careful look at the log files the problem was during the initialisation. It added the routes with the corresponding route add net &#8230; but after the fork the routes where deleted with route del commands. The first &#8220;fix&#8221; was to add a line to the init script to manual add a route after the vpn was up.</p>
<p>Having a look at the source code, the problem was at the openvpn_exit() function that called the tun_abort() (which called do_close_tun() and delete_routes()) after the fork. Searching also in the trac found this link : https://community.openvpn.net/openvpn/ticket/53 that describes also the same behaviour.</p>
<p>The final solution was to produce a patch as described in the above link, and use this source code patch for the building of OpenVPN.</p>
<p>So people that have OpenVPN in tun mode at least in Solaris (haven&#8217;t tried it on Linux) and after an upgrade suddenly realise that things don&#8217;t work as supposed to, they should first try to add the routing command by hand with</p>
<blockquote><p>route add vpn_subnet vpn_subnet_mask vpn_gateway_ip</p></blockquote>
<p>and if this fixes the problem, then try to apply the solution found on the OpenVPN track</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=92&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2011/07/05/openvpn-routing-problems-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Mapping a network drive with a greek name share</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2011/02/21/mapping-a-network-drive-with-a-greek-name-share/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2011/02/21/mapping-a-network-drive-with-a-greek-name-share/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 10:25:39 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=88</guid>
		<description><![CDATA[I &#8216;m misfortunate enough to have to administer a Windows network, with an AD forest. Right now we are in the point that we have to migrate fileservers. Since the previous setup bonded the fileserver with exact server name, moving the file server around is not the most easy task. (All the users should update [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=88&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I &#8216;m misfortunate enough to have to administer a Windows network, with an AD forest. Right now we are in the point that we have to migrate fileservers. Since the previous setup bonded the fileserver with exact server name, moving the file server around is not the most easy task. (All the users should update their links to the shared files, etc, etc, it is going to be a long week). In order not to repeat the whole procedure in the future, I proposed to use a map to a network drive. The server can change, the map to the network drive can change, but the users will notice nothing since their shortcuts will always be on the same network drive.The mapping can be done using group policies, so everything will be setup for the user.</p>
<p>While I was trying to implement this setup using group policies, the simple batch file[1]  I created to add the network mapping was failing. The batch file had just  command</p>
<blockquote><p>net use z: \\server\όνομα</p></blockquote>
<p>After some search I found that the reason this didn&#8217;t work, was that batch files cannot understand greek names (for encoding reasons). I tried a number of options to create a batch file that worked, but all failed. Finally, I opened the command prompt and typed the command :</p>
<blockquote><p>echo &#8220;net use z: \\server\όνομα&#8221; &gt; file.bat</p></blockquote>
<p>This file worked <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . I even opened notepad and added some extra stuff that I needed, and still everything works. Moral of the story : Sometimes the unix way, works even in Windows :p</p>
<p>[1] I have read that Mapping Network Drives can be done in windows 2008 using the new policies, but the clients are all Windows XP, and I&#8217;m not willing to go to one by one to all the workstations and install manually the needed updates (no central update pushing here). Also people might argue against using a batch file, but batch files is the thing that I know at the moment. (I&#8217;m also sure that there is a better way to create the needed file, but this way worked for me).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=88&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2011/02/21/mapping-a-network-drive-with-a-greek-name-share/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Undernet IRC server .. phising ..</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/undernet-irc-server-phising/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/undernet-irc-server-phising/#comments</comments>
		<pubDate>Mon, 31 May 2010 09:32:17 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[Greek]]></category>
		<category><![CDATA[Ouzoumpourou Anthrwpofagoi]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=85</guid>
		<description><![CDATA[Το ΣΚ ήρθε το εξής email: From : o25ybo@otenet.gr Είμαι φοιτητής της ιατρικής σχολής και επικοινωνώ μαζί σας σχετικά με μία πρόταση που θέλω να παραθέσω. Θέλω να σας ρωτήσω εαν ενδιαφέρεστε να φιλοξενήσετε IRC διακομηστή για το IRC δίκτυο της Undernet. Τα οφέλη του ΚΛΕΙΔΙ απο αυτή τη φιλοξενία είναι η προβολή σε διεθνές [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=85&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Το ΣΚ ήρθε το εξής email:</p>
<p>From : o25ybo@otenet.gr</p>
<blockquote><p>Είμαι φοιτητής της ιατρικής σχολής και επικοινωνώ μαζί σας σχετικά με μία πρόταση που θέλω να παραθέσω.</p>
<p>Θέλω να σας ρωτήσω εαν ενδιαφέρεστε να φιλοξενήσετε IRC διακομηστή για το IRC δίκτυο της Undernet.</p>
<p>Τα οφέλη του ΚΛΕΙΔΙ απο αυτή τη φιλοξενία είναι η προβολή σε διεθνές επίπεδο του τεχνολογικού υπόβαθρου του πανεπιστημίου Αθηνών καθώς το UnderNet ειναι το δεύτερο μεγαλήτερο IRC δίκτυο παγκοσμίως.</p>
<p>Αυτό που χρειάζεται είναι ένα σύστημα στις τεχνολογικές εγκαταστάσεις του Πανεπιστημίου Αθηνών και πλήρης άδεια απο το ΚΛΕΙΔΙ για να συνδεθεί ο διακομηστής με τους κεντρικούς IRC διακομηστές του UnderNet</p>
<p>Μπορούμε να αναλάβουμε την εξόφληση του hardware οσον αφορά αυτό το project.</p>
<p>Αναμένω την απάντησή σας.</p>
<p>Με εκτίμηση</p>
<p>Αλέξανδρος Κούκουλας</p></blockquote>
<p>Το ενδιαφέρον είναι πώς το ίδιο ΑΚΡΙΒΩΣ email στάλθηκε και σε άλλα 2 ιδρύματα από ότι έμαθα. Τελικά υπάρχουνε και διπλοθεσίτες στα ελληνικά πανεπιστήμια. :p</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=85&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/undernet-irc-server-phising/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Στάβλος &#8230; καφέ για ζώα &#8230;</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/%cf%83%cf%84%ce%ac%ce%b2%ce%bb%ce%bf%cf%82-%ce%ba%ce%b1%cf%86%ce%ad-%ce%b3%ce%b9%ce%b1-%ce%b6%cf%8e%ce%b1/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/%cf%83%cf%84%ce%ac%ce%b2%ce%bb%ce%bf%cf%82-%ce%ba%ce%b1%cf%86%ce%ad-%ce%b3%ce%b9%ce%b1-%ce%b6%cf%8e%ce%b1/#comments</comments>
		<pubDate>Mon, 31 May 2010 09:28:33 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[Greek]]></category>
		<category><![CDATA[Ouzoumpourou Anthrwpofagoi]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=83</guid>
		<description><![CDATA[Είχαμε πάει με 2 φίλους για καφέ και είχανε την φαεινή ιδέα να πάμε Θησείο. Τελικά καταλήξαμε να πάμε στο Στάβλο, μία απο τις γνωστές καφετέριες της περιοχής. Αν και ουσιαστικά όταν πήγαμε είμασταν σχεδόν μόνοι μας, το service ήταν σε φάση &#8220;βαριόμαστε τώρα, αλλά ας φέρουμε τον καφέ&#8221;. Οκ λογικό πλέον στα &#8220;in μέρη&#8221;. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=83&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Είχαμε πάει με 2 φίλους για καφέ και είχανε την φαεινή ιδέα να πάμε Θησείο. Τελικά καταλήξαμε να πάμε στο Στάβλο, μία απο τις γνωστές καφετέριες της περιοχής. Αν και ουσιαστικά όταν πήγαμε είμασταν σχεδόν μόνοι μας, το service ήταν σε φάση &#8220;βαριόμαστε τώρα, αλλά ας φέρουμε τον καφέ&#8221;. Οκ λογικό πλέον στα &#8220;in μέρη&#8221;.</p>
<p>Το καταπληκτικό ήρθε όταν πήγαμε να πληρώσουμε. 12Ε λογαριασμός (για 4 καφέδες). Του δίνουμε 20, στραβομουτσουνιάζει</p>
<p>-&#8221;Δεν έχετε ψιλά&#8221;.</p>
<p>-&#8221;Όχι δεν έχουμε.&#8221;</p>
<p>-&#8221;Καλά&#8221;</p>
<p>Αφήνει 7Ε ρεύστα .. και φεύγει.</p>
<p>Λόγο του σηκωνόμασταν να φύγουμε κτλ κτλ δεν το πήρα χαμπάρι αμέσως, αλλά όταν μοιράζαμε τα ρέστα έξω τότε φάνηκε ότι μας έλειπε το 1Ε. Κορυφαίος ο σερβιτόρος, πήρε και το πουρμπουάρ που θεώρησε ότι του αναλογεί και ύφος 1000 καρδιναλλίων. *$$*#($*#</p>
<p>-1 μέρος που πάω για καφέ.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=83&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/31/%cf%83%cf%84%ce%ac%ce%b2%ce%bb%ce%bf%cf%82-%ce%ba%ce%b1%cf%86%ce%ad-%ce%b3%ce%b9%ce%b1-%ce%b6%cf%8e%ce%b1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploying a python mapping script in Oracle Virtual Directory 11g using weblogic</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/14/deploying-a-python-mapping-script-in-oracle-virtual-directory-11g-using-weblogic/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/14/deploying-a-python-mapping-script-in-oracle-virtual-directory-11g-using-weblogic/#comments</comments>
		<pubDate>Fri, 14 May 2010 14:37:28 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=81</guid>
		<description><![CDATA[This is a quick how-to post in order to deploy a python mapping script to oracle virtual directory 11g using weblogic manager. Upload the python script to weblogic server (using scp, ftp,whatever) locate the ovdconf/mapping_templates directory under the $MW_HOME move the script to this directory IF you are logged in Weblogic manager, logout and log [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=81&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a quick how-to post in order to deploy a python mapping script to oracle virtual directory 11g using weblogic manager.</p>
<ol>
<li>Upload the python script to weblogic server (using scp, ftp,whatever)</li>
<li>locate the ovdconf/mapping_templates directory under the $MW_HOME</li>
<li>move the script to this directory</li>
<li>IF you are logged in Weblogic manager, logout and log back in. Otherwise you will not be able to see in Mapping Templates the new Template (and there is no reload button there!*$#(*$#($* )</li>
<li>go to mapping templates, click on the new script .. and deploy</li>
</ol>
<p>This made the trick. However regarding Python script support keep in mind the following from the documentation:</p>
<blockquote>
<pre>"The mapping information in this chapter is included for historical
purposes."
</pre>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=81&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/14/deploying-a-python-mapping-script-in-oracle-virtual-directory-11g-using-weblogic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting Oracle Virtual Directory to an Oracle 8i database</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/13/connecting-oracle-virtual-directory-to-an-oracle-8i-database/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/13/connecting-oracle-virtual-directory-to-an-oracle-8i-database/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:41:35 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=78</guid>
		<description><![CDATA[The case is like this: You have a brand new Oracle Virtual Directory (11g) and you want it to connect to an Oracle 8i directory.  First attempt is to install the Oracle JDBC drivers. After downloading the proper JDBC driver (ojdbc6.jar) for the installed JDK and installing it, you realized that this driver doesn&#8217;t support [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=78&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The case is like this: You have a brand new Oracle Virtual Directory (11g) and you want it to connect to an Oracle 8i directory.  First attempt is to install the Oracle JDBC drivers. After downloading the proper JDBC driver (ojdbc6.jar) for the installed JDK and installing it, you realized that this driver doesn&#8217;t support oracle 8i. After some search you find the old version that supports Oracle 8i named classes12.jar. You install it, but nothing happens. Only the very informative error  message that there was a connection error.  The logs say nothing. You remove all the jdbc drivers from the instance .. checking the logs to see some error message. Nothing happens. Everything as usual. If you try to connect with another not installed jdbc driver to any database, the logs are full of java errors. With Oracle database, no errors?? WTF?!?!</p>
<p>The reason is simple. Oracle&#8217;s OVD comes with ojdbc6.jar preinstalled, but it is not in the normal directory that all the other jdbc drivers of the instance are installed, but it is in $MIDDLEWARE_HOME/Oracle_IDM1/jdbc, so it uses this.</p>
<p>The solution to connect is to go to this directory, remove all the jar files and then upload the old ojdbc though weblogic manager. (or you can always just put it using cp to $MIDDLEWARE_HOME/$INSTANCE/OVD/ovd1/plugins/lib).</p>
<p>At least with this way it connects to the database. Whether the mappings are working or not, is something to be checked.</p>
<p>Another possible solution, is to install an oracle 11g listener to the oracle 8i database (someone told me that this is possible) and then use this listener to use the database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=78&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/13/connecting-oracle-virtual-directory-to-an-oracle-8i-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;Commandless&#8221; ssh key</title>
		<link>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/07/commandless-ssh-key/</link>
		<comments>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/07/commandless-ssh-key/#comments</comments>
		<pubDate>Fri, 07 May 2010 13:04:54 +0000</pubDate>
		<dc:creator>aristotelhs</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://3laloynkai2xoreyoyn.wordpress.com/?p=76</guid>
		<description><![CDATA[I just wanted to create an ssh key that can be used only for port forwarding and the user couldn&#8217;t login to the machine. I think as a first attempt i managed to do that, just by putting the following options to the public part of the key and then adding it to .ssh/authorized_keys. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=76&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just wanted to create an ssh key that can be used only for port forwarding and the user couldn&#8217;t login to the machine.</p>
<p>I think as a first attempt i managed to do that, just by putting the following options to the public part of the key and then adding it to .ssh/authorized_keys. The 2 options are: command=&#8221;",no-pty</p>
<p>Port forward seems to work ok, and no matter which command i try to execute nothing happens. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/3laloynkai2xoreyoyn.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/3laloynkai2xoreyoyn.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=3laloynkai2xoreyoyn.wordpress.com&amp;blog=501203&amp;post=76&amp;subd=3laloynkai2xoreyoyn&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://3laloynkai2xoreyoyn.wordpress.com/2010/05/07/commandless-ssh-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eb243011619bda5cd557de9ee2c7d8f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aristotelhs</media:title>
		</media:content>
	</item>
	</channel>
</rss>
