N.B. Gave up on this – taking too much time and effort for something that would require some command line admin anyway – such as the mailer configuration. Will go back to purely standard setup on Debian like existing servers.
Minimum setup
Network
To get network going edit ifcfg-eth0 in /etc/sysconfig/network-scripts/
Need to use vi for this – minimal install doesn’t have anything else.
DEVICE="eth0" NM_CONTROLLED=no ONBOOT=yes HWADDR=6E:89:F7:F2:8B:47 TYPE=Ethernet BOOTPROTO=none IPADDR=130.209.45.49 NETMASK=255.255.255.0 GATEWAY=130.209.45.1 DNS1=130.209.4.16 DNS2=130.209.4.18 DNS3=130.209.16.6 DOMAIN=physics.gla.ac.uk IPV6INIT=no NAME="System eth0" UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
The UUID here was put in by the GUI network setup, as was some of the other stuff. The Minimum required is IPADDR, BOOTPROTO (maybe?), NETMASK, GATEWAY, DNS1(2,3,etc).
To edit file with vi:
vi filename i (insert mode) ESC (command mode) 😡 (Exit, saving changes) :q! (Exit and ignore any changes)
vi cheat sheet at http://www.lagmonster.org/docs/vi.html
Enable network with service network start
Edit /etc/yum/conf
to include the line
proxy=http://wwwcache.gla.ac.uk:8080/
then yum update
to update system. Then use yum install packagename
to install other stuff, like nano, ntp etc.
Install sudo. seems to want it.
Firewall
Install system-config-firewall-tui using yum and run it.
yum install java-1.6.0-openjdk
Set environment variable by creating a file in /etc/profile.d/
-
export JAVA_HOME=/usr/lib/jvm/jre
(if the install worked properly /usr/lib/jvm/jre should be a symlink to /etc/alternatives/jre
which in turn should link to the actual jre, e.g./usr/lib/jvm-exports/jre-1.6.0-openjdk.x86_64
)
Python should be installed. Apparently need to install python-ldap though.
Create user with:
useradd username -p password