Created
March 16, 2011 09:45
-
-
Save botandrose/872241 to your computer and use it in GitHub Desktop.
script to get my cr48 where i like it
This file contains 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 | |
cd /tmp | |
# "jailbreak" to allow modifications | |
/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification | |
# make the system writable | |
mount -o remount,rw / | |
# make the stateful_partition executable | |
mount -o remount,exec /mnt/stateful_partition | |
# install x2x | |
wget http://www.archlinux.org/packages/extra/i686/x2x/download/ -O x2x.tar.gz | |
tar xzvf x2x.tar.gz | |
cp usr/bin/x2x /usr/bin | |
rm -rf x2x | |
# install vim | |
wget --no-check-certificate https://github.com/helloandre/cr48/raw/master/bin/vim | |
chmod +x vim | |
cp vim /usr/bin/ | |
# open up firewall | |
iptables -F | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# set up public keys | |
curl https://gist.github.com/raw/872241/[email protected] > /home/chronos/user/.ssh/authorized_keys | |
chown chronos:chronos /home/chronos/user/.ssh/authorized_keys | |
# set up hostname | |
echo chronos > /etc/hostname | |
hostname -F /etc/hostname | |
# start sshd | |
/usr/sbin/sshd & |
This file contains 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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvYPHP7O7gdC+ZYobWKOIRt9b8TMzUCBd1blxNMOPWkKAJ362hIcxya9Bbgkutw4DMCJXzjzpgCofTTREXKR2QGS+W8bgT+NVg8zkJ442wvEz4/AlZwnK2KUO52QzhDxlbU8xMKvScTmuYgJ1ujl5NYXdlvSlrUBydGXQt8QD0EciyRSe4oCIKTc4sNBRt5lRItF9xNceetRdS23zZEhzi3WuHzPwbTXKOniJXOLmnusTuh3SuwL3/I+/V3oU8tsnfUExKFftoXUTceY2sFCbO3ehjn999sXNNMr/KN3l4xsBKTrkRH29ExrhrAW/ZHdX97ytZtCrhG+L4YsHUPRvMw== micah@susuwatari |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment