Blog for NIX system based administrators

How to install redmine on lenny ruby on rails 2.3.5

RAILS INSTALL Add lenny-backports to repositories nano /etc/apt/sources.list deb http://backports.debian.org/debian-backports lenny-backports main apt-get -V -t lenny-backports install rails rubygems MySQL install apt-get install mysql-server mysql-client RAILS INSTALL mysql -u root -p password ->create database redmine character set utf8; ->create user ‘redmine’@’localhost’ identified by ‘my_password'; ->grant all privileges on redmine.* to ‘redmine’@’localhost'; Copy config/database.yml.example to config/database.yml […]

Posted in Installation of Web-Scripts, Linux Administration | No Comments

How to install raid10 mdadm -l f2 with hetzner rescue image

Introduction: How to install raid10 with 4 or more drives with hetzner with faster disk layout -f2 I tested raid10 with 3 layouts(n2, f2, and o2) , HDD SEAGATE  drives are 3TB with around 180MB/s speed. Every new Seagete hetzner Drive drive have 3 plates , Model ST3000DM001 Test with one HDD hdparm -t /dev/sda1 […]

Posted in Linux Administration | 1 Comment

How to install console torrent client (Bittorent) on debian

To install a console torrent client on debian just type the following command   apt-get install ctorrent Find you torrent and download it with ctorrent.    

Posted in Linux Administration | No Comments

как установить mpm_itk на centos 5 (ISPMANAGER)

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm yum install –enablerepo=webtatic httpd-itk service httpd stop изменим строчку HTTPD в файле /etc/sysconfig/httpd на HTTPD=/usr/sbin/httpd.itk в каждом VirtualHost нужно прпоисать AssignUserId vhost-user vhost-group это можно сделать скиптом. perl -p -i -e ‘s/SuexecUserGroup/AssignUserID/g’ /etc/httpd/conf/httpd.conf в /etc/httpd/conf.d/php.conf добавляем LoadModule php5_module modules/libphp5.so в /etc/httpd/conf/httpd.conf добавляем StartServers 1 MinSpareServers 1 MaxSpareServers 5 ServerLimit 110 MaxClients 100 […]

Posted in Linux Administration | No Comments

How to change Forgotten Mysql root Password

To reset forgotten root password in Linux(Ubuntu,Kubuntu,debian,redhat,centos,fedora) you need to do the following things: mysqld_safe –skip-grant-tables mysql –user=root mysql update user set Password=PASSWORD(‘new-password’) where user=’root'; flush privileges; exit;

Posted in Linux Administration | No Comments

install apache php and mysql on gentoo

USE=”php mysql php5 status security mod_rpaf rpaf cgi SSL INFO ssl gzip openssl mod_php” emerge apache apr apr-util apache-tools openssl php mysql

Posted in Linux Administration | No Comments

Gentoo emake failed

Gentoo emake failed nano /etc/make.conf find safe cflags http://en.gentoo-wiki.com/wiki/Safe_Cflags and emerge gentoo-tools revdep-rebuilt emerge your package

Posted in Linux Administration | No Comments

Create a username in linux with home directory

useradd -b /home/username/ -d /home/username  -p yourpassword -m username

Posted in Linux Administration | No Comments

How to install gentoo on xen vps

This article will show how to create a xen gentoo vps. mkdir /tmp/gentoo && cd /tmp/gentoo links http://www.gentoo.org/main/en/mirrors.xml Choose your mirror and download stage3 file – latest release something like stage3-amd64-20120308.tar.bz2 <code>tar xvjpf stage3-*.tar.bz2</code> One more time choose a mirror <code>links http://www.gentoo.org/main/en/mirrors.xml</code> Get the latest portage from snapshots and untar it. ( usually it's snapshots/portage-latest.tar.bz2 […]

Posted in Linux Administration, Xen administration | 1 Comment

Disable ipv6 on centos 5 6 or other system like debian ubuntu

Usually it’s very important to disable ipv6 feature , anyway on the most virtual servers it’s not in use, also it’s interfere in the work of commands like netstat -n  or iptables. In this article I will show how to disable ipv6 definitivly from the server. first of all echo “options ipv6 disable=1″ > /etc/modprobe.d/disable-ipv6 […]

Posted in Linux Administration, Xen administration | No Comments