From 1ac5f126bf1b3f2e18001dab8b9f2ae6255309cf Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 22 Aug 2016 16:35:00 +0100 Subject: first doc core os revision --- scripts/configure.sh | 55 ---------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 scripts/configure.sh (limited to 'scripts/configure.sh') diff --git a/scripts/configure.sh b/scripts/configure.sh deleted file mode 100644 index d65ce58..0000000 --- a/scripts/configure.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -ADMIN_USER=c9admin -CHROOT=/mnt -#ADMIN_PASS= - -DIR=$(dirname "$PWD"); -DIR_CONF=$DIR"/conf" - -printf "CHROOT="$CHROOT"\n"; -printf "DIR="$DIR"\n"; -printf "DIR_CONF="$DIR_CONF"\n"; -printf "ADMIN_USER="$ADMIN_USER"\n" - - -#configure_crux() { - - echo "1.2.1. Set hostname and hosts;" - cp $DIR_CONF/hosts $CHROOT/etc/ - vim $CHROOT/etc/hosts - - echo "1.2.2. Set timezone;" - chroot $CHROOT /bin/bash -c tzselect - - echo "1.2.3. Set locale;" - chroot $CHROOT /bin/bash -c "localedef -i en_US -f UTF-8 en_US.UTF-8" - echo "1.2.4.2. Create Administrator $ADMIN_USER;" - - chroot $CHROOT /usr/bin/env -i \ - HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ - PATH=/bin:/usr/bin:/sbin:/usr/sbin \ - /bin/bash -c "useradd -m -s /bin/bash $ADMIN_USER" - -# echo "$ADMIN_USER:$ADMIN_PASS" >$CHROOT/root/foo -# chroot $CHROOT 'chpasswd > $CHROOT/etc/fstab - vim $CHROOT/etc/fstab - - echo "1.2.6. Initialization Scripts;" - cp $DIR_CONF/rc.conf $CHROOT/etc/ - vim $CHROOT/etc/rc.conf - -#} - -printf "Chroot to /mnt and set root and admin password:" -- cgit 1.4.1-2-gfad0