Skip to content

Instantly share code, notes, and snippets.

@bixu
Created September 1, 2010 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bixu/560034 to your computer and use it in GitHub Desktop.
Save bixu/560034 to your computer and use it in GitHub Desktop.
#!/bin/bash
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
# Attach the VBox Guest Additions to the virtual CDROM, then run:
mkdir /cdrom; mount -F hsfs -o ro /dev/dsk/`prtconf -v | grep "/dev/removable-media" | head -n1 | awk 'BEGIN {FS="/"}{print $5}'` /cdrom
pkgadd -d /cdrom/VBoxSolarisAdditions.pkg
# Install Chef and other stuff:
gem install chef --no-rdoc --no-ri
# Configure SSH:
echo "
LookupClientHostnames no
VerifyReverseMapping no
" >> /etc/ssh/sshd_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment