tag:blogger.com,1999:blog-78682377515012954972024-02-19T16:17:25.640-08:00Computers Stone AgeThis is more a reminder than a blog... You may find things which can be useful to you... or not... But it doesn't matter.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-7868237751501295497.post-90679672911756311222012-10-21T09:29:00.001-07:002012-10-21T09:40:57.628-07:00According to Amazon, Linux and Android are required to install Windows 8<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDi8Kz-sicXieC6WF9XyVj6saysg0EzsHbXGMUZMWjgaxYB_O7-t-Bi3aBYXQ3gylkQl9NwABFlgwMo6vfMVrOKi_jZr-eVccoZN58_q28f86fSZhyphenhyphenfJLKKl9upOSDsZI0ZyY4iY8oOzE/s1600/Screenshot+from+2012-10-21+12:24:11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDi8Kz-sicXieC6WF9XyVj6saysg0EzsHbXGMUZMWjgaxYB_O7-t-Bi3aBYXQ3gylkQl9NwABFlgwMo6vfMVrOKi_jZr-eVccoZN58_q28f86fSZhyphenhyphenfJLKKl9upOSDsZI0ZyY4iY8oOzE/s400/Screenshot+from+2012-10-21+12:24:11.png" width="327" /></a></div>
<br />Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-75514337484468938092012-10-21T03:34:00.005-07:002012-10-21T03:35:29.947-07:00Amazon has a strange way of advertising Windows 8<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglY6yTLSAfi1RN102NngUhu6d_aDQZnGkeGitPiO05bIUCkSY9F8NprgwEEZv-bLF5sMtuY4crkiCxD_d3fivLGVV9jJcqvNniql0imdCjCRvu2nOTcNpw9_uWSM5lEO2emvnmAvcEMOw/s1600/screenshot3-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="346" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglY6yTLSAfi1RN102NngUhu6d_aDQZnGkeGitPiO05bIUCkSY9F8NprgwEEZv-bLF5sMtuY4crkiCxD_d3fivLGVV9jJcqvNniql0imdCjCRvu2nOTcNpw9_uWSM5lEO2emvnmAvcEMOw/s400/screenshot3-1.png" width="400" /></a></div>
<br />Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-50541369913088918102012-08-18T11:15:00.002-07:002012-08-18T11:20:31.768-07:00How Microsoft sees your PC<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrM_e9ssty1eV9jKHL5hi591CrrvGU-PWQ1F9BCNIhXXHBEQhOspgAf1_9iuCk09f-uKrahEFMOmn_kyKN9pyrGIcGUi7xlC6c6qi0jEzbo6uOG73b1zll7O9nL48tucxShQYwuSgiGyo/s1600/drawing-512.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrM_e9ssty1eV9jKHL5hi591CrrvGU-PWQ1F9BCNIhXXHBEQhOspgAf1_9iuCk09f-uKrahEFMOmn_kyKN9pyrGIcGUi7xlC6c6qi0jEzbo6uOG73b1zll7O9nL48tucxShQYwuSgiGyo/s1600/drawing-512.png" /></a></div>
<br />Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-8837197206833983802012-07-13T17:28:00.000-07:002012-09-26T03:37:00.689-07:00How to easily upgrade your Galaxy Nexus to Android 4.1 Jelly Bean<br />
<br />
This tutorial is mainly dedicated to Canadian owner of Galaxy Nexus phones or any owner of a GSM/HSDPA+ version of this phone (I9250) who wants to upgrade to Jelly Bean without waiting for monthes.<br />
<u><b>Update:</b></u> you can use this proces to update other versions of Google devices like the Nexus S to any version of Android available from Google website.<br />
<br />
It is a very simple process which uses only official Google tools, Firmware and tutorials.<br />
<br />
<span style="color: red; font-family: Arial, Helvetica, sans-serif;"><b>DISCLAIMER:</b> The following process will erase all data on your phone, and may void your warranty. So backup your data and do it at your own risk. I'm not responsible for anything.</span><br />
<br />
The tutorial works with Linux and Windows.<br />
<br />
First you have to update your USB config on your Linux box (even if adb already worked). Just create the file has described in “Configuring USB Access” in this page: <a href="https://source.android.com/source/initializing.html#configuring-usb-access">https://source.android.com/source/initializing.html#configuring-usb-access</a><br />
Follow only instructions from the “Configuring USB Access” section. All other instructions in this page have nothing to do with what we are doing here.<br />
For windows, using USB drivers provided by Android SDK (often call adb driver) will be good. To download the USB driver, go to <a href="http://developer.android.com/sdk/win-usb.html">http://developer.android.com/sdk/win-usb.html</a>, and go to <a href="http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver">http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver</a> to see how to install it. When you have the list of the 3 available drivers, instal the "bootloader" one.<br />
<br />
Then, you need fastboot and adb software. Fastboot and adb are available and already compiled in Android SDK ( download it <a href="http://developer.android.com/sdk/index.html">http://developer.android.com/sdk/index.html</a> ). Note that fastbook and adb programs must be in your path. You will find it in platform-tools folder in the sdk. To do that, unzip the SDK somewhere, but avoid spaces in the path to the SDK (a simple solution may be to put the SDK in your home directory), and add "<span style="background-color: white;">platform-tools" to your path (here is how to add a directory to your path for <a href="http://www.troubleshooters.com/linux/prepostpath.htm">Linux</a> and <a href="http://www.computerhope.com/issues/ch000549.htm">windows</a>)</span><br />
<br />
Now we have to download the full firmware for Android 4.0.4 from Google server. We need the “yakju” version of android 4.0.4 available here: <a href="https://developers.google.com/android/nexus/images#yakju">https://developers.google.com/android/nexus/images#yakju</a><br />
Since Android 4.1.1 image is now available, you can directly download the 4.1.1 version, follow the same process to install it and avoid the upgrade process at the end.<br />
<br />
<b>Everything is now ready to start upgrading</b><br />
<br />
First thing first, you have to unlock your phone. It's really easy, and Google describe how to do on this page : <a href="https://source.android.com/source/building-devices.html">https://source.android.com/source/building-devices.html</a>.<br />
Since you already have fastboot and adb from Android SDK in your path, jump directly to “Booting into fastboot mode” section. <span style="background-color: white;">Use the key combination described in the table, for “maguro”: Press and hold both Volume Up and Volume Down, then press and hold Power.</span><br />
When a screen with some information is displayed, plug your phone on your computer using your USB cable and run this command:<br />
<blockquote class="tr_bq">
<span style="color: red; font-family: 'Courier New', Courier, monospace;"><b style="background-color: #eeeeee;">fastboot oem unlock</b></span></blockquote>
If the process goes well it should say so. If it hangs saying it is waiting for the device, you may not have the good USB configuration/driver.<br />
<br />
Once your phone is unlocked, unzip the “yakju” image you downloaded anywhere you want. From a command prompt, go in the created folder, and run flash-all.sh . This is a script for Linux (or cygwin). If you use Windows, can run the script from a cygwin terminal. Just download Cygwin installer at http://cygwin.com/install.html install it, and then, open a Cygwin terminal.<br />
Wait until the installation is completed. It took 100 seconds for me.<br />
<br />
Then you can reboot… and voila, you have Android 4.0.4 running.<br />
<br />
<br />
Now you have to upgrade to 4.1.1. The first times you will check, it will say it’s up to date and no update is available.<br />
You may have to make the following operations a few times to see the update for 4.1.1:<br />
<br />
<ul>
<li><span style="background-color: white;">go in:/settings/apps/all/google services framework/</span></li>
<li><span style="background-color: white;">once it opens clear data and force stop</span></li>
<li><span style="background-color: white;">run "/settings/about phone/check for updates" to see if the update is available.</span></li>
</ul>
<br />
When it says an update is available, just accept it and the installation of Android 4.1.1 Jelly Bean will start.<br />
<br />
That’s that simple. The good thing is that starting now, you will receive all Android upgrades as soon as Google will release them. Isn't it fantastic?<br />
<br />
If you have any question, leave a comment.<br />
<br />Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-72807003012202998792011-11-02T02:51:00.000-07:002012-11-06T04:02:29.863-08:00Connect to Windows 8 Remote Desktop / Terminal service from Linux<br />
<br />
<b><u>UPDATE:</u></b> Since Ubuntu 12.04, Remmina, which is a native remote desktop client, is able to connect to Windows 8. Maybe, you will have to setup your remote desktop server (Windows 8) to allow connection from old clients in your Windows 8 box.<br />
<b>Important thing:</b> When you will connect to your Windows 8 box, you may have only a black window. Don't worry, leave it like that, and open a second connection. The second connection will display your Windows 8 desktop. Now you can close the first connection with the black screen. Don't ask me why it happens this way, I don't know.<br />
<br />
<br />
<br />
<br />
Actually, it seems that none of the Remote Desktop / Terminal server clients available for linux are compatible with the new Windows 8 Remote Desktop server / Terminal Server.<br />
<br />
However, there is a simple way to connect to Windows 8 Remote Desktop server / Terminal Service from your linux box. Here is the process tested on Ubuntu 11.10 with the default Wine version.<br />
<br />
<ul>
<li>Install wine by executing the following command:</li>
<ul>
<li>For ubuntu: sudo apt-get install wine</li>
<li>For RHEL/Fedora, as root: yum install wine</li>
<li>For last version of wine and other distributions you can go here: <a href="http://www.winehq.org/site/download">http://www.winehq.org/site/download</a></li>
</ul>
<li>Now download Windows Terminal Service Client from Microsoft website: <a href="http://www.microsoft.com/download/en/confirmation.aspx?id=20609">http://www.microsoft.com/download/en/confirmation.aspx?id=20609</a></li>
<li>When it is donwloaded, double-click on the file to launch it, like for a normal software. </li>
<li>If the installer doesn't launch, open a terminal, go in the folder of the file and launch it with: wine WindowsXP-KB969084-x86-enu.exe</li>
<li>Follow the normal install process, like for a standard Windows install. Keep all default options.</li>
<li>The install process will not add a launch icon in your application menu, so you will have to create the launcher by yourself. However, at this time, for the purpose of the test, we will launch it from a terminal with the following command: wine ~/.wine/drive_c/windows/system32/mstsc.exe</li>
<li>And voila, Remote Desktop Connection is Running, as you can see below. However, having the remote desktop displayed on your screen may need some more settings, as you will see below.</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc4g0navVeuFKRlZyD1NEO7RdBTfNlKBzLTaCDEHBb10lkD77uXGKOWy1X6aENGmZP6V8SS42-BZ-moprdDMpoIlHtELf5eYd-Eq13otMaT1_mxnrIK0c3J2DyQSfjb1_Y9eFA-lJ9Lx8/s1600/mstsc.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc4g0navVeuFKRlZyD1NEO7RdBTfNlKBzLTaCDEHBb10lkD77uXGKOWy1X6aENGmZP6V8SS42-BZ-moprdDMpoIlHtELf5eYd-Eq13otMaT1_mxnrIK0c3J2DyQSfjb1_Y9eFA-lJ9Lx8/s1600/mstsc.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul>
<li>Configuring some settings is required. For example, on Ubuntu 11.10, the following configuration is required:</li>
<ul>
<li>In "Wine configuration", disable Direct 3D Pixel Shader:</li>
<ul>
<li>Open "Wine Configuration" interface from your application menu or using this command: wine winecfg.exe</li>
<li>Go in "Grpahics" Tab</li>
<li>In "Direct 3D" area, un-check "Allow Pixel Shader (if supported by hardware)".</li>
<li>You can set "Vertex Shader Support" to "None" if you want, but it's not sure it has an effect.</li>
</ul>
<li>In remote desktop client, Disable Audio streaming to local computer: </li>
<ul>
<li>Go in "Local Resources tab"</li>
<li>Click on "Settings..." in "Remote audio" area</li>
<li>Select "Do not Play" in "Remote audio playback" area</li>
</ul>
</ul>
<li>Now you should be able to have the login screen working and the desktop displayed. Note that it may have some errors or crash.</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn5oJRoFYGPR6or04odMewZG9Twi4JLMqBNsHMibMh__X9npf0t0EnC-eVtdXwP_3H6sehBknbLgtN1gK4KMHz56v3rYoJLeXLAxWOya_pI8htRJHr1ch90DuSMgkxP2G0qaz7umrMDfA/s1600/mstsc2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn5oJRoFYGPR6or04odMewZG9Twi4JLMqBNsHMibMh__X9npf0t0EnC-eVtdXwP_3H6sehBknbLgtN1gK4KMHz56v3rYoJLeXLAxWOya_pI8htRJHr1ch90DuSMgkxP2G0qaz7umrMDfA/s1600/mstsc2.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWbcRGjaiU8cj10t4BL5I-SLxPbVkQkTpVGxUXqEvh4IAD54MFq_z4xQdXhEkQwh8yzj9veNWGaySM1h4XlmZAPknE2jVy1ZJQqJJN-YIWVlimFOumqmWyQf_cXgb5Hlt-HRe2UqAMMnk/s1600/mstsc3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWbcRGjaiU8cj10t4BL5I-SLxPbVkQkTpVGxUXqEvh4IAD54MFq_z4xQdXhEkQwh8yzj9veNWGaySM1h4XlmZAPknE2jVy1ZJQqJJN-YIWVlimFOumqmWyQf_cXgb5Hlt-HRe2UqAMMnk/s1600/mstsc3.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-9319483595374149662011-04-15T20:11:00.000-07:002011-04-15T20:11:44.573-07:00Set a simple SMTP relay with TLS and authentication<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYk9DO_FMb3kw0s1PQUFhejvAWMWvmY1ZY2tiR3ukhFM7EE6o84mwKvaG3rgPGJSf4cd9xN-2Sk-EaCd1GxGEhCftc9yLo7INJBTGqHPWlh5n66pRI3ncFfRWEdE5dQswpyNBeesOIIY/s1600/postfix.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYk9DO_FMb3kw0s1PQUFhejvAWMWvmY1ZY2tiR3ukhFM7EE6o84mwKvaG3rgPGJSf4cd9xN-2Sk-EaCd1GxGEhCftc9yLo7INJBTGqHPWlh5n66pRI3ncFfRWEdE5dQswpyNBeesOIIY/s1600/postfix.gif" /></a>The goal of this post is to show how to configure quickly a SMTP relay for a postfix server. This may allow for example a local postfix server to use a remote SMTP to send emails. It is very useful if your ISP block port 25 and you want to use secure SMTP connection to send email from your local server using a remote server.<br />
<br />
The system described here is:<br />
<ul><li>a local postfix server</li>
<li>a remote SMTP server ( smtp.myserver.com) with TLS secure connection and which require authentication (login + password)</li>
</ul><br />
All the configuration is done in /etc/postfix/main.cf. To edit this file, use this command:<br />
<blockquote><i><span style="font-size: small;">gksudo<span style="font-family: "Courier New",Courier,monospace;"> </span>gedit<span style="font-family: "Courier New",Courier,monospace;"> /etc/</span>postfix<span style="font-family: "Courier New",Courier,monospace;">/main.cf</span></span></i></blockquote><br />
First we will set the relay host. Add the following line and replace www.myserver.com:587 with your server information<br />
<blockquote><i><span style="font-size: small;">relayhost</span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"> = smtp.</span>myserver<span style="font-family: "Courier New",Courier,monospace;">.com:587</span></span></i></blockquote>By default, your port may be 25. Set it according to your remote server configuration.<br />
<br />
Next, we will set authentication parameters with the following lines:<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>sasl<span style="font-family: "Courier New",Courier,monospace;">_</span>auth<span style="font-family: "Courier New",Courier,monospace;">_enable = yes</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>sasl<span style="font-family: "Courier New",Courier,monospace;">_password_maps = hash:/etc/</span>postfix<span style="font-family: "Courier New",Courier,monospace;">/</span>sasl<span style="font-family: "Courier New",Courier,monospace;">/</span>sasl<span style="font-family: "Courier New",Courier,monospace;">_</span>passwd<br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>sasl<span style="font-family: "Courier New",Courier,monospace;">_security_options = </span>noanonymous</span></i></blockquote> /etc/postfix/sasl/sasl_passwd is the path to the hash file containing login and password information. You need to create this file and insure only root will have read and write capability. The edit the file and write:<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">smtp.</span>myserver<span style="font-family: "Courier New",Courier,monospace;">.com </span>username<span style="font-family: "Courier New",Courier,monospace;">:password</span></span></i></blockquote>Replace smtp.myserver.com, username and password with your SMTP server address, the username and password you want to use to login. Then execute the following command:<br />
<blockquote><i><span style="font-size: small;">sudo</span><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"> </span>postmap<span style="font-family: "Courier New",Courier,monospace;"> /etc/</span>postfix<span style="font-family: "Courier New",Courier,monospace;">/</span>sasl<span style="font-family: "Courier New",Courier,monospace;">/</span>sasl<span style="font-family: "Courier New",Courier,monospace;">_</span>passwd</span></i></blockquote><br />
Now, we have to configure the TLS parameters. Add the following lines to /etc/postfix/main.cf:<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">smtp_use_</span>tls<span style="font-family: "Courier New",Courier,monospace;"> = yes</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_enforce_</span>tls<span style="font-family: "Courier New",Courier,monospace;"> = yes</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>tls<span style="font-family: "Courier New",Courier,monospace;">_</span>CAfile<span style="font-family: "Courier New",Courier,monospace;"> = /etc/</span>ssl<span style="font-family: "Courier New",Courier,monospace;">/certs/ca-certificates.</span>crt<span style="font-family: "Courier New",Courier,monospace;"> </span></span></i></blockquote>In this configuration, we will force TLS use and enforce ssl certificate verification. <br />
If the ssl key used for your server is valid, you may not require more configuration. However, since postfix may try to connect to myserver.com and not smtp.myserver.com, it may not work correctly. Same thing if you uses a self signed ssl key. To fix that, we will use a fingerprint digest verification. To do that, add the following lines:<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>tls<span style="font-family: "Courier New",Courier,monospace;">_security_level = fingerprint</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>tls<span style="font-family: "Courier New",Courier,monospace;">_fingerprint_digest = sha1</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">smtp_</span>tls<span style="font-family: "Courier New",Courier,monospace;">_fingerprint_cert_match = 00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99</span></span></i></blockquote> Replace 00:11:22:33:44:55:66:77:88:99:00:11:22:33:44:55:66:77:88:99 with the sha1 fingerprint of your ssl key. You can use md5 instead of sha1, but sha1 is better.<br />
To find the sha1 or md5 fingerprint, you can connect with firefox on your server (if you uses the same ssl key for the web) and just check ssl certificate information where md5 and sha1 info are displayed.<br />
<br />
Now, restart postfix and it should work.<br />
<blockquote><span style="font-size: x-small;">sudo</span><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;"> /etc/</span>init<span style="font-family: "Courier New",Courier,monospace;">.d/</span>postfix<span style="font-family: "Courier New",Courier,monospace;"> restart</span></span></i></blockquote><br />
Now you can test if everything work by sending email with this command:<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">echo "test" | mail -s "Test subject" </span>youremail<span style="font-family: "Courier New",Courier,monospace;">@</span>youremail<span style="font-family: "Courier New",Courier,monospace;">.com</span></span></i></blockquote>Replace youremail@youremail.com with your email address.<br />
<br />
You should receive this email.<br />
<br />
This configuration allow to relay email, but do not configure your postfix server to allow you to use the SMTP fonctionnality of your local postfix server ton send email outside. It may need more configuration to give the right to relay email outside. By default postfix prevents it to avoid the server to be used for spam. Setting the following parameters may allow you to send email to email addresses hosted on the remote server (myserver.com), but not to all email addresses.<br />
<blockquote><i><span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">relay_domains = </span>myserver<span style="font-family: "Courier New",Courier,monospace;">.com</span><br style="font-family: "Courier New",Courier,monospace;" /><span style="font-family: "Courier New",Courier,monospace;">local_recipient_maps =</span><br style="font-family: "Courier New",Courier,monospace;" />smtpd<span style="font-family: "Courier New",Courier,monospace;">_recipient_restrictions = permit_</span>auth<span style="font-family: "Courier New",Courier,monospace;">_destination permit_</span>mynetworks<span style="font-family: "Courier New",Courier,monospace;"> reject_</span>unauth<span style="font-family: "Courier New",Courier,monospace;">_destination</span></span></i></blockquote>To allow relaying to all addresses, check required configuration in postfix documentation.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-21850820845507105612011-03-24T00:30:00.000-07:002011-04-16T13:48:11.542-07:00Linux conspiracy against Microsoft Windows and against you<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjorRE-Z491xe9vFeQJ41QH0CGhyphenhyphenTuqho8NrHxdrjaoBpqtqbVUzG8k9F15aGQT88eegMGsT1Za-p2WB0X2tr_2oY5nCEDbQ2NRFWigGgp-49nXMwGPWTezsBWe91OKl4LWqiichlsQr_A/s1600/tux2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjorRE-Z491xe9vFeQJ41QH0CGhyphenhyphenTuqho8NrHxdrjaoBpqtqbVUzG8k9F15aGQT88eegMGsT1Za-p2WB0X2tr_2oY5nCEDbQ2NRFWigGgp-49nXMwGPWTezsBWe91OKl4LWqiichlsQr_A/s1600/tux2.png" /></a></div>Everybody knows now that Linux and open source community are in a war against Microsoft and its operating system Windows.<br />
What is impressive is to see the amount of energy and ingenuity spent by Linux fans to hurt Microsoft Windows. Recently, the Linux community has found a way nobody may thought possible to prevent Windows 7 Service Pack 1 to install and, in this way, hurt Microsoft Windows 7 security and credibility.<br />
Indeed, they were able to prevent Win 7 SP1 to install as soon as a hard drive with a Linux partition is present in the computer. <br />
Since the reason of the installation error is not understandable for standard humans like you and me, everybody will think that Win 7 SP1 can't install because of a bug in Windows 7 when the source of the issue is in fact Linux.<br />
<br />
This is cheap, but this is the way Linux tries to discredit Microsoft Windows.<br />
<br />
So, be warn, Linux community is here and is fighting against you....<br />
<br />
<br />
<br />
<br />
<br />
<b>Ok, I confess, I should have enclosed this post with <troll></troll> <troll></troll> or <sarcasm></sarcasm> </b><b><sarcasm></</b><b>sarcasm</b><b>> </b><b>tags. However you must agree that with such nice, well documented and well thought article I should have been published on slate.com.</b><br />
<b><br />
</b><br />
<b>Last thing: the issue reported here with Win 7 SP1 installation is real. Crazy, stupid, unbelievable,... but real. This is a very bad issue from Windows 7, not Linux fault.</b>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-46565002374453917362010-11-07T07:12:00.000-08:002010-11-07T07:12:40.618-08:00Ubuntu logo used to sell Windows 7We know that Ubuntu and Linux in general is more and more widely used.<br />
So much used that we can see Ubuntu logo on the screen of a laptop advertised by a major electronic shop brand (<a href="http://www.thesource.ca/">The Source</a>) both on the flyers and the home page of the web site.<br />
You can see below pictures of the flyers and web site advertisement. But wait, this computer is sold with Windows 7, not Ubuntu.<br />
<br />
Is Ubuntu so good that they use it to trick customer into buying Windows 7?<br />
<br />
<b>Flyer:</b><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSNqoKeX6ZqwWzqk6T_pmKmUix99XFCmyL2LuJiuwJV9XoCVV3YGcmz3jDdbXbyiL9Ewa9rdRrF9zuqS_qpVueMDSri9P6SxcX8oULEbeY5vL59PwaTidAhJfENEuv3ubGGIqEcmAwmts/s1600/thesource2.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSNqoKeX6ZqwWzqk6T_pmKmUix99XFCmyL2LuJiuwJV9XoCVV3YGcmz3jDdbXbyiL9Ewa9rdRrF9zuqS_qpVueMDSri9P6SxcX8oULEbeY5vL59PwaTidAhJfENEuv3ubGGIqEcmAwmts/s1600/thesource2.png" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><b>Web Site Advertisement:</b><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrQT6siDwER7B7d2PjgLt6wZtr3l1WETFKff5Z7qAq4hOAWrBNpX1jEST6maV43SXjb1dS4jpt6GwY8yjkTZuA1NwehO5AVKJHmuTtb3bGQM1e7rXygC4MNPrUG6UWPJqerB9oLJqoG9o/s1600/thesource.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrQT6siDwER7B7d2PjgLt6wZtr3l1WETFKff5Z7qAq4hOAWrBNpX1jEST6maV43SXjb1dS4jpt6GwY8yjkTZuA1NwehO5AVKJHmuTtb3bGQM1e7rXygC4MNPrUG6UWPJqerB9oLJqoG9o/s1600/thesource.png" /></a></div>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-5479153321114616212010-11-06T17:28:00.000-07:002010-11-07T07:15:57.075-08:00Ubuntu logo used to sell Windows 7<div class="separator" style="clear: both; color: red; font-family: Arial,Helvetica,sans-serif; text-align: center;"><b><span style="font-size: x-large;"><a href="http://computersstoneage.blogspot.com/2010/11/ubuntu-logo-used-to-sell-windows-7.html">This Post Has Moved Here</a></span></b></div><b><br />
</b><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrQT6siDwER7B7d2PjgLt6wZtr3l1WETFKff5Z7qAq4hOAWrBNpX1jEST6maV43SXjb1dS4jpt6GwY8yjkTZuA1NwehO5AVKJHmuTtb3bGQM1e7rXygC4MNPrUG6UWPJqerB9oLJqoG9o/s1600/thesource.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br />
</a></div>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-10049630953853898242010-10-22T04:48:00.000-07:002010-10-22T04:48:45.759-07:00Mac AppStore revolutionizes software installation???????Have I missed something or it is the way it works on all Linux distributions for years now?<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP0s_-IypD1i57GHvJBfsHQKqCAAJRNd6wOEfi9v-lUVCWEFxougL0y6_qjxGlQiyWmIG0x1PDeD0q-eNVbL8IKsPdUJIAYaIydNJ1cSSTX6v4aIwwQjllQGq2hh7Lz7i-1q0BTsfRl6I/s1600/appstore.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP0s_-IypD1i57GHvJBfsHQKqCAAJRNd6wOEfi9v-lUVCWEFxougL0y6_qjxGlQiyWmIG0x1PDeD0q-eNVbL8IKsPdUJIAYaIydNJ1cSSTX6v4aIwwQjllQGq2hh7Lz7i-1q0BTsfRl6I/s1600/appstore.png" /></a></div>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-58327072963530024362010-07-03T12:47:00.000-07:002010-10-06T17:06:20.863-07:00Prevent mythtv from shutting down while you are connected to itThis is a simple python script I use to prevent my mythtv backend to stop when I'm connected to it with samba, http, ssh or other streaming systems...<br />
<br />
Just replace 192.168.0.3 or 192.168.0 with the ip numbers from your mythtv backend.<br />
<blockquote style="color: #38761d; font-family: Arial,Helvetica,sans-serif;"><i>#!/usr/bin/env python<br />
# coding: utf-8<br />
<br />
import commands<br />
import sys<br />
<br />
res = commands.getoutput('netstat | grep ESTABLISHED | grep -v -e .*192.168.0.3.*192.168.0.3.* -e .*192.168.0.3.*192.168.0.:microsoft-ds.*')<br />
if len(res) > 10:<br />
sys.exit(1)<br />
sys.exit(0)</i></blockquote> I know that it is possible to use only shell script without python to do that, but I do not master shell script so feel free to modify it to use only shell.<br />
<br />
Use this script as the command to launch before shutting down mythtv backend to verify that it can really shutdown.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-11942075049560464312010-02-21T17:45:00.000-08:002010-08-28T09:47:39.688-07:00Do not buy a Linksys WRT610N<a href="http://www.dd-wrt.com/site/support/router-database"></a><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-k1IsX7Z3CrWY5gDcx-sez8x6endFkfY4LqhaJ2__LrmQ8-Vk9L4CLkqRJcPoeVGX4dYD8XeoBft-LcxMFcYfhCGEJl2lcsefc8z8c_sHXUqzBZYL2_SM3hKjhFRgei6boeH_q6S4N_o/s1600-h/wrt610n.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-k1IsX7Z3CrWY5gDcx-sez8x6endFkfY4LqhaJ2__LrmQ8-Vk9L4CLkqRJcPoeVGX4dYD8XeoBft-LcxMFcYfhCGEJl2lcsefc8z8c_sHXUqzBZYL2_SM3hKjhFRgei6boeH_q6S4N_o/s320/wrt610n.jpg" /></a></div><b>UPDATE 2</b><br />
Since I use dd-wrt, my random deconnections on irc are gone... Everything works perfectely!<br />
do not hesitate, switch to dd-wrt.<br />
<br />
<b>UPDATE</b><br />
<b> </b>After playing a few with the v2 (switch to 5Ghz wifi N), things went wrong. Wireless G stopped working correctly like before. Connection drop, ssid disappeared, etc.. Tried factory default configuration, flash firmware again, hard 30-30-30 reset...Nothing saved my router. <b>This router is really a shame. It is clearly defective by design!</b> Finally, I decided to install dd-wrt on, and since this time, everything works perfectly. To find the last versions of dd-wrt, it's <span id="goog_933711537"></span><a href="http://www.blogger.com/">here</a> (just write wrt610n in the field and choose your version of the router). For instructions on how to flash the router, it's <a href="http://www.dd-wrt.com/wiki/index.php/Linksys_WRT610N">here for v1</a> and <a href="http://www.dd-wrt.com/wiki/index.php/Linksys_WRT610N_v2.0">here for v2</a>.<b> </b><span style="color: red;"><b>Follow all instructions very carefully, this manipulation is risky for your router. Be informed that you may brick your expensive router.</b> </span>When the tutorial says do "hard reset", this means press the reset button during several seconds until the lights on the router blink.<br />
<br />
Last but not least: with dd-wrt you will be able to do much more things with your router than what you could do with the original firmware.<br />
<b>END OF THE UPDATE </b><br />
<br />
<br />
Here is a my experience with one.... in fact two Linksys WRT610N routers.<br />
Basically, on the paper this router is really good:<br />
<ul><li>Dual b,g,n Wifi card with 2.4 and 5Ghz support</li>
<li>4 Gigabits ethernet connectors</li>
<li>1 USB connecteor for mass storage disks or anything you want with specific linux distribution like dd-wrt.</li>
</ul>When I received my first WRT610N v1, everything was fine. The 5Ghz wifi N worked perfectly with a 10MB/s (100Mb/s) bandwidth.<br />
<br />
Then, I bought a PS3 old generation. And things started to go wrong. I switched the router to 2.4Ghz mixed b,g,n and tried to connect. The result: a very bad or impossible connection from the PS3. It seems that there is an incompatibility with the PS3. I changed my PS3 with a new slim version. The wifi started workimg correctly except that regularly, the wifi crashed, and the router needed to be rebooted. This was not a PS3 issue since all my wifi system stopped working.<br />
<br />
Since this was not an acceptable behavior, I returned my router to the shop and get a new WRT610N v2 for free, as a replacement.<br />
<br />
I expected major improvements with this new release. Unfortunately, things were as bad as before. The wifi regularly stopped working. It was even impossible to see the wifi (no ssid broadcast) from any of my computers. The ultimate solution I found was to set only the wifi G. With only G and no mixed mode, everything started working well.<br />
<br />
When I say well... I don't talk about my normal connections using ethernet cable. Indeed, since I replaced this router, I am randomly disconnected from irc. This is something I never had before.<br />
<br />
So basically, this router is really a shame, and should have been removed from the market since a long time.<br />
<br />
It seems that most of the problems are hardware, since I tested the v1 of the router with standard firmware and dd-wrt and I had the same issues in both cases.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-87491198793969489022009-11-22T16:06:00.000-08:002010-07-28T05:29:43.765-07:00Time Traveler... a sort of Time machine systemThis is not a nice script, but it does the job for me in the way I need it to work. I share it with you in the case it can be useful to you.<br />
I did it to store Time Traveler data on a separate disk, it is why I don't use a maximum backuped data size, and instead a free space to keep before starting the backup.<br />
All backups are stored in folders starting with the time_t value, then the date in human readable format.<br />
It is used in a server, so it sends the result to an email address. You can use it with cron for example.<br />
<br />
The script is in python, so just copy it in the file timetraveler.py, change source and destination folder and email address at the top of the file, then chmod 700 timetraveler.py, then run it. Be sure you have python and rsync installed. Us only a linux compatible file system as backup folder (ext2, ext3, ext4 or other... not fat32 or ntfs, since I don't know if it will work)<br />
<br />
Here is the script. <br />
<blockquote><b><span style="font-family: "Courier New",Courier,monospace;">#!/usr/bin/env python<br />
# coding: utf-8<br />
# TimeTraveler (c) 2009 Walter http://computersstoneage.blogspot.com/<br />
#<br />
#<br />
#TODO:<br />
# Répér dans les logs la sortie des commandes:<br />
# rm<br />
# rsync<br />
#<br />
import commands<br />
import datetime<br />
import time<br />
import array<br />
import string<br />
import os<br />
<br />
<br />
freeSpaceLimit = 50*1024*1024; #required disk space to start the backup in Ko. here it is 50Go.<br />
path = "/mnt/timemachine/" #folder where to store backups<br />
source = "/mnt/data/" #rértoire à auvegarder<br />
mail = "/usr/bin/mail" #mail software<br />
email = "timemachine" #mail address to send the result of the backup<br />
<br />
<br />
def disk_get_free(path):<br />
res = commands.getoutput('df -k '+path).splitlines()<br />
return int(res[1].split()[3])<br />
<br />
def get_size(val):<br />
if val < (1024): <br />
val = str(val)+ ' KB' <br />
elif val < 1048576: #(1024*1024): <br />
val = str(float(int(val/102.4))/10.0)+ ' MB' <br />
elif val < 1073741824 :#(1024*1024*1024): <br />
val = str(float(int(val/(104857.6)))/10.0)+ ' GB' <br />
else: <br />
val = str(float(int(val/(107374182.4)))/10.0)+ ' TB'<br />
return val<br />
<br />
<br />
<br />
<br />
date = str(datetime.datetime.now())<br />
date = date.split()[0]<br />
total = int(time.time())<br />
#print(str(total)+"_"+date)<br />
<br />
dest = path+str(total)+"_"+date<br />
<br />
log = "STARTING TIMEMACHINE: "+str(datetime.datetime.now())+"\n"<br />
log=log+"Backup folder: "+path+"\n"<br />
log=log+"Source folder: "+source+"\n"<br />
#lastInt = 0<br />
#lastName = date+"_"+str(total)<br />
<br />
<br />
<br />
<br />
#methode 1: je purge en fonction de l'espace disque<br />
#print disk_get_free(path)<br />
freeSpace = disk_get_free(path)<br />
log = log+"Starting disk space recovery:\n"<br />
log = log+"\tActual disk size: "+get_size(freeSpace)+"\n"<br />
log=log+"\tDisk space to keep: "+get_size(freeSpaceLimit)+"\n"<br />
if(freeSpace >= freeSpaceLimit):<br />
log=log+"\tNo need to free disk space.\n"<br />
empty = False #cela me permet de savoir si j'ai encore des fichiers àffacer<br />
while freeSpace < freeSpaceLimit and empty==False:<br />
files = os.listdir(path)<br />
files.sort()<br />
empty = True<br />
if len(files)>0:<br />
tab = files[0].split('_')<br />
if(len(tab) > 1) and str(tab[0]).isdigit():<br />
command = "rm -rf "+path+files[0]<br />
#print(command)<br />
log = log+commands.getoutput( command )<br />
freeSpaceNew = disk_get_free(path)<br />
log=log+"\tRemoving "+files[0]+": "+command+" recovered "+get_size(freeSpaceNew - freeSpace)+" => "+get_size(freeSpaceNew)+" free.\n" <br />
freeSpace = freeSpaceNew<br />
empty = False<br />
<br />
if(empty==True):<br />
log=log+"ERROR: Can't recover enough space from previous backup. Current free space: "+get_size(freeSpace)+".\nABORTING BACKUP.\n"<br />
#print(log)<br />
p = os.popen(mail+" -s \"Time machine "+str(datetime.datetime.now())+" - ERROR\" "+email, 'w')<br />
p.write(log)<br />
exitcode = p.close()<br />
exit()<br />
log=log+"Disk space recovery finished.\n"<br />
<br />
</span></b></blockquote><blockquote><b><span style="font-family: "Courier New",Courier,monospace;"> <br />
<br />
files = os.listdir(path)<br />
files.sort()<br />
found = False<br />
i=0;<br />
lastBackup = ""<br />
size = len(files)<br />
while found==False and i<size:><br />
#print("i:"+str(i)+" size:"+str(size))<br />
tab = files[size-i-1].split('_')<br />
if(len(tab) > 1) and str(tab[0]).isdigit():<br />
found = True<br />
lastBackup = files[size-i-1]<br />
i = i+1<br />
<br />
<br />
#lastBackup = "path"+files[len(files)-1]<br />
#La, j'ai plus qu'a faire mon backup<br />
command = ""<br />
if lastBackup != "":<br />
log=log+"Found previous backup to increment: "+ lastBackup +"\n";<br />
command = "/usr/bin/rsync -a --safe-links --stats --link-dest="+path+lastBackup+" "+source+" "+dest<br />
log=log+"Starting incremental backup:\n"+command+"\n"<br />
else:<br />
log=log+"No previous backup to increment found.\n";<br />
command = "/usr/bin/rsync -a --safe-links --stats "+source+" "+dest<br />
log=log+"Starting complete backup:\n"+command+"\n"<br />
<br />
log = log+commands.getoutput( command )<br />
log=log+"\nBACKUP FINISHED!"<br />
#print("Commad: "+command)<br />
<br />
<br />
<br />
log = log+"Time machine finished: "+str(datetime.datetime.now())+"\n"<br />
p = os.popen(mail+" -s \"Time machine "+str(datetime.datetime.now())+" - OK\" "+email, 'w')<br />
p.write(log)<br />
exitcode = p.close()</size:></span></b><br />
<br />
</blockquote> That's itWalterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-4858899122420184502009-11-15T05:46:00.000-08:002009-11-15T14:23:05.587-08:00Frets on Fire and FoFix Song Cover Art and/or Album Cover Art DownloaderMaybe you are a fan of Frest On Fire or FoFix (personnaly, I prefer Fofix, since it has much more capabilities and less bugs).<br />
Maybe you have some songs to play, and you would like to have cover art for your song list. To help you retrieving them automatically, I created this short script.<br />
It is a very dirty script, and is not able to get all cover art. However It seems to make the job pretty well <br />
For linux users, this script is usefull to, since it changes filenames starting with a upper case to lower case in songs folders.<br />
<br />
<b><span style="color: red;"><span style="font-size: x-large;">WARNING: </span><span style="font-size: large;">BE VERY CAREFUL. THIS SCRIPT IS JUST AN EXAMPLE OF WHAT IT IS POSSIBLE TO DO. THIS SCRIPT CONNECT TO AMAZON TO FIND THE COVER ART. YOU HAVE TO CHECK WITH AMAZON FIRST TO KNOW IF YOU CAN USE IT AS IS. I'M NOT RESPONSIBLE FOR ANY THING THIS SCRIPT CAN DO. USE IT AT YOUR OWN RISK AND AT YOUR OWN RESPONSIBILITY. CHECK IT DOESN'T DO THINGS WHICH MAY BE FORBIDDEN BEFORE USING IT.</span></span></b><br />
<br />
Maybe you can modify this script to use another search engine.<br />
This script needs ImageMagick program called "convert" to work.<br />
It is a python script. To use it, create a file called coverart.py in your "songs" folder, then copy/paste the script below, and save the file. Then, using a terminal, go in your song folder and execute: python coverart.py<br />
The script will check for songs in sub-folders recursively and download album cover art for each song.<br />
<br />
Here is the bad and dirty script:<br />
<br />
<br />
<span style="color: blue;"><span style="font-family: "Courier New",Courier,monospace;">#!/usr/bin/env python<br />
# coding: utf-8</span></span><br />
<br />
<span style="color: blue;"><span style="font-family: "Courier New",Courier,monospace;">##########################################################<br />
# #<br />
# Copyright Walter http://computersstoneage.blogspot.com #<br />
# #<br />
# This program is free software; you can redistribute #<br />
# it and/or modify it under the terms of the GNU General #<br />
# Public License as published by the Free Software #<br />
# Foundation; either version 2 of the License, or (at #<br />
# your option) any later version. #<br />
##########################################################</span></span><br />
<br />
<span style="color: blue;"><span style="font-family: "Courier New",Courier,monospace;">import urllib<br />
import shutil<br />
import re, os<br />
import commands<br />
<br />
def download(url):<br />
webFile = urllib.urlopen(url)<br />
a = webFile.read()<br />
start = a.find('._SL')<br />
<br />
a = a[start-70:start]<br />
start = a.find('http://')<br />
img = a[start:]+"._SL500_AA240_.jpg"<br />
#print img<br />
return img<br />
<br />
def getinfo(path, cover):<br />
artist = ""<br />
song = ""<br />
try: <br />
f = open(path+"song.ini", "r")<br />
tmp = f.readlines(2000)<br />
f.close()<br />
for line in tmp:<br />
if (line.strip().startswith('name') or line.strip().startswith('Name')): <br />
song = line.strip().split("=")[1].strip()<br />
a = song.find('(')<br />
if a > 0:<br />
song = song[:a]<br />
if (line.strip().startswith('artist') or line.strip().startswith('Artist')):<br />
artist = line.strip().split("=")[1].strip()<br />
a = artist.find('(')<br />
if a > 0:<br />
artist = artist[:a]<br />
song = song.replace(' ','+');<br />
artist = artist.replace(' ','+');<br />
<br />
return 'http://www.amazon.com/s/ref=nb_ss?url=search-alias%3Dpopular&field-keywords=%22'+artist+'%22+%22'+song+'%22&x=0&y=0'<br />
except:<br />
print "Failed to open "+path+"song.ini"<br />
#return ""<br />
exit<br />
<br />
<br />
def AddCoverArt(path):<br />
url = getinfo(path,True)<br />
if len(url) < 10:<br />
return<br />
img = download(url)<br />
if ((len(img) < 20) or (len(img)>1000)):<br />
print("Nothing found with cover for: "+path+" "+url);<br />
return<br />
img=urllib.unquote_plus(img)<br />
print("Loading: "+img)<br />
try:<br />
webFile = urllib.urlopen(img)<br />
localFile = open(path+"album.tmp.png", 'w')<br />
localFile.write(webFile.read())<br />
localFile.close()<br />
except:<br />
print "Can't get: "+img<br />
return ""<br />
<br />
<br />
def ScanDir(g):<br />
files = os.listdir(g)<br />
for f in files:<br />
if(os.path.isdir(g+f)):<br />
print('Entering: '+g+f+'/')<br />
ScanDir(g+f+'/')<br />
if(os.path.exists(g+'Song.ogg')):<br />
print( 'mv '+g+'Song.ogg '+g+'song.ogg')<br />
os.rename(g+'Song.ogg', g+'song.ogg')<br />
if(os.path.exists(g+'Song.ini')):<br />
print( 'mv '+g+'Song.ini '+g+'song.ini')<br />
os.rename(g+'Song.ini', g+'song.ini')<br />
if(os.path.exists(g+'Notes.mid')):<br />
print( 'mv '+g+'Notes.mid '+g+'notes.mid')<br />
os.rename(g+'Notes.mid', g+'notes.mid')<br />
if(os.path.exists(g+'Rhythm.ogg')):<br />
print( 'mv '+g+'Rhythm.ogg '+g+'rhythm.ogg')<br />
os.rename(g+'Rhythm.ogg', g+'rhythm.ogg')<br />
if(os.path.exists(g+'Guitar.ogg')):<br />
print( 'mv '+g+'Guitar.ogg '+g+'guitar.ogg')<br />
os.rename(g+'Guitar.ogg', g+'guitar.ogg')<br />
if(os.path.exists(g+'guitar.ogg')) and (not os.path.exists(g+'song.ogg')):<br />
shutil.copy2(g+'guitar.ogg', g+'song.ogg')<br />
print( 'cp '+g+'guitar.ogg '+g+'song.ogg')<br />
if(os.path.exists(g+'Album.png')):<br />
os.rename(g+'Album.png', g+'album.png')<br />
print( 'mv '+g+'Album.png '+g+'album.png')<br />
if(os.path.exists(g+'song.ini'))and (not os.path.exists(g+'album.png')):<br />
AddCoverArt(g)<br />
if(os.path.exists(g+'album.tmp.png')):<br />
#os.rename(g+'album.png', g+'album.tmp.png')<br />
cmd = 'convert "'+g+'album.tmp.png" "'+g+'album.png"'<br />
print('Convertion: '+cmd)<br />
commands.getstatusoutput(cmd)<br />
os.unlink(g+'album.tmp.png')<br />
<br />
ScanDir('./')<br />
</span><span style="font-family: "Courier New",Courier,monospace;"></span><br />
</span><br />
<span style="color: blue;"><br />
</span>That's it...Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com2tag:blogger.com,1999:blog-7868237751501295497.post-57371460823854960002009-10-10T02:22:00.000-07:002009-10-10T02:22:57.343-07:00Fix a Happauge Wintv-PVR-150 which do not initialise correctely on linux<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqTIoTiyCzG3s6oJRUtgGnRISUgc9bbIVtf9Ifkx3O4bnrYVRLaaUUI5WvlG8Khin0SrJHC0CEuzrldRM1NucWJM8c0olrLwhUwlv-ukZNumTsu9ykwtU3kW4DCYVuSYLhO4tvVrqOUB0/s1600-h/l420763.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqTIoTiyCzG3s6oJRUtgGnRISUgc9bbIVtf9Ifkx3O4bnrYVRLaaUUI5WvlG8Khin0SrJHC0CEuzrldRM1NucWJM8c0olrLwhUwlv-ukZNumTsu9ykwtU3kW4DCYVuSYLhO4tvVrqOUB0/s320/l420763.jpg" /></a><br />
</div>Maybe you have a Wintv-PVR-150 card on your Linux box, and you regularly encounter some "initialization" problems, even if the card is correctly recognized by linux.<br />
Symptoms may be:<br />
<ul><li>no mpeg2 output (empty video file in mythtv)<br />
</li>
<li>only snow (channel can't be selected?)</li>
<li>black picture</li>
<li>picture stretched or distorted</li>
<li>black and white image</li>
</ul>To fix this problem there are two things you can do:<br />
<ol><li>Move your card on another PCI slot and see if things improve</li>
<li>Change your motherboard</li>
</ol>For sure changing the motherboard is not something we want to do, but sometime, you have no choice.<br />
<br />
I had this problem, and if changing the PCI slot reduced the ratio of bad initialization, it didn't fixed it completely. After my system died, I changed the motherboard and CPU, and now everything works perfectely.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-44564215596345859422009-09-06T04:33:00.000-07:002009-09-06T05:07:41.468-07:00How Windows 7 is better than LinuxOk, this is some training documents from Microsoft for resellers, and this is so good... Microsoft FUD at its best.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8tjZB_JbjqG8kkzhQGJGJa-TdWQjAXDI9usrJozjY2EOWMatOF2CjDBfgRCMO7rT1X1brFXSPW_YOSKwdVyLBOpi1ciEqpINYzXtXN__UJpnY7-XD5XrafGRTwQh2HGGhP1984BBoLr4/s1600-h/01.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8tjZB_JbjqG8kkzhQGJGJa-TdWQjAXDI9usrJozjY2EOWMatOF2CjDBfgRCMO7rT1X1brFXSPW_YOSKwdVyLBOpi1ciEqpINYzXtXN__UJpnY7-XD5XrafGRTwQh2HGGhP1984BBoLr4/s400/01.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324351400554722" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqz0snOTpJqufaRdSiV37m1QbgFzOzNkAHgBmN6nJs35Lg-HSAU6KeAKKGNX-1ySetPAFLH-YhAI5Nf9L4KKoETyIYBnjOF2CgN-Ev6iFI7lj1oELz0GtptD6TGm5femwa0Xv1OSBo0tQ/s1600-h/02.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqz0snOTpJqufaRdSiV37m1QbgFzOzNkAHgBmN6nJs35Lg-HSAU6KeAKKGNX-1ySetPAFLH-YhAI5Nf9L4KKoETyIYBnjOF2CgN-Ev6iFI7lj1oELz0GtptD6TGm5femwa0Xv1OSBo0tQ/s400/02.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324347308258018" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY6jT2_t09MGP7Mb2rD4jyV09tb5N3K0Ix3BPgSSPnLrheNdqfj2-HlpsPnJA1snLEhbEiyjdvZvypde3lxW2fFhDqvv330UOs4Mw4tN_Fdl-tHHQuoGz57GYR1IeKyjnfcT0is2__zCc/s1600-h/03.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY6jT2_t09MGP7Mb2rD4jyV09tb5N3K0Ix3BPgSSPnLrheNdqfj2-HlpsPnJA1snLEhbEiyjdvZvypde3lxW2fFhDqvv330UOs4Mw4tN_Fdl-tHHQuoGz57GYR1IeKyjnfcT0is2__zCc/s400/03.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324252571396418" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1unIry1-kShZegtRtcH9jiOoJl60KKwmV-ooaOz1aRZwd0x_MHf7S90diWoT0uwQd69rTPjnia6KTX8fxzPqpNsEefw1IVz43P5XkLOmC0MA6v9LqvDUqRjoreK4Zua6pzHWHLuiC9XU/s1600-h/04.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1unIry1-kShZegtRtcH9jiOoJl60KKwmV-ooaOz1aRZwd0x_MHf7S90diWoT0uwQd69rTPjnia6KTX8fxzPqpNsEefw1IVz43P5XkLOmC0MA6v9LqvDUqRjoreK4Zua6pzHWHLuiC9XU/s400/04.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324242042027826" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiIsf1NKbdzWM-2fLcuv57vaE8S3H-RdHQy_VCNeiqHGjx43ZlOQGSO8ByNmUu5CZF3IpW1FG4DW9URkfGyfriN3EyqsuMl-PmUo0qSFaPHe937vob7TLg2qYe74i2MHleiiTVu1eIVnE/s1600-h/05.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiIsf1NKbdzWM-2fLcuv57vaE8S3H-RdHQy_VCNeiqHGjx43ZlOQGSO8ByNmUu5CZF3IpW1FG4DW9URkfGyfriN3EyqsuMl-PmUo0qSFaPHe937vob7TLg2qYe74i2MHleiiTVu1eIVnE/s400/05.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324240913197474" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKxiCFAKMzmHeBM14LWvQcQJ7u2aNvuUx1ty1q0TAY4odrOB3yRzf7Mvmp55wGYyAeKhYaEy6vZUkNZQWVrkZ3i24OvoCun49asIAVa1HeoIYOT7atEmaGgLetAq-_RHHqhV_MhYhNpH4/s1600-h/06.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKxiCFAKMzmHeBM14LWvQcQJ7u2aNvuUx1ty1q0TAY4odrOB3yRzf7Mvmp55wGYyAeKhYaEy6vZUkNZQWVrkZ3i24OvoCun49asIAVa1HeoIYOT7atEmaGgLetAq-_RHHqhV_MhYhNpH4/s400/06.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324230696336930" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7S2XsQNCR-Utx18f1X8Akd1xmG0rizpzvuCXw0LBHTGV-8VGC9jpk47kHd7F72bN7Kmpy30EfiE8zft4EcEl59oMqibIG8_5zfwFMtjlF1U-Y7BJI_yu4IpB7COKMdNIeyF4QrSDsf14/s1600-h/07.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7S2XsQNCR-Utx18f1X8Akd1xmG0rizpzvuCXw0LBHTGV-8VGC9jpk47kHd7F72bN7Kmpy30EfiE8zft4EcEl59oMqibIG8_5zfwFMtjlF1U-Y7BJI_yu4IpB7COKMdNIeyF4QrSDsf14/s400/07.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324227752591794" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2ir-pgo-HqjmxG-P1Ufa5-G0ZQ78fD1W_kFVkf0fVgmpZ2gnntgBbHl62l7IwD7tTJweUOS72eaYY6k7B_F_THo099MlmNt1si6MtXqH5Z5SUpnZx2hMHm4isfx28BNI8uRYz6BZyR38/s1600-h/08.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2ir-pgo-HqjmxG-P1Ufa5-G0ZQ78fD1W_kFVkf0fVgmpZ2gnntgBbHl62l7IwD7tTJweUOS72eaYY6k7B_F_THo099MlmNt1si6MtXqH5Z5SUpnZx2hMHm4isfx28BNI8uRYz6BZyR38/s400/08.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324016173341298" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMz9W8vXZ-kKlmH4kpkvh14Nc3m2wYuD6esT7he3UiOn0A0noPAEXjvvG64dBCVuljnRyNmU7l2ETBN6LBixOAquJQoFP3Kbrwa8ySlCcebUj3aUCokW5Pj09obOxqmRZeK80ohFgTI3M/s1600-h/09.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMz9W8vXZ-kKlmH4kpkvh14Nc3m2wYuD6esT7he3UiOn0A0noPAEXjvvG64dBCVuljnRyNmU7l2ETBN6LBixOAquJQoFP3Kbrwa8ySlCcebUj3aUCokW5Pj09obOxqmRZeK80ohFgTI3M/s400/09.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324012983259666" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8wHa61Xmmk8iqmoXRXVuUwWIOgGxJonwfeMjz23LVsQMaOS71egd_SXhysFqYMHtxqJABpnQM14nvJEhyuakh_b0-8yhyiBf_fkRTm8rhveP6dEMM0khM9m7TBmnAX7S3QfuL84gq2A/s1600-h/10.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG8wHa61Xmmk8iqmoXRXVuUwWIOgGxJonwfeMjz23LVsQMaOS71egd_SXhysFqYMHtxqJABpnQM14nvJEhyuakh_b0-8yhyiBf_fkRTm8rhveP6dEMM0khM9m7TBmnAX7S3QfuL84gq2A/s400/10.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378324003475164546" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifxo5xBXDm0_DSCxzVCMo7ZHAUKdla_fGHnESdJrNMeCQyf53eq9uh-UuoHh2vGUhtc2fzraibyh2D67A_dMznbWI1MpKqGFSNXCvcHeG8flyaPTPKu1y7AIyZNmSA2hi9GXim3ViD6VI/s1600-h/11.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifxo5xBXDm0_DSCxzVCMo7ZHAUKdla_fGHnESdJrNMeCQyf53eq9uh-UuoHh2vGUhtc2fzraibyh2D67A_dMznbWI1MpKqGFSNXCvcHeG8flyaPTPKu1y7AIyZNmSA2hi9GXim3ViD6VI/s400/11.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378323999716068146" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgovW2fR18Q_IbmqnjGMfvw7cNHb_k_9lXWBZjNWmSQ0OFkLogelONxOopWlTSvzci5KnP6aEsP9xBd9aD9_v_WaeR2d5DtykZ1I5xbNCSs_XUOH1NBMJZRbYrmOcnMrjdbVUCXM0tSiEU/s1600-h/12.jpeg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgovW2fR18Q_IbmqnjGMfvw7cNHb_k_9lXWBZjNWmSQ0OFkLogelONxOopWlTSvzci5KnP6aEsP9xBd9aD9_v_WaeR2d5DtykZ1I5xbNCSs_XUOH1NBMJZRbYrmOcnMrjdbVUCXM0tSiEU/s400/12.jpeg" alt="" id="BLOGGER_PHOTO_ID_5378323989359236354" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPDPAZkb-OUEZ7nw-0i7hAggqnA_sE3rIRVslAzJfsDRAirdvaTrtwlBeqZ-CRK_UBgyuJh5zs4WM5Gmj9QeUsSzvWJTh4PZP7lbyFZssBSWV2MoGQRKB24cUbdL0B2PwcNBb-0AC1SPY/s1600-h/12.jpg"><br /></a>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-76504282988503353342009-07-31T17:08:00.001-07:002009-07-31T17:10:30.033-07:00Ubuntu Wine<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkq9eFkMBMBns3GtAQyitrx5HjEPiE6REyhgWVNk4SLJiTbivVrcPPtNPqA_me1pgHukdaQTssrJnKQEwp6IzlbOWjo3F8dTyllztwUX0ldpo4aEgAtt5RGZGu8KrL_r4O9POPI7bcFFA/s1600-h/DSC03300.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkq9eFkMBMBns3GtAQyitrx5HjEPiE6REyhgWVNk4SLJiTbivVrcPPtNPqA_me1pgHukdaQTssrJnKQEwp6IzlbOWjo3F8dTyllztwUX0ldpo4aEgAtt5RGZGu8KrL_r4O9POPI7bcFFA/s400/DSC03300.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5364780932685253442" /></a><br />That's it!Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-70436797129038146342009-07-19T06:41:00.000-07:002009-08-06T08:30:34.936-07:00How to prevent auto-replies to be sent when spams are receivedThis is a simple solution to not send auto-reply messages when you receive a spam, using spam assaassin, postif and webmin auto-reply system.<br /><br />Here, I consider that you use webmin to manage your server and auto-replies , that your mail server software is postfix and spamassassin is configured and works. Since the default way spamassassin works is to add some text to the subject of your emails if it is detected as a spam, I consider that the text which is added is "[SPAM]".<br /><br />To prevent the autoreply system set by Webmin to send a reply to emails detected as spam, just add the following code in file /etc/webmin/postfix/autoreply.pl at line 77:<br /><blockquote style="font-family: arial;">if ($header{'subject'} =~ m/[SPAM]/) { exit 0; }</blockquote>If your spamassasin system add another string to the subject, change [SPAM] for a string corresponding to your system.<br /><br />Once everything seems to work perfectly, you have to modify the file autoreply.pl stored in the library folder of webmin, since webmin will replace the thew one you already modified by the one in its library folder every time an autoreply is created/modified. To do that, just copy the one you modified over the one in webmin library folder:<br /><blockquote style="font-family: arial;">cp /etc/webmin/postfix/autoreply.pl /usr/libexec/webmin/postfix/autoreply.pl</blockquote><br /><br /><br />That's it that's all...Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-39749540809636733632009-02-06T17:07:00.000-08:002009-02-06T17:11:37.827-08:00Gnome Panel auto-hide stop workingSomething boring with gnome panel is that it stops hiding automatically quite usually.<br />A simple way to restore the hide/unhide function quickly when it happens is to use the command:<br /> killall gnome-panel<br /><br />This command will kill gnome-panel, and it will restart automatically. It's not very nice, but it works.<br /><br />To ease the process, just create a launcher with this command. This way, you will be able to restore you gnome-panel functionality with a simple click.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-3589371783341697422009-02-06T16:27:00.000-08:002009-02-06T17:06:35.646-08:00Gnome Panel advanced customizationOk, lets start with a few tricks to customize your gnome panel.<br />I will talk about few parameters of the gnome panel which can't be changed from the gnome panel configuration interface.<br /><br />The things I really don't like with gnome panel and which are not customizable from the configuration interface are:<br />- the time it takes to start showing/hiding<br />- the fact that the bar can't hide completely<br />- the slow movement of the panel<br />- the time it takes before hiding<br /><br /><br />To change these parameters, it's necessary to launch gconf-editor. To do that press alt+F2, then type gconf-editor in the text area, and press enter.<br /><br />The following windows will appear:<br /><div style="text-align: justify;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLJsq8gWA4itdo5JB1igoesbgOzlVUIZ7zLdRZjhyphenhyphen3m1XhgY4JWFa2sskb7ZJrdlb_ZFpsmS123bNeq59Nhss0-Mt3mvI-qpSMT96JWCiQKzpXJ0jKTHk_rCjjjvX4-RAMh3vpt0nFoXk/s1600-h/Screenshot-Configuration+Editor.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 298px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLJsq8gWA4itdo5JB1igoesbgOzlVUIZ7zLdRZjhyphenhyphen3m1XhgY4JWFa2sskb7ZJrdlb_ZFpsmS123bNeq59Nhss0-Mt3mvI-qpSMT96JWCiQKzpXJ0jKTHk_rCjjjvX4-RAMh3vpt0nFoXk/s400/Screenshot-Configuration+Editor.png" alt="" id="BLOGGER_PHOTO_ID_5299849811225491218" border="0" /></a></div><br />Then, browse the the folder tree on the left to go to: /apps/panel/toplevels/panel_0<br />The interface should look like that:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgByBu4u5OExkw8Jr0gd_gjofcZFEq3EFgPP4pDr67YreRkS4dFTJypnXK5Ra1FRAI0yUoCwHfVe9HlzHMcz0fLv4Mxf-xNQqgcIarvTsTVj4PMlZMwD71uLZcCX2IePEPJBbuheYGF2cw/s1600-h/Screenshot-Configuration+Editor+-+panel_0.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 298px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgByBu4u5OExkw8Jr0gd_gjofcZFEq3EFgPP4pDr67YreRkS4dFTJypnXK5Ra1FRAI0yUoCwHfVe9HlzHMcz0fLv4Mxf-xNQqgcIarvTsTVj4PMlZMwD71uLZcCX2IePEPJBbuheYGF2cw/s400/Screenshot-Configuration+Editor+-+panel_0.png" alt="" id="BLOGGER_PHOTO_ID_5299850174634727810" border="0" /></a>If you use more than one panel, you may have panel_0, panel_1, ... folder. Choose the one which is the panel you want to customize.<br />If you don't know which folder is which panel, just change a few values. Since changes are effective in real time, you will quickly see which panel you modify.<br /><br />To change a parameter, just double click on it.<br /><br />Now here are interesting parameters:<br /><ul><li>animation speed: define the speed of the show/hide movement. Can be slow, medium or fast. If you want the panel to show/hide instantly, uncheck the parameter "enable_animations"<br /></li><li>auto_hide: check if you want your panel to hide automatically when the mouse leave it</li><li>auto_hide_size: very useful, it's the size of the bar when it is hidden. Set it to 0 if you want the bar to disappear completely</li><li>enable_animations: If you want the panel to show/hide instantly, uncheck it</li><li>hide_delay and unhide_delay is the time the panel takes before hiding and unhiding in milliseconds (1 second = 1000 milliseconds)</li></ul>All other parameters can be changed from the panel configuration interface.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com2tag:blogger.com,1999:blog-7868237751501295497.post-17966972980725486802008-07-02T00:53:00.000-07:002008-12-09T00:10:50.426-08:00Intel Q6600 overclocked to 3.6Ghz on airThe Intel Core 2 Quad Q6600 is a nice cpu which is, in most of the cases very easy to overclock. When I talk about overclock, it's not a 10% or 15% overclock, but a 50% overclock.<br />In this news, I will explain how I have been able to overclock my intel Q6600 from 2,4Ghz to 3,6Ghz safely and with a small investment (no need for a water cooling system).<br /><br />Overclocking a quad core cpu create a lot of heat. The first thing to do is to insure the system will be able to cool the cpu correctely. To do that, I replaced the stock air cooling system with the <a href="http://www.ocztechnology.com/products/cooling_products/ocz_vendetta_2_cpu_cooler">OCZ vandetta 2</a> system:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Tw3qvRNo2yXiL_oFmHigF0En_6X2ZH5XRCoVIUg986fztwQvMCxY4otmHvOCYuhRt4N9m6jBkjk90CS-TwsFM4wvoxUxhclDGVVymSJnHINDKtgQ91msItMNhQokrHXJZPvjxiHj1aU/s1600-h/V2_frontB.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Tw3qvRNo2yXiL_oFmHigF0En_6X2ZH5XRCoVIUg986fztwQvMCxY4otmHvOCYuhRt4N9m6jBkjk90CS-TwsFM4wvoxUxhclDGVVymSJnHINDKtgQ91msItMNhQokrHXJZPvjxiHj1aU/s400/V2_frontB.jpg" alt="" id="BLOGGER_PHOTO_ID_5218324847281179666" border="0" /></a><br />This cpu cooler has very good cooling capacity, is quite cheap, fits in my case (on the P5N-D motherboard, the cpu is not far away from the PSU and many CPU cooler with 120mm fans can't fit) and is sold in my computer hardware shop. I chose a cooling system with a vertical fan to have a very good air flow in the case.<br /><br />To be sure the cooling capacity will be used efficiently, I used Arctic Silver 5 thermal grease. OCZ provide a very good one, but my hardware store didn't have it in store.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDWgQrD0nx2R2Bq1CHU7SCfQ1kVpxO8A0Z_baNFe9CqZrtAH9-xeveusrbSqFtRjJOBuo4TlYEvs-I-IVq5uGAgNEDE8nSdF3n0LecREDXagAV59Ql96XD0Ba3kcgI1XmRZkDT6rx9Pb4/s1600-h/AS5_big_blue1.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDWgQrD0nx2R2Bq1CHU7SCfQ1kVpxO8A0Z_baNFe9CqZrtAH9-xeveusrbSqFtRjJOBuo4TlYEvs-I-IVq5uGAgNEDE8nSdF3n0LecREDXagAV59Ql96XD0Ba3kcgI1XmRZkDT6rx9Pb4/s400/AS5_big_blue1.jpg" alt="" id="BLOGGER_PHOTO_ID_5218327732692807154" border="0" /></a><br /><br />Now we have the good cooling system, we have to insure it will be correctly supplied with fresh air. Like many people, I have a Sonata III 500 case which is a good one for the price:<br /><div style="text-align: left;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9enHVqg3s5hC8Za8rWVfJn8VsClUmX0V_BuA3breRic9lnKI2_KDk8Ijal_LkS58MDpwuXxzLBVKCQFmVpT-tehpA8W1-7jNqV1d4kl7zLDQPDRIKWG5iNdr_G0BQYx8-Gq-GaGumTn4/s1600-h/sonataIII_Q.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9enHVqg3s5hC8Za8rWVfJn8VsClUmX0V_BuA3breRic9lnKI2_KDk8Ijal_LkS58MDpwuXxzLBVKCQFmVpT-tehpA8W1-7jNqV1d4kl7zLDQPDRIKWG5iNdr_G0BQYx8-Gq-GaGumTn4/s400/sonataIII_Q.jpg" alt="" id="BLOGGER_PHOTO_ID_5218327997811123602" border="0" /></a><br /></div>Unfortunately, for heavy overclocking, the case do not provide a sufficient air flow. Fortunately, this problem can be fixed very easily, and at a very low cost. Indeed, my system only uses one of the three 5"1/4 bay and none of the two 3"1/2 ones. So I decided to put my dvd player on the top 5"1/4 bay and left all the other bays open to optimize my air flow:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKf3NVp-CmrRfF50H6RopyUu9fSldrH-XZJ-zPycTyDbGuZueNdONs5tPhr8cshUdON31fZkjxZkFGS_LqzU3TX6dVQheJ8X26XyzLUSwGEJqeHjs8WVd9XvzhOinKsP3cNSOkFCW-uQg/s1600-h/flux.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKf3NVp-CmrRfF50H6RopyUu9fSldrH-XZJ-zPycTyDbGuZueNdONs5tPhr8cshUdON31fZkjxZkFGS_LqzU3TX6dVQheJ8X26XyzLUSwGEJqeHjs8WVd9XvzhOinKsP3cNSOkFCW-uQg/s400/flux.jpg" alt="" id="BLOGGER_PHOTO_ID_5218329047196193458" border="0" /></a>With this solution, the air enter by the front panel, goes directly to the cpu cooling system, and is evacuated by the rear fan. This solution will need you to keep the front door open when your computer is in use. To improve air flow efficiency, I added a 120mm fan at the back of my drive bays.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMbLEtSwLQZXnyfdJw4PGS9PT_70hhmwLWGQ6eMX9IZgW0z8xpXCJ5Vd9M_9X0il8gYdTUpTHXEysuut8c7qLvUSXYwTncYRDhaQ0V5YN81N-Wz_sK84L8W0ARjizAu6Mp7HuH3mDLGJY/s1600-h/DSC02238.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMbLEtSwLQZXnyfdJw4PGS9PT_70hhmwLWGQ6eMX9IZgW0z8xpXCJ5Vd9M_9X0il8gYdTUpTHXEysuut8c7qLvUSXYwTncYRDhaQ0V5YN81N-Wz_sK84L8W0ARjizAu6Mp7HuH3mDLGJY/s400/DSC02238.JPG" alt="" id="BLOGGER_PHOTO_ID_5218332611324128322" border="0" /></a><br />I fixed it at three points (two on the bottom fan screws and one to the 5"1/4 bay case) using small tie wrap:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinxEAEa0c7CE4Cooi1rDyJXLG7WoQIgAK2-vzn_bwBSSB04PfYnGGVczdz-jRtlXPB8TYhgggeWlLUFfDoNAULwoZLhepwghSpJhmRTQwL3wugyun-lIKw3EWq0ZIRHkItEKr4C_3nH5Y/s1600-h/tie1.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinxEAEa0c7CE4Cooi1rDyJXLG7WoQIgAK2-vzn_bwBSSB04PfYnGGVczdz-jRtlXPB8TYhgggeWlLUFfDoNAULwoZLhepwghSpJhmRTQwL3wugyun-lIKw3EWq0ZIRHkItEKr4C_3nH5Y/s400/tie1.jpg" alt="" id="BLOGGER_PHOTO_ID_5218331435596997762" border="0" /></a>This way, the fan if firmly maintained.<br /><br /><br />Now, we need to install an air filter, to protect our cooling system from dust and make the case not too ugly. To do that, I bought an air conditioner filter foam:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9yMuKLq1I2fKUI53TMs-LwlnjZcEcRmdz8H7uQHeh13wpcj8SawQSVU2JdaD_AXNBG_4R6hm8ieIkK1liRyWGUp7m5-aLeL5WMtuGCC95aCU80Qob34FEITNzn3CB9RhzMS4wTkgfr0k/s1600-h/DSC02237.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9yMuKLq1I2fKUI53TMs-LwlnjZcEcRmdz8H7uQHeh13wpcj8SawQSVU2JdaD_AXNBG_4R6hm8ieIkK1liRyWGUp7m5-aLeL5WMtuGCC95aCU80Qob34FEITNzn3CB9RhzMS4wTkgfr0k/s400/DSC02237.JPG" alt="" id="BLOGGER_PHOTO_ID_5218332535730849058" border="0" /></a>The advantage of this foam is that it will be easy to fix it in the case.<br />I cut the foam a little bit larger than the drive bays I've to cover. To fix it, it's just necessary to unlock the front of the case. It's not necessary to remove it, just unlocking the top of it is enough. Then I put the foam between the front case and the metal chassis and lock back the front of the case to fix the foam. That's simple, and the result looks like that:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_F8KIxvQ_OPd9jSD_8eQCnZPihfHUw9TZgQm_nsKZ7GMDThJPRUvNl7gKg9ihf3pUebWLXoSJ8CD49svOVpL455sPL-TWEus0zCtGtfMznisVfaoKbH_NRO17EzLsWlOCKvNJwgJHma4/s1600-h/DSC02232.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_F8KIxvQ_OPd9jSD_8eQCnZPihfHUw9TZgQm_nsKZ7GMDThJPRUvNl7gKg9ihf3pUebWLXoSJ8CD49svOVpL455sPL-TWEus0zCtGtfMznisVfaoKbH_NRO17EzLsWlOCKvNJwgJHma4/s400/DSC02232.JPG" alt="" id="BLOGGER_PHOTO_ID_5218333830874414050" border="0" /></a>It's not very nice but it's the less expensive solution.<br /><br />Now, the case is ready, and we just have to configure the bios.<br /><br /><span style="color: rgb(255, 0, 0);font-size:130%;" ><span style="font-weight: bold;font-family:arial;" >Be careful! Apply the following configuration at your own risk. Any misconfiguration or bad cooling may destroy your system. This is given only as information. It worked for me, but parameters may vary from one computer/CPU to another.</span></span><span style="font-weight: bold;font-family:arial;font-size:130%;" ><span style="color: rgb(255, 0, 0);"> I'm not responsible for any damage which may happen to your computer.</span></span><br /><br />Here is my configuration for voltage on my P5N-D motherboard:<br />Vcore voltage: 1.48750V (value set in the bios)<br />Dram: auto (I overclock the CPU, not the ram)<br />HT voltage: 1.48V<br />NB chipset voltage: 1.48V<br />SB chipset voltage: 1.60V<br /><br />For frequency:<br />FSB-Memory clock mode: unlinked<br />FSB: 1600 Mhz (with P5N-D it'S 1600, but with other motherboard it can be 400)<br />Mem: 800 Mhz (no overclock on my 800Mhz ram)<br />CPU multiplier is kept at x9<br /><br />Enhanced C1 (C1E) is enabled (disable it at first if you encounter problems)<br />Speed step is enabled (disable it at first if you encounter problems)<br /><br />Now, it's time to restart the computer, but before, be sure that your fans are set to run full speed in the bios.<br /><br />When the system is idle, the temperature of the CPU is 37°C, and the warmest core is at 40°C. You can see that the speedstep option reduce the speed of the CPU to 2.4Ghz when idle. You can see that when idle, the vcore voltage I set at 1.48750V in the bios is at 1.44 in real conditions.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4j_CIG5G1KI4BsZ7XQiESQ-4vpVL1sdBBlbdWLPXTElL2Ao6UvrgDm4AZn4BIhFJp2liPqaxnEl3nTsRyVW9Wx8XUeI3xIlM7DunWhZuY9TZQJZEZ3s1XTnNNNlPN3OXcu3Hqg01oxSQ/s1600-h/idle.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4j_CIG5G1KI4BsZ7XQiESQ-4vpVL1sdBBlbdWLPXTElL2Ao6UvrgDm4AZn4BIhFJp2liPqaxnEl3nTsRyVW9Wx8XUeI3xIlM7DunWhZuY9TZQJZEZ3s1XTnNNNlPN3OXcu3Hqg01oxSQ/s400/idle.jpg" alt="" id="BLOGGER_PHOTO_ID_5218337353241749810" border="0" /></a><br />Now, to be sure the system is stable, it's necessary to launch a stress test. Using compression software or any other software not dedicated to stressing the CPU is not efficient. To stress my CPU, I used cpuburn, which is a software provided in ubuntu repositories. This software really stress the cpu and increase the temperature much more than any other software not dedicated to cpu stress test can do. Cpuburn is really the best way to verify if our system is stable. I run one cpuburn for each core. Since I've a modern intel cpu, I run burnP6. After 3 hours of stress test, my system is stabilized to 61°C with the warmest core at 66°C, which is really good, since my cpu will never be so much stressed in normal use.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZdx1t7UxO9TW0SEMExpW1hCH2WAUjLSTL-Sq8QISGwvsCXoN-OP2-ak8sz6pLpjVasNA_HtfF2EnL7jgJ_7DkKn3Fn_fRLKZ941t3Sq3YHum0Pe5VKbxN12SFlEhzIRDtlx6_xsaprCI/s1600-h/load.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZdx1t7UxO9TW0SEMExpW1hCH2WAUjLSTL-Sq8QISGwvsCXoN-OP2-ak8sz6pLpjVasNA_HtfF2EnL7jgJ_7DkKn3Fn_fRLKZ941t3Sq3YHum0Pe5VKbxN12SFlEhzIRDtlx6_xsaprCI/s400/load.jpg" alt="" id="BLOGGER_PHOTO_ID_5218338961589976802" border="0" /></a>As you can see, on heavy load, the Vcore voltage dropped to 1.38V.<br /><br /><span style="font-weight: bold;">Debugging:</span><br />I'm not an expert in overclocking, but here is my experience regarding this overclock.<br />I used 1.48750V for the vcore, since with lower voltage, the system had a hard reboot after 20 minutes of stress test.<br />It worked with 1.5V, but the lower the voltage is, the better it is. Lower voltage will create less heat.<br />For other voltage, it's a guess I made with all the information I found on internet.<br /><br />It's possible your system may not work at 3.6Ghz, it really depends on your CPU. You may be lucky or not. For example, I haven't been able to run my system at 3.8Ghz even if the CPU was still quite cool and some people can.<br /><br />You may need more vcore voltage or less, it depends on your CPU too. Try to lower the voltage as much as possible.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-89222403860783982732008-06-03T16:42:00.000-07:002008-06-03T16:45:05.663-07:00(UPDATE) nvidia 8800 GT GPU temperature with linuxIt's here:<br /><a href="http://computersstoneage.blogspot.com/2008/06/asus-nvidia-8800-gt-gpu-temperature.html">http://computersstoneage.blogspot.com/2008/06/asus-nvidia-8800-gt-gpu-temperature.html</a>Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-15839213496508029122008-06-02T18:36:00.000-07:002008-06-02T19:00:36.476-07:00How to stop a noisy hard disk with LinuxThe hard disk I use to host my Windows is extremely noisy. Furthermore, since I use Ubuntu 99% of the time and nearly never access this hard drive during this time, keeping the disk spinning is absolutely useless.<br />The simplest way to stop the hard drive is to use sg3-utils.<br />To install it just use this command:<br /><blockquote>sudo apt-get install sg3-utils<br /></blockquote>Now, if you want to stop the hard drive /dev/sda, use this command:<br /><blockquote>sudo sg_start --stop /dev/sda</blockquote>The disk will restart as soon as you will try to access it.<br /><br />If you want your hard drive to stop every time you log onto your account, you can add the command to the list of software to start when you log in. However, to be able to do that, you will have to allow you to sudo sg_start without having to enter your password.<br />To do that if your user name is username then, edit /etc/sudoers and add the line:<br /><blockquote>username ALL=NOPASSWD:/usr/bin/sg_start</blockquote>To edit /etc/sudoers you have to make it writable by root, then when you have edited it, do not forget to set it read only for root, and nothing for group and users. If you don't do that, or make an error in suoers file, sudo will no more work. So be carefull, and keep a root shell open while you test if sudo still work.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0tag:blogger.com,1999:blog-7868237751501295497.post-84521680550077659572008-06-01T15:07:00.000-07:002009-10-31T16:40:53.577-07:00nvidia 8800 GT GPU temperature with linuxThis modification of nvclock works and is accurate with my video card, but I accept no responsibility for damages this modified software may create. This software and information is provided 'As Is'.<br />
<br />
I'm the unlucky owner of an ASUS EN8800GT.<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0XIGniKiDJlKg2Dn8M2wY62yH89icLCzqMlHUrGzU3XTTiPIz_-DWWtWE0-9DIhrT7RX9bY-BCrkMC6BxgG5RFBibxpHS1E0q5f8Gp7OuclP9StKt-zF4jMDPIe2zZ8a3e7_HnKL3TXI/s1600-h/2012_m.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5207055881240593122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0XIGniKiDJlKg2Dn8M2wY62yH89icLCzqMlHUrGzU3XTTiPIz_-DWWtWE0-9DIhrT7RX9bY-BCrkMC6BxgG5RFBibxpHS1E0q5f8Gp7OuclP9StKt-zF4jMDPIe2zZ8a3e7_HnKL3TXI/s320/2012_m.jpg" style="cursor: pointer; float: right; margin: 0pt 0pt 10px 10px;" /></a><br />
<br />
This card basically do the job. However, ASUS has disabled the standard temperature and fan control system to allow only their own ugly software which works only with windows to monitor the card.<br />
Under linux, nvidia-setting software return nothing for temperature. This is disappointing.<br />
<br />
Luckily, I found a solution to be able to read, at least the GPU temperature on my Ubuntu Box.<br />
I found that nvclock v0.8 beta3 was able to report a GPU temperature. However, this value is not good. So I modified nvclock to report correctly the temperature. Find below the patch for the file src/backend/nv50.c:<br />
<blockquote>139a140,146<br />
><br />
> //Temperature support for G92<br />
> if(( (nv_card->bios->device_id&0xff00) == 0x600)||( (nv_card->bios->device_id&0xff00) == 0x610))<br />
> {<br />
> temp = nv_card->PMC[0x20008/4]&0x3fff;<br />
> return (-13115 + temp) / 18.7 + 1;<br />
> }<br />
</blockquote><br />
Nicolas (see comment below and thank you for your update) reported that since nvclock 0.8 beta4, a new patch is necessary to provide the good temperature (not -380° or so). Here is the code:<br />
<br />
<blockquote>--- src/backend/nv50_old.c 2009-01-04 11:46:39.000000000 +0100<br />
+++ src/backend/nv50.c 2009-05-26 14:21:12.000000000 +0200<br />
@@ -229,7 +229,7 @@<br />
printf("divider=%f, offset=%f\n", divider, offset);<br />
}<br />
<br />
- temp = nv_card->PMC[0x20008/4] & 0x1fff;<br />
+ temp = nv_card->PMC[0x20008/4] & 0x3fff;<br />
return (int)(temp + offset)/divider;<br />
} <br />
</blockquote><br />
Now, it reports the temperature correctly, and other video cards still work correctly.<br />
<br />
The result looks like that:<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-JL9fi5M07VFYC9IHlu940XRkfrDxKNwnrOs4YLR_-JXyTCRG4WRxy0gHOCPHPZoVH8y-cZ3082x0x3viNeB-fJWW3D_PUk-bV6NSr7MD6QrP3cW7-PgeFa3hRgb6KpSjk8SI1xDd9m4/s1600-h/Screenshot-NVClock+0.8+%28Beta3%29.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5207067580731507458" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-JL9fi5M07VFYC9IHlu940XRkfrDxKNwnrOs4YLR_-JXyTCRG4WRxy0gHOCPHPZoVH8y-cZ3082x0x3viNeB-fJWW3D_PUk-bV6NSr7MD6QrP3cW7-PgeFa3hRgb6KpSjk8SI1xDd9m4/s400/Screenshot-NVClock+0.8+%28Beta3%29.png" style="cursor: pointer; display: block; margin: 0px auto 10px; text-align: center;" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ-A4JXds8CzvWa50DBW8FnStzmXYQ7QSQcnOrwWjsEXbj-aNGbgsan9ednJrmO8uE3mHb61pIy4OvezijKf7DAIi95Nbp30MHKwnn0NB56skFhrQuqs_wSI3mmAYeJeYSmcvw-U5X2_k/s1600-h/Screenshot.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5207803884154929954" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ-A4JXds8CzvWa50DBW8FnStzmXYQ7QSQcnOrwWjsEXbj-aNGbgsan9ednJrmO8uE3mHb61pIy4OvezijKf7DAIi95Nbp30MHKwnn0NB56skFhrQuqs_wSI3mmAYeJeYSmcvw-U5X2_k/s400/Screenshot.png" style="cursor: pointer; display: block; margin: 0px auto 10px; text-align: center;" /></a><br />
<br />
<br />
I hope this is helpful to you.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com5tag:blogger.com,1999:blog-7868237751501295497.post-3832032486562745292008-05-31T15:29:00.000-07:002008-12-09T00:10:51.454-08:00How to convert your video to work on your IPod in one click with linux (Gnome)<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyYN64h_hFjz3lLeqeHTXSJPJgL1HFcLm3LnCFv-ENvMuEdGhAggJk8ckXhqZcb4DuBkpCtuzr3cb01pxgNkuvZUbiDNDjORkyuLHoxgm7zcObm08sCQ1IY_Ci6FCewVRORh-dC36m374/s1600-h/ipod-linux.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyYN64h_hFjz3lLeqeHTXSJPJgL1HFcLm3LnCFv-ENvMuEdGhAggJk8ckXhqZcb4DuBkpCtuzr3cb01pxgNkuvZUbiDNDjORkyuLHoxgm7zcObm08sCQ1IY_Ci6FCewVRORh-dC36m374/s320/ipod-linux.jpg" alt="" id="BLOGGER_PHOTO_ID_5206689232767435458" border="0" /></a>This tutorial has been done with Ubuntu 8.04 .<br />The problem with Ubuntu 8.04 is that ffmpeg doesn't support aac encoding by default. So we will have to compile it with support for aac.<br /><br />First of all, verify that ffmpeg is not installed on your computer. If it'S installed, please, uninstall it using synaptic.<br /><br />Now, open a terminal, and execute the following commands:<br /><span style="font-style: italic;"></span><blockquote><span>sudo apt-get build-dep ffmpeg</span> <span><br />sudo apt-get install liblame-dev libfaad-dev libfaac-dev libxvidcore4-dev libx264-dev liba52-0.7.4 liba52-0.7.4-dev</span><br /><span>sudo apt-get source ffmpeg</span></blockquote><br /><br />Now, go in ffmpeg source folder folder:<br /><span style="font-style: italic;"></span><blockquote><span>cd ffmpeg-0.cvs20070307/</span></blockquote><br />Now, it's time to compile ffmpeg with the following commands:<br /><span style="font-style: italic;"></span><blockquote><span>sudo ./configure --enable-gpl --enable-libogg --enable-liba52 --enable-dc1394 --enable-libgsm --disable-debug --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads --enable-x264</span><br /><span>sudo make</span> <span><br />sudo checkinstall -D make install</span></blockquote><br />If everything went well, now ffmpeg is installed on your computer with support for aac.<br /><br />To allow you to convert films to mp4 supported by an IPod in a single click, you need to do the following.<br /><br />First, verify that zenity is installed by running the following command:<br /><span style="font-style: italic;"></span><blockquote><span>sudo apt-get install zenity</span></blockquote><br />Then, run the following command to create and edit the script used to convert vidoes in 4:3:<br /><span style="font-style: italic;"></span><blockquote><span>gedit "~/.gnome2/nautilus-scripts/Ipod Video 4:3"</span><span style="font-style: italic;"><br /></span></blockquote>Then copy the following script in the editor and save the content:<br /><span style="font-style: italic;"></span><blockquote><span>#!/bin/bash<br /><br />IFS='<br /><br />';<br /><br /># List all files<br />count=0;<br /><br />for f in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS;<br />do<br />count=$(($count+1));<br />done<br /><br />pos=0;<br />for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS;<br />do<br />pos=$(($pos+1));<br />name=${file##*/}<br />ffmpeg -threads 3 -y -i "$file" -f mp4 -vcodec mpeg4 -maxrate 700000 -b 700000 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 "$file.mp4" 2>&1 | perl -ne '$/="\r";$| = 1;if (/Duration: (\d+):(\d+):(\d+)/) { $max=($1*3600+$2*60+$3) }; if (/time=(\d+)/) { printf "%d\n",($1/$max*100);} print STDERR $_;'| zenity --progress --auto-close --title="$name" --text="File $pos/$count" --percentage=0<br />done<br /><br /></span><span></span></blockquote>Since I have a quad core GPU, I use the option <span style="font-style: italic;">-threads 3 </span>to use 3 cores. Change the value to 1 or 2 if you have one or two cores.<br /><br />Now, close the editor and run the following command to make the file executable:<br /><span></span><blockquote><span>chmod 700 "~/.gnome2/nautilus-scripts</span>/<span>Ipod Video 4:3"</span></blockquote><br /><br /><br /><br />To create the script which convert fils in 16:9 format, run the following commands:<br /><span style="font-style: italic;"></span><blockquote><span>gedit "~/.gnome2/nautilus-scripts/Ipod Video 16:9"</span></blockquote>Then copy the following script in the editor and save the content:<br /><span style="font-style: italic;"></span><blockquote><span>#!/bin/bash<br /><br />IFS='<br /><br />';<br /><br /># List all files<br />count=0;<br /><br />for f in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS;<br />do<br />count=$(($count+1));<br />done<br /><br />pos=0;<br />for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS;<br />do<br />pos=$(($pos+1));<br />name=${file##*/}<br />ffmpeg -threads 3 -y -i "$file" -f mp4 -vcodec mpeg4 -maxrate 700000 -b 700000 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x180 -aspect 16:9 "$file.mp4" 2>&1 | perl -ne '$/="\r";$| = 1;if (/Duration: (\d+):(\d+):(\d+)/) { $max=($1*3600+$2*60+$3) }; if (/time=(\d+)/) { printf "%d\n",($1/$max*100);} print STDERR $_;'| zenity --progress --auto-close --title="$name" --text="File $pos/$count" --percentage=0<br />done</span><span style="font-style: italic;"><br /><br /></span><span style="font-style: italic;"></span></blockquote>Since I have a quad core GPU, I use the option <span style="font-style: italic;">-threads 3 </span>to use 3 cores. Change the value to 1 or 2 if you have one or two cores.<br /><br />Now, close the editor and run the following command to make the file executable:<br /><span></span><blockquote><span>chmod 700 "~/.gnome2/nautilus-scripts</span>/<span>Ipod Video 16:9"</span></blockquote><br /><br /><br />To convert a video, just right click on your video file, then left click, then go to <span style="font-style: italic;">scripts</span> option, and choose one of the two scripts.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyE7Ol8NEWBuMS6jGClUicMzcpuP6G99MNQNpzTHFZWmwATuphQ4HI0v182Hje-fVhwA3qupsx1UiTb0G-3hebDdPKShrT_Zz6yJQH8VyQl4TZdNsc8QqQlf4b-GyRwVAuj4GH621-MH8/s1600-h/menu.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyE7Ol8NEWBuMS6jGClUicMzcpuP6G99MNQNpzTHFZWmwATuphQ4HI0v182Hje-fVhwA3qupsx1UiTb0G-3hebDdPKShrT_Zz6yJQH8VyQl4TZdNsc8QqQlf4b-GyRwVAuj4GH621-MH8/s400/menu.png" alt="" id="BLOGGER_PHOTO_ID_5206685401656607378" border="0" /></a><br /><br />The you will see the conversion progress:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Mc1irENQ3uWj3K84MT_kvEXwiOehL5b-c98aL3J6-b-w9sE9kmE2LwBcmNG0F_IXfcgjuI7mImK3Y2xbeeNOpNGQO1FvZMgJAAVQiw1caYj-OamWMiymdu-wifYUuldCFTK4YyUZYXI/s1600-h/progress.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-Mc1irENQ3uWj3K84MT_kvEXwiOehL5b-c98aL3J6-b-w9sE9kmE2LwBcmNG0F_IXfcgjuI7mImK3Y2xbeeNOpNGQO1FvZMgJAAVQiw1caYj-OamWMiymdu-wifYUuldCFTK4YyUZYXI/s400/progress.png" alt="" id="BLOGGER_PHOTO_ID_5206685517620724386" border="0" /></a><br /><br />You can select several videos at the same time to make a batch conversion.<br /><br />Now, to put your new video on your Ipod, just use gtkpod.Walterhttp://www.blogger.com/profile/15774862035695829144noreply@blogger.com0