username: pi
password: raspberry
Need to add US support in addition to default GB, including language, keyboard, etc.
$ raspi-config
#!/bin/bash | |
err() { | |
msg="$@" | |
echo "ERROR: $msg" >&2 | |
} | |
centos6() { | |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm |
#!/bin/bash | |
err() { | |
echo "ERROR: $@" >&2 | |
} | |
: ${INFILE:="$HOME/.Xresources"} | |
if [[ $# -gt 0 ]] | |
then |
#!/bin/bash | |
set -e | |
err() { | |
echo "$@" >&2 | |
} | |
prepare_redhat() { | |
yum update -y |
curl -LOk https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
tar -zf Python-2.7.15.tgz
cd Python.2.7.15
./configure --enable-optimization
make altinstall
curl -LOk https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py
#!/bin/bash | |
set -e | |
FTP_BASE='ftp://ftp.yangjian.net/pub' | |
LIBEVENT=libevent-2.1.8-stable | |
NCURSES=ncurses | |
TMUX=tmux-2.6 | |
OPT_DIR=$HOME/opt |
#!/bin/bash | |
INSTALL_DIR=~/opt/python | |
TMP_DIR=/tmp/install_python | |
mkdir -p $INSTALL_DIR | |
DIR_OPENSSL=openssl-1.0.2k | |
DIR_PYTHON=Python-2.7.13 | |
FILE_OPENSSL=${DIR_OPENSSL}.tar.gz | |
FILE_PYTHON=${DIR_PYTHON}.tgz |