Posts

Five steps to create Fedora chroot jail using yum

Pre-Notes: - This will work only if your Linux Distro is based on RPM and YUM. I have tested it on Fedora but it may also work on RHEL and Centos... It will NOT work on Ubuntu, Debian, Suse... - The operating system and its version will be the same inside and outside the chroot jail. - On the example, the chroot will be placed at: /chroot/devel - To install different version of Fedora or other RPM based distro, it will be necessary to manage yum package repositories outside the jail. The five steps: # 1 - Create the chroot directory $ sudo mkdir -p /chroot/devel/var/lib/rpm # 2 - Initiate rpm db on chroot $ sudo rpm --root /chroot/devel --initdb # 3 - download Fedora Release package. # If you do not want Fedora, download the correct *-release package and use it # on step 4. There are examples on the references. $ yumdownloader --destdir=/tmp fedora-release # 4 - Install downloaded Fedora release inside chroot $ sudo rpm --root /chroot/devel -ivh /tmp/fedora-release*r...

Benchmark: Samsung S2 Portable 500GB USB 2.0 External HD

Benchmark results for Samsung S2 Portable 500GB USB 2.0 External HD Performance: Write (K/sec): 34974 ( 52% of the HD Performance of my notebook ) Re-write (K/sec): 17612 ( 59% of the HD Performance of my notebook ) Read (K/sec): 46580 ( 64% of the HD Performance of my notebook ) Seeks/sec: 123.8 ( 164% of the HD Performance of my notebook ) Conclusion: The theoretical speed limit for USB 2.0 would be 60 MByte/sec. The read speed is about 78% of this value wich is not bad. Even not feeling slow, this HD could be faster. About tests: Command line run on both notebooks: # bonnie++ -n 0 -u 0 -r 8192 -f -b -d /media/Peter-ext3/bonnie/ Bonnie 1.96 @ Fedora 15 # hdparm -I /dev/sdb /dev/sdb: ATA device, with non-removable media Model Number: SAMSUNG HM502JX Serial Number: C2271F141A0TE5 Firmware Revision: 2AC101C4 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6 Standards: Used: un...

WiFi/Wireless on Toshiba R830 on Fedora 15

I was not able to use WiFi on Toshiba R830 running Fedora 15. There were missing firmware files for iwl6000g2b adapter. It is very easy to fix it: # yum install iwl6000g2b-firmware Then reboot and your Wifi will be running after next boot. :-)

Benchmark: Core 2 Duo T7200 vs. Core i7 2620M

Test systems: System 1: 2007 noteoobk: Toshiba U205-S5067: Core 2 Duo T7200 , 4GB RAM, 320 GB HD System 2: 2011 notebook: Toshiba R830-10P: Core i7 2620M , 8GB RAM, 256 GB SSD This benchmark result is not only affected by the processor. Almost all system components affects the result. The processor is only the main component. Results: Evaluating overall performance, for compiling Linux Kernel and generate its RPM packages for Fedora 15: Core i7 system is 2.85 times faster than Core 2 Duo system . Details I've run the steps described on: http://kdpeter.blogspot.com/2011/05/steps-to-test-kernel-build-on-fedora-15.html , for the kernel package kernel-2.6.38.6-27.fc15.src.rpm. The only difference to the procedure described above is that I added the command "time" in the building step, to be able to compare necessary time to do same task. $ time rpmbuild -bb --with baseonly --without debuginfo --target=`uname -m` kernel.spec Individual results System 1: Core 2 ...

Benchmark: SSD vs. SATA

System 1: 2007 noteoobk: Toshiba U205-S5067: Core 2 Duo T7200, 4GB RAM, 320 GB HD System 2: 2011 notebook: Toshiba R830-10P: core i7 2620M, 8GB RAM, 256 GB SSD How many times faster is SSD?? Write: 2.50 times faster Re-write: 2.83 times faster Read: 3.89 times faster Seeks/sec: 23.99 times faster Benchmark results: System 1: 320GB SATA HD Write (K/sec): 66608 Re-write (K/sec): 29609 Read (K/sec): 71894 Seeks/sec: 75.4 System 2: 256GB SATA SSD Write (K/sec): 166827 Re-write (K/sec): 84040 Read (K/sec): 280068 Seeks/sec: 1809 About tests: Command line run on both notebooks: # bonnie++ -n 0 -u 0 -r 8192 -f -b -d /bonnie/ Bonnie 1.96 @ Fedora 15 System 1 HD info: hdparm -i /dev/sda /dev/sda: Model=SAMSUNG HM320JI, FwRev=2SS00_01, SerialNo=S16LJF0S221285 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs } RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=off CurCHS=16383/16...

Como entrar em contato com o Mercadolivre

O Mercadolivre é um bom local para se vender de tudo. Porém o serviço de atendimento é desrespeitoso. É impossível falar com eles e isso é assim de propósito. Achei um formulário de contato no site. O endereço é: http://www.mercadolivre.com.br/jm/ml.faqs.portalFaqs.FaqsController?axn=frmContact&faqId=6031&categId=PDEN Vale a pena ligar para o 0800-8911897 só pra criar algum transtorno. É o telefone de uma empresa que presta serviço de cobrança para o MercadoLivre. Eles devem receber ligações de pessoas iradas porque nem o nome eles dizem. Veja o meu roteiro para pertubá-los. Sendo muito educado e polido, fale com a voz mais macia que você tiver: 1 - Ligue o 0800-8911897 2 - Pergunte o nome do atendente 3 - Pergunte o nome da empresa 4 - Pergunte como entrar em contato com o Mercadolivre. O atendente vai te dizer que tem um formulário no site. 5 - Peça ajuda ao atendente. Diga que você já encontrou o formulário mas que não há forma de entrar em contato. O atendente vai te dar al...

Installing Sunray II server software on Centos 5.3

I spent many weeks trying to install Sunray server software on Linux. I was NOT able to make it work with Centos 5.3 x86_64. Maybe this is related somehow to GDM package but it did not work. It worked when using i386 version of Centos. See the step by step guide. 1 - Install Centos 5.3 i386 1.1 - If you have more than 3GB of installed RAM, run as root: yum -y install kernel-PAE 2 - Run as root: yum -y update reboot 3 - Download: srss_4.1_linux.zip from http://www.sun.com/software/sunray/getit.jsp jre-6u13-linux-i586-rpm.bin from http://www.java.com apache-tomcat-5.5.27.tar.gz from http://tomcat.apache.org/ 4 - run as root: yum install glib dhcp openldap-clients openldap tftp-server libXp openmotif22 openssl compat-libstdc++-33 libusb-devel compat-openldap yum groupinstall "Development Tools" yum install kernel-devel 5 - run as root: cd /usr/lib ln -sf libldap-2.3.so.0.2.31 libldap.so.199 ln -sf libgdbm.so.2.0.0 libgdbm.so.3 ln -sf liblber-2.3.so.0.2.31 liblber.so.199 6 - inst...