<?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>Eurion · RainCT&#039;s Blog &#187; Jocs</title>
	<atom:link href="http://bloc.eurion.net/archives/tag/jocs/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloc.eurion.net</link>
	<description>I would love to change the world, but they won&#039;t give me the source code...</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>No sound problem with Wolfenstein: Enemy Territory</title>
		<link>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/</link>
		<comments>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 16:19:33 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu.cat]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Jocs]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=455</guid>
		<description><![CDATA[I don&#8217;t really play much, but of the few games I know Wolfenstein: Enemy Territory is probably the one with which I&#8217;ve spend the most time so far. By featuring multiple player roles (soldier, engineer, medic, etc.) and, even while being multiplayer, nice objective-based scenarios, it provides for much better experience that many other more [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t really play much, but of the few games I know <a href="http://en.wikipedia.org/wiki/Wolfenstein:_Enemy_Territory">Wolfenstein: Enemy Territory</a> is probably the one with which I&#8217;ve spend the most time so far. By featuring multiple player roles (soldier, engineer, medic, etc.) and, even while being multiplayer, nice objective-based scenarios, it provides for much better experience that many other more popular shooters. And best of all, it&#8217;s completely free of cost, has native support for GNU/Linux and a portion of it&#8217;s source code is open!</p>
<p>But it&#8217;s not to advertise this game that I&#8217;m writing about it, but because I want to write down some solution to the &#8220;no sound problem&#8221; which you&#8217;re likely to find if you try it out, and so that I can remember about the fixes in the future. So, here&#8217;s the different things you can try; if one of them fails just go to the next one, and let&#8217;s hope that at least the last one does the trick!</p>
<p><strong>1. Install the &#8220;oss-compat&#8221; package.</strong><br />
As easy as that! Although this alone has never fixed the problem with me, it often does together with solution 2 (described just below), and maybe in your case it may be all you&#8217;re missing.</p>
<p><strong>2. A bit of command-line magic</strong><br />
The next one, which <a href="http://buck-nasty.blogspot.com/2008/08/wolfenstein-enemy-territory-no-sound.html">seems</a> <a href="http://fedoraforum.org/forum/showthread.php?t=163169">to</a> <a href="https://help.ubuntu.com/community/Games/Native/ReturnToCastleWolfensteinEnemyTerritory">be</a> the most successful option, is trying to execute the following line before running <em>Enemy Territory</em>:</p>
<pre>echo "et.x86 0 0 direct" | sudo tee /proc/asound/card0/pcm0p/oss</pre>
<p>If after doing this the sound works, you can make the change permanent by adding that line to your <em>/etc/rc.local/</em>, for example by running:</p>
<pre>sudo sed -i "s:^exit 0:echo 'et.x86 0 0 direct' &gt; /proc/asound/card0/pcm0p/oss\nexit 0:" /etc/rc.local</pre>
<p><strong>3. Let&#8217;s call the artillery</strong></p>
<p>Hopefully you&#8217;ll be enjoying an <em>Enemy Territory</em> game with the sound of explosions and shots in your ears, but if the previous solutions didn&#8217;t do the trick do not despair, there&#8217;s still hope. I&#8217;ve found a different solution <a href="http://www.tomshardware.com/forum/37440-13-sound-wolfenstein-linux">in this thread</a> and it consists in the following:</p>
<p>a) Download this script: <a href="http://bloc.eurion.net/wp-content/uploads/2009/12/wolfsp-sdl-sound.sh">wolfsp-sdl-sound.sh</a> (<a href="http://nullkey.ath.cx/~stuff/et-sdl-sound/wolfsp-sdl-sound.gz">original download link</a>, <a href="http://members.lycos.co.uk/lordbanter/wolfsp-sdl-sound.gz">alternative download link</a>), created by <a href="http://nullkey.ath.cx/">Pyry Haulos</a>.</p>
<p>b) Open it with a text editor and customize it to match your configuration: change the line «<em>GAME_PATH=&#8221;/home/games/enemy-territory&#8221;</em>» to point to the location of your <em>Enemy Territory</em> installation (most likely «<em>GAME_PATH=&#8221;/usr/local/games/enemy-territor&#8221;</em>»); in case your directory with the game files isn&#8217;t called «<em>enemy-territory</em>» like in the example you&#8217;ll also need to adapt the <em>GAME_DIR</em> variable.</p>
<p>c) Save this file somewhere on your computer, make it executable if needed (you can do this by right clicking on it, selecting &#8220;Properties&#8221; and under the &#8220;Permissions&#8221; tab of the dialogue that will show up checking the box to allow execution of the file). Done, now whenever you want to run the game just start it by running this file.</p>
<p>I hope this is useful for someone out there :).</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/no-sound-on-hp-pavilion-dv6-1110ss/' rel='bookmark' title='No sound on HP Pavilion dv6-1110ss'>No sound on HP Pavilion dv6-1110ss</a> <small>I&#8217;ve recently installed Ubuntu Jaunty on an HP Pavilion dv6-1110ss...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/no-sound-problem-with-wolfenstein-enemy-territory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Freevial, a trivia game for community events</title>
		<link>http://bloc.eurion.net/archives/2009/freevial-a-trivia-game-for-community-events/</link>
		<comments>http://bloc.eurion.net/archives/2009/freevial-a-trivia-game-for-community-events/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 22:08:41 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[freevial]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Jocs]]></category>
		<category><![CDATA[loco]]></category>
		<category><![CDATA[pygame]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/?p=213</guid>
		<description><![CDATA[Freevial is a trivia-like questions and answers game which has been created by the Catalan LoCo Team. We play at least one match at all our events and its great fun, so we have decided that we want to go international and share it with any other group who wants to use it. You can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://launchpad.net/freevial">Freevial</a> is a trivia-like questions and answers game which has been created by the <a href="https://wiki.ubuntu.com/CatalanTeam">Catalan LoCo Team</a>. We play at least one match at all our events and its great fun, so we have decided that we want to go international and share it with any other group who wants to use it. You can see how it looks in this <a title="Video demonstrating the features of Freevial" href="http://www.youtube.com/watch?v=K6rxUk_kDf4">video</a>:</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/K6rxUk_kDf4&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/K6rxUk_kDf4&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
<p>Now that you&#8217;ve seen how cool it is, go grab it <a href="http://packages.ubuntu.com/jaunty/freevial">here</a> (yes, the Jaunty version will work fine on Intrepid; in case you&#8217;re not comfortable with this, expect a <a href="https://bugs.edge.launchpad.net/intrepid-backports/+bug/332693">backport</a> within the next days.</p>
<p>Currently it only includes Catalan questions, but with the help of you all we hope to get categories in lots of different languages! If you have a bit of spare team, join #freevial on irc.freenode.net and we&#8217;ll help you to start working on some category in your language (there&#8217;s a <a href="http://db.freevial.org/">web editor</a> to write questions, thanks to <a href="http://arnau.alcalleop.cat/">Arnau Alcázar</a>). We&#8217;d love to see other LoCo Teams (or even groups completely unrelated to Ubuntu) using it!</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2007/the-freevial/' rel='bookmark' title='The Freevial'>The Freevial</a> <small>Avui ha tingut lloc la primera partida de Freevial al...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2009/freevial-a-trivia-game-for-community-events/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tremulous &#8211; T&#8217;apuntes a matar aliens?</title>
		<link>http://bloc.eurion.net/archives/2007/tremulous-tapuntes-a-matar-aliens/</link>
		<comments>http://bloc.eurion.net/archives/2007/tremulous-tapuntes-a-matar-aliens/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 13:59:09 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Jocs]]></category>
		<category><![CDATA[Programari lliure]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/archives/2007/ubuntu-i-programari-lliure/tremulous-tapuntes-a-matar-aliens/</guid>
		<description><![CDATA[Trenco el silenci mortal que regnava aquí per parlar-vos d&#8217;un gran shooter en primera persona que he trobat fa cosa d&#8217;una setmana. Es tracta d&#8217;un joc en línia amb dos equips, un d&#8217;humans i un altre d&#8217;aliens (uns «bitxus raros»), que lògicament han d&#8217;acabar amb l&#8217;equip contrari. El que caracteritza aquest joc, a part de [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bloc.eurion.net/wp-content/uploads/2007/11/tremulous1.jpg" title="tremulous1.jpg" alt="tremulous1.jpg" align="left" vspace="5" hspace="5" />Trenco el silenci mortal que regnava aquí per parlar-vos d&#8217;un gran shooter en primera persona que he trobat fa cosa d&#8217;una setmana. Es tracta d&#8217;un joc en línia amb dos equips, un d&#8217;humans i un altre d&#8217;aliens (uns «bitxus raros»), que lògicament han d&#8217;acabar amb l&#8217;equip contrari.</p>
<p>El que caracteritza aquest joc, a part de que és programari lliure, és que a més de consistir en disparar a tot el que es mou també compta amb elements de joc d&#8217;estratègia en temps real, o traduït: també hi ha construccions. Així, els humans tenen els &#8220;telenodes&#8221;, què són el punts de &#8220;spawn&#8221; (el lloc on ressusciten els personatges que han mort), i els aliens tenen els &#8220;eggs&#8221; que venen a ser el mateix; també hi ha defenses automàtiques, punts de regeneració (per als humans, els aliens es curen sols), construccions que possibiliten l&#8217;evolució (per als aliens) o la compra de noves armes (cadascuna és bona per a una cosa en concret) i objectes (armadura, &#8220;jetpack&#8221; per volar, etc.) per als humans, etc. He dit que els aliens poden evolucionar i els humans poden comprar; això ho fan gracies als punts d&#8217;evolució / crèdits que aconsegueixen al matar enemics. Els objectes disponibles també augmenten segons el nivell en que està l&#8217;equip (n&#8217;hi ha 3, i aquest puja a mesura que es mata enemics).</p>
<p><img src="http://bloc.eurion.net/wp-content/uploads/2007/11/tremulous2.jpg" title="tremulous2.jpg" alt="tremulous2.jpg" align="right" vspace="5" hspace="5" /> Podeu trobar el joc als repositoris de l&#8217;Ubuntu i Debian sota el seu nom, Tremulous,  (aneu a «Sistema -&gt; Administració -&gt; Gestor de paquets Synaptic» per a insta?lar-lo) o baixar-ne la versió per a Mac o «aquell altre sistema» a la seva web: <a href="http://tremulous.net">tremulous.net</a>.</p>
<p>Ah, també comentar que el mapa que més m&#8217;agrada és el &#8220;ATCS&#8221;, els altres són molt grans i sempre m&#8217;hi acabo perdent (a part de que sembla que els aliens hi tenen avantatja) :P. Vinga, a veure si ens trobem jugant-hi!</p>
<hr />
<p><small>
<a href="http://bloc.eurion.net/archives/2007/tremulous-tapuntes-a-matar-aliens/#comments">3 comments</a><br />
© Siegfried-Angel Gevatter Pujals, 2007. |
<a href="http://bloc.eurion.net/archives/2007/tremulous-tapuntes-a-matar-aliens/">Permalink</a> |
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">License</a> |
Post tags: <a href="http://bloc.eurion.net/archives/tag/jocs/" rel="tag">Jocs</a>, <a href="http://bloc.eurion.net/archives/tag/programari-lliure/" rel="tag">Programari lliure</a><br/>
</small></p><p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2007/tremulous-tapuntes-a-matar-aliens/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Freevial</title>
		<link>http://bloc.eurion.net/archives/2007/the-freevial/</link>
		<comments>http://bloc.eurion.net/archives/2007/the-freevial/#comments</comments>
		<pubDate>Sun, 09 Sep 2007 17:02:04 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Jocs]]></category>

		<guid isPermaLink="false">http://bloc.eurion.net/archives/2007/uncategorized/the-freevial/</guid>
		<description><![CDATA[Avui ha tingut lloc la primera partida de Freevial al món. Idea de&#8217;n Nil i desenvolupat per en Carles Oriol i jo, el Freevial és un joc de preguntes tipus trivia, amb gràfics similars als dels concursos de TV, que estem fent per a la GrescaGutsy de l&#8217;Equip català d&#8217;Ubuntu. Aquest matí ens hem reunit [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img249.imageshack.us/img249/6071/cartellqh8.jpg" title="The Freevial: Miniatura del Cartell" alt="The Freevial: Miniatura del Cartell" align="left" border="0" vspace="5" width="106" height="150" hspace="5" />Avui ha tingut lloc la primera partida de <a href="https://launchpad.net/freevial" title="Pàgina del projecte: Freevial">Freevial</a> al món.</p>
<p>Idea de&#8217;n Nil i desenvolupat per en <a href="http://www.kumbaworld.com/">Carles Oriol</a> i jo, el Freevial és un joc de preguntes tipus trivia, amb gràfics similars als dels concursos de TV, que estem fent per a la <a href="https://wiki.ubuntu.com/CatalanTeam/GrescaGutsy">GrescaGutsy</a> de l&#8217;<a href="http://ubuntu.cat" title="Equip català d'Ubuntu">Equip català d&#8217;Ubuntu</a>.</p>
<p>Aquest matí ens hem reunit uns quants per tal de provar el joc en una partida real, i de pas escriure més preguntes entre tots. <a href="http://www.flickr.com/photos/13079241@N07/sets/72157601935003907/" title="Més captures de pantalla"><img src="http://farm2.static.flickr.com/1137/1350487795_f63ce47ab4_m.jpg" title="Freevial: Creació d'equip" alt="Freevial: Creació d'equip" align="right" border="0" vspace="5" width="240" height="180" hspace="5" /></a>No crec que en <a href="http://recepteslinux.homelinux.org/wordpress/">papapep</a> tardi gaire en penjar alguna foto.</p>
<p>Ha estat molt bé això de trobar-nos cara a cara desprès de tant temps a les llistes i l&#8217;IRC, i el joc ha pogut demostrar ho bé que funciona.</p>
<p>Per cert, aquesta nit hi ha <a href="http://ubuntuforums.org/showthread.php?t=546048">reunió extraordinadia</a> de l&#8217;equip, i si recordo bé el personatge que s&#8217;ha menjat la meitat de les galetes (aka papapep) ha estat tan amable de proposar que matarà a qui hi falti ;).</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2009/freevial-a-trivia-game-for-community-events/' rel='bookmark' title='Freevial, a trivia game for community events'>Freevial, a trivia game for community events</a> <small>Freevial is a trivia-like questions and answers game which has...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2007/the-freevial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Utilitzant Adaptadors Bluetooth a Ubuntu Linux&#8230;</title>
		<link>http://bloc.eurion.net/archives/2007/utilitzant-adaptadors-bluetooth-a-ubuntu-linux/</link>
		<comments>http://bloc.eurion.net/archives/2007/utilitzant-adaptadors-bluetooth-a-ubuntu-linux/#comments</comments>
		<pubDate>Fri, 04 May 2007 20:02:59 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Jocs]]></category>

		<guid isPermaLink="false">http://eurion.net/bloc/?p=13</guid>
		<description><![CDATA[Avui he provat de connectar el PC amb el mòbil per primer cop, per tal de descarregar-ne unes fotografies, i per a això he utilitzat un Adaptador Bluetooth USB que m&#8217;ha deixat un amic (una peça semblant a un Pendrive però més petita, que val al voltant d&#8217;uns 15€; la majoria d&#8217;ells arriben fins a [...]]]></description>
			<content:encoded><![CDATA[<p>Avui he provat de connectar el PC amb el mòbil per primer cop, per tal de descarregar-ne unes fotografies, i per a això he utilitzat un Adaptador Bluetooth USB que m&#8217;ha deixat un amic (una peça semblant a un Pendrive però més petita, que val al voltant d&#8217;uns 15€; la majoria d&#8217;ells  arriben fins a uns 100 metres de distància). La veritat és que he quedat sorprès de la facilitat amb què l&#8217;he pogut utilitzar a l&#8217;Ubuntu, però de totes formes aquí us deixo una explicació de com fer-ho (a la Feisty):</p>
<p><span style="font-weight: bold">Instal·lació:</span></p>
<p>1. Obre una terminal i executa-hi: <span style="font-style: italic">sudo apt-get install bluetooth gnome-bluetooth libbluetooth2 obexftp</span>.</p>
<p>2. També recomano fer (i si hi hagués problemes i us heu saltat aquest pas proveu a fer-lo també, no ho he provat sense): <span style="font-style: italic">sudo apt-get install obexfs obexpushd openobex-apps gnome-vfs-obexftp</span>. Entre d&#8217;altres, això et permetrà navegar per les carpetes del dispositiu remot des del Nautilus entrant a la ruta &#8220;obex:///&#8221;.</p>
<p>3. Els passos 1 (i 2) no tardaran gaire, ja que són tot coses que ocupen molt poc (i algunes ja venen pre-instal·lades). A continuació, si teniu un dongle bluetooth (és a dir, un &#8220;bitxo&#8221; extern), executa (també a la terminal): <span style="font-style: italic">sudo /etc/init.d/bluetooth restart</span>.</p>
<p>4. (Com el punt anterior, aquest tampoc cal si tens un portàtil amb Bluetooth integrat.) Ara comprova que el dispositiu ha estat detectat. Per això executa l&#8217;ordre &#8220;<span style="font-style: italic">lsusb</span>&#8221; (pot tardar un temps); sortirà alguna cosa semblant a això: <span style="font-style: italic">Bus 006 Device 003: ID 1310:0001 Roper Class 1 Bluetooth Dongle</span><span style="font-style: italic">.</span></p>
<p>5. També executa &#8220;<span style="font-style: italic">hcitool dev</span>&#8220;. Sortirà alguna cosa com &#8220;<span style="font-style: italic">hci0    00:0A:28:61:2F:A5</span>&#8220;. La seqüència aquesta, amb el format aa:bb:cc:dd:ee:ff és l&#8217;identificador mac del dongle; en cas de que tot fossin zeros torna al punt 3.</p>
<p><span style="font-weight: bold">Connectant al mòbil</span><br />
A continuació tot farà referència a telèfons mòbils, encara que hauria de funcionar igual amb els altres dispositius amb capacitat Bluetooth.</p>
<p>6. Per tal de detectar l&#8217;aparell, has de fer-lo visible (&#8220;descobrible) als altres i abans que la seva visibilitat expiri executar això a la terminal: <span style="font-style: italic">hcitool scan</span>. L&#8217;operació tardarà uns pocs segons i buscarà tots els aparells propers; si no trobés el teu, torna a efectuar aquest punt des del principi, aquest cop corrent una mica més. Un cop tinguis el nombre mac del teu mòbil, apunta&#8217;l.</p>
<p>7. Ara, per tal que es carreguin les eines que has instal·lat al punt 2 (i 3), reinicia el GNOME. Per fer això, prem alhora les tres tecles <span style="font-style: italic">[Ctrl] + [Alt] + [Borrar],</span> i veuràs com la pantalla queda negra i al cap d&#8217;uns pocs segons torna a demanar-te el nom d&#8217;usuari i la contrasenya. Aquest cop, quan s&#8217;iniciï la sessió t&#8217;apareixerà una nova icona al panell superior: la del Bluetooth.</p>
<p>8. (No estic segur si aquest pas és necessari, però el poso per si de cas. Executa això a la terminal, <span style="font-style: italic">sudo hidd &#8211;connect aa:bb:cc:dd:ee:ff</span>, substituint  <span style="font-style: italic">aa:bb:cc:dd:ee:ff </span>pel codi mac que has aconseguit al punt 6.)</p>
<p>9. Tot seguit, si no n&#8217;estàs segur, comprova que el teu mòbil sigui compatible. Per a això, utilitza l&#8217;ordre <span style="font-style: italic">sdptool browse aa:bb:cc:dd:ee:ff </span>(on aa:bb:cc:dd:ee:ff, el nombre mac). Això provocarà l&#8217;aparició d&#8217;un munt d&#8217;informació &#8211; els serveis de que disposa el mòbil; assegura&#8217;t que hi apareix &#8220;<span style="font-style: italic">Service Name: OBEX File Transfer</span>&#8221; i &#8220;<span style="font-style: italic">Service Name: OBEX Object Push</span>&#8220;.</p>
<p>Perfecte: Ja pots començar a transferir dades!</p>
<p><span style="font-weight: bold">Treballant amb Bluetooth</span></p>
<p>Per tal de rebre un llistat de les carpetes que hi ha al mòbil utilitza l&#8217;ordre &#8220;<span style="font-style: italic">obexftp -b </span>aa:bb:cc:dd:ee:ff<span style="font-style: italic"> -l</span>&#8221; (la L per &#8220;list&#8221;). Per veure el contingut d&#8217;una carpeta en concret,  &#8220;<span style="font-style: italic">obexftp -b </span>aa:bb:cc:dd:ee:ff<span style="font-style: italic"> -l</span> la/carpeta&#8221;.</p>
<p>Per descarregar un arxiu del mòbil, un cop en saps el directori (consulta el paràgraf anterior per descobrir com fer-ho), pots utilitzar aquesta ordre per transferir l&#8217;arxiu que vulguis a la carpeta actual: <span style="font-style: italic">&#8220;obexftp -b </span>aa:bb:cc:dd:ee:ff<span style="font-style: italic"> -g </span>carpeta/arxiu.extensió&#8221; (la G per &#8220;get&#8221;).</p>
<p>I, per últim, per enviar-hi un arxiu utilitza &#8220;<span style="font-style: italic">obexftp -b </span>aa:bb:cc:dd:ee:ff <span style="font-style: italic">-B </span>X<span style="font-style: italic"> -p </span>/carpeta/arxiu.extensió&#8221; (la P per &#8220;put&#8221;). On hi ha la X has de posar-hi el canal de del <span style="font-style: italic">OBEX Object Push</span>, que t&#8217;apareixerà entre les dades que dona la 9a instrucció d&#8217;aquest text, poc després de la línia on surt &#8220;<span style="font-style: italic">Service Name: OBEX Object Push</span>&#8220;.</p>
<p>El primer cop que realitzis una d&#8217;aquestes ordres (en la tercera potser no, però amb les altres si) segurament el mòbil et dirà que s&#8217;ha de vincular al dispositiu, i et demanarà confirmació. A continuació, et demanarà la contrasenya Bluetooth; en aquest camp pots escriure-hi el que vulguis, &#8220;<span style="font-style: italic">1234</span>&#8221; mateix ja serveix. Un cop introduït allà, sota el panell superior et sortirà una notificació emergent dient que s&#8217;ha d&#8217;introduir una contrasenya i al fer-hi clic s&#8217;obrirà una finestra demanant-la: allà hi has d&#8217;escriure exactament el mateix codi que al mòbil. Un cop fet això, ja estaran vinculats i no et molestarà més, encara que, depenent del telèfon, pot ser que demani permís cada cop que vols fer alguna cosa.</p>
<p><span style="font-weight: bold">Descarregar tots els arxius d&#8217;un directori</span></p>
<p>Pot ser que tinguis sort i utilitzant &#8220;<span style="font-style: italic">carpeta/*.*</span>&#8221; puguis baixar tot el contingut d&#8217;una carpeta de cop, però en cas de que això falli (com m&#8217;ha passat a mi) hi ha una solució, i aquesta és un script que he fet :). El <span style="font-style: italic">programet</span> està fet en PHP, així que si no el teniu instal·lat teniu dues opcions: o bé feu <span style="font-style: italic">sudo apt-get install php5</span> i instal·leu aquest des dels dipòsits; o us baixeu el <a href="http://www.apachefriends.org/en/xampp.html">XAMPP for Linux</a>, el descomprimiu al directori /opt (us caldràn permisos d&#8217;administració per a això, també), i l&#8217;inicieu amb <span style="font-style: italic">&#8220;sudo /opt/lampp/lampp start&#8221;</span>.</p>
<p>Un cop tingueu PHP activat (o si ja l&#8217;hi teníeu) descarrega el codi d&#8217;aquest script meu, que està sota llicència GPL, aquí: <a href="http://utils.eurion.net/hosted/getDirFromCell.tar.gz">getDirFromCell</a>, descomprimeix l&#8217;arxiu getDirFromCell.php on vulguis, edita&#8217;l amb el <span style="font-style: italic">gEdit</span> (o algun altre programa com el <span style="font-style: italic">Bluefish Editor</span> o el <span style="font-style: italic">Geany</span>) i canvia les 3 variables de configuració:</p>
<p>- <span style="font-weight: bold">$mac:</span> El identificador mac del teu mòbil.<br />
- <span style="font-weight: bold">$path: </span>El directori del que vols descarregar els arxius (no s&#8217;inclouen subdirectoris).<br />
- <span style="font-weight: bold">$overwrite:</span> Si vols que es sobreescriguin arxius existents (per no descarregar dos cops el mateix o borrar arxius que tinguin el mateix nom) (true / false).</p>
<p>Finalment executa l&#8217;ordre &#8220;<span style="font-style: italic">php </span>/carpeta/getDirFromCell.php&#8221; o &#8220;<span style="font-style: italic">/opt/lampp/bin/php-5.2.1</span> /carpeta/getDirFromCell.php&#8221;, tenint el mòbil encès i a prop, i la transferència començarà. Tingues en compte que pot ser que el mòbil et demani permís per a cada arxiu so?licitat, però sempre és millor que haver d&#8217;escriure el nom de cadascun individualment. També pensa que els arxius apareixeran al directori on estàs quan executes l&#8217;ordre.</p>
<p><span style="font-weight: bold">Nota (05/05/2007):</span> He actualitzat el script i ara té l&#8217;opció de recursivitat i de &#8220;mode debug&#8221;.</p>
<p><span style="font-style: italic"><br />
(Fonts d&#8217;Informació: </span><a href="https://help.ubuntu.com/community/BluetoothSetup">BluetoothSetup</a><span style="font-style: italic"> i </span><a href="http://devnull.wordpress.com/2005/10/30/como-bluetooth-en-ubuntu-2/">Como Bluetooth en Ubuntu 2</a><span style="font-style: italic">.)</span></p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2007/gta2-gratis-ubuntu/' rel='bookmark' title='Juga al GTA2 gratis i sota Ubuntu Linux'>Juga al GTA2 gratis i sota Ubuntu Linux</a> <small>Grand Theft Auto 2 és un joc de Rockstar Games...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2007/utilitzant-adaptadors-bluetooth-a-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Juga al GTA2 gratis i sota Ubuntu Linux</title>
		<link>http://bloc.eurion.net/archives/2007/gta2-gratis-ubuntu/</link>
		<comments>http://bloc.eurion.net/archives/2007/gta2-gratis-ubuntu/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 19:05:52 +0000</pubDate>
		<dc:creator>RainCT</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Jocs]]></category>

		<guid isPermaLink="false">http://eurion.net/bloc/archives/2007/uncategorized/14/</guid>
		<description><![CDATA[Grand Theft Auto 2 és un joc de Rockstar Games (anteriorment conegut com a DMA Designs) que va sortir a la venda l&#8217;Octubre del 1999. Tot i tenir ja casi deu anys, és un joc prou divertit i entretingut i amb gràfics acceptables, encara que aquests no es puguin comparar amb els moderns. El teu [...]]]></description>
			<content:encoded><![CDATA[<p>Grand Theft Auto 2 és un joc de Rockstar Games (anteriorment conegut com a DMA Designs) que va sortir a la venda l&#8217;Octubre del 1999. Tot i tenir ja casi deu anys, és un joc prou divertit i entretingut i amb gràfics <em>acceptables</em>, encara que aquests no es puguin comparar amb els moderns.</p>
<p>El teu paper al joc consisteix en complir les missions que et donen diverses bandes criminals per passar així els diferents escenaris. Ets lliure de robar qualsevol cotxe amb que et trobis i pots entrar en persecucions amb la policia que, a causa del fet que es vegi tot des de dalt, es podrien comparar amb les de les pel·lícules.</p>
<p>Doncs bé, i que hi pinta aquest joc en un bloc de programari lliure? La cosa és que, ja fa uns anys, pots descarregar-lo de franc des de la pàgina <a href="http://www.rockstargames.com/classics/">Rockstar Classics</a> i, encara que estigui pensat per a Windows, amb l&#8217;ajuda del <a href="http://winehq.org/">Wine</a> (&#8220;<em>Wine Is Not an Emulator</em>&#8220;) és possible fer-lo funcionar perfectament a l&#8217;Ubuntu.</p>
<p>Per a això, primer de tot descarrega el joc de la pàgina anteriorment citada (són al voltant d&#8217;uns 340 megaoctets). Donarem per suposat que ja tens el wine instal·lat i correctament configurat (pots instal·lar-lo amb &#8220;<code>sudo apt-get install wine</code>&#8220;). Un cop tinguis l&#8217;arxiu, obre&#8217;l amb el wine i segueix les instruccions d&#8217;instal·lació.</p>
<p>A continuació, descarrega l&#8217;OpenGlide (<a href="http://prdownloads.sourceforge.net/openglide/OpenGLide_009a3.zip?download">OpenGLide_009a3.zip</a>) i extreu l&#8217;arxiu al directori ocult .wine/drive_c/windows/system32 de la teva carpeta d&#8217;inici (això és necessari perquè el joc està fet per a una configuració de video de 16bit).</p>
<p>Ara, has d&#8217;obrir l&#8217;editor del registre del Wine. Aquest el trobaràs, si tens l&#8217;Ubuntu Gutsy (7.10), al menú Aplicacions -&gt; Wine, a la Feisty (7.04) a <em>Sistema -&gt; Preferències -&gt; Wine RegEdit</em> o amb versions anteriors executant &#8220;regedit&#8221; a la terminal. Allà, ves fins al directori <em>HKEY_LOCAL_MACHINE/Software/DMA Design Ltd/GTA2/Screen</em>, on has d&#8217;afegir o modificar algunes claus perquè acabi així:</p>
<p>&#8220;bit_depth&#8221;=dword:00000020<br />
&#8220;curr_dll_id&#8221;=dword:00000002<br />
&#8220;device&#8221;=dword:00000002<br />
&#8220;max_frame_rate&#8221;=dword:00000001<br />
&#8220;min_frame_rate&#8221;=dword:00000000<br />
&#8220;renderdevice&#8221;=dword:00000000<br />
&#8220;rendername&#8221;=&#8221;3dfx.dll&#8221;<br />
&#8220;special_recognition&#8221;=dword:00000000<br />
&#8220;start_mode&#8221;=dword:00000001<br />
&#8220;tripple_buffer&#8221;=dword:00000000<br />
&#8220;videodevice&#8221;=dword:00000001<br />
&#8220;videoname&#8221;=&#8221;dmaglide.dll&#8221;</p>
<p>Finalment, obre una terminal, escriu-hi &#8220;<code>sudo gedit /usr/local/bin/gta</code>&#8221; i copia-hi això:</p>
<p><code>cd "~/.wine/drive_c/Program Files/Rockstar Games/GTA2"<br />
wine explorer /desktop=x,640x500 gta2</code></p>
<p>Ara ja pots gaudir del Grand Theft Auto 2 de forma gratuïta, totalment legal i sota Ubuntu! L&#8217;únic problema amb que et trobaràs és que no es veurà el vídeo inicial (prem <em>espai</em> per saltar-lo) i al menú no sortiran les imatges ni podràs utilitzar la opció &#8220;Options&#8221;, però a part d&#8217;això hauria d&#8217;anar tot com una seda, potser millor que sota Windows i tot.</p>
<p>Related posts:<ol>
<li><a href='http://bloc.eurion.net/archives/2007/utilitzant-adaptadors-bluetooth-a-ubuntu-linux/' rel='bookmark' title='Utilitzant Adaptadors Bluetooth a Ubuntu Linux&#8230;'>Utilitzant Adaptadors Bluetooth a Ubuntu Linux&#8230;</a> <small>Avui he provat de connectar el PC amb el mòbil...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloc.eurion.net/archives/2007/gta2-gratis-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

