Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2020 16:10
What would you like to do?
OLPC Setup Script
# OLPC setup script
# First, make sure your OS is updated to the latest version:
# Then ensure you have a WiFi connection.
# fix clock (modify time zone as desired)
sudo ntpdate
sudo hwclock --systohc
sudo unlink /etc/localtime
sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
# re-enable man pages; they are not installed by default
sudo bash -c 'sed "/excludedocs/d" /etc/rpm/macros.imgcreate > /etc/rpm/macros.imgcreate'
# add functioning package repositories
sudo yum install -y --nogpgcheck$(rpm -E %fedora).noarch.rpm
sudo yum install -y --nogpgcheck$(rpm -E %fedora).noarch.rpm
# install development tools and nice-to-haves
sudo yum install -y man man-pages libstdc++-docs gcc-c++ libX11-devel make git vim mplayer rlwrap nc tree php
# and now some personal preferences:
# configure git
git config --global color.ui auto
git config --global core.editor "vim"
git config --global push.default simple
# git config --global "John Earnest"
# git config --global
# configure .vimrc
echo -e "set shiftwidth=2\nset tabstop=2\n" > ~/.vimrc
# configure .bashrc
# echo "" >> ~/.bashrc
# echo "export PATH=/usr/local/bin/k3:$PATH" >> ~/.bashrc
# echo "export PATH=/usr/local/bin/qjs:$PATH" >> ~/.bashrc
# echo "alias js='qjs32'" >> ~/.bashrc
# sudo mkdir /usr/local/bin/k3
# sudo mkdir /usr/local/bin/qjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment