Table of Contents

APT Dater install

Client

echo "deb http://ftp.debian.org/debian lenny main contrib non-free
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free
deb http://backports.debian.org/debian-backports lenny-backports-sloppy main contrib non-free
deb http://security.debian.org lenny/updates main contrib non-free" > /etc/apt/sources.lst
apt-get update
apt-get install apt-dater-host sudo
useradd -r -m apt-dater
mkdir /home/apt-dater/.ssh
chmod 700 /home/apt-dater/.ssh/ && chown apt-dater.apt-dater /home/apt-dater/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4mSx4OWjHidvbcgMuug9LC2mr5qDl4B5KIUbDtFMAe/4ThWvfYa1pCtG6o3fQWxXEZbUMOl//rFkuxFRC0UrRTwVEO+LrTzp+zz4UvA7apDwbrJmzgGk9V4l0Tq0r6wjmMeG7txid4XqLuDYhW+IlGLQBqZMQ7u7aREdojXqGtkYj6HtmJ0l25Q4fniTi6FdRUD8z8nAqLPZ+VPqe3yyk/aXMfB9zBv1WKevLMqtv4PdABq68UFc6Htef56oAmOzkjAid/zIoQGlKWT+K+DNcaitCjNIDKG42JN4cJgyXOVn5WTiQInGDZF+9RH9Q0YJF7jlvf2EDHBg8SGBXrG8v root@netadmin" > /home/apt-dater/.ssh/authorized_keys
chmod 644 /home/apt-dater/.ssh/* && chown apt-dater.apt-dater /home/apt-dater/.ssh/*
echo "
# apt-dater remote updates
apt-dater ALL=NOPASSWD: /usr/bin/apt-get, /usr/bin/aptitude" >> /etc/sudoers
/var/customers/webs/cw01/wiki/data/pages/debian/apt-dater.txt · Last modified: 2011/06/21 14:22 by wadmin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki