Tips
transmission-1.40 at centos 5 libcurl problem
When I tried to update my transmission (1.34) bittorent client to newest version 1.40 at centos 5 I got a configure error:
Requested ‘libcurl >= 7.16.3′ but version of libcurl is 7.15.5
and it is true… libcurl in centos 5 is now 7.15.5 and probably will not be updated in a short time. As a solution, I tried to rebuild a fedora 8 src package.
What I need was: curl-7.16.4-8.fc8.src.rpm and rpmbuild in my centos system. You will probably need nss-devel and nspr-devel so install it before running rpmbuild. Let’s rock:
rpmbuild –rebuild –define ‘dist .el5′ curl-7.16.4-8.fc8.src.rpm
after some time you should get files:
-rw-r–r– 1 root root 675076 Nov 11 10:19 curl-7.16.4-8.el5.i386.rpm
-rw-r–r– 1 root root 206491 Nov 11 10:19 curl-devel-7.16.4-8.el5.i386.rpm
of course, you can download them from my repo (click at them). Now you can easly install both:
# rpm -Uvh /usr/src/redhat/RPMS/i386/curl-*
Preparing… ########################################### [100%]
1:curl ########################################### [ 50%]
2:curl-devel ########################################### [100%]
Duplicate name exists
After starting windows xp pro, I got:
Duplicate name exists.
Solution:
If changing name for sth random (for example 376huf2e) does not help, check if the workgroup name is not same as one of computers in your network. For me - it solved the problem.
software raid 10 at linux
Today I was looking for some performace tests at linux filesystems, and I found some pages, where raid 10 at linux has been done by merging two raid 1 into raid 0, or simmilar…
Maybe some of you does not know, that linux mdadm support raid10, as you can see below:
# mdadm –create /dev/md2 –level 10 –raid-devices=4 /dev/sda5 /dev/sdb5 /dev/sdc5 /dev/sdd5
mdadm: array /dev/md2 started.
and check:
# cat /proc/mdstat
Personalities : [raid1] [raid10]
md2 : active raid10 sdd5[3] sdc5[2] sdb5[1] sda5[0]
4481920 blocks 64K chunks 2 near-copies [4/4] [UUUU]
[======>..............] resync = 32.2% (1445184/4481920) finish=0.3min speed=160576K/sec
re-add disk to mdadm array
Sometimes you can meet the situation when you lost a drive by accident from your mdadm configuration, as you can see below, two of my arrays has lost a drive:
# cat /proc/mdstat
Personalities : [raid1] [raid0]
md3 : active raid1 sdc2[0] hde2[1]
195358336 blocks [2/2] [UU]md2 : active raid0 sdc1[0] hde1[1]
97675008 blocks 64k chunks
md1 : active raid1 sda1[0]
104320 blocks [2/1] [U_]md6 : active raid1 sdb4[1] sda4[0]
958084352 blocks [2/2] [UU]md0 : active raid1 sda3[0]
14659200 blocks [2/1] [U_]
to re-add it to array just:
# mdadm /dev/md1 -a /dev/sdb1
mdadm: re-added /dev/sdb1
# mdadm /dev/md0 -a /dev/sdb3
mdadm: re-added /dev/sdb3
now - my array is alive and kicking again
# cat /proc/mdstat
Personalities : [raid1] [raid0]
md3 : active raid1 sdc2[0] hde2[1]
195358336 blocks [2/2] [UU]md2 : active raid0 sdc1[0] hde1[1]
97675008 blocks 64k chunksmd1 : active raid1 sdb1[1] sda1[0]
104320 blocks [2/2] [UU]md6 : active raid1 sdb4[1] sda4[0]
958084352 blocks [2/2] [UU]md0 : active raid1 sdb3[2] sda3[0]
14659200 blocks [2/1] [U_]
[>....................] recovery = 1.8% (272128/14659200) finish=2.6min speed=90709K/secunused devices:
create vswitch from commandline
VMware ESX supports some comandline tools, and if you would like to create a new virtual switch without a lot of clicks at vmware infrastructure client, you can easly use:
esxcfg-vswitch -a testvswitch:80
where:
-a - means add
testvswitch - is name of your virtual switch
:80 - is number of port’s you would like to have
vmware esx 3.5i at usb drive with sata support
Yes, it is unsupported, but who cares? As you can read even microsoft does not support windows at vmware :). The VMware ESX 3.5i is free for some time. It is VMware answer for Microsoft’s Hyper-V - I think. Because the system compatybility is rather thin, and I would love to repleace my VMware Server machines with this top product! Because I have just two scsi disks, and a lot of others (sata for example) I would love to make use of it at this machine. What I need is: vmware esx 3.5i iso and a big (1GB is minimum!) pendrive. Let’s rock!
mount the vmware iso
# mount -o loop /storage/VMware-VMvisor-InstallerCD-3.5.0_Update_2-110271.i386.iso /mnt/vmCD/
then copy a install.tgz file to some place and extract it:
# cp install.tgz /storage/
# tar xvzf install.tgz
then take a look at file usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2 “unbzip” it!
# bunzip2 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd.bz2
then you will have one file, which is a disk image (yes, it’s bigger than 32MB thin install of esx, but it has much more drivers):
# ls -al VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
-rwxr-xr-x 1 root root 786432000 sie 13 05:00 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd
now we are going to write the image at the thumbdrive… it is at /dev/sda in my system
# dd if=VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd of=/dev/sda
after this, you have a bootable USB key (look if your bios support it!)! thanks to: vm-help for its tutorial
unscrew the IBM U320 disks screw, and connect it to simple u320 controller
I have two unused U320 SCSI drives from IBM (73GB 15 000 rpm), and would like to use it in server which does not supply the hot swap IBM U320 scsi 80 pin backplane. What is more, I have a controler which has just 68 pin u320 plug. If you have a problem how to connect hot swap drive into standard 68 pin u320 scsi this is the solution:
First: buy the adapter like this:
Connect one side to power plug and 68pin cable, and the disk to another side, and that’s all, your drive should be seen by your contoller.
Next thing is to uscrew this strange screws! To do this you will need a T10 TORX with a hole iside of it - that is all!
Failed dependencies while installing Kerio mail server at centos 5
while installing kerio mail server 6.5.2 at fresh centos 5 install (CentOS release 5.2 (Final)) i got sth like this:
# rpm -Uv /home/users/mrybak/kerio-kms-6.5.2-6426.linux.i386.rpm
error: Failed dependencies:
libstdc++.so.5 is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(CXXABI_1.2) is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(GLIBCPP_3.2) is needed by kerio-kms-6.5.2-6426.linux.i386
libstdc++.so.5(GLIBCPP_3.2.2) is needed by kerio-kms-6.5.2-6426.linux.i386
but I had libstdc++ libraries as you can see:
# rpm -qa |grep libstdc
libstdc++-devel-4.1.2-42.el5
libstdc++-4.1.2-42.el5
but:
# locate libstdc
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.8
so i have newer version that is needed, so:
# yum search libstdc
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: ftp.cvut.cz
* updates: ftp.cvut.cz
* addons: ftp.cvut.cz
* extras: ftp.cvut.cz
libstdc++-devel.i386 : Header files and libraries for C++ development
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
libstdc++-devel.i386 : Header files and libraries for C++ development
libstdc++.i386 : GNU Standard C++ Library
libstdc++.i386 : GNU Standard C++ Library
compat-libstdc++-296.i386 : Compatibility 2.96-RH standard C++ libraries
this is what I need, and after:
# yum install compat-libstdc++-33
Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* base: ftp.fi.muni.cz
* updates: ftp.fi.muni.cz
* addons: ftp.fi.muni.cz
* extras: ftp.fi.muni.cz
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package compat-libstdc++-33.i386 0:3.2.3-61 set to be updated
–> Finished Dependency ResolutionDependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-33 i386 3.2.3-61 base 232 kTransaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)Total download size: 232 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): compat-libstdc++-3 100% |=========================| 232 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-33 ######################### [1/1]Installed: compat-libstdc++-33.i386 0:3.2.3-61
Complete!
everything goes well…
[root@msuno ~]# rpm -Uv /home/users/mrybak/kerio-kms-6.5.2-6426.linux.i386.rpm
Preparing packages for installation…
kerio-kms-6.5.2-6426.linuxThank you for installing Kerio MailServer 6.5.2!
THANK YOU ![]()
export printer settings
If you manage more than 5 pc in the network, and have some network printers, and would like to have apple-pie order than you should use any tool to migrate one done well printer settings. Microsoft made such a tool (which in Windows Vista is implemented in Administrative Tools) for windows XP, and you can download it from this site . It has really common name “Printer Migrator 3.1″ (printmig.exe), but it does the job!
Remove Compress Old Files Feature
I found it very annoying… every time i tried to use Disk Cleanup Tool in windows xp it took a long time to find files it could compress… I ask - WHAT FOR?
Compressing is the last thing I need. There is a good way to disable this or even more… just take a look in your registry at key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files
Then delete whole key, or make a file “rm_compress.reg” file and paste there (or you can download mine:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files]





