Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@botandrose
Created March 16, 2011 09:45
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 botandrose/872241 to your computer and use it in GitHub Desktop.
Save botandrose/872241 to your computer and use it in GitHub Desktop.
script to get my cr48 where i like it
#!/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/micah@susuwatari.pub > /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 &
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