Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.