How-to-install-lxadmin-on-vps
From FiberWiki
Contents |
How to install lxadmin on Fiber Hosting Xen VPS
This document will let you know how to install lxadmin on a Fiber Hosting VPS. There are a few modifications we need to make for this to work correctly.
Correcting repo's
We need to correct the CentOS repo's to only download i386 files
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.old
nano CentOS-Base.repo
Paste the following lines into the CentOS-Base.repo (Make sure window is full sized)
# CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # #
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=i386&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates [updates] name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=i386&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=i386&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful
[extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=i386&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=i386&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Getting the system ready
We need to install some development tools for the VPS
yum -y groupinstall "Development Tools"
Installing Lxadmin
We need to download the lxadmin file and run the installer
cd ~ wget http://download.lxlabs.com/download/lxadmin/production/lxadmin-install-master.sh sh lxadmin-install-master.sh
This will error out saying "Lxadmin does not support 64 bit at present" To correct this do the following:
rm -f program-install.zip wget http://download.lxlabs.com/download/program-install.zip export PATH=/usr/sbin:/sbin:$PATH unzip -oq program-install.zip cd program-install/lxadmin-linux
After you have completed those steps you will need to do:
nano /root/program-install/lxadmin-linux/lxins.php Press ctrl+w+t enter in line number 32 Change if ($arch === 'x86_64') and add and extra 4 like if ($arch === 'x86_644') Then hit ctrl+x then type y for save
Then run the install by doing:
cd ~/program-install/lxadmin-linux php lxins.php --install-type=master $* | tee lxadmin_install.log
Lxadmin should be installed correctly!
