On Thu, Dec 11, 2008 at 10:09 AM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
yum --enablerepo=olpcxs-testing install xs-config<br>
<br>
which if you try now will bring xs-config-0.5.9.g13a7973-1.noarch.rpm<br>
which has two fixes. This has a further typo fix (that I had made in<br>
the script I tested, but forgot to include) and also sets it to be<br>
HOTPLUG=yes so if eth1 is slow to come up, it should work once it's<br>
up.<br>
<br>
let me know if it helps...</blockquote><div><br>It worked for me, however, it looks like it returns a bunch of config files to their "pristine" state, which isn't a big deal on this particular test machine, as I had only edited <a href="http://sshd_config.in">sshd_config.in</a> and sshd_config to allow for password authentication. This might be something users might want to be aware of if they've been testing other stuff and have tweaked some of these files.<br>
<br>Downloading Packages:<br>xs-config-0.5.9.g13a7973-1.noarch.rpm | 106 kB 00:00 <br>Running rpm_check_debug<br>Running Transaction Test<br>Finished Transaction Test<br>Transaction Test Succeeded<br>
Running Transaction<br> Installing : xs-config [1/1] <br>/etc /<br># It may be dirty<br>xs-commitchanged -m 'Dirty state' rsyslog.conf<br># Overwrite<br>cp -p <a href="http://rsyslog.conf.in">rsyslog.conf.in</a> rsyslog.conf<br>
xs-commitchanged -m "Made from <a href="http://rsyslog.conf.in">rsyslog.conf.in</a>" rsyslog.conf<br># It may be dirty<br>xs-commitchanged -m 'Dirty state' motd<br># Overwrite<br>cp -p <a href="http://motd.in">motd.in</a> motd<br>
xs-commitchanged -m "Made from <a href="http://motd.in">motd.in</a>" motd<br>xs-commitchanged -m 'Dirty state' sysctl.conf<br>cp -p <a href="http://sysctl.conf.in">sysctl.conf.in</a> sysctl.conf<br>xs-commitchanged -m "Made from <a href="http://sysctl.conf.in">sysctl.conf.in</a>" sysctl.conf<br>
sysctl -p sysctl.conf<br>net.ipv4.ip_forward = 1<br>net.ipv4.conf.default.rp_filter = 1<br>net.ipv4.conf.default.accept_source_route = 0<br>kernel.sysrq = 1<br>kernel.core_uses_pid = 1<br>net.ipv4.tcp_syncookies = 1<br>kernel.shmmax = 268435456<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' ssh/sshd_config<br># Overwrite<br>cp -p ssh/<a href="http://sshd_config.in">sshd_config.in</a> ssh/sshd_config<br>xs-commitchanged -m "Made from ssh/<a href="http://sshd_config.in">sshd_config.in</a>" ssh/sshd_config<br>
Created commit bb554ba: Made from ssh/<a href="http://sshd_config.in">sshd_config.in</a> - changed file /etc/ssh/sshd_config<br> 1 files changed, 3 insertions(+), 3 deletions(-)<br># It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/named<br>
# Overwrite<br>cp -p sysconfig/<a href="http://named.in">named.in</a> sysconfig/named<br>xs-commitchanged -m "Made from sysconfig/<a href="http://named.in">named.in</a>" sysconfig/named<br># It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/init<br>
# Overwrite<br>cp -p sysconfig/<a href="http://init.in">init.in</a> sysconfig/init<br>xs-commitchanged -m "Made from sysconfig/<a href="http://init.in">init.in</a>" sysconfig/init<br># It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/iptables-config<br>
# Overwrite<br>cp -p sysconfig/<a href="http://iptables-config.in">iptables-config.in</a> sysconfig/iptables-config<br>xs-commitchanged -m "Made from sysconfig/<a href="http://iptables-config.in">iptables-config.in</a>" sysconfig/iptables-config<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/squid<br># Overwrite<br>cp -p sysconfig/<a href="http://squid.in">squid.in</a> sysconfig/squid<br>xs-commitchanged -m "Made from sysconfig/<a href="http://squid.in">squid.in</a>" sysconfig/squid<br>
touch sudoers.tmp<br>chmod 640 sudoers.tmp<br>cat-parts sudoers.d > sudoers.tmp<br>chmod 440 sudoers.tmp<br>xs-commitchanged -m 'Dirty state' sudoers<br>mv -f sudoers.tmp sudoers<br>xs-commitchanged -m "Made from sudoers.d" sudoers<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' rssh.conf<br># Overwrite<br>cp -p <a href="http://rssh.conf.in">rssh.conf.in</a> rssh.conf<br>xs-commitchanged -m "Made from <a href="http://rssh.conf.in">rssh.conf.in</a>" rssh.conf<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' php.ini<br># Overwrite<br>cp -p <a href="http://php.ini.in">php.ini.in</a> php.ini<br>xs-commitchanged -m "Made from <a href="http://php.ini.in">php.ini.in</a>" php.ini<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/httpd<br># Overwrite<br>cp -p sysconfig/<a href="http://httpd.in">httpd.in</a> sysconfig/httpd<br>xs-commitchanged -m "Made from sysconfig/<a href="http://httpd.in">httpd.in</a>" sysconfig/httpd<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' init.d/squid<br># Overwrite<br>cp -p init.d/<a href="http://squid.in">squid.in</a> init.d/squid<br>xs-commitchanged -m "Made from init.d/<a href="http://squid.in">squid.in</a>" init.d/squid<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/ejabberd<br># Overwrite<br>cp -p sysconfig/<a href="http://ejabberd.in">ejabberd.in</a> sysconfig/ejabberd<br>xs-commitchanged -m "Made from sysconfig/<a href="http://ejabberd.in">ejabberd.in</a>" sysconfig/ejabberd<br>
xs-commitchanged -m 'Dirty state' sysconfig/network-scripts/ifcfg-eth0<br>cp -p sysconfig/olpc-scripts/ifcfg-eth0 sysconfig/network-scripts/ifcfg-eth0<br>xs-commitchanged -m "Made from olpc-scripts" sysconfig/network-scripts/ifcfg-eth0<br>
xs-commitchanged -m 'Dirty state' sysconfig/network-scripts/ifcfg-eth1<br>cp -p sysconfig/olpc-scripts/ifcfg-eth1 sysconfig/network-scripts/ifcfg-eth1<br>xs-commitchanged -m "Made from olpc-scripts" sysconfig/network-scripts/ifcfg-eth1<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' httpd/conf.d/proxy_ajp.conf<br># Overwrite<br>cp -p httpd/conf.d/<a href="http://proxy_ajp.conf.in">proxy_ajp.conf.in</a> httpd/conf.d/proxy_ajp.conf<br>xs-commitchanged -m "Made from httpd/conf.d/<a href="http://proxy_ajp.conf.in">proxy_ajp.conf.in</a>" httpd/conf.d/proxy_ajp.conf<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' httpd/conf.d/ssl.conf<br># Overwrite<br>cp -p httpd/conf.d/<a href="http://ssl.conf.in">ssl.conf.in</a> httpd/conf.d/ssl.conf<br>xs-commitchanged -m "Made from httpd/conf.d/<a href="http://ssl.conf.in">ssl.conf.in</a>" httpd/conf.d/ssl.conf<br>
Using default domain name<br>Setting the base dns name to <a href="http://random.xs.laptop.org">random.xs.laptop.org</a><br>find: ./domain_config.d/: No such file or directory<br>xs-commitchanged -m 'Dirty state' sysconfig/network<br>
sed -e "s/@@SERVERNUM@@/$(cat /etc/sysconfig/xs_server_number)/" < sysconfig/<a href="http://network.in">network.in</a> > sysconfig/network<br>xs-commitchanged -m "Made from sysconfig/<a href="http://network.in">network.in</a>" sysconfig/network<br>
xs-commitchanged -m 'Dirty state' hosts<br>sed -e "s/@@SERVERNUM@@/$(cat /etc/sysconfig/xs_server_number)/" < <a href="http://hosts.in">hosts.in</a> > hosts<br>xs-commitchanged -m "Made from <a href="http://hosts.in">hosts.in</a>" hosts<br>
# It may be dirty<br>xs-commitchanged -m 'Dirty state' sysconfig/dhcpd<br># Overwrite<br>cp -p sysconfig/<a href="http://dhcpd.in">dhcpd.in</a> sysconfig/dhcpd<br>xs-commitchanged -m "Made from sysconfig/<a href="http://dhcpd.in">dhcpd.in</a>" sysconfig/dhcpd<br>
/<br>Stopping httpd: [ OK ]<br>Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using <a href="http://127.0.0.1">127.0.0.1</a> for ServerName<br>[ OK ]<br>Shutting down system logger: [ OK ]<br>
Starting system logger: [ OK ]<br><br>Installed: xs-config.noarch 0:0.5.9.g13a7973-1<br>Complete!<br> <br></div></div>Anna Schoolfield<br>Birmingham<br>