XS Configuration Management: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 19: Line 19:
==Network==
==Network==


The school specific configuration is largely done by a script, <tt>http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/init.d/olpc-net-config /etc/init.d/olpc-net-config]</tt>, run upon every boot. Upon the first boot, this script runs the <tt>[http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/sysconfig/olpc-scripts/network_config.py /etc/sysconfig/olpc-scripts/network_config.py]</tt> script, which configures the network interfaces for the machine.
The school specific configuration is largely done by a script, <tt>[http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/init.d/olpc-net-config /etc/init.d/olpc-net-config]</tt>, run upon every boot. Upon the first boot, this script runs the <tt>[http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/sysconfig/olpc-scripts/network_config.py /etc/sysconfig/olpc-scripts/network_config.py]</tt> script, which configures the network interfaces for the machine.


This script (<tt>[http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/sysconfig/olpc-scripts/network_config.py network_config.py]</tt>) may be run manually to reconfigure a system in response to a change in the wired interfaces.
This script (<tt>[http://dev.laptop.org/git?p=projects/xs-config;a=blob;f=fsroot.olpc.img/etc/sysconfig/olpc-scripts/network_config.py network_config.py]</tt>) may be run manually to reconfigure a system in response to a change in the wired interfaces.

Revision as of 04:29, 5 September 2007

  This page is monitored by the OLPC team.

This page describes how the software packages comprising an XS School server are configured.

This page is sadly unfinished.

Server Configuration

Configuration of packages

School Specific Configuration

Name Service

Network

The school specific configuration is largely done by a script, /etc/init.d/olpc-net-config, run upon every boot. Upon the first boot, this script runs the /etc/sysconfig/olpc-scripts/network_config.py script, which configures the network interfaces for the machine.

This script (network_config.py) may be run manually to reconfigure a system in response to a change in the wired interfaces.

Internet Connection

The internet (WAN) connection is currently the eth0 interface by default. Its configuration options are at /etc/sysconfig/network-scripts/ifcfg-eth0.

User Accounts

When a school server is installed, it has no user accounts, remote (SSH) login to the root account is disabled, and remote logins must be authenticated using a public/private key pair. If exploring or developing with a school server, as root from the console you will need to add a new account (username wad in the example):

adduser wad
passwd wad
wget http://dev.laptop.org/~wad/dsa_public_key
mkdir /home/wad/.ssh
mv dsa_public_key /home/wad/.ssh/authorized_keys
chown -R wad:wad /home/wad/.ssh

The public key, downloaded from http://dev.laptop.org/~wad/dsa_public_key in the above example, can be generated on any Linux system using the ssh-keygen command (which leaves your new public/private key pair in .ssh). You want to copy the id_rsa.pub or id_dsa.pub file to other machines to allow logins.