<?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>El Bloc d'en Festuc &#187; Linux</title>
	<atom:link href="http://blog.festuc.info/?feed=rss2&#038;cat=6" rel="self" type="application/rss+xml" />
	<link>http://blog.festuc.info</link>
	<description>Coses que s'em occurreixen :D</description>
	<lastBuildDate>Wed, 14 Oct 2009 00:28:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clonant maquines windows amb mandriva one</title>
		<link>http://blog.festuc.info/?p=17</link>
		<comments>http://blog.festuc.info/?p=17#comments</comments>
		<pubDate>Sat, 21 Feb 2009 20:12:26 +0000</pubDate>
		<dc:creator>festuc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandriva]]></category>

		<guid isPermaLink="false">http://blog.festuc.info/?p=17</guid>
		<description><![CDATA[Exemció de responsabilitat:
Tants windows com cloneu tantes llicències legals que teniu, jo no estic fent aquest script per fer res ilegal.
A vegades tenim n màquines windows que per raons de feina ens demanen de clonar-les per la xarxa.
Realment és molt fàcil fer-ho per a màquines amb característiques exactament iguals, (bàsicament aquesta recepta es basa que [...]]]></description>
			<content:encoded><![CDATA[<p>Exemció de responsabilitat:<br />
Tants windows com cloneu tantes llicències legals que teniu, jo no estic fent aquest script per fer res ilegal.<br />
A vegades tenim n màquines windows que per raons de feina ens demanen de clonar-les per la xarxa.<br />
Realment és molt fàcil fer-ho per a màquines amb característiques exactament iguals, (bàsicament aquesta recepta es basa que tots els clons han de tenir el mateix &#8220;model&#8221; de disc dur)<br />
Jo faig servir mandriva one com a live cd (aquest té PermitRootLogin = yes a /etc/ssh/sshd_config)<br />
Consideracions generals:<br />
necesitem tenir una xarxa ipv4 i amb dhcp implementat (configurar el servidor com a dhcp es molt fàcil)<br />
<!--break--><span id="more-17"></span><br />
Preparem el servidor d&#8217;aquesta manera:<br />
<code><br />
su #ens pasem a root<br />
passwd #entrem una contrasenya de root<br />
#obrim el port 22 del tallafocs:<br />
drakfirewall<br />
#agafem l'script que ens crea el server si tenim internet:<br />
wget http://festuc.info/clonserver.sh<br />
#si no tenim internet... ja trobareu la manera de portar aquest script al vostre ordinador.<br />
#executem el preparador del server:<br />
bash clonserver.sh eth0 sda #primer cal posar l'interficie de xarxa<br />
#i despres el disc que clonarem <img src='http://blog.festuc.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</code><br />
Ara arranquem el client&#8230;.<br />
un cop a dintre obrim una consola i hem de fer-hi 3 coses:<br />
<code><br />
su #per entrar com a superusuari<br />
rsync ip.del.servidor:/root/ /root/ #per agafar el que ens cal<br />
bash /root/clon.sh #per executar totes les ordres que ha preparat el servidor<br />
</code><br />
Això clonarà i reiniciarà la màquina deixant el windows com l&#8217;original</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.festuc.info/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reconectant la intel PRO/Wireless 4965</title>
		<link>http://blog.festuc.info/?p=11</link>
		<comments>http://blog.festuc.info/?p=11#comments</comments>
		<pubDate>Sun, 25 May 2008 07:14:41 +0000</pubDate>
		<dc:creator>festuc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandriva]]></category>

		<guid isPermaLink="false">http://blog.festuc.info/?p=11</guid>
		<description><![CDATA[Amb la mandriva 2008.1 la tarjeta wifi del portàtil s&#8217;em desconnecta.
Ho he arreglat amb un simple script que cridat des de crontab del root cada x temps reconecta la xarxa
 Aqui teniu el script (guardeu-lo a /sbin, per exemple)
al crontab la linea que el crida es així

# min(0-59)     hours(0-23)   [...]]]></description>
			<content:encoded><![CDATA[<p>Amb la mandriva 2008.1 la tarjeta wifi del portàtil s&#8217;em desconnecta.<br />
Ho he arreglat amb un simple script que cridat des de crontab del root cada x temps reconecta la xarxa<br />
 Aqui teniu el <a href="reconnecta">script</a> (guardeu-lo a /sbin, per exemple)<br />
al crontab la linea que el crida es així<br />
<code><br />
# min(0-59)     hours(0-23)     day(1-31)       month(1-12)     dow(0-7)        command<br />
*/2                 *                    *                   *                     *                 sudo  /sbin/reconnecta >> /tmp/reconecta.log<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.festuc.info/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Posant un monitor de 17&#8243; al meu portàtil Acer 6292</title>
		<link>http://blog.festuc.info/?p=7</link>
		<comments>http://blog.festuc.info/?p=7#comments</comments>
		<pubDate>Fri, 19 Oct 2007 19:21:37 +0000</pubDate>
		<dc:creator>festuc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandriva]]></category>

		<guid isPermaLink="false">http://blog.festuc.info/?p=7</guid>
		<description><![CDATA[M&#8217;he comprat un ordinador molt cucu.
Jo uso Mandriva Linux i volia provar aixo del blender.
Pero la minipantalla que porta el meu nou portàtil no em deixava&#8230; (12&#8243;)
El problema va ser que el  krandrtray que porta el KDE no anava bé, i el XFdrake ara no deixa posar extensió de pantalla a una segona.
Si enxufava [...]]]></description>
			<content:encoded><![CDATA[<p>M&#8217;he comprat un ordinador molt cucu.<br />
Jo uso Mandriva Linux i volia provar aixo del blender.<br />
Pero la minipantalla que porta el meu nou portàtil no em deixava&#8230; (12&#8243;)<br />
El problema va ser que el  krandrtray que porta el KDE no anava bé, i el XFdrake ara no deixa posar extensió de pantalla a una segona.<span id="more-7"></span><br />
Si enxufava una pantalla de 15&#8243; reconeixia el mode de 1024&#215;768.<br />
hi ha una ordre que es diu <code>xrandr</code> que a seques contesta quins modes de pantalla suporta les pantalles que tens al sistema<br />
en el meu cas:<br />
<code>[festuc@sonica ~]$ xrandr<br />
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 1600<br />
VGA connected 1024x768 (normal left inverted right x axis y axis) 338mm x 270mm<br />
   1280x800_75    75.0<br />
   1280x800_60    60.0<br />
   1024x768       75.1     70.1     60.0<br />
   832x624        74.6<br />
   800x600        72.2     75.0     60.3<br />
   640x480        75.0     72.8     66.7     60.0<br />
   720x400        70.1<br />
   640x350        70.1<br />
LVDS connected 1280x800+1280+0 (normal left inverted right x axis y axis) 261mm x 163mm<br />
   1280x800       60.0*+<br />
   1024x768       60.0<br />
   800x600        60.3<br />
   640x480        59.9<br />
TMDS-1 disconnected (normal left inverted right x axis y axis)<br />
TV disconnected (normal left inverted right x axis y axis)<br />
</code><br />
Aquest <code>maximum 2560 x 1600</code> S&#8217;aconsegeix posant al  <code>/etc/x11/xorg.conf</code> una linea :<br />
<code>        Virtual 2560 1600</code> a dintre les    <code> Subsection "Display"</code><br />
Dons això si posava la de 15&#8243; i executava<br />
<code> xrandr --output VGA --left-of LVDS --mode 1024x768</code><br />
Em sortia bé<br />
pero per posar la de 17&#8243; haig d&#8217;afegir un nou mode a la llista de la sortida VGA<br />
primer el creo<br />
<code>xrandr --newmode 1280x1024 106.97 1280 1360 1496 1712 1024 1025 1028 1059 </code><br />
Despres l&#8217;afegeixo<br />
<code> xrandr --addmode  VGA 1280x1024</code><br />
i finalment ja puc posar la VGA a 1280&#215;1024<br />
<code>xrandr --output VGA --left-of LVDS --mode 1280x1024</code><br />
et voilà <img src='http://blog.festuc.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>El meu xorg.conf<br />
<code><br />
# File generated by XFdrake (rev 230776)</p>
<p>Section "Extensions"<br />
    Option "Composite"<br />
EndSection<br />
# **********************************************************************<br />
# Refer to the xorg.conf man page for details about the format of<br />
# this file.<br />
# **********************************************************************</p>
<p>Section "ServerFlags"<br />
    #DontZap # disable <Ctrl><Alt><BS> (server abort)<br />
    AllowMouseOpenFail # allows the server to start up even if the mouse does not work<br />
    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)<br />
EndSection</p>
<p>Section "Module"<br />
    Load "dbe" # Double-Buffering Extension<br />
    Load "v4l" # Video for Linux<br />
    Load "extmod"<br />
    Load "type1"<br />
    Load "freetype"<br />
    Load "glx" # 3D layer<br />
    Load "dri" # direct rendering<br />
EndSection</p>
<p>Section "InputDevice"<br />
    Identifier "Keyboard1"<br />
    Driver "kbd"<br />
    Option "XkbModel" "pc105"<br />
    Option "XkbLayout" "es"<br />
    Option "XkbOptions" "compose:rwin"<br />
EndSection</p>
<p>Section "InputDevice"<br />
    Identifier "Mouse1"<br />
    Driver "mouse"<br />
    Option "Protocol" "ExplorerPS/2"<br />
    Option "Device" "/dev/mouse"<br />
EndSection</p>
<p>Section "InputDevice"<br />
    Identifier "SynapticsMouse1"<br />
    Driver "synaptics"<br />
    Option "SHMConfig" "on"<br />
EndSection</p>
<p>Section "Monitor"<br />
    Identifier "monitor1"<br />
    VendorName "Plug'n Play"<br />
    ModelName "A150-X2"<br />
    HorizSync 28-63<br />
    VertRefresh 55-78</p>
<p>    # TV fullscreen mode or DVD fullscreen output.<br />
    # 768x576 @ 79 Hz, 50 kHz hsync<br />
    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630</p>
<p>    # 768x576 @ 100 Hz, 61.6 kHz hsync<br />
    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_120"  181.21  1280 1376 1520 1760  800 801 804 858  -HSync +Vsync</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_100"  147.89  1280 1376 1512 1744  800 801 804 848  -HSync +Vsync</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_85"  123.38  1280 1368 1504 1728  800 801 804 840  -HSync +Vsync</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_75"  107.21  1280 1360 1496 1712  800 801 804 835  -HSync +Vsync</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_60"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync</p>
<p>    # modeline generated by gtf(1) [handled by XFdrake]<br />
    ModeLine "1280x800_50"  68.56  1280 1336 1472 1664  800 801 804 824  -HSync +Vsync<br />
EndSection</p>
<p>Section "Device"<br />
    Identifier "device1"<br />
    VendorName "Intel Corporation"<br />
    BoardName "Intel 810 and later"<br />
    Driver "intel"<br />
    Option "DPMS"<br />
    Option "XaaNoOffscreenPixmaps" "1"<br />
EndSection</p>
<p>Section "Screen"<br />
    Identifier "screen1"<br />
    Device "device1"<br />
    Monitor "monitor1"<br />
    DefaultColorDepth 24</p>
<p>    Subsection "Display"<br />
        Depth 8<br />
        Modes "1280x800" "1024x768" "800x600" "640x480"<br />
        Virtual 2560 1600 #by festuc<br />
    EndSubsection</p>
<p>    Subsection "Display"<br />
        Depth 15<br />
        Modes "1280x800" "1024x768" "800x600" "640x480"<br />
        Virtual 2560 1600#by festuc<br />
    EndSubsection</p>
<p>    Subsection "Display"<br />
        Depth 16<br />
        Modes "1280x800" "1024x768" "800x600" "640x480"<br />
        Virtual 2560 1600#by festuc<br />
    EndSubsection</p>
<p>    Subsection "Display"<br />
        Depth 24<br />
        Modes "1280x800" "1024x768" "800x600" "640x480"<br />
        Virtual 2560 1600#by festuc<br />
    EndSubsection<br />
EndSection</p>
<p>Section "ServerLayout"<br />
    Identifier "layout1"<br />
    InputDevice "Keyboard1" "CoreKeyboard"<br />
    InputDevice "Mouse1" "CorePointer"<br />
    InputDevice "SynapticsMouse1" "AlwaysCore"<br />
    Screen "screen1"<br />
EndSection</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.festuc.info/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
