Created
September 1, 2010 00:41
-
-
Save bixu/560034 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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