Browse files

make sure sshd will start, fix editor and add vagrant to wheel group

  • Loading branch information...
1 parent d2de94f commit bd1329258e3b92f456bb2a640999b3065831ef4f Lee Thompson committed Dec 30, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 templates/funtoo-latest-generic_64-stable/
@@ -134,8 +134,9 @@ vagrant
-#create vagrant user / password vagrant
-chroot /mnt/funtoo useradd -m -r vagrant -p '$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1'
+#create vagrant user with password set to vagrant
+chroot /mnt/funtoo useradd -m -r vagrant -g vagrant -G wheel -p '$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1'
+chroot /mnt/funtoo rc-update add sshd default
# Cron & Syslog
chroot /mnt/funtoo emerge metalog vixie-cron
@@ -144,6 +145,7 @@ chroot /mnt/funtoo rc-update add vixie-cron default
#Get an editor going
chroot /mnt/funtoo emerge vim
+echo "EDITOR=/usr/bin/vim" > /mnt/funtoo/etc/env.d/99editor
#Allow external ssh
echo "echo 'sshd:ALL' > /etc/hosts.allow" | chroot /mnt/funtoo /bin/bash -
@@ -204,6 +206,8 @@ echo "chown portage:portage /usr/portage/distfiles" | chroot /mnt/funtoo /bin/ba
echo "sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 rc.vboxadd):' /etc/rc.conf" | chroot /mnt/funtoo /bin/bash -
+chroot /mnt/funtoo env-update
cd /
umount /mnt/funtoo/{proc,sys,dev}

0 comments on commit bd13292

Please sign in to comment.