Last active
December 21, 2018 02:49
-
-
Save kkpoon/cb80dccc4922d3a344764fa4b32e9dc3 to your computer and use it in GitHub Desktop.
userdata to boot a VM to build servo
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/sh | |
apt-get -y update | |
apt-get -y install git curl autoconf libx11-dev \ | |
libfreetype6-dev libgl1-mesa-dri libglib2.0-dev xorg-dev \ | |
gperf g++ build-essential cmake virtualenv python-pip \ | |
libssl1.0-dev libbz2-dev libosmesa6-dev libxmu6 libxmu-dev \ | |
libglu1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev \ | |
libharfbuzz-dev ccache clang \ | |
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ | |
libgstreamer-plugins-bad1.0-dev autoconf2.13 | |
pip install certifi | |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y | |
cat <<EOF > /root/.tmux.conf | |
# set scroll history to 10k lines | |
set -g history-limit 10000 | |
# set terminal color | |
set -g default-terminal "screen-256color" | |
# change prefix from CTRL-b to CTRL-a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# custom key bindings | |
bind | split-window -h | |
bind - split-window -v | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
set -g status-interval 1 | |
set -g visual-activity on | |
set -g mouse on | |
setw -g pane-base-index 1 | |
setw -g monitor-activity on | |
setw -g mode-keys vi | |
set-option -g base-index 1 | |
set-option -g status on | |
EOF | |
touch /root/userdata_done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment