Crucial Paradigm Australia Official Blog
centos
Hiya folks!
Okay so this one is pretty hard to find in google, honestly its a tricky one to work out if you haven’t experienced it before and you aren’t a kickstart wizard or fly like a g6!
But alas! I am here to guide and show you the way of the wizard!
So basically in your kickstart file you might have something like:
This is just a quick article,
I needed to discover the block ID on both Centos and Ubuntu today and needed this to be injected into a script, I came up with the following:
So today I was tasked with creating an entire system that does ubuntu automated installations, the first hurdle was actually getting ubuntu automated deployment, unfortunately there was a lot of misguidance laying around the net on the best way to approach this, so this is my attempt… it worked and I think it does the job…
If you are getting an error something along this lines of the following:
-bash-3.2# sh ./latest
Creating directory installd
Verifying archive integrity… All good.
Uncompressing cplyr1-cPanel………………………………………………………………………………………………..
____ _
___| _ \ __ _ _ __ ___| |
/ __| |_) / _` | ‘_ \ / _ \ |
| (__| __/ (_| | | | | __/ |
\___|_| \__,_|_| |_|\___|_|Installer Version 11.25.0 r176
Ensuring system time is set
Updated system time from rdate.cpanel.net: Fri Mar 12 04:54:26 UTC 2010
Verified directory /scripts exists.
Verified directory /scripts/cPScript exists.
Verified directory /usr/local/cpanel exists.
Verified directory /usr/local/cpanel/logs exists.
Verified directory /usr/local/cpanel/Cpanel exists.
Verified directory /var/cpanel exists.
cPanel configuration /var/cpanel/cpanel.config already exists.
Syncing /scripts
Unable to sync: $! at ./updatenow line 38.
Done syncing /scripts
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FATAL! Failed to properly update /scripts
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-bash-3.2#
Make sure you have install rsync, and perl. You can do this by doing:
yum install rsync perl -y
You can list installed packages with yum by running the following command:
yum list installed
How many times have you logged into a server, and need to find out which exact version of the operating system you are running (Linux).
These commands will give you some details:
lsb_release -a
uname -a
cat * /etc/*release*
Rather than building from source, there is a much quicker way of installing ntop on CentOS 5 or RHEL. You can do it via yum! Just add the following file: /etc/yum.repos.d/dag.repo:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
Then just run:
yum install ntop -y
If you receive this error while trying to install ntop:
configure: error: cannot find macro directory `m4′
Try creating the directory m4 in the ntop installation directory:
mkdir m4
Rather than building from source, there is a much quicker way of installing rrdtool on CentOS 5 or RHEL. You can do it via yum! Just add the following file: /etc/yum.repos.d/dag.repo:
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
Then just run:
yum install rrdtool
Have you encountered the following error while trying to compile applications from source on your VPS or server?
-bash: ./configure: No such file or directory
To fix this on CentOS, just install make:
yum install make



