Blog for NIX system based administrators

March, 2012

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;

Tags: , , , ,

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

Tags: , ,

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

Tags: , , ,

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

Tags: ,

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 […]

Tags: , , , , , , , ,

Posted in Linux Administration, Xen administration | No Comments »

passwd: Authentication token manipulation error

If you run password and get this error “passwd: Authentication token manipulation error,” you should type the following command pwconv It will regenerate /etc/shadow file and fix the problem. If you have any other suggestions please tell me.

Tags: , ,

Posted in Xen administration | No Comments »

How to convert openvz template to xen centos 6

This article is about converting openvz template to xen, especially CentOS 6 First download the it from here http://wiki.openvz.org/Download/template/precreated   Now, the list of commands for installing it first create an lvm or image disk for 20GB for example lvcreate -n /dev/Your Volume Group Nam/xen-vps-disk -L 20G mkfs.ex4 /dev/Your Volume Group Nam/xen-vps-disk Create a swap […]

Posted in Xen administration | No Comments »

Как установить torrentpier трэкер

В этой статье я напишу как установить torrentpier Скрипт на хостинг или Xen Vps на базе IspManager powerhosting.biz для торрент трэкера на базе движка форумного движка phpbb. Для начинающего трэкера советую брать пакет GOLD или Premium на хостинге Для более продвинутого и раскрученного трэкера подойдет VDS 2 / OVZ 2 и выше. Xen VPS отличаются […]

Tags: , , , , ,

Posted in Installation of Web-Scripts | No Comments »