Skip to content

Instantly share code, notes, and snippets.

@JohnEarnest
Created February 5, 2020 16:10
Show Gist options
  • Save JohnEarnest/24cfaf815e01c7c8295dd9e7856c7d02 to your computer and use it in GitHub Desktop.
Save JohnEarnest/24cfaf815e01c7c8295dd9e7856c7d02 to your computer and use it in GitHub Desktop.
OLPC Setup Script
#!/bin/bash
# OLPC setup script
# First, make sure your OS is updated to the latest version:
# http://wiki.laptop.org/go/Release_notes/13.2.11#Installation
# Then ensure you have a WiFi connection.
# fix clock (modify time zone as desired)
sudo ntpdate pool.ntp.org
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 http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo yum install -y --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(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 user.name "John Earnest"
# git config --global user.email JohnEarnest@gmail.com
# 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