<?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/"
	>

<channel>
	<title>Le Blog de SckyzO &#187; script</title>
	<atom:link href="http://blog.sckyzo.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sckyzo.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jul 2012 16:27:08 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=370</generator>
		<item>
		<title>[BASH] Script pour générer des mots de passe</title>
		<link>http://blog.sckyzo.com/bash-script-pour-generer-des-mots-de-passe/</link>
		<comments>http://blog.sckyzo.com/bash-script-pour-generer-des-mots-de-passe/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 16:26:11 +0000</pubDate>
		<dc:creator>SckyzO</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[generer]]></category>
		<category><![CDATA[mot de passe]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[ramdom]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.sckyzo.com/?p=1415</guid>
		<description><![CDATA[Voici un petit script fait pour ceux qui doivent maintenir des serveurs et créer des mots de passe rapidement : #!/bin/bash # random password generator # Sets the maximum size of the password the script will generate MAXSIZE=40  # &#60;&#60;&#8212;&#8212;- You can change value array1=(&#8216;a&#8217; &#8216;b&#8217; &#8216;c&#8217; &#8216;d&#8217; &#8216;e&#8217; &#8216;f&#8217; &#8216;g&#8217; &#8216;h&#8217; &#8216;i&#8217; &#8216;j&#8217; &#8216;k&#8217; &#8216;l&#8217; &#8216;m&#8217; &#8216;n&#8217; &#8216;o&#8217; &#8216;p&#8217; &#8216;q&#8217; &#8216;r&#8217; &#8216;s&#8217; &#8216;t&#8217; &#8216;u&#8217; &#8216;v&#8217; &#8216;w&#8217; &#8216;x&#8217; &#8216;y&#8217; &#8216;z&#8217; &#8217;0&#8242; &#8217;1&#8242; &#8217;2&#8242; &#8217;3&#8242; &#8217;4&#8242; [...]]]></description>
				<content:encoded><![CDATA[<p>Voici un petit script fait pour ceux qui doivent maintenir des serveurs et créer des mots de passe rapidement :</p>
<blockquote><p>#!/bin/bash<br />
# random password generator</p>
<p># Sets the maximum size of the password the script will generate<br />
MAXSIZE=40  # &lt;&lt;&#8212;&#8212;- You can change value</p>
<p>array1=(&lsquo;a&rsquo; &lsquo;b&rsquo; &lsquo;c&rsquo; &lsquo;d&rsquo; &lsquo;e&rsquo; &lsquo;f&rsquo; &lsquo;g&rsquo; &lsquo;h&rsquo; &lsquo;i&rsquo; &lsquo;j&rsquo; &lsquo;k&rsquo; &lsquo;l&rsquo; &lsquo;m&rsquo; &lsquo;n&rsquo; &lsquo;o&rsquo; &lsquo;p&rsquo; &lsquo;q&rsquo; &lsquo;r&rsquo; &lsquo;s&rsquo; &lsquo;t&rsquo; &lsquo;u&rsquo; &lsquo;v&rsquo; &lsquo;w&rsquo; &lsquo;x&rsquo; &lsquo;y&rsquo; &lsquo;z&rsquo; &rsquo;0&prime; &rsquo;1&prime; &rsquo;2&prime; &rsquo;3&prime; &rsquo;4&prime; &rsquo;5&prime; &rsquo;6&prime; &rsquo;7&prime; &rsquo;8&prime; &rsquo;9&prime; &rsquo;0&prime; &lsquo;A&rsquo; &lsquo;B&rsquo; &lsquo;C&rsquo; &lsquo;D&rsquo; &lsquo;E&rsquo; &lsquo;F&rsquo; &lsquo;G&rsquo; &lsquo;H&rsquo; &lsquo;I&rsquo; &lsquo;J&rsquo; &lsquo;K&rsquo; &lsquo;L&rsquo; &lsquo;M&rsquo; &lsquo;N&rsquo; &lsquo;O&rsquo; &lsquo;P&rsquo; &lsquo;Q&rsquo; &lsquo;R&rsquo; &lsquo;S&rsquo; &lsquo;T&rsquo; &lsquo;U&rsquo; &lsquo;V&rsquo; &lsquo;W&rsquo; &lsquo;X&rsquo; &lsquo;Y&rsquo; &lsquo;Z&rsquo; &lsquo;!&rsquo; &lsquo;£&rsquo; &lsquo;$&rsquo; &lsquo;%&rsquo; &lsquo;&amp;&rsquo; &lsquo;=&rsquo; &lsquo;.&rsquo; &lsquo;,&rsquo; &lsquo;;&rsquo; &lsquo;:&rsquo; &lsquo;-&rsquo; &lsquo;_&rsquo;)</p>
<p># Used in conjunction with modulus to keep random numbers in range of the array size<br />
MODNUM=${#array1[*]}</p>
<p># Keeps track of the number characters in the password we have generated<br />
pwd_len=0</p>
<p># Bash&rsquo;s command substitution syntax to store the results of the tput command<br />
term_clear=$(tput clear)</p>
<p># Stores the number of lines or rows on the terminal display<br />
max_lines=$(tput lines)</p>
<p># Stores the number of columns on the terminal display<br />
max_cols=$(tput cols)</p>
<p># Finds the appropriate spot to indent for horizontally centered output<br />
indent=$(( ((max_cols / 2)) &#8211; ((MAXSIZE / 2)) ))</p>
<p># Finds the vertical center of the terminal.<br />
line_num=$(( max_lines / 2 ))</p>
<p># Clear the screen<br />
echo $term_clear</p>
<p># The outer while loop starts at 0 and loops till MAXSIZE, creating a passwd char each iteration.<br />
# The shells $RANDOM variable creates a semi-random unsigned number. This is our entropy. =x<br />
# x simply holds some random unsigned int that will be used to make the character scramble.<br />
# 500 was choosen for speed and nothing else. Leave out the mod 500 if you want or change it.<br />
# The inner loop displays the password characters. Tput keeps the cursor in the proper position.<br />
# Mod MODNUM keeps the random number inside the size of the array so it doesnt over index.<br />
while [ $pwd_len -lt $MAXSIZE ]<br />
do<br />
x=$(($RANDOM%500))<br />
y=0<br />
while [ $y -lt $x ]<br />
do<br />
((y++))<br />
index=$(($RANDOM%$MODNUM))<br />
tput cup $line_num $(( indent + pwd_len ))<br />
echo -n &laquo;&nbsp;${array1[$index]}&nbsp;&raquo;<br />
done<br />
((pwd_len++))<br />
done</p>
<p># Place the cursor at the bottom of the screen &#8211;where is usually at.<br />
tput cup $max_lines 0</p>
<p>exit 0</p></blockquote>
<p>En espérant qu&rsquo;il serve <img src='http://blog.sckyzo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sckyzo.com/bash-script-pour-generer-des-mots-de-passe/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Corriger le problème de résolution de Plymouth</title>
		<link>http://blog.sckyzo.com/fixer-le-probleme-de-resolution-de-plymouth/</link>
		<comments>http://blog.sckyzo.com/fixer-le-probleme-de-resolution-de-plymouth/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 10:12:34 +0000</pubDate>
		<dc:creator>SckyzO</dc:creator>
				<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[plymouth]]></category>
		<category><![CDATA[résolution]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.sckyzo.com/?p=1396</guid>
		<description><![CDATA[Comme beaucoup de monde, j&#8217;utilise les drivers propriétaires pour pouvoir profiter à 100% de mon ordinateur. Depuis 1 an maintenant Canonical à intégré Plymouth dans Ubuntu, qui permet d&#8217;avoir un joli boot logon. Mais cela fait aussi 1 an qu&#8217;ils sont INCAPABLE de produire un petit hack ou une petite mise à jour pour pouvoir éviter le gros problème &#8230; lorsqu&#8217;on à des drivers proprios, on perd la résolution du Plymouth &#8230; Ce qui est [...]]]></description>
				<content:encoded><![CDATA[<p>Comme beaucoup de monde, j&rsquo;utilise les drivers propriétaires pour pouvoir profiter à 100% de mon ordinateur.</p>
<p><a href="http://blog.sckyzo.com/wp-content/uploads/2011/03/ubuntu-plymouth.png"><img class="aligncenter size-medium wp-image-1399" title="ubuntu-plymouth" src="http://blog.sckyzo.com/wp-content/uploads/2011/03/ubuntu-plymouth-300x175.png" alt="" width="300" height="175" /></a></p>
<p>Depuis 1 an maintenant Canonical à intégré <strong>Plymouth </strong>dans Ubuntu, qui permet d&rsquo;avoir un joli boot logon.<br />
Mais cela fait aussi 1 an qu&rsquo;ils sont INCAPABLE de produire un petit hack ou une petite mise à jour pour pouvoir éviter <strong>le gros problème</strong> &#8230; lorsqu&rsquo;on à des drivers proprios, on perd la résolution du Plymouth &#8230; Ce qui est plutôt gênant, surtout lorsqu&rsquo;on à un écran 24&Prime; &#8230; et avoir son Plymouth en 640&#215;480 &#8230; C&rsquo;est super moche !!</p>
<p>[EDIT]<br />
Suite à un bug avec mon script, j&rsquo;ai récupéré un autre script fonctionnel a 100%<br />
Désolé aux personnes ayant eu des bugs. Vous pouvez appliquer celui-ci sans problème !!</p>
<p>Téléchargez et exécutez le script</p>
<blockquote><p><code>cd /home/$USER<br />
wget http://launchpadlibrarian.net/57638460/fixplymouth<br />
chmod +x fixplymouth<br />
./fixplymouth<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.sckyzo.com/fixer-le-probleme-de-resolution-de-plymouth/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>
