Alright, so I just discovered something today about rtorrent’s min_peers setting and I think everyone that uses rtorrent should know this since that setting could pretty much destroy you as a seeder.
Archive for the ‘GNU/Linux’ Category
rtorrent’s “min_peers” Explained
Tuesday, February 9th, 2010“/lib/ld-linux.so.2: bad ELF interpreter:” Error
Tuesday, June 23rd, 2009Ok so this is the first time that I’ve encountered this error on a fresh vanilla install of Fedora 10 (I’m not going to upgrade to 11 just yet since I’m going to wait for CentOS 6 which is essentially Fedora 10 in the future). I was trying to run hldsupdatetool.bin and it gave me that error. Now nearly every binary depends on glibc, the question is do they depend on the 32-bit or 64-bit version of it. I did a yum install glibc and what came up was that I had the 64-bit version of glibc (duh, x86_64 F10). So the only thing I did was install the 32-bit version of glibc and now everything is back to normal (until more problems arise).
“Can’t locate RRDs.pm” Error
Saturday, June 13th, 2009I was installing Webminstats on one of my dedicated servers and I got the following error.
Software error:
Can't locate RRDs.pm in @INC (@INC contains: . /usr/libexec/webmin /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at sysstats-rrd-lib.pl line 29.
BEGIN failed--compilation aborted at sysstats-rrd-lib.pl line 29.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Software error:
[Sun Jun 14 02:57:15 2009] index.cgi: Can't locate RRDs.pm in @INC (@INC contains: . /usr/libexec/webmin /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at sysstats-rrd-lib.pl line 29.
[Sun Jun 14 02:57:15 2009] index.cgi: BEGIN failed--compilation aborted at sysstats-rrd-lib.pl line 29.
Compilation failed in require at ./sysstats-lib.pl line 47.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Software error:
[Sun Jun 14 02:57:15 2009] index.cgi: [Sun Jun 14 02:57:15 2009] index.cgi: Can't locate RRDs.pm in @INC (@INC contains: . /usr/libexec/webmin /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at sysstats-rrd-lib.pl line 29.
[Sun Jun 14 02:57:15 2009] index.cgi: [Sun Jun 14 02:57:15 2009] index.cgi: BEGIN failed--compilation aborted at sysstats-rrd-lib.pl line 29.
[Sun Jun 14 02:57:15 2009] index.cgi: Compilation failed in require at ./sysstats-lib.pl line 47.
Compilation failed in require at /usr/libexec/webmin/sysstats/index.cgi line 27.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
New CentOS Desktop
Thursday, April 2nd, 2009OpenSUSE 11.1 KDE 4.1.3
Saturday, January 24th, 2009Well since my desktop is now fubar…I’m just using my laptops now, one has Windows XP and the other one is my GNU/Linux test bed which is currently running OpenSUSE 11.1. I first used GNOME since I was used to Fedora’s GNOME desktop environment. I figured out that I should at least try the other desktop environments for a longer period of time. In case you’re wondering I tried KDE a long time ago and I hated it. But since KDE 4.1.3 has been around for a couple of months now, I told myself that I should use it. And quite frankly…I’m impressed, hehe. I mean just a few tweaks here and there and it looks awesome. All I did was change the wallpaper and change the theme to Oxygen and it looks fantastic – probably better than Windows 7 in terms of first impressions. Take a look at it yourself…
openSUSE 11.1: It Just Works
Thursday, December 18th, 2008Today openSUSE launched version 11.1! I waited for it until T-XX something. I haven’t really used openSUSE that much as compared to Fedora. The last one that I’ve used was 10.3 way back and it just didn’t got me like how Fedora did. The main reason was that my sound card just doesn’t work! No matter how much I tried and how many people I asked in the openSUSE forums. Now that 11.1 has just been released I completely remove my Fedora 10 installation in my laptop and did a complete clean install of openSUSE 11.1. By the way, I love Fedora 10 and there’s nothing wrong with it, I just wanted to try openSUSE again. Maybe this time…it won’t give me such a headache or maybe this time I can handle it since I know a lot more about GNU/Linux than the past and I mostly know how to deal with stuff now. We’ll see…
Getting Your Kernel’s Tick In Fedora 10
Friday, December 12th, 2008I put Fedora 10 since I’m not sure if this will work in all the GNU/Linux distros out there, though I’m sure it will work on most. Anyway if you guys want to know if youre kernel is running at 1000MHz just type in this command.
grep CONFIG_HZ /boot/config-`uname -r`
And the output should look like this.
[root@localhost ~]# grep CONFIG_HZ /boot/config-`uname -r`
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
[root@localhost ~]#
Hope that’s helpful!
Webmin Error: Perl module Authen::PAM needed for PAM is not installed
Monday, October 13th, 2008If you guys are getting this error on your Webmin log file /var/webmin/miniserv.error here’s how I solved the problem.
miniserv.pl started
Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 10) line 1.
BEGIN failed--compilation aborted at (eval 10) line 1.
Display GNU/Linux & Unix Uptime Command In PHP
Saturday, October 11th, 2008I was looking for a solution on how to display the /usr/bin/uptime command in PHP and I came across this simple yet very useful script for me since sometimes I don’t want to login or anything.
So to display your box’s uptime just create a file called uptime.php or whatever you want to call it. And then paste the following code.
<?php
$uptime = passthru ("/usr/bin/uptime");
echo "$uptime";
?>
Take note that this has no formatting whatsoever, so that’s all up to you if you want to use a style sheet or not.
If you can’t see the uptime command being displayed make sure that passthru is not in your disable_functions in your php.ini file (Thanks to Luis ‘SquarePants’ Valecillos for pointing this out).
Disable Tapping Option In Synaptics On Fedora 9
Wednesday, October 1st, 2008If you have a laptop and you use the touchpad a lot then you know that if you have a heavy hand then the tapping option being enabled now (After the YUM update) is a huge pain in the ass. I absolutely hate it, I loved it when it was broken on a fresh install of Fedora 9 but now that it’s fixed after the latest YUM update it is again ‘trying’ to bug me. Good thing I know how to turn it off.
Upload A Whole Local Directory To A Remote Directory Using FTP And Command Line In Fedora 9
Thursday, September 18th, 2008Since I was looking to offload some of the resources that the PGN servers were taking to another host other than my dedicated server, I tried looking for free web hosts that allows you to upload files via FTP. And when I found one, I thought to myself…no way am I going to upload this using my puny upload bandwidth. I should use my dedicated server’s upload bandwidth – which is 100mbit. And so, with only a command line interface to play with, I seek out how to upload whole local directories to a remote directory.
I stumbled upon ncftpput. When you do man ncftpput it says in the description that The purpose of ncftpput is to do file transfers from the command-line without entering an interactive shell. This lets you write shell scripts or other unattended processes that can do FTP. It is also useful for advanced users who want to send files from the shell command line without entering an interactive FTP program such as ncftp.
Install NVIDIA Drivers In Fedora x86_64 Using Livna
Thursday, August 21st, 2008Here’s one of the many solutions on how to get your NVIDIA drivers installed in your Fedora 9 x86_64 system using the Livna Repository.
su -
rpm -ivh http://rpm.livna.org/livna-release-9.rpm
yum install kmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-lib
After that, simply restart your system and you should now be able to see the NVIDIA logo. If you see it, that means everything works!
Install Adobe Flash In Fedora 9 x86_64
Thursday, August 21st, 2008I currently have Fedora 9 x86_64 on my laptop and it doesn’t have Adobe Flash properly installed. Here’s what I did to make it work.
su -
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
yum install flash-plugin.i386 nspluginwrapper.x86_64 nspluginwrapper.i386
yum install libflashsupport.{i386,x86_64}
After that, just restart your browser and everything should be working fine now.
Making NVIDIA Drivers Work In Fedora 9 x86_64
Monday, June 2nd, 2008So I recently took the plunged to Fedora 9 (I did it a lot earlier than this post but I was a bit lazy to fix my problems). As you all know, Fedora 9 ships out with the latest and somewhat greatest right? It’s the bleeding edge for god’s sake. Anyway, Fedora shipped out with the latest X11 and for the first couple of weeks the NVIDIA drivers didn’t quite support it yet. Even with the 173.08 drivers from NVIDIA didn’t work well with it and there has been a couple of articles written to make it work in 2D…well I’m glad that with their latest 173.14, it totally works!
su -
cd /tmp
wget http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/9/nvidia-x11-drv/nvidia-x11-drv-173.14.05-1.beta.fc9.x86_64.rpm
wget http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/9/nvidia-x11-drv/nvidia-x11-drv-32bit-173.14.05-1.beta.fc9.x86_64.rpm
yum --nogpgcheck install nvidia-x11-drv-173.14.05-1.beta.fc9.x86_64.rpm
nvidia-x11-drv-32bit-173.14.05-1.beta.fc9.x86_64.rpm
/usr/sbin/nvidia-config-display enable
reboot
Taming SELinux Denials In Fedora 8
Saturday, April 19th, 2008As many of you already know, I’m using Fedora 8 for my dedicated servers and for my workstations at home and so I’m faced with either dealing with SELinux or completely disabling it. I choose to deal with it!
This documentation is about writing local policies in order to reduce the amount of AVC Denials flooding your log file. This document can be read from beginning to end, it can also be used as a reference.
Here’s a brief definition of what SELinux is all about from the National Security Agency SELinux FAQ.
“Security-enhanced Linux (SELinux) is a reference implementation of the Flask security architecture for flexible mandatory access control. It was created to demonstrate the value of flexible mandatory access controls and how such controls could be added to an operating system. The Flask architecture has been subsequently mainstreamed into Linux and ported to several other operating systems, including Solaris, FreeBSD, and Darwin, spawning a wide range of related work. The Flask architecture provides general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement®, Role-based Access Control, and Multi-level Security.”
In a nutshell, SELinux creates another form of secure computing environment, making it harder to mis-use the environment. It’s like having a suburban house with motion detectors in every corner equipped with automatic machine guns.


