Installing CentOS Manually
Jul 8, 2008
how to install CentOS by not using the installer. This guide should be great when installing over networks, don't have a graphical console available (for installing over serial), when you're not content with the installer's job, installing CentOS from another distro, or plainly want to learn more about how CentOS works.
Requirements:
* Have a host OS that has the "rpm" package manager available. Some distributions have it in their repositories (even if the package manager for the distro itself is not rpm), and knoppix (a linux live/rescue CD) has it aboard too. You can use the first CentOS ISO CD too (use linux rescue at boot), and it has all the necessairy packages aboard
* Access to the CentOS base repository. It's on the first CentOS ISO CD
* Use your BRAIN. This guide is ment to be interpreted, not copy/pasted
Code:
# First, setup your disks to your liking. You can use whatever you want here,
# RAID, LVM, etc... Remember your disk configuration because you'll need it
# to configure grub, menu.lst and fstab. Using RAID, LVM, or others will require
# more configuration than this guide covers. To keep it simple I'm using a
# single disk. An example:
$ fdisk /dev/sda
$ mount /dev/sda3 /target
$ mkdir /target/boot
$ mount /dev/sda1 /target/boot
# Depending on the host OS you're using, you may need to initialize the rpm db
# on the host OS
$ rpm --initdb
# Use the following command to install the packages. I'll be addressing this
# command as $rpm.
$ rpm --root /target -i
# Use your shell's tab completion to complete the package filenames. I
# deliberatly left out the versions so these instructions apply to a wide range
# of versions
# Let's install some basics
$rpm setup basesystem filesystem
# Install bash first, this is needed for post-install scripts
$rpm bash glibc glibc-common termcap libgcc tzdata mktemp libtermcap
# Install some dependencies (this is mainly to keep the next command smaller)
$rpm grep pcre libstdc++ info ncurses zlib gawk sed ethtool
# Install the bulk of the system
$rpm coreutils libselinux libacl libattr pam audit-libs cracklib-dicts
cracklib libsepol mcstrans libcap chkconfig python db4 openssl readline
bzip2-libs gdbm findutils krb5-libs initscripts util-linux popt udev MAKEDEV
centos-release shadow-utils keyutils-libs iproute sysfsutils SysVinit
net-tools module-init-tools e2fsprogs e2fsprogs-libs glib2 mingetty
device-mapper sysklogd psmisc centos-release-notes procps libsysfs iputils
# Install package manager
$rpm rpm beecrypt elfutils-libelf rpm-libs sqlite
# Install YUM
$rpm yum python-elementtree rpm-python yum-metadata-parser python-sqlite
expat libxml2 python-urlgrabber m2crypto python-iniparse
# You may also want to install your favorite editor
$rpm nano
# This provides /root with some defaults, like color highlighting on `ls`
$rpm rootfiles
# Right now you have system which you can chroot to, so we can start setting up
# the basics
# Mount directories for chroot operation
$ mount --bind /dev /target/dev
$ mount -t proc none /target/proc
$ mount -t sysfs none /target/sysfs
$ chroot /target
# This constructs /etc/shadow
$ pwconv
# Configure fstab
$ nano -w /etc/fstab
# Installing the kernel. Do this back outside the chroot in the host OS system
$ exit
$rpm kernel mkinitrd cpio device-mapper-multipath dmraid gzip kpartx lvm2 nash
tar less device-mapper-event
# Install the bootloader, grub.
$rpm grub diffutils redhat-logos
# Let's chroot again to configure our bootloader
$ chroot /target
# We start by configuring the bootloader. Open /boot/grub/menu.lst, and put the
# following there
<<<MENU.LST
timeout 5
default 0
# (0) CentOS
title CentOS
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 root=/dev/sda3 ro
initrd /initrd-2.6.18-92.el5.img
>>>
# If this command gives an error, you can safely ignore this because it's not
# of importance. What is important is that grub-install copied the right files
# to /boot/grub that we need for booting.
$ /sbin/grub-install /dev/sda
# Manually install grub if the previous step failed. - means type it in the grub
# shell
$ grub
$- root (hd0,0)
$- setup (hd0)
# Optional packages
# You may want to install passwd so you can set passwords ;-)
$rpm passwd libuser openldap cyrus-sasl-lib
# These are used to set the keyboard language (loadkeys)
$rpm kbd usermode
# ** Right now you should have a bootable system! Here are some tips to help you
# through your 1st boot ***
# Most of the system configuration happens in /etc/sysconfig. See
/usr/share/doc/initscripts
for full documentation.
Some quick post-install tips:
* Configure your keyboard in
/etc/sysconfig/keyboard
using the KEYTABLE variable
* Configure networking
Take a look at /etc/sysconfig/network-scripts. See ifcfg-lo for an example.
# This recreates the RPM database. If the host OS you used has a different
# version of db, rpm will complain with
# rpmdb: unable to lock mutex: Invalid argument
$ rpmdb --rebuilddb
View 2 Replies
ADVERTISEMENT
Jul 9, 2008
I'm testing out the old version of CentOS which is CentOS 2.1 on Virtual PC and I'm running into some problems. After installation of CentOS, it asks me to reboot the system so then I reboot it. Then it prompts me for the login and password.
I type in "root" and my password. Then I'm stuck inside this command prompt that says:
[root@localhost root]#
Now, how exactly do I get into CentOS graphical user interface, or is this it?
View 14 Replies
View Related
Aug 12, 2007
Ive gotten all of it to work.. but instead of using SSH (caus I really dont understand it) Am I able to install VNC? And just connect + use the desktop like that?
my question is pretty much can I install VNC on CentOS 4.5 using SSH?
View 0 Replies
View Related
Aug 20, 2007
I'm trying to install imagemagick on centos using yum... I did the yum update, then tried 'yum install ImageMagick', but that didn't work - "Nothing to do". I also tried the i386 RPM, which also did not work, I'm missing a bunch of dependencies, has anyone installed this on CentOS know of a specific rpm or another way to install? Ideally, without installing through source.
View 8 Replies
View Related
Nov 11, 2008
I followed a combination of this tutorial:[URL]and this tutorial [URL] (I had to use a combination since following each individually brought up errors along the way).
Anyhow, installing OpenVPN was a breeze but I think I am getting hung up on the configuration part. Basically after generating all of the certificate files and stuff, when i try to "service openvpn start" i just get the message "FAILED".
Where do I look to see what the reason for the failed start could be?
View 1 Replies
View Related
Jul 4, 2008
I decided to go with Cent OS after reading about it in the forums here, but I've had nothing but problems trying to install it. I first tried to do a net install but the installation took nearly an entire day because it would keep popping up messages about corrupt files when downloading the package files. Eventually it just gave up or rebooted because I came in in the morning to find it at a message saying "No OS installed". I then burned all 7 installation disks and tried that way, still got a few of the corrupt file messages (but far fewer than the previous time) and made it through the installation only to still have it say "no os installed" again after the reboot. I thought maybe it had something to do with the fact that I was not installing a boot loader (there is no other OS installed anyways) but when I tried to reinstall a third time, this time with the boot loader, it now says that the CD drive (USB) is already mounted on tty2 and I can't even start the installation? WTH!
The server is a Dell PowerEdge R300 with two Intel Core 2 Duo 64-bit processors. I'm using the x86_64 ISOs from the Centos.org mirrors.
View 1 Replies
View Related
Feb 16, 2008
I've got a 'virgin' machine from Nocster running CentOS 5, including a SATA drive (shows up as "SCSI").
It looks like it'll be a straight-forward install [url], but I wondered if anyone has had this exact combination before and if there are any problems I should expect? Given that it's a dedicated machine I don't have physical access to, I'm slightly paranoid about screwing up.
View 2 Replies
View Related
Apr 27, 2007
Apparently on of my colo customers sent the server without the OS or CD drive, and wants us to install CentOS 4.4 64 bit.
Any way to get "download" version of it, put it on a floppy, put it in the server and let the server download the rest from the internet (after we enter the IP info, so it can connect)?
View 14 Replies
View Related
Nov 4, 2007
I'm trying to install HyperVM like the following:
Code:
[root@server ~]# sh ./hypervm-install-master.sh --virtualization-type=openvz
Here is the output it's returning to me (From log file)
Code:
Installing packages which lxlighttpd zip unzip lxphp lxzend curl mysql mysql-server mysqlclient10...
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package lxphp.i386 0:5.2.1-90 set to be updated
---> Package lxzend.i386 0:3.3-lxa set to be updated
---> Package lxlighttpd.i386 0:1.4.13-1 set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: lxphp
--> Processing Dependency: libmysqlclient.so.14 for package: lxphp
--> Finished Dependency Resolution
Up2date Gave Error... Trying Again...
This continues to loop
View 4 Replies
View Related
Jul 21, 2008
I found this tutorial on how to install yum. The only issue is, we have CentOS 5. Is there a more recent article with the latest files needed to install yum on CentOS5 / Plesk VPS?
[url]
View 1 Replies
View Related
Jun 22, 2008
Just to make things clear, i am not new at setting up VPS nodes, i have set up all of my servers with the HyperVM/OpenVZ setup and they work perfectly, but im having a problem with a new server.
Just received my new server, installed HyperVM-Slave, rebooted but the OpenVZ kernel was not installed for some reason, so i manually installed the OpenVZ Kernel using the RPM as yum seemed to install the wrong kernel.
I then installed the kernel using RPM and got this error at the end of installation:
grubby: unable to open /dev/hda: No such file or directory
grubby: unable to open /boot/boot.b: No such file or directory
grubby fatal error: unable to find a suitable template
I have never encountered this error with any of my other servers before...
Also after installation everything seems to be correct. /etc/grub.conf has the new OpenVZ kernel displayed, and default is set to 0, so upon startup it should be booting the correct kernel, but the thing is, when i reboot the machine the default kernel is loaded even though the grub.conf is configured to load the OpenVZ Kernel.
Im thinking that this may be due to the error i got when installing the kernel.
View 1 Replies
View Related
Apr 28, 2009
Anybody have successfully installed GPAC in Centos system?
View 0 Replies
View Related
Oct 11, 2014
I am trying to install a magento on Plesk Version 12.0.18 Update #19 / CentOS Linux 7.0.1406 (Core).
Plesk is reporting that it cant install magento because php-mcrypt is missing. So I tried the following:
Code:
1) rpm -ivh [URL] ....
2) yum update
3) yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.plusline.de
* epel: mirror.23media.de
* extras: ftp.plusline.de
* updates: mirror.netcologne.de
[Code] ......
What can i do to install mcrypt without breaking other dependencies ?
View 5 Replies
View Related
Jun 20, 2014
I am trying to install Magento on my apache server. I am running into the dreaded mcrypt issue as Magento needs it to run. I have now been googling for the past few hours and have gotten nowhere.
Here are my details:
Linux
Centos 5.5
PHP 5.3.3
x86_64
Plesk 12
I have tried installing all sorts of different repos and it just isn't working.
When I try to install using # yum install php-mcrypt I get the following:
Loaded plugins: fastestmirror
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.5.13-3.el5.remi.x86_64 instead
--> Processing Dependency: php53-gd for package: psa-php53-configurator
--> Processing Dependency: php53-imap for package: psa-php53-configurator
[Code].....
View 6 Replies
View Related
Mar 2, 2008
I have a dedicated server. It is a Fedora Core 6. It came with "Plesk 30 domain license". However, this license of Plesk doesn't have SpamAssassin enabled. In order to get the license with SpamAssassin, it costs an extra $30 a month.
I believe SpamAssassin by default is in fact installed on the sever, but some of my users are reporting that they are getting Spam. How can I check is SpamAssassin is running? How do I configure SpamAssassin to filter spam on all the e-mail addresses that are created in Plesk?
I have SSH access to the server.
View 3 Replies
View Related
Jan 27, 2007
I do not have control panel, I have suse OS, how do I setup an account manually so I can move my site to this new server?
View 2 Replies
View Related
Jul 24, 2007
we're using a subdomain to point to one of our server's IP. (gaming purposes).
And people use this subdomain to connect to the game server.
However, We are going to move to a new server soon with a different IP.
I know, only thing I have to do is change the IP of the subdomain to point to the new server, however I know this will take like 1 to 48 hours to fully work.
Is there a way to force people who's still connecting to the OLD Ip to go to the new IP?
View 6 Replies
View Related
Oct 26, 2007
Is there a way to block ips with mod_evasive by adding the ips to the mod_evasive configuration file?
View 3 Replies
View Related
Feb 17, 2008
How many of you cpanel folks are using the new cpanel 11 "EasyApache 3" to manage apache/php on your servers? (Instead of doing things manually?)
We have always managed our apache and php configs manually, because cpanel was "under-powered" for the task.
However, with this new EasyApache 3 that is included with cpanel 11, it seems cpanel might finally have figured things out.
How many of you have switched over from doing things yourself manually to using EasyApache to manage your PHP config?
View 5 Replies
View Related
Oct 24, 2007
Does anyone know how to make sub domains through SSH?
View 4 Replies
View Related
Aug 24, 2007
I have put an Access database inside an access_db folder on Godaddy and written some .asp pages that query it. I am trying to make sure that I take necessary precautions against hackers reading or even writing to the database. Maybe someone can give some remarks about whether any of these concerns are realistic, and if so, why and what I could do about it?
1) Could someone somehow navigate directly to the database and read or write to it (the access_db folder seems to have no read/write permissions as set by default by Godaddy, but how secure is that?)
2) I permit entry through use of a a userid and password that are looked up in an mdb in the same folder (not listed in the html itself). If there’s a match, I store the userid as a session cookie. Then, to visit any other pages, each page first checks to see if the cookie is empty before proceeding. Is it possible for someone to set the cookie themselves and thus break through (can a cookie be set manually?) If so, would it help if I mandated that the cookie be set to something specific (right now it just has to be non-blank) or can they find out what the cookie should be set to as well?
View 3 Replies
View Related
Feb 1, 2007
Does anyone know the step by step procedure for compiling apache with phpsuexec enabled and making apache recognize php on a non-cpanel server?
View 0 Replies
View Related
Nov 17, 2014
I noticed, that my Plesk install still runs an older Roundcube Installation (somewhere in the 0.9 range) and RoundCube 1.0.3 is currently the latest version available at [URL]
Is it safe to upgrade the Roundcube Installation in psa-roundcube manually from 0.9 to 1.0.x?
View 2 Replies
View Related
Jul 10, 2008
somehow plesk is not listing a domain record I added recently, that I have to remove. so, I can't select it and delete it through the interface.
is there a way to remove a dns record manually, perhaps from the command line?
View 3 Replies
View Related
Jan 15, 2008
I'm trying to create a script to archive logs for 7 days but still delete them from the domlogs daily. Has someone already done this? The ideal solution would be to modify the CPanel script that deletes them after stats run but I'm not sure if thats protected code by CPanel. The other option would be to disable the delete logs after stats run option and to create a script to copy the logs somewhere else via cron and call the script that CPanel uses to delete the logs without restarting apache. This script would also move the files through directories and eventually delete them, therfore preserving the logs for 7 days. Any ideas?
I have created an untested script which should do this but I just need to know how CPanel deletes the logs without restarting apache.
#!/bin/sh
mkdir /domlogbackup/
mkdir /domlogbackup/1/
mkdir /domlogbackup/2/
mkdir /domlogbackup/3/
mkdir /domlogbackup/4/
mkdir /domlogbackup/5/
mkdir /domlogbackup/6/
mkdir /domlogbackup/7/
mkdir /domlogbackup/8/
sleep 1
rm -rf /domlogbackup/8/*
sleep 5
mv /domlogbackup/7/* /domlogbackup/8/
mv /domlogbackup/6/* /domlogbackup/7/
mv /domlogbackup/5/* /domlogbackup/6/
mv /domlogbackup/4/* /domlogbackup/5/
mv /domlogbackup/3/* /domlogbackup/4/
mv /domlogbackup/2/* /domlogbackup/3/
mv /domlogbackup/1/* /domlogbackup/2/
sleep 5
cp /usr/local/apache/domlogs/* /domlogbackup/1/
sleep 0.1
# rotate domlogs
sleep 10
gzip /domlogbackup/1/*
View 2 Replies
View Related