LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Linux Answers > Applications / GUI / Multimedia
User Name
Password

Notices


By carltm at 2008-11-15 17:44
I wanted to install backuppc on a USB device with RAID0, so that if something happened to the host
computer, I could just plug the storage device into another host and be completely functional in
a few minutes. An easy way to do this is to install virtualization software such as VMware-Server
and create a virtual machine that will only be used for backuppc.

If you don't want a virtual machine, simply install CentOS 5.2 on a real computer and follow the
directions below.

I won't go into the details of setting up the virtual environment. There is already good documentation
for setting up virtualization. Create a virtual host and install CentOS 5.2. After the installation
is complete, remove the HWADDR line from /etc/sysconfig/network-scripts/ifcfg-eth0.

Here is the list of commands to run as root from root's home directory:

Code:
Download the backuppc rpm from
http://dev.centos.org/centos/5/testing/i386/RPMS.

Run: yum localinstall backuppc*rpm

Run: yum install mod_ssl

Edit /etc/httpd/conf/httpd.conf
-change the User and Group to backuppc
-if desired, update ServerAdmin, ServerName and UseCanonicalName
-add RedirectMatch permanent ^/index.html$
https://host.fqdn.tld/backuppc/cgi-bin/BackupPC_Admin
(changing host.fqdn.tld with your fully qualified domain name)

Run: htpasswd /var/lib/backuppc/passwd/htpasswd admin

Edit /etc/httpd/conf.d/backuppc.conf
-change "allow from" line to "allow from all"
-add this stanza
  <Directory /usr/share/backuppc>
    RewriteEngine On
    RewriteBase /backuppc
    RewriteCond %{HTTPS} off
    RewriteRule ^.? https://host.fqdn.tld/backuppc/cgi-bin/BackupPC_Admin
[L,R=p
ermanent]
  </Directory>

Run: service httpd start; chkconfig httpd on

Run: system-config-securitylevel-tui
-add HTTP and HTTPS

Edit /etc/BackupPC/config.pl
-set   $Conf{CgiAdminUsers}     = 'admin';
-change "html/doc/BackupPC.html" to
"cgi-bin/BackupPC_Admin?action=view&type=docs"

Edit /usr/lib/BackupPC/CGI/View.pm
-change '$bpc....BackupPC.html' to
'"/usr/share/doc/backuppc-3.1.0/BackupPC.html'
-verify that the version number is still 3.1.0

Run: service backuppc start; chkconfig backuppc on

Run: ssh-keygen -t rsa
-do not enter a passphrase

Run: cp .ssh/id_rsa.pub backuppc.key
Congratulations. You now have backuppc running.


To configure a new host, start by logging in as root to this host.

Code:
Run: ssh newhost
-this tests that ssh is set up correctly

If you are asked for a password, run: cat backuppc.key | ssh root@newhost
"cat >> .ssh/authorized_keys2"

Run: ssh newhost
-this time you should get a shell prompt without typing a password or
passphrase

Run: cp -pr .ssh ~backuppc; chown -R backuppc. ~backuppc/.ssh
Now you're ready to connect to the webserver and configure the new host!



  



All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration