Primary menu

Secondary menu

Install Reposado with Margarita on CentOS / Red Hat Enterprise Linux

Setup network on CentOS / Red Hat

Some explanations about “vi”
“vi” is probably the most used text editor on Unix, this is a great tool but not easy to use if this is the first time that you play with it. When you start “vi” you’re entering an interactive mode that needs a command to interact with the text. In this post we will use this commands (keys) only :

– Move the prompt to the line “BOOTPROTO=”dhcp”
– Press two times the key “d” to delete the entire line
– Enter the insert mode by pressing the “i” key
– Go to the line “ONBOOT” and change “no” to “yes”
– Go at the end of the file and add these three new lines with the correct settings (delete the characters < >) :

IPADDR=<IP address>
NETMASK=<Subnet mask>
GATEWAY=<IP of the router>

– Exit the “Insert mode” by pressing the “ESC” key. Your file should look like this :

– Press the key “:” and enter the command “wq” to write the file and quit vi. The command appears at the bottom left of the screen. If you want to quit the file without saving, you can use the command :q!.
– Now you need to reload the network service by typing :

– Exit the “Insert mode” by pressing the “ESC” key. Your file should look like this :

– Press the key “:” and enter the command “wq” to write the file and quit vi. The command appears at the bottom left of the screen. If you want to quit the file without saving, you can use the command :q!.
– Now you need to reload the network service by typing :

Now that the network is configured, you can reach your new server by ssh to continue the installation. It’s not mandatory, but it will be easier for some commands.

– If you’re using Red Hat Enterprise Linux, you need to register your installation to install software by running this command :

rhn_register

Add tools/updates :Before installing Reposado/Margarita, it’s important to update our fresh install with the last system patches and to add a few tools (It is necessary to validate the installation by “yes” when prompted).

– Update the CentOS / Red Hat installation to the last versions :

yum update

– Install “git” to download the sources of Reposado and Margarita :

yum install git

– Install “httpd”, the Apache web server used to share the updates to clients :

yum install httpd

– Install “vixie-cron”, the scheduler of all unix used to sync Reposado with all update servers every night :

so as i only needed to put the catalogURL as http://example.com/index.sucatalog on client machines and the apache2 mod_rewrite engine on the reposado box figured out which index to send it to regardless of version of the macosx client