bitPrison.net - Hardware http://bitprison.net/blog-categories/hardware en How to disable chrome caching on Ubuntu? http://bitprison.net/content/how-disable-chrome-caching-ubuntu <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I bought SSD drive to my laptop, so I decided to minimize write I/O on my system. The less writing is a good idea even you have a HDD. Your system become faster in this way.</p> <p>There are some good starting point:<br /><a href="https://wiki.debian.org/SSDOptimization">https://wiki.debian.org/SSDOptimization</a><br /><a href="http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds">http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds</a></p> <h3>The fake solution</h3> <p>But I would have liked to turn off caching on my browser. I use chrome, and there is no any setting in the UI to turn off caching. In the matter of fact the most supposed solution doesn't work at all. If you turn out the caching on the development tools it just turn off caching while development toolbox is open. But I wanted to find a real solution.</p> <h3>The real solution</h3> <p>Edit /usr/share/gnome-control-center/default-apps/chromium-browser.xml and put --cache-disk-size=1 argument into command tag:</p> <pre class="prettyprint linenums"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd"&gt;<br />&lt;default-apps&gt;<br />  &lt;web-browsers&gt;<br />    &lt;web-browser&gt;<br />      &lt;name&gt;Chromium&lt;/name&gt;<br />      &lt;executable&gt;chromium-browser&lt;/executable&gt;<br />      &lt;command&gt;chromium-browser --cache-disk-size=1 %s&lt;/command&gt;<br />      &lt;icon-name&gt;chromium-browser&lt;/icon-name&gt;<br />      &lt;run-in-terminal&gt;false&lt;/run-in-terminal&gt;<br />      &lt;netscape-remote&gt;false&lt;/netscape-remote&gt;<br />      &lt;!--<br />      &lt;tab-command&gt;false&lt;/tab-command&gt;<br />      &lt;win-command&gt;false&lt;/win-command&gt;<br />      --&gt;<br />    &lt;/web-browser&gt;<br />  &lt;/web-browsers&gt;<br />&lt;/default-apps&gt;</code></pre><p> When you click on chromium browser icon the cache size will be 1 byte. So the cache is disabled. (0 means no limit)</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a> <a href="taxonomy/term/26" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Linux</a> <a href="taxonomy/term/51" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Unix admin</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/135" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>chrome</a> <a href="taxonomy/term/25" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>linux</a> <a href="taxonomy/term/136" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>ssd</a> <a href="taxonomy/term/137" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>performance</a> <a href="taxonomy/term/138" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>tuning</a> <a href="taxonomy/term/70" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>hardware</a> <a href="taxonomy/term/23" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>ubuntu</a></div> Tue, 29 Oct 2013 10:06:34 +0000 Jozsef 75 at http://bitprison.net http://bitprison.net/content/how-disable-chrome-caching-ubuntu#comments How to convert your real system to virtual machine? http://bitprison.net/convert-to-virtual-machine <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I had a real Linux server system that I need to convert into virtual server, because I wanted to sell my old hardware, but I needed the system as backup. This backup is able to run as virtual server. This is a very useful backup method. This tutorial show you how you can convert your whole system into virtualbox system. Virtualbox is a free opensource virtual computer solution from Oracle. </p> <h2>1. Backup your system disk</h2> <p>If you can, put your system disk to another computer. But if you can't do it you can do it the original system.</p> <p>Backup you hard disk (not just your partition) with the following command:</p> <pre class="prettyprint linenums"><code>cd /the/path/of/your/backup<br />cat /dev/sda &gt;./sda.backup</code></pre><p> This command makes you a hard drive image in /the/path/of/your/backup folder.</p> <h2>2. Convert your hard disk image into virtual hard disk</h2> <p>Convert your hard drive backup:</p> <pre class="prettyprint linenums"><code>VBoxManage convertfromraw ./sda.backup sda.vdi --format vdi</code></pre><h2>3. Create new virtual machine</h2> <p>Download, install and start VirtualBox. Push the New button. At the settings of virtual hard disk choose "use existing hard disk" option and select your new sda.vdi virtual hard disk image.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a> <a href="taxonomy/term/26" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Linux</a> <a href="taxonomy/term/51" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Unix admin</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/132" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>virtualbox</a> <a href="taxonomy/term/133" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>vps</a> <a href="taxonomy/term/117" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>backup</a> <a href="taxonomy/term/52" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>system admin</a> <a href="taxonomy/term/25" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>linux</a></div> Fri, 03 May 2013 09:34:44 +0000 Jozsef 73 at http://bitprison.net http://bitprison.net/convert-to-virtual-machine#comments SATA HotPlug and HostSwap in Ubuntu Linux http://bitprison.net/monoig_model_attibutes_translation <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Check active scsi devices:</p> <pre class="prettyprint linenums"><code>ubuntu@ubuntu:~$ lsscsi<br />[1:0:1:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sda <br />[2:0:0:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sdb <br />[3:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS90  HN00  /dev/sr0 <br />[5:0:0:0]    disk    Generic  STORAGE DEVICE   9451  /dev/sdd <br />[6:0:0:0]    disk    GT-I5700  - Card                /dev/sdc </code></pre><p> Now refresh SCSI devices. Use this command to refresh host0 (or host1, host2, host3):</p> <pre class="prettyprint linenums"><code>ubuntu@ubuntu:~$ echo "- - -" | sudo tee -a /sys/class/scsi_host/host0/scan </code></pre><p> Check the result:</p> <pre class="prettyprint linenums"><code>ubuntu@ubuntu:~$ lsscsi <br />[0:0:1:0]    disk    ATA      SAMSUNG SP1213C  SV10  /dev/sde <br />[1:0:1:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sda <br />[2:0:0:0]    disk    ATA      SAMSUNG HD103SJ  1AJ1  /dev/sdb <br />[3:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS90  HN00  /dev/sr0 <br />[5:0:0:0]    disk    Generic  STORAGE DEVICE   9451  /dev/sdd <br />[6:0:0:0]    disk    GT-I5700  - Card                /dev/sdc </code></pre><p> HotPlugged SATA HDD appeared on the first line.</p> <p>Now you can see the partitions on /proc/partitions file:</p> <pre class="prettyprint linenums"><code>ubuntu@ubuntu:~$ cat /proc/partitions<br />major minor  #blocks  name<br /><br />   8        0  976762584 sda<br />   8        1     975872 sda1<br />   8        2          1 sda2<br />   8        3  963902464 sda3<br />   8        5   11881472 sda5<br />   8       16  976762584 sdb<br />   8       17     975872 sdb1<br />   8       18          1 sdb2<br />   8       19  963902464 sdb3<br />   8       21   11881472 sdb5<br />  11        0    1048575 sr0<br />   9        1     975808 md1<br />   9        0  963902400 md0<br />   8       64  117245471 sde<br />   8       65   35656267 sde1<br />   8       66   57850065 sde2<br />   8       67    4056412 sde3<br />   8       68   19679593 sde4</code></pre><p> Now I can mount sde[1234] partitions.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/26" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Linux</a> <a href="taxonomy/term/51" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Unix admin</a> <a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/25" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>linux</a> <a href="taxonomy/term/52" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>system admin</a></div> Tue, 05 Mar 2013 16:23:46 +0000 Jozsef 70 at http://bitprison.net http://bitprison.net/monoig_model_attibutes_translation#comments UEFI BIOS Windows 7 installation problem and solution http://bitprison.net/UEFI-BIOS-Windows-7-install <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><h3>New ASUS K55 Laptop with UEFI Bios</h3> <p>I have a client who bought an ASUS K55VD laptop. This laptop is coming with Windows 8. But my client had bought a windows 7. So He wanted to use this windows 7 on his new laptop. I had another task. I had to change the HDD to SSD. It sounds easy, doesn't it?</p> <h3>Problems was coming...</h3> <p>I have never seen UEFI BIOS before. I did not think this will be a challenge for me. I tell the truth I wasted a lot of time to install the OS.</p> <p>Firstly I can not boot any CD under UEFI BIOS. I solve this problem by turning off Security Boot in BIOS Security section. </p> <p>Secondly the Windows 7 DVD froze during boot under UEFI BIOS. It was a nightmare. Windows 7 installer initializing stopped with a black screen and a white "Loading" text.</p> <p>I could not start the installer. So I started to play with BIOS. After some hour and some thousand failed booting I found an option. This option is the key to install any Operation System in your laptop with UEFI BIOS. You have to Enable the "Launch CSM" option in Boot section of Bios. CSM means the Compatibility Support Module. Without this you can boot only UEFI mode. Windows 8 in UEFI mode receive serial key from BIOS. Windows 7 in UEFI mode can not boot in my case.</p> <h3>Conclusion</h3> <p>If you want to install any new OS to your PC or Laptop with UEFI Bios just turn off Security Boot and turn on Launch CSM option. Try these options if your OS installer does not boot. This method also works with Windows XP CD and Linux CD/USB Flash.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/76" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>windows</a> <a href="taxonomy/term/124" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>laptop</a> <a href="taxonomy/term/125" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>UEFI</a></div> Sun, 24 Feb 2013 21:53:06 +0000 Jozsef 67 at http://bitprison.net http://bitprison.net/UEFI-BIOS-Windows-7-install#comments My new JustCloud storage account http://bitprison.net/best-online-storage-i-found-on-internet <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I found a very fast and easy to use online storage solution. My free dropbox account was too small for backing up my files. I mostly backup my most important files with dropbox online storage, but the 2Gb too small for me. I saw the dropbox pro pricing that was almost $10 for 100GB. When I found the <a href="http://track.justcloud.com/?hash=1ceeb04b">JustCloud storage</a> it was less than $10 for unlimited storage. I think it is good offer to me. </p> <p>If somebody is looking for a good online storage solution, here is <a href="http://track.justcloud.com/?hash=1ceeb04b">JustCloud</a> that secure, fast, and really easy to use. Can you imageine what will you do if your computer chrashed and all your work lost? My collegue has a power supply crash and all his work go away except the drop box. He sould open a justcloud account with unlimited stroage space and backup all system. Now he know it. It would be a good deal. But his hdd has failed and he has no justcloud account. Sad story.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/51" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Unix admin</a> <a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/48" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>security</a> <a href="taxonomy/term/117" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>backup</a> <a href="taxonomy/term/118" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>online storage</a></div> Thu, 19 Jul 2012 09:34:06 +0000 Jozsef 64 at http://bitprison.net http://bitprison.net/best-online-storage-i-found-on-internet#comments Silent PC project http://bitprison.net/silent_pc_parts <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I'm looking for silent PC parts for totally noiseless desktop computer. I will use this PC for software development. This PC need to be silent, fast and video card need to drives 2 monitor over 2 DVI port. I will use 4 monitor with an additional video card in the far future.</p> <!--break--><p> Noisy parts are power-supply, CPU cooler, fans and HDDs. </p> <!-- Sound-proof PC case is also necessary with vibration. --><p> Video card need to has passive cooling with 2 DVI.</p> <h3>Configuration</h3> <p>My new PC configuration will contain follow parts:</p> <ul><li><a href="http://www.asrock.com/support/Yorkfield.asp">ASRock Motherboard with Intel P45 chipset</a> (I haven't known yet which one). I think this motherboards have the best price/performance. </li> <li>Intel Core 2 Duo E8500 processor (best price/performance let see this <a href="http://www.tomshardware.com/charts/desktop-cpu-charts-q3-2008/benchmarks,31.html">benchmark result</a> or let see the <a href="http://www.tomshardware.com/reviews/amd-intel-pc-processor,2031.html">full benchmark</a>) in the most case this 45nm CPU defeats most of costly Core 2 Quad.</li> <li><a href="http://www.sapphiretech.com/us/products/products_overview.php?gpid=238&amp;grp=3">Sapphire ATI HD-3450 video card</a> with passive thermal solution (totally silent), 512MB DDR2 RAM, 2 DVI output and TV-out. This card is also available in low-profile version. Very cheap and good for programming, browsing.</li> </ul><h3>And the winners are...</h3> <ul><li>Power-supply (14 dBA):<br /><a href="http://www.silenx.com/ixtremapropsus.asp?sku=ixr-55-142">SilenX IXR-55-142</a> 550W </li> <li>CPU cooler (14 dBA):<br /><a href="http://noctua.at/main.php?show=productview&amp;products_id=17&amp;lng=en&amp;set=1">NH-U9B</a> (7.9 - 17.6 dBA), but we can change out fan with <a href="http://www.silenx.com/ixtremaprofans.asp?sku=ixp-54-14t">SilenX IXP-64-14T</a> 92x92x25mm thermistor fan (6 - 14 dBA depend on CPU therm). This fan is innovative. If original Noctua fan with Ultra-Low-Noise-Adaptor is enough strong for holds therm low, I will not change to SilenX thermistor fan. </li> <li>Fans (max. 11dBA):<br /> If need I will use SilenX fans. These quiet fans have ideal performance. </li> <li>HDD (max. 20dBA):<br /> I will use Samsung notebook HDD (noise level: 17-21 dBA). SSD is very costly but perfect solution the notebook hdd slower than normal HDD but more quiet. </li> </ul><p>This is just a plan, to be continue... :)</p> <p>If you know quieter parts, please comment it.</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog categories: </span><a href="taxonomy/term/69" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>Hardware</a></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-inline clearfix"><span class="field-label">Blog tags: </span><a href="taxonomy/term/70" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>hardware</a> <a href="taxonomy/term/71" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>modding</a> <a href="taxonomy/term/72" class="btn btn-primary btn-mini btn-taxonomy"><i class="icon-tag">&nbsp;</i>silent PC</a></div> Wed, 24 Dec 2008 23:29:22 +0000 Jozsef 30 at http://bitprison.net http://bitprison.net/silent_pc_parts#comments